body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
}


h2 {
    text-align: center;
    font-size: 24px;
    color: #34495e;
    margin-top: 30px;
    line-height: 2.05;
    font-weight: normal;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 40px;
    text-align: justify;
    letter-spacing: 0.5px;
}

.right-text {
    display: flex;
    justify-content: flex-end;
    font-style: italic;
    color: #7f8c8d;
    margin-top: 5px;
    font-size: 20px;
}

.container {
    width: 85%;
    margin: 0 auto;
    padding-top: 20px;
}

.book-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    transition: all 0.3s ease;
}

.book-list:hover {
    transform: translateY(-5px);
}

.book-card {
    background-color: #fff;
    display: flex;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    overflow: hidden;
    cursor: pointer;
    margin-bottom: 20px;
    animation: float 2s ease-in-out infinite;
}

.book-card:hover {
    transform: scale(1.05) rotate(5deg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    background-color: #f0f5f9;
    animation: explode 0.5s ease-in-out;
}

@keyframes float {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
    100% {
        transform: translateY(0);
    }
}

@keyframes explode {
    0% {
        transform: scale(1) rotate(0deg);
    }
    50% {
        transform: scale(1.1) rotate(5deg);
    }
    100% {
        transform: scale(1) rotate(0deg);
    }
}

.book-cover {
    width: 100%;
    max-width: 160px;
    height: 200px;
    margin-right: 20px;
    transition: transform 0.3s ease;
}

.book-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.book-cover:hover img {
    transform: scale(1.1);
}

.book-info {
    flex-grow: 1;
}

.book-info h2 {
    margin: 0;
    font-size: 24px;
    line-height: 1.4;
    color: #2c3e50;
    transition: color 0.3s ease;
}

.book-info h2:hover {
    color: #3498db;
}

.book-info .author {
    color: #777;
    font-size: 18px;
    margin: 10px 0;
}

.book-info .rating {
    color: #FFD700;
    font-size: 18px;
    font-weight: bold;
    margin-left: 10px;
    position: absolute;
    top: 2px;
    right: 20px;
}

.book-info p {
    font-size: 14px;
    color: rgba(85, 85, 85, 0.8);
    line-height: 1.6;
    margin-top: 10px;
}

@media (max-width: 768px) {
    .container {
        width: 90%;
    }

    .book-list {
        grid-template-columns: 1fr;
    }

    .book-card {
        flex-direction: column;
        align-items: center;
    }

    .book-cover {
        width: 130px;
        height: 180px;
        margin-bottom: 20px;
    }

    .book-info {
        text-align: center;
    }

    .book-info .rating {
        position: relative;
        margin-left: 0;
        top: 0;
    }
}
