body {
  margin: 0;
  background-color: #553b08;
  font-family: Merriweather, serif;
}


.loading-gif {
    max-width: 500px;
    text-align: center;
}

.loading-gif-img {
  width: 100px;
  height: auto;
  display: none;
  margin: 0 auto;
}

.loading-text {
  display: none;
  color: #e9e5cd;
  font-family: Merriweather, serif;
  font-weight: 900;
  font-style: normal;
  font-size: 4vw;
  text-align: center;
  margin-top: 20px; 
}


.pre-loader {
  position: fixed;
  z-index: 9999; 
  top: 0;
  left: 0;
  background: #553b08;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  width: 100vw;
  visibility: visible;
  opacity: 1;
  transition: opacity 0.5s;
}


.enter-button {
    display: none;
    justify-content: center;
    align-items: center;
    margin-top: 20px; 
    cursor: pointer;
    gap: 15px;
    flex-direction: row;
}

.initial-button {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px; 
    cursor: pointer;
    gap: 15px;
    flex-direction: row;
}

.initial-button-text {
  color: #e9e5cd;
  font-family: Merriweather, serif;
  font-weight: 900;
  font-style: normal;
  font-size: 4vw;
  text-align: center;
  margin: 0;
  cursor: pointer;
}

.loading-gif.hidden {
  display: none !important;
}

.enter-button-text {
  color: #e9e5cd;
  font-family: Merriweather, serif;
  font-weight: 900;
  font-style: normal;
  font-size: 4vw;
  text-align: center;
  margin: 0;
  cursor: pointer;
}

.enter-button.show {
  display: flex !important;
}

.arrow {
    display: none;
    color: #e9e5cd;
    font-family: Merriweather, serif;
    font-weight: 900;
    font-style: normal;
    font-size: 4vw;
    text-align: center;
    margin: 0;
    cursor: pointer;
}


.text {
  position: fixed;
  top: 50vh;
  font-family: Merriweather, serif;
  font-weight: 900;
  font-style: normal;
  font-size: 8vw;
  text-align: center;
  width: 100%;
  transform: translateY(-100%);
  z-index: 2;
  color: #e9e5cd;
  -webkit-text-stroke-width: 1.5px;
  -webkit-text-stroke-color: #e9e5cd;
  z-index: -2;
}

.time-text {
    display: none;
}

.books-text {
    display: inline;
}

.outline-text {
  color: transparent;
  -webkit-text-stroke-width: 1.5px;
  -webkit-text-stroke-color: #e9e5cd;
  z-index: 2;
}

.filter-text {
  mix-blend-mode: screen;
  color: #7a4915;
  z-index: 2;
}


#book-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    padding: 0;
    list-style: none;
    margin: 0;
}

.book-list-item {
    background: transparent;
    width: 100%;
    height: 300px;
    perspective: 1000px;
}

/* The flip card container */
.book-card {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
    cursor: pointer;
}

/* Flip the card on click (using flipped class) */
.book-list-item.flipped .book-card {
    transform: rotateY(180deg);
}

/* Position the front and back side */
.book-card-front, .book-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    /* box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); */
}


/* Style the back side (rotated 180 degrees) */
.book-card-back {
    background: #553b08;
    color: white;
    transform: rotateY(180deg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.book-cover {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.book-cover img {
    width: 100%;
    height: auto;
    object-fit: fill;
}

.no-cover {
    padding: 20px;
    text-align: center;
    background: #e9e5cd;
    color: #553b08;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.no-cover .book-title {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 8px;
    line-height: 1.2;
}

.no-cover .book-author {
    font-size: 12px;
    opacity: 0.9;
}

.book-info {
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.book-info .book-title {
    font-size: 16px;
    font-weight: bold;
    margin: 0 0 5px 0;
    color: white;
    line-height: 1.3;
}

.book-info .book-author {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 8px 0;
}

.book-rating, .avg-rating, .book-publisher, .book-year, .book-pages {
    font-size: 12px;
    margin: 4px 0;
    color: rgba(255, 255, 255, 0.8);
}

.book-rating {
    font-weight: 600;
    color: #f39c12;
}

.book-publisher, .book-year, .book-pages {
    font-size: 11px;
    opacity: 0.7;
}


.reading-time {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.8);
    margin: 4px 0;
    font-style: italic;
}

.countdown-display {
    font-size: 20px;
    color: #e9e5cd ;
    padding: 8px;
    font-family: merriweather, serif;
    border-radius: 4px;
    text-align: center;
    margin-top: 6px;
    letter-spacing: 1px;
}

.countdown-complete {
    color: #27ae60 !important;
}

