/* styles.css */

h1 {font-family: 'Arial', sans-serif; font-size:35px; color: navy;}
h2 {font-family: 'Arial', sans-serif!important; font-size:20px; color: navy;}
h3 {font-family: 'Arial', sans-serif!important; font-size:18px; color:#4674cf}

body {
    display: block;
    justify-content: center;
    align-items: center;
    margin: 0;
    font-size: 16px;
    font-family: 'arial', sans-serif!important;
}

img {
width:100%;  
    }

  nav {
font-family: arial, sans-serif; font-size: 16px;
    }

/* Styles for screens smaller than 600px (typical smartphones) */
@media (max-width: 600px) {
    body {
        font-size: 14px;
    }
    nav {
        max-width: 100%;
        width: 100%;
    }
    nav ul {
        display: block; /* Stack items vertically */
        overflow:visible;
        max-width: 100%;
        padding: 0;
        margin: 0;
    }

    nav ul li {
        float: none; /* Remove horizontal layout */
        max-width: 100%;
        box-sizing: border-box;
        position: relative;
    }

    nav ul li a {
        border: 1px solid #fff;
        max-width: 100%;
    }

    nav ul li ul {
        position: absolute; /* Stack submenus naturally */
        width: 100%; /* Full width */
        background: #4a4d50; /* Darker shade to distinguish submenus */
        visibility: visible;
        opacity: 1;
        z-index: 10;
    }
}

a {
    text-decoration: none;
}

nav {
    font-family: monospace;
}

nav ul {
    background: navy;
    list-style: none;
    margin: 0;
    padding-left: 0;
}

nav ul li {
    color: #fff;
    background: #2840a6;
    display: block;
    float: left;
    position: relative;
    text-decoration: none;
    transition-duration: 0.5s;
}

nav ul li a {
    color: #fff;
    display: block;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    padding: 0.5rem;
    text-align: center;
    line-height: 1rem;
}

nav ul li:hover,
nav ul li:focus-within {
    background: #e8e9eb;
    cursor: pointer;
}

nav ul li:focus-within a {
    outline: none;
}

nav ul li ul {
    background: #4674cf;
    visibility: hidden;
    opacity: 0;
    position: absolute;
    transition: all 0.5s ease;
    margin-top: 0;
    left: 0;
    display: none;
}

nav ul li:hover>ul,
nav ul li:focus-within>ul,
nav ul li ul:hover,
nav ul li ul:focus {
    visibility: visible;
    opacity: 1;
    display: block;
}

nav ul li ul li {
    clear: both;
    width: 100%;
}
