body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0 0 50px 0; 
    display: flex;
    flex-direction: column;
    align-items: stretch; /* Ensures the color background extends full width */
    background-color: #000000;
    min-height: 100vh;
}


header h1 {
    font-size: 3em; /* Increased font size */
    letter-spacing: 0.2em; /* Added spacing between letters */
    color: #ffffff;
    background: linear-gradient(45deg, #6e45e2, #88d3ce);
    padding: 10px;
    margin: 0px;
    width: 100%;
    text-align: center;
}

header h2 {
    text-align: center;
    color: white; 
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 400px)); 
    gap: 20px;
    padding: 50px;
    margin: 10px;
    width: 100%;
    box-sizing: border-box;
    flex-grow: 1;
    margin-bottom: 20px;
    justify-content: center;
}

.category-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 10px;
    background: rgba(0, 0, 0, 0.5); /* Semi-transparent background for readability */
    color: white;
    border-radius: 8px;
    overflow: hidden;
    transition: background-color 0.3s ease; /* Smooth transition for background color */
    position: relative; /* Context for positioning elements */
}

.category-box img {
    width: 100%;
    height: auto; /* Adjust height to maintain aspect ratio */
    object-fit: cover;
    transition: opacity 0.3s ease; /* Smooth transition for image opacity */
}

.box-text, .category-description {
    text-decoration: none; /* Removes underlining from text */
    color: white;
    font-weight: bold;
    font-size: 20px; /* Adjust font size as needed */
    padding: 5px 10px; /* Adjust padding as needed */
    text-align: center; /* Ensure text is centered */
    width: 100%; /* Full width of the container */
    margin-top: 5px; /* Space between image and text */
}

.category-description {
    font-size: 16px; /* Smaller font size for descriptions */
    font-weight: normal; /* Less emphasis compared to title */
    text-decoration: none; /* Ensure description text is also not underlined */

}
.category-box h3 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
}
.category-box:hover .box-text,
.category-box:hover .category-description {
    color: #333; /* Ensure text is readable on hover */
}
.category-box:hover {
    background-color: rgba(255, 255, 255, 1); /* Adjust hover background color as needed */
}

.content {
    display: flex;
    width: 100%;
    height: calc(100vh - 60px); /* Adjust height as needed */
}

.left-content, .right-content {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-size: 1.5em;
    color: #ffffff;
    transition: background-color 0.3s; /* Smooth transition for background color */
    text-shadow: 2px 2px 2px #2e2e2e; /* Dark grey drop shadow */
    text-decoration: none;
}

.intro {
    margin: 20px auto; /* Center the div */
    max-width: 66%; /* Set the width to 2/3 of the container */
    background-color: #333; /* Dark background */
    color: white; /* White text */
    padding: 0 20px 0 20px; /* Add some padding */
    border-radius: 10px; /* Optional: Rounded corners */
    font-size: 1.5rem; /* Larger text */
    line-height: 1.5; /* Improve readability */
}

footer {
    width: 100%;
    height: 50px; /* Adjust the height as needed */
    background-color: black;
    position: fixed;
    bottom: 0;
    left: 0;
}

/* Style changes for filter menu */
.filter-menu ul {
    list-style: none;
    text-align: center;
    padding: 0;
    color: white; /* Set filter text to white */
}

.filter-menu li {
    display: inline-block;
    margin: 0 10px;
    cursor: pointer;
    font-size: 1.75em; /* Increase font size */
}

.filter-item.active {
    font-weight: bold;
    background: linear-gradient(45deg, #6e45e2, #88d3ce);
    padding: 6px;
    border-radius: 8px;
    /* ... other styles for active state ... */
}


/* Styles for the coloring-pages section */
.coloring-pages {
    margin-left: 20px; /* Left margin */
    margin-right: 20px; /* Right margin */
    text-align: center;
    display: flex;
    flex-wrap: wrap; /* Allows items to wrap to the next line */
    justify-content: space-around; /* Evenly spaces items and centers them */
}

/* Style changes for coloring-page items */
.coloring-page-item {
    width: 31%; /* Adjust width for about 3 items per row */
    margin: 1%; /* Add some margin between items */
    text-align: center;
    display: inline-block; /* Align items in a row */
    color: white;
    /* Add any additional styling as needed */
}

.coloring-page-item img {
    max-width: 100%; /* Ensure images fit within their container */
    height: auto; /* Maintain aspect ratio */
}

/* Styles for the book-item */
.book-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 20px; /* Adjust the space between the items */
    margin-bottom: 36px;
}

