@font-face {
    font-family: 'Saans-Medium';
    src: url('../Fonts/Saans-Medium.otf') format('opentype');
}

@font-face {
    font-family: 'Saans-Regular';
    src: url('../Fonts/Saans-Regular.otf') format('opentype');
}

@font-face {
    font-family: 'Saans-SemiBold';
    src: url('../Fonts/Saans-SemiBold.otf') format('opentype');
}

@font-face {
    font-family: 'Saans-Light';
    src: url('../Fonts/Saans-Light.otf') format('opentype');
}

@font-face {
    font-family: 'Copernicus-Bold';
    src: url('../Fonts/Copernicus-Bold.otf') format('opentype');
}
:root {
    --menu-count: 6;
}

body {
    background-color: #FFFFFF;
    font-family: Saans;
}

.hamburger {
    display: none;
    cursor: pointer;
    width: 20px;
}

.hamburger {
    flex-basis: 100%;
    height: 4px;
    background-color: #FFFFFF;
    margin: 3px;
}

.header-main {
    width: 100%;
    height: auto;
    background-color: #02203F;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    position: fixed;
    top: 0;
    z-index: 100;
    /* align-content: normal;*/ /* flex-start or stretch or space-between or space-around or flex-end */
    /* align-items: center;  */
    row-gap: 10px;        
    gap: 0px 20px;  /* row gap then column gap */
}

.header-main nav {
    display: flex;
}

.header-main .logo {
    height: auto;
    width: 30%; /* originally fit-content */
    align-self: center;
    cursor: pointer;
}

.header-main .logo .img {
    height: 100%;
}

.header-main ul {
    height: 100%;
    padding-left: 80px;
    list-style: none;
    display: flex;
    align-self: center;
}

.header-main ul li {
    position: relative;
}

.header-main ul li a {
    display: block;
    padding: 0px 20px 0px 0px;
    height: 100%;
    line-height: 40px; /* this controls spacing between dropdown menu items */
    font-size: clamp(12px, 2vw, 14px);
    font-family: Saans-Medium;
    color: #EFEDE4;
    background-color: #02203F;
    text-transform: uppercase;
    cursor: pointer;
    transition: all ease-in-out 100ms;
    }

.header-main ul li a:hover {
    background-color:  #02203F;
    color: #EFEDE4;
    color: #62C2CB !important;
}

/* DROPDOWN STYLING START */

.header-main ul li ul {
    visibility: hidden;
    opacity: 0;
    display: none;
    position: absolute;
    margin-top: 40px;
    left: -80px;
    transition: all ease-in-out 100ms;
}

.header-main ul li ul li a {
    white-space: nowrap;
    padding-left: 5px;
    
}

ul li:hover>ul {
    visibility: visible;
    opacity: 1;
    display: block;
}

/* DROPDOWN STYLING END */

.footer_26 {
    background-color: #EFEDE4;
    /*height: 80px;*/
    bottom: 0;
    font-family: saans-light;
    font-size: .7rem;
    color: darkgray;
    padding: 20px 100px;
    width: 100%;
    text-align: center;
   /* z-index: 100;*/
}



/* Responsive: stack menu on small screens */
@media only screen and (max-width: 600px) {

    .header-main {
        display: none;
    }

    .hamburger {
        display: flex;
        justify-content: center;
        width: 60px;
        height: 60px;
        position: absolute;
        top: 0;
        right: 0;
        z-index: 200;
        background-color: #F5F4EF;
    }

    .hamburger img {
        height: 100%;
        align-self: center;
    }

    .header-main {
        height: 100vh;
        flex-wrap: wrap;
        flex-direction: column;
        padding: 0px 0px 0px 0px; /* Originally 0 */
        justify-content: flex-start;
    }

    .header-main nav {
        width: 100%;
        height: 80vh;
        flex-wrap: wrap;
        flex-direction: column;
        align-content: stretch;
    }

    .header-main .logo {
        height: auto;
        padding: 0;
        margin: 0;
        display: flex;
        align-items: center;
    }

    .header-main .logo img {
        align-self: center;
        cursor: pointer;
    }

    .header-main ul {
        height: 70%;
        width: 100%;
        padding: 0;
        margin: 0;
        flex-wrap: wrap;
        flex-direction: column;
        align-content: space-between;
    }

    .header-main ul li {
        width: 100%;
        height: calc(100% / var(--menu-count));
        padding: 0;
        margin: 0;
        /* Giving all menu items a border on top */
        border-top: 1px solid #dddddd;
        /* We set a flex here, with "nowrap" and "column", to make the
            dropdown go below the menu, and "justify content"
            instead since we are using a column, to center the text */
        display: flex;
        flex-wrap: nowrap;
        flex-direction: column;
        justify-content: center;
        transition: all ease-in-out 100ms; 
    }

    .header-main ul li:nth-last-child(1) {
        border-bottom: 1px solid #dddddd;
    }

    .header-main ul li a {
        width: 100%;
        height: fit-content;
        padding: 0;
        margin: 0;
        text-align: center;
        font-size: 1rem;
    }

    .header-main ul li a:hover {
        background-color: transparent;
        color: #02203F;
            color: #62C2CB !important;
    }

    .header-main nav {
        overflow-y: scroll;
        overflow-x: hidden;
    }

    .header-main ul li ul {
        display: flex;
        flex-wrap: nowrap;
        flex-direction: column;
        position: absolute;
        top: 0;
        left: 0;
        z-index: 2000;
    }

    .header-main ul li ul li {
        height: fit-content;
        display: block;
        background-color: #F5F4EF;
    }

    .header-main ul li ul li a {
        background-color: #F5F4EF;
        color: #02203F;
    }

    .header-main ul li ul li a:hover {
        background-color: #F5F4EF;
        color: #02203F;
    }

    .header-main ul li:focus>ul,
    .header-main ul li:hover>ul {
        display: flex;
        visibility: visible;
        opacity: 1;
    }

}