body{
    background-color: #faf8f5;
    color: #4a4a4a;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.header{
    margin-bottom: 40px;
}

.book-shelf{
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    max-width: 1000px;
    width: 100%;
}

.book-card{
    text-decoration: none;
    color: #2c3e50;
    width: 220px;
    height: 300px;
    perspective: 1000px;
}

.book-cover{
    background-color: var(--book-color, #e0e0e0);
    width: 100%;
    height: 100%;
    border-radius: 4px 14px 14px 4px;
    padding: 18px 14px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 4px 6px 12px rgba(0,0,0,0.08);
    transition: transform 0.35s cubic-bezier(0.175, 0.0885, 0,32, 1.275), box-shadow 0.35s ease;
    position: relative;
    border-left: 7px solid rgba(0,0,0, 0.06);
}

.book-card:hover .book-cover{
    transform: translate(-10px) rotate(-2deg);
    box-shadow: 8px 20px 25px rgba(0,0,0, 0.12);
}

.book-badge{
    font-size: 0.65rem;
    background: rgba(255, 255, 255, 0.55);
    padding: 3px 8px;
    border-radius: 20px;
    align-self: flex-start;
    font-weight: bold;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: #333;
}

.book-title{
    font-size: 1rem;
    margin: 15px 0 5px 0;
    font-weight: 600;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.book-author{
    font-size: 0.75rem;
    opacity: 0.75;
    margin: 0;
    font-style: italic;
}

footer {
  text-align: center;
  justify-content: center;
  margin-top: 30px;
  font-size: 0.875rem;
  line-height: 1.5;
  color: #a0a0a0;
  font-family: "Nunito", sans-serif;
}