.book-item {
    width: 27%; /* Adjust width for about 3 items per row */
    margin: 2%; /* Add some margin between items */
    text-align: center;
    display: inline-block; /* Align items in a row */
    color: white;
}

.book-item img {
    max-width: 100%; /* Ensures image scales down */
    height: auto; /* Maintain aspect ratio */
    /* You can adjust the size more specifically here if needed */
}

.book-item h3 {
    color: white; /* Setting the text color to white */
}

.book-item a {
    color: white; /* Setting the link text color to white */
    text-decoration: underline; /* Optional: Removes underline from the link */
}

.book-item a:hover {
    text-decoration: underline; /* Optional: Adds underline on hover for better UX */
}

.faq-section {
    width: 75%; /* Sets the width to 75% of the parent element */
    margin: 0 auto; /* Centers the section horizontally */
    padding: 20px; /* Adds some padding inside the box */
    background-color: #f4f4f4; /* Optional: adds a background color */
    border-radius: 8px; /* Optional: rounds the corners */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Optional: adds a subtle shadow */
}


.faq-title {
    font-size: 18px;
    cursor: pointer;
    padding: 10px;
    background: rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid #ddd;
}

.faq-content {
    padding: 10px;
    display: none; /* Hide content initially */
    animation: fadeIn ease 0.5s;
}
.faq-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    margin: 10px;
    padding: 10px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: background-color 0.3s;
}

.faq-splash {
    position: absolute;
    border-radius: 50%;
    background-image: radial-gradient(circle, #4a90e2, #004cff);
    transform: scale(0);
    opacity: 0.7;
    transition: transform 0.5s, opacity 0.5s;
    pointer-events: none; /* Ensure clicks go through the splash */
}

.faq-content {
    display: none;
    padding: 10px;
}

/* Coloring Guide Section */
.coloring-guide {
    margin: 20px auto; /* Centers the section with some margin on top and bottom */
    max-width: 75%; /* Limits the width and ensures it doesn't span the full width of the page */
    background-color: #f8f8f8; /* Light background to make the section stand out */
    padding: 20px; /* Padding around the content */
    border-radius: 8px; /* Rounded corners */
    box-shadow: 0 2px 5px rgba(0,0,0,0.1); /* Subtle shadow for depth */
}

.guide-title {
    font-size: 2em; /* Larger font size for the section title */
    color: #333; /* Dark gray color for better readability */
    text-align: center; /* Centers the title text */
    margin-bottom: 15px; /* Space below the title */
}

.guide-intro {
    font-size: 1.2em; /* Slightly larger font size for introductory text */
    color: #666; /* Medium gray for the introductory text */
    text-align: center; /* Centers the introductory text */
    margin-bottom: 20px; /* Space below the introductory text */
}

.technique-section, .color-theory-section {
    background-color: #ffffff; /* White background for each subsection */
    padding: 15px; /* Padding inside each subsection */
    margin-bottom: 10px; /* Margin below each subsection */
    border-radius: 5px; /* Rounded corners for subsections */
}

.technique-section h3, .color-theory-section h3 {
    color: #4a90e2; /* Blue color for subsection titles */
    margin-bottom: 10px; /* Space below the subsection titles */
}

.technique-section p, .color-theory-section p {
    font-size: 1em; /* Standard font size for the content */
    color: #333; /* Dark gray for text to ensure readability */
    line-height: 1.5; /* Line height for better readability */
}

@media (max-width: 768px) {
    .coloring-guide {
        max-width: 90%; /* Wider in smaller screens to use more space */
    }
}


@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
/* Responsive adjustments for smaller screens */
@media screen and (max-width: 600px) {
    .book-item {
        width: calc(50% - 20px); /* 2 items per row on smaller screens */
    }
}

/* Responsive layout adjustments */
@media screen and (max-width: 768px) {
    .coloring-page-item {
        width: 48%; /* Adjust to 2 items per row for smaller screens */
    }
}

@media (max-width: 1200px) {
    .category-grid {
        grid-template-columns: repeat(2, minmax(0, 300px)); /* 2 columns for smaller screens */
    }
    .category-box {
        width: 300px;
        height: 300px;
    }
}

@media (max-width: 800px) {
    .category-grid {
        grid-template-columns: repeat(1, minmax(0, 100%)); /* 1 column for very small screens */
    }
    .category-box {
        width: 100%;
        height: auto; /* Adjust height to maintain aspect ratio */
    }
    .box-text {
        font-size: 16px; /* Smaller font size for very small screens */
    }
}