* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth; /* Smooth scrolling for anchor links */
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #fff;
    color: #000;
    line-height: 1.6;
    overflow-y: scroll; /* Enable vertical scrolling */
    height: 100vh; /* Set the body to full viewport height */
    scroll-snap-type: y mandatory; /* Enable scroll snapping */
}

header {
    background-color: #000;
    color: #fff;
    padding: 1rem;
    text-align: center;
}

nav ul {
    list-style: none;
}

nav ul li {
    display: inline;
    margin-right: 20px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 1.2rem;
}

/* Fade-in animation from the right */
@keyframes fadeInRight {
    0% {
        opacity: 0;
        transform: translateX(100%);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Styling for sections */
.hero, .books-section, .about-section, .reviews-section {
    padding: 4rem; /* Adjust padding as needed */
    text-align: center;
    scroll-snap-align: start; /* Aligns this section to the start of the viewport */
}

/* Specific styles for the hero section */
.hero {
    background-color: #f0f0f0; /* Adjust as needed */
}

.hero-content {
    display: flex;
    flex-direction: row; /* Align items in a row */
    align-items: center; /* Center items vertically */
    justify-content: center; /* Center items horizontally */
}

.logo-container {
    margin-right: 2rem; /* Space between logo and heading */
}

.logo {
    width: 200px; /* Adjust width as needed */
    height: auto; /* Maintain aspect ratio */
    object-fit: contain;
}

.hero-content h1 {
    font-size: 3rem;
    margin: 0; /* Remove default margin */
}

.hero-content p {
    font-size: 1.5rem;
    color: #333;
}

/* Latest Arrival section */
.latest-arrival {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
    opacity: 0; /* Initially hidden */
    animation: fadeInRight 1.5s ease forwards; /* Animation on load */
}

.latest-arrival img.book-cover {
    width: 500px; /* Adjusted width for larger images */
    height: auto; /* Maintain aspect ratio */
    margin-right: 1.5rem;
}

.book-details {
    text-align: left;
}

.book-details h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.book-details p {
    font-size: 1.2rem;
    color: #333;
}

/* Books section */
.books-section {
    padding: 2rem;
    text-align: center;
}

h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.book-gallery {
    display: flex;
    flex-wrap: wrap; /* Allows wrapping of items */
    justify-content: center;
    gap: 2rem;
}

.book-item {
    text-align: center;
}

.book-item img {
    width: 500px;  /* Adjusted width for larger images */
    height: auto;  /* Maintain aspect ratio */
}

.book-item .book-details {
    text-align: left;
    margin-top: 1rem; /* Add space between image and details */
}

/* About section */
.about-section {
    padding: 2rem;
    text-align: center;
}

.about-section img {
    width: 500px; /* Keep this value consistent */
    height: 500px; /* Set height to the same as width for a perfect circle */
    border-radius: 50%; /* Makes the image circular */
    object-fit: cover; /* Ensures the image covers the area nicely */
    margin-bottom: 1rem; /* Maintain spacing below the image */
}

.about-icons {
    margin-top: 1rem; /* Space above the icons */
}

.about-icons .social-icon {
    margin: 0 10px; /* Space between icons */
    font-size: 1.5rem; /* Size of the icons */
    color: #000; /* Icon color */
    text-decoration: none; /* Remove underline */
    transition: color 0.3s; /* Smooth transition for color change */
}

.about-icons .social-icon:hover {
    color: #000000; /* Change color on hover */
}

/* Reviews section */
.reviews-section {
    padding: 2rem;
    text-align: center;
}

/* Blockquote styles */
blockquote {
    font-style: italic;
    font-size: 1.2rem;
    margin: 1rem 0;
}

/* Footer styles */
footer {
    background-color: #000;
    color: #fff;
    padding: 1rem;
    text-align: center;
}

/* Button for purchasing books */
.buy-button {
    display: inline-block;
    background-color: #24282c; /* Adjust this to match your site tone */
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 1rem; /* Space above button */
}

/* Media Queries for Responsive Design */
@media (max-width: 768px) {
    .hero-content {
        flex-direction: column; /* Stack logo and heading */
    }
    
    .logo {
        width: 150px; /* Adjust logo size for smaller screens */
    }

    .hero-content h1 {
        font-size: 2.5rem; /* Adjust heading size for smaller screens */
    }

    .hero-content p {
        font-size: 1.2rem; /* Adjust paragraph size for smaller screens */
    }

    .book-item img {
        width: 300px; /* Adjust book cover size for smaller screens */
    }

    .about-section img {
        width: 300px; /* Adjust author image size for smaller screens */
        height: 300px; /* Keep the same aspect ratio */
    }

    h2 {
        font-size: 1.5rem; /* Adjust section heading size */
    }

    blockquote {
        font-size: 1rem; /* Adjust blockquote font size */
    }
}

@media (max-width: 480px) {
    nav ul li {
        margin-right: 10px; /* Decrease spacing between nav items */
    }

    nav ul li a {
        font-size: 1rem; /* Adjust font size for smaller screens */
    }

    .hero-content h1 {
        font-size: 2rem; /* Further adjust heading size for small screens */
    }

    .hero-content p {
        font-size: 1rem; /* Further adjust paragraph size for small screens */
    }
}
