/* Genel stiller */

body {
  overflow: hidden;
}
#container {
  display: flex;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  background-image: url('bg.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
#left {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 50%;
  height: 100%;
}
#right {
  display: flex;
  overflow: hidden;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 50%;
  max-width: 75%;
  background-color: rgba(255, 255, 255, 0.5);
  overflow-x:hidden
}
#right2 {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 25%;
  max-width: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  overflow: auto;
}
.book-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 15px;
  max-width: 70%;
}
@media screen and (min-width: 1600px) and (max-width: 1920px) {
  /* Özel genişlik ayarları */
  .book-buttons {
        max-width: 50%;
    }
}
@media screen and (max-width: 1600px) {
  /* Özel genişlik ayarları */
  .book-buttons {
        max-width: 80%;
    }
}
.buttons {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.buttons .button {
  cursor: pointer;
  transition: transform 0.2s;
  opacity: 1;
  max-width: 100%;
}

.buttons .button:hover {
  opacity: 1;
}

.book-covers {
  display: flex;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    max-width: 75%;
    flex-wrap: wrap;
}

.covers {
  display: flex;
  justify-content: center;
  align-items: center;
}
.covers .cover {
  width: 100%;
  transition: transform 0.2s;
  opacity: 1;
  max-width: 100%;
  width: 50%;
  margin:-15px;
}
.covers .cover:hover {
  opacity: 1;
}
.covers .cover.active {
  transform: scale(1.2);
  opacity: 1;
}
#logo {
  margin-bottom: 20px;
  text-align: center;
  max-width: 300px;
  /*position: absolute;*/
  top: 30px;
}
#logo img {
  max-width: 100%;
}
#cr {
  position: absolute;
  bottom: 5%;
  font-family: system-ui;
  opacity: 0.5;
  font-weight: 600;
  text-align: center;
}
#cr img 
{max-width: 100px}

/* Animasyonlar */
#container,
.buttons .button,
.covers .cover {
  transition: opacity 0.5s;
}
.buttons .button.active {
  opacity: 1;
}
/* Active ve passive stiller */
.buttons .button.passive,
.covers .cover.passive {
  opacity: 0.5;
}
.buttons .button.active,
.covers .cover.active {
  opacity: 1;
  transition: transform 2s;
}
.cover.passive
{
    max-width: 70%;
    margin-bottom: 10px;
    max-height: 17vh;
}
/* Sayfa yüklendiğinde ve butona tıklandığında opacity ayarları */
#container,
.buttons .button.active,
.covers .cover.active {
  opacity: 1;
}

/* Butona tıklandıktan sonra grid-template-columns değerini değiştir */
.buttons .button.active ~ .book-covers {
  grid-template-columns: repeat(1, 1fr);
}
