/* General Body Styling */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f7f7f7;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #333;
}
body, html {
    overflow-x: hidden;
    /* width: 100vw; */
}

/* Top Navigation Bar */
.top-nav {
    width: 100%;
    background-color: #3c3c3c;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.top-nav .logo {
    font-size: 1.8em;
    color: #f7c13e;
    font-weight: bold;
    padding: 0 20px;
    letter-spacing: 1px;
}
.logo a {
    text-decoration: none;
    color: #f7c13e;
}

.nav-links {
    display: flex;
    gap: 20px;
    transition: all 0.3s ease;
    list-style-type: none; /* Hides the bullet points */
}

.nav-links a {
    color: #e0e0e0;
    font-weight: 500;
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s;
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    background-color: #555;
    color: #f7c13e;
}

.nav-links a::before {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 10%;
    width: 80%;
    height: 2px;
    background-color: #f7c13e;
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    transform: scaleX(0);
}

.nav-links a:hover::before,
.nav-links a.active::before {
    opacity: 1;
    transform: scaleX(1);
}

/* Hamburger Menu for Mobile */
.menu-toggle {
    display: none;
    font-size: 1.5em;
    cursor: pointer;
    color: #f7c13e;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background-color: #3c3c3c;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        padding: 10px 0;
    }
    
    .nav-links a {
        padding: 10px 20px;
        margin: 10px;
        text-align: left;
    }
    
    .menu-toggle {
        display: block;
        margin: 15px;
    }

    .nav-links.active {
        display: flex;
    }
}

.toggle-button {
    /* font-size: 1.5em; */
    font-weight: lighter;
    cursor: pointer;
    color: #b38c32;
    padding: 10px;
    text-shadow: #e0d8d8;
}

.toggle-button:hover {
    background: linear-gradient(135deg, #3e3e3f, #2c2d2e); /* Darker gradient on hover */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2); /* Slightly more prominent shadow */
    transform: translateY(-2px); /* Gives a lift effect */
}

.toggle-button:active {
    transform: translateY(0); /* Resets when clicked */
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15); /* Slightly smaller shadow */
}

/* Content Container Styling */
#content {
    /* max-width: 900px; */
    max-width: 96%;
    width: 100%;
    margin: 20px;
    padding: 20px;
    background-color: #ffffff;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
}

/* Individual Section Styling */
.content-section {
    display: none;
    padding: 10px 20px;
}

.content-section h1, .content-section h2 {
    color: #4A4A4A;
    border-bottom: 2px solid #f7c13e;
    padding-bottom: 8px;
    margin-bottom: 15px;
}

.content-section h3 {
    color: #4A4A4A;
    font-weight: bold;
    margin-top: 20px;
    margin-bottom: 10px;
}

.content-section p {
    line-height: 1.6;
    color: #555;
    margin: 10px 0;
}

/* Category List Styling */
.search-bar {
    display: block;
    margin: 10px auto;
    padding: 10px;
    width: 80%;
    max-width: 500px;
    font-size: 1em;
    border: 1px solid #ccc;
    border-radius: 5px;
}
.category-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 10px;
}

.category {
    flex: 1 1 calc(33.333% - 10px);
    max-width: 200px;
    text-align: center;
    background-color: #f0f0f0;
    border-radius: 8px;
    box-shadow: 0px 3px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, background-color 0.3s;
}

.category a {
    display: block;
    padding: 10px;
    text-decoration: none;
    color: #4A4A4A;
    font-weight: bold;
}

.category:hover {
    background-color: #f7c13e;
    color: #ffffff;
    transform: translateY(-5px);
}

.category a:hover {
    color: #ffffff;
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
    .content-section {
        padding: 10px 15px;
    }

    .category-list {
        gap: 10px;
    }

    .category {
        flex: 1 1 calc(50% - 10px);
    }

    /* Adjust font sizes, padding, margins, etc., for mobile */
    body {
        font-size: 19px;
    }

    .book {
        width: 100%; /* Make book elements full-width */
        margin: 10px 0;
    }

    /* Adjust top-bar for mobile */
    .top-bar {
        flex-direction: column;
        align-items: center;
    }

    /* For very small screens */
    .book-list {
        display: flex;
        flex-wrap: wrap;
        gap: 15px;
        justify-content: center;
    }            

    .search-bar {
        display: block;
        margin: 10px auto;
        padding: 10px;
        width: 80%;
        max-width: 500px;
        font-size: 1em;
        border: 1px solid #ccc;
        border-radius: 5px;
    }
}
