        body {
            margin: 0;
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            font-family: Arial, sans-serif;
        }
        main {
            flex: 1;
            padding: 2rem 0;
        }
        footer {
            background-color: #0033A0; /* Same blue as header */
            color: white;
            text-align: center;
            padding: 1rem;
            margin-top: auto;
        }
        
        /* Navbar styles */
        .navbar {
            background-color: #0033A0;
            color: white;
            padding: 1rem 0;
        }

        .container {
            width: 90%;
            max-width: 1200px;
            margin: 0 auto;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        main.container {
            display: block; /* Override flex display for main container */
        }

        .logo-container {
            display: flex;
            align-items: center;
            gap: 1rem;
        }

        .flag-circle {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            overflow: hidden;
        }

        .flag-circle img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        /* Navigation links - desktop */
        .nav-links {
            display: flex;
            list-style: none;
            margin: 0;
            padding: 0;
            gap: 1.5rem;
        }

        .nav-links li {
            position: relative;
        }

        .nav-links a {
            color: white;
            text-decoration: none;
            font-size: 1.1rem;
            transition: color 0.3s;
        }

        .nav-links a:hover {
            color: #ccc;
        }

        /* Dropdown menus */
        .dropdown-menu, .sub-dropdown-menu {
            position: absolute;
            top: 100%;
            left: 0;
            background-color: #002080;
            list-style: none;
            padding: 0.5rem 0;
            margin: 0;
            min-width: 200px;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s;
            z-index: 100;
            border-radius: 0 0 4px 4px;
        }

        .sub-dropdown-menu {
            left: 100%;

            top: 0;
            border-radius: 4px;
        }

        .dropdown:hover .dropdown-menu,
        .sub-dropdown:hover .sub-dropdown-menu {
            opacity: 1;
            visibility: visible;
        }

        .dropdown-menu li, .sub-dropdown-menu li {
            padding: 0;
        }

        .dropdown-menu a, .sub-dropdown-menu a {
            display: block;
            padding: 0.5rem 1rem;
            color: white;
            text-decoration: none;
        }

        .dropdown-menu a:hover, .sub-dropdown-menu a:hover {
            background-color: #001050;
        }

        /* Letter grid styles - with audio indicator */
        .letter-grid {
            display: flex;
            flex-wrap: wrap;
            gap: 15px;
            margin-top: 2rem;
        }

        .letter-card {
            flex: 0 0 calc(20% - 12px); /* 5 cards per row, accounting for gap */
            background-color: #f5f5f5;
            border-radius: 8px;
            padding: 1.5rem;
            text-align: center;
            box-shadow: 0 2px 5px rgba(0,0,0,0.1);
            transition: transform 0.3s, box-shadow 0.3s;
            cursor: pointer;
            position: relative;
        }

        .letter-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        }

        .cyrillic {
            font-size: 3rem;
            font-weight: bold;
            margin-bottom: 0.5rem;
            color: #0033A0;
        }

        .latin {
            font-size: 1.2rem;
            color: #555;
            margin-bottom: 0.5rem;
        }

        .example {
            font-size: 1.1rem;
            color: #333;
        }

        .audio-indicator {
            position: absolute;
            top: 10px;
            right: 10px;
            color: #0033A0;
            font-size: 1.2rem;
        }

        /* Show a playing animation when audio is playing */
        @keyframes sound-wave {
            0% { opacity: 0.3; }
            50% { opacity: 1; }
            100% { opacity: 0.3; }
        }

        .playing .audio-indicator {
            animation: sound-wave 1s infinite;
        }

        /* Mobile menu styles */
        .menu-toggle {
            display: none;
            cursor: pointer;
            font-size: 1.5rem;
        }

        /* Responsive styles */
        @media (max-width: 992px) {
            .letter-card {
                flex: 0 0 calc(25% - 12px); /* 4 cards per row on medium screens */
            }
        }

        @media (max-width: 768px) {
            .menu-toggle {
                display: block;
            }

            .nav-links {
                position: fixed;
                top: 0;
                left: -100%;
                width: 80%;
                max-width: 300px;
                height: 100vh;
                background-color: #0033A0;
                flex-direction: column;
                padding: 2rem;
                transition: left 0.3s;
                z-index: 1000;
            }

            .nav-links.active {
                left: 0;
            }

            .dropdown-menu, .sub-dropdown-menu {
                position: static;
                opacity: 1;
                visibility: visible;
                display: none;
                background-color: #002080;
                margin-left: 1rem;
                min-width: auto;
            }

            .dropdown-menu.active, .sub-dropdown-menu.active {
                display: block;
            }

            .sub-dropdown-menu {
                margin-left: 1rem;
            }

            .dropdown-toggle::after, .sub-dropdown-toggle::after {
                content: " +";
            }

            .dropdown-toggle.active::after, .sub-dropdown-toggle.active::after {
                content: " -";
            }

            /* Make letter grid responsive on mobile */
            .letter-card {
                flex: 0 0 calc(33.333% - 10px); /* 3 cards per row on smaller screens */
            }
        }

        @media (max-width: 576px) {
            .letter-card {
                flex: 0 0 calc(50% - 8px); /* 2 cards per row on very small screens */
            }
        }
