/* General Styles */
body {
    font-family: 'Poppins', 'Times New Roman',;
    margin: 0;
    padding: 0;
    background-image: url('backgroundWallpaper.jpg'); 
    background-size: cover; 
    background-position: center; 
    background-attachment: fixed; 
    color: #000000;
}

header {
    background-color: rgba(24, 24, 24, 0.7); 
    color: #ffffff;
    padding: 20px;
    text-align: center;
    position: relative;
}

h2 {
    margin: 0;
    font-size: 2.5em;
}

.author-logo {
    width: 180px; 
    height: 180px;
    border-radius: 50%;
    margin-top: 10px;
}

.about-author {
    margin: 20px 0;
    font-size: 1.2em;
}

.tabs {
    margin-top: 20px;
}

.tab {
    color: #fff;
    text-decoration: none;
    margin: 0 15px;
    font-size: 1.2em;
}

.tab:hover {
    text-decoration: underline;
}


.book-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    padding: 20px;
}

.book {
    background-color: #960b0b;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgb(236, 234, 234);
    text-align: center;
    width: 250px;
    margin: 20px;
    transition: transform 0.3s ease;
}

.book img {
    width: 100%;
    height: auto;
    border-radius: 10px 10px 0 0;
}

.book h3 {
    font-size: 1.3em;
    margin: 10px 0;
    color:#fff
}

.book p {
    font-size: 1em;
    color: #000000;
    padding: 0 10px;
}

.book .buy-now {
    display: inline-block;
    background-color: #ffffff;
    color: #0c0c0c;
    padding: 10px;
    border-radius: 5px;
    margin: 10px;
    text-decoration: none;
    transition: transform 0.3s ease; 
}

.book .buy-now:hover {
    background-color: #5583c7; 
    transform: scale(1.1); 
}

.book:hover {
    cursor: pointer;
    background-color: #eb3f3f;
    transform: translateY(-10px);
}

.book.selected {
    animation: bounce 0.5s ease-out;
}

@keyframes bounce {
    0% {
        transform: scale(1);
    }
    30% {
        transform: scale(1.1);
    }
    50% {
        transform: scale(1);
    }
    100% {
        transform: scale(1);
    }
}

/* Reviews Section */
.reviews {
    margin-top: 40px;
    font-size: 1.2em;
    color: #ffffff;
    text-align: center;
    opacity: 0; 
    animation: fadeInSection 1s forwards; 
    
}

.reviews .review {
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(20px); 
    animation: fadeIn 1s forwards;
}

.reviews .review:nth-child(1) {
    animation-delay: 0s; 
}

.reviews .review:nth-child(2) {
    animation-delay: 0.5s; 
}

.reviews .review:nth-child(3) {
    animation-delay: 1s; 
}

@keyframes fadeInSection {
    to {
        opacity: 1; 
    }
}

@keyframes fadeIn {
    0% {
        opacity: 0; 
        transform: translateY(20px); 
    }
    100% {
        opacity: 1; 
        transform: translateY(0); 
    }
}


.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    width: 300px;
    position: relative;
}

.close {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 1.5em;
    cursor: pointer;
}

/* Footer Styles */
footer {
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 23px;
    text-align: center;
}

footer .social-icons a {
    text-decoration: none;
    margin: 0 10px;
    font-size: 1.5em;
}

footer .social-icons a.instagram {
    color: #E4405F;
}

footer .social-icons a.linkedin {
    color: #0077b5;
}

footer .social-icons a.twitter {
    color: #1DA1F2;
}

footer .social-icons a.medium {
    color: #00ab6c;
}


@media screen and (max-width: 768px) {
    .book-container {
        flex-direction: column;
        align-items: center;
    }

    .book {
        width: 80%;
    }

    .tabs {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .tab {
        margin: 10px 0;
    }
}

.social-icon {
    background-size: cover;
    display: inline-block;
    width: 30px;
    height: 30px;
}

.instagram {
    background-image: url('https://upload.wikimedia.org/wikipedia/commons/thumb/9/95/Instagram_logo_2022.svg/1200px-Instagram_logo_2022.svg.png');
}

.linkedin {
    background-image: url('https://static.vecteezy.com/system/resources/previews/016/716/470/non_2x/linkedin-icon-free-png.png');
}

.twitter {
    background-image: url('https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcS1tXNbjVQfhaQ-ji2T5gAzvUufwsjm2HxQrg&s');
}

.medium {
    background-image: url('https://cdn4.iconfinder.com/data/icons/social-media-2210/24/Medium-512.png');
}
