* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Verdana, Geneva, Tahoma, sans-serif;
}

.main-title {
  color: #002D72;
  text-align: center;
  margin: 30px 0;
  font-size: 2.5rem;
  font-weight: bold;
}

.grid-container {
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
  justify-content: center;
  max-width: 1350px;
  margin: 0 auto 50px auto;
}

.book {
  position: relative;
  border-radius: 10px;
  width: 320px;
  height: 420px;
  background-color: whitesmoke;
  box-shadow: 1px 1px 12px #000;
  perspective: 2000px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 25px;
  text-align: center;
  box-sizing: border-box;
  overflow: hidden;
}

.book-content {
  font-size: 16px;
  color: #333;
  overflow-wrap: break-word;
  position: relative;
  z-index: 1;
}

.cover {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.5s;
  transform-origin: left;
  box-shadow: 1px 1px 12px #000;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  color: white;
  font-size: 22px;
  font-weight: bold;
  padding: 15px;
  box-sizing: border-box;
  text-shadow: 1px 1px 3px #000;
  z-index: 2;
}

.book:hover .cover {
  transform: rotateY(-80deg);
  z-index: 0;
}
