/* Combined CSS for funfact.css */

/* CSS Variables (Consolidated from both light/dark modes) */
:root {
    /* Consistent colors without light/dark variants */
    --fun-bg: #ffffff;
    --fun-text: #000000;
    --fun-text-red: #8f1212; 
    --fun-accent: #f5564e;
    --fun-border-radius: 25px;
    --fun-background-image: none;

    /* Header and Footer variables */
    --fun-footer-bg: #1a1a1a;
    --fun-footer-text: #cccccc;
    --fun-header-bg: rgba(0, 0, 0, 0.8);
    --fun-header-text: #ffffff;
}

/* Global Styles */

/* Home Wrapper (Main Content) */
.home-wrapper {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    padding-top: 60px;
    padding-bottom: 100px;
    top: 50px;
    /* Match the height of the fixed header */
    bottom: 60px;
    /* Match the height of the fixed footer */
    left: 0;
    right: 0;
    overflow-y: auto;
    /* Scroll only within the content area if needed */
    min-height: 100vh;
    /* Ensures the section takes up full viewport height */
}

/* Base styling (consolidated from dark/light modes) */
body {
    background-color: var(--fun-bg);
    color: var(--fun-text);
    background-image: var(--fun-background-image);
}

.footer {
    background-color: var(--fun-header-bg);
    color: var(--fun-header-text);
}

.menu-items li a,
.contact-link,
.social-media a,
.footer-bottom {
    color: var(--fun-footer-text);
}

.menu-items li a:hover,
.social-media a:hover {
    color: var(--fun-accent);
}

/* Category Image Styling - Centered and Responsive */
.category-image,
.intro-image {
    width: 100%;
    max-width: 400px;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Additional styling for the intro section */
.intro-section {
    text-align: center;
    padding: 20px;
}

/* Category Card Layout */
.category-card {
    margin-bottom: 40px;
    text-align: center;
}

/* Flexbox for categories wrapper */
.categories-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 20px;
}

.category-heading {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
}

/* Style for the icons */
.category-heading i {
    color: #ff4500;
    margin-right: 10px;
}

/* Style for the text */
.category-heading span {
    color: var(--fun-accent);
}

/* Footer Styles */
.footer {
    position: static;
    width: 100%;
    padding: 20px;
    text-align: center;
    z-index: 1000;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-logo {
    width: 80px;
    height: auto;
}

.license-info {
    font-size: 1.2rem;
}

.footer-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.footer-contact-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.contact-link {
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.social-media {
    display: flex;
    gap: 10px;
}

.social-media a {
    font-size: 1.5rem;
    transition: color 0.3s ease, transform 0.2s ease;
}

.social-media a:hover {
    transform: translateY(-2px);
}

.footer-bottom {
    font-size: 0.8rem;
    margin-top: 10px;
}

#current-year {
    font-size: 0.8rem;
}

/* Media Queries for Responsive Design */

@media (max-width: 1024px) {
    .home-wrapper {
        padding: 50px;
        padding-top: 60px;
    }

    .mode-toggle {
        top: 200px;
        right: 15px;
        padding: 8px 12px;
        z-index: 5;
    }

    .category-image,
    .intro-image {
        max-width: 350px;
    }

    .categories-wrapper {
        gap: 15px;
    }

    .footer-container {
        flex-wrap: wrap;
        gap: 15px;
        justify-content: center;
    }

    .footer-right {
        align-items: center;
    }
}

@media (max-width: 768px) {
    .home-wrapper {
        padding: 40px;
        margin-top: 100px;
    }

    .mode-toggle {
        top: 190px;
        right: 15px;
        padding: 7px 10px;
        z-index: 5;
    }

    .category-card {
        margin-bottom: 30px;
    }

    .categories-wrapper {
        flex-direction: column;
        align-items: center;
    }

    .category-heading {
        font-size: 22px;
    }

    .footer-container {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .footer-left {
        text-align: center;
    }
}

@media (max-width: 600px) {
    .home-wrapper {
        padding: 30px;
        padding-top: 60px;
    }

    .mode-toggle {
        top: 180px;
        right: 10px;
        padding: 5px 8px;
    z-index: 5;
    }

    .category-image,
    .intro-image {
        max-width: 300px;
    }

    .category-heading {
        font-size: 20px;
    }

    .categories-wrapper {
        gap: 10px;
    }

    .footer {
        padding: 15px;
    }

    .footer-contact-container {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }

    .contact-link {
        font-size: 0.8rem;
    }

    .footer-bottom {
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .home-wrapper {
        padding: 20px;
        padding-top: 60px;
    }

    .mode-toggle {
        top: 180px;
        right: 50px;
        padding: 5px;
        z-index: 5;
    }

    .intro-section {
        padding: 15px;
    }

    .category-image,
    .intro-image {
        max-width: 250px;
    }

    .category-heading {
        font-size: 18px;
    }

    .footer-container {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }

    .footer-left {
        text-align: center;
    }

    .footer-contact-container {
        flex-direction: column;
        align-items: center;
    }
}

.license-number {
    font-size: 0.95rem;
    margin-top: 1px;
}

@media (max-width: 360px) {
    .home-wrapper {
        padding: 15px;
        padding-top: 60px;
    }

    .mode-toggle {
        top: 150px;
        right: 5px;
        padding: 4px;
    z-index: 5;
    }

    .category-image,
    .intro-image {
        max-width: 200px;
    }

    .category-heading {
        font-size: 16px;
    }

    .footer {
        padding: 10px;
    }

    .footer-bottom {
        font-size: 0.65rem;
    }
}

@media (max-width: 320px) {
    .home-wrapper {
        padding: 10px;
        padding-top: 60px;
    }

    .mode-toggle {
        top: 140px;
        right: 5px;
        padding: 3px;
    z-index: 5;
    }

    .category-heading {
        font-size: 14px;
    }

    .footer-contact-container {
        gap: 5px;
    }

    .footer-bottom {
        font-size: 0.6rem;
    }
}

/* Back to Home Link Styles */
.back-to-home-container {
    text-align: center;
    margin-top: 30px;
    margin-bottom: 40px;
    padding: 20px;
    clear: both;
    position: relative;
    z-index: 10;
}

.back-to-home-link {
    color: #007bff;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: bold;
    padding: 10px 20px;
    border: 2px solid #007bff;
    border-radius: 5px;
    transition: all 0.3s ease;
    display: inline-block;
}

.back-to-home-link:hover {
    background-color: #007bff;
    color: #ffffff;
    transform: translateY(-2px);
}

/* Ensure glossary content doesn't overflow */
.glossary-section {
    margin-bottom: 60px;
    padding-bottom: 20px;
}