/* Time page styling */
.time-section {
    margin-bottom: 2.5rem;
}

.time-section h3 {
    color: #0033A0;
    margin-bottom: 1rem;
    border-bottom: 2px solid #D52B1E;
    padding-bottom: 0.5rem;
    display: inline-block;
}

.time-table-container {
    overflow-x: auto;
    margin-bottom: 1.5rem;
}

.time-table {
    width: 100%;
    border-collapse: collapse;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.time-table th, .time-table td {
    border: 1px solid #ddd;
    padding: 0.75rem;
    text-align: left;
}

.time-table th {
    background-color: #0033A0;
    color: white;
    position: sticky;
    top: 0;
}

.time-table tr:nth-child(even) {
    background-color: #f2f2f2;
}

.time-table tr:hover {
    background-color: #e0e0e0;
}

.time-notes {
    background-color: #f9f9f9;
    padding: 1.5rem;
    border-radius: 5px;
    border-left: 4px solid #0033A0;
    margin-top: 2rem;
}

.time-notes h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: #0033A0;
    border-bottom: none;
}

.time-notes ul {
    padding-left: 1.5rem;
}

.time-notes li {
    margin-bottom: 0.5rem;
}

.time-notes ul ul {
    margin-top: 0.5rem;
}

        /* === ADD THESE NEW STYLES FOR THE CARDS === */
    .words-grid {
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        gap: 1.5rem;
        margin-bottom: 3rem;
    }

    .word-card {
        background-color: #f0f0f0;
        border-radius: 5px;
        padding: 1.5rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        cursor: pointer;
        transition: background-color 0.3s, transform 0.2s;
        aspect-ratio: 3/2;
    }

    .word-card:hover {
        background-color: #e0e0e0;
        transform: translateY(-5px);
    }

    .cyrillic-word {
        font-size: 1.75rem;
        font-weight: bold;
        margin-bottom: 0.5rem;
        text-align: center;
    }

    .latin-word {
        font-size: 1.25rem;
        color: #333;
        margin-bottom: 0.25rem;
        text-align: center;
    }

    /* Responsive grid adjustments */
    @media (max-width: 1200px) {
        .words-grid {
            grid-template-columns: repeat(4, 1fr);
        }
    }
    @media (max-width: 992px) {
        .words-grid {
            grid-template-columns: repeat(3, 1fr);
        }
    }
    @media (max-width: 768px) {
        .words-grid {
            grid-template-columns: repeat(2, 1fr);
        }
    }
    @media (max-width: 480px) {
        .words-grid {
            grid-template-columns: 1fr;
        }
    }
@media (min-width: 1024px) {
  html {
    font-size: 133%;
  }
}

/*styles for the nav.html*/
/* Active link styling */
.nav-links a.active {
    color: #e74c3c;
    font-weight: bold;
}

/* For dropdown menus */
.dropdown-toggle.active {
    color: #e74c3c;
    font-weight: bold;
}

.sub-dropdown-toggle.active {
    color: #e74c3c;
    font-weight: bold;
}

/*extra menu styles*/
/* Add these styles to your existing CSS file */

/* X close button styling */
.menu-close {
    display: none;
    text-align: right;
    padding: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #fff;
}

/* Mobile menu scrolling fix */
@media (max-width: 768px) {
    .nav-links.active {
        display: flex;
        flex-direction: column;
        max-height: 80vh;
        overflow-y: auto;
        padding-bottom: 50px; /* Add extra padding at bottom */
    }
    
    .menu-close {
        display: block;
        position: sticky;
        top: 0;
        background: #001f5d; /* Match your menu background */
        z-index: 2;
    }
    
    .dropdown-menu.active,
    .sub-dropdown-menu.active {
        max-height: 60vh;
        overflow-y: auto;
    }
    
    /* Make dropdown links easier to tap */
    .dropdown-toggle,
    .sub-dropdown-toggle,
    .dropdown-menu a,
    .sub-dropdown-menu a {
        padding: 15px;
        display: block;
    }
    
    /* Add visual indicator for dropdown toggles */
    .dropdown-toggle:after,
    .sub-dropdown-toggle:after {
        content: " +";
        float: right;
    }
    
    .dropdown-toggle.active:after,
    .sub-dropdown-toggle.active:after {
        content: " -";
    }
}
