@font-face {
    font-family: 'bookman';
    src: url('/fonts/BOOKOS.TTF') format('truetype');
}

* {
    font-family: 'bookman';
    --main-color: #00368b;
    --secondary-color: #7da0d0;
}

body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: auto;
}

header {
    position: fixed;
    top: 0;
    width: 100%;
    height: 8em;
    z-index: 99;
    /* box-shadow: rgba(0, 0, 0, 0.15) 1.95px 1.95px 2.6px; */
}

section#upper {
    background-color: var(--main-color);
    width: 100%;
    height: 40%;
    display: flex;
    justify-content: flex-end;
    position: relative;
}

section#upper .acess {
    display: flex;
    align-items: center;
    margin-right: 5%;
}

section#upper .acess a {
    color: #fff;
    font-weight: 500;
    text-transform: capitalize;
    font-family: sans-serif;
    z-index: 9;
}

section#upper .flags {
    display: flex;
    position: relative;
    height: 100%;
    width: fit-content;
    margin-right: 3em;
    align-items: center;
}

section#upper .flags .flag {
    margin-left: 2em;
    position: relative;
    cursor: pointer;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

section#upper .flags .flag:first-child {
    margin-left: 0;
}

section#upper .flags .flag img {
    width: auto;
    height: 50%;
}

section#upper .flags .flag p {
    margin: 0;
    margin-top: .5em;
    text-align: center;
    color: #fff;
    font-size: .5em;
    text-transform: uppercase;
    font-weight: 600;
}

section#main_menu {
    background-color: var(--secondary-color);
    width: 100%;
    height: 60%;
    position: relative;
    display: flex;
    justify-content: flex-end;
    border-bottom: 2px solid var(--main-color);
}

section#main_menu section#logo {
    height: 95%;
    padding: .2em;
    position: relative;
}

section#main_menu section#mobile-menu {
    display: none;
    width: 100%;
    height: 100%;
}

section#main_menu section#mobile-menu figure {
    margin: 0;
    display: flex;
    justify-content: flex-end;
    height: 100%;
    width: 90%;
    align-items: center;
}

section#main_menu section#mobile-menu figure iconify-icon {
    color: var(--main-color);
    font-size: 2.5em;
}

section#main_menu section#logo img {
    width: auto;
    height: 5.3em;
    right: 8%;
    z-index: 99;
    position: relative;
    top: -2em;
}

section#main_menu section#logo::before {
    content: "";
    background-color: var(--main-color);
    height: 7.3em;
    width: 7em;
    position: absolute;
    top: -50%;
    left: -9%;
    /* transform: rotate(28deg); */
}

section#main_menu nav {
    height: 100%;
    width: 85%;
    position: relative;
    display: flex;
    margin-right: 1em;
}

section#main_menu nav ul {
    display: flex;
    width: 75%;
    margin: 0;
    align-items: center;
    justify-content: space-between;
    padding-left: 10%;
}

section#main_menu nav ul li {
    list-style: none;
    padding: 1em;
    text-transform: uppercase;
    font-weight: 600;
    border-radius: 4px;
    height: 1em;
    width: fit-content;
}

section#main_menu nav ul li:last-child {
    margin: 0;
}

section#main_menu nav ul li a {
    text-decoration: none;
    color: var(--main-color);
    height: 100%;
    width: 100%;
    display: block;
    text-align: center;
}
  
/* ::-webkit-scrollbar-track {
    background: #fff; 
}
  
::-webkit-scrollbar-thumb {
    background-color: var(--main-color);
    border-radius: 10px;
    border: 3px solid #fff;
}
  
::-webkit-scrollbar-thumb:hover {
    background-color: #fff;
}
   */

@media (max-width: 1072px) {  
    section#main_menu nav ul li {
        font-size: 1.4vw;
    }

    section#main_menu nav ul {
        width: 85%;
    }

    section#upper .flags .flag img {
        height: 40%;
    }
}

@media (max-width: 1024px) {  

    section#main_menu {
        justify-content: flex-start;
    }
    
    section#main_menu section#logo {
        margin-left: 1.5em;
    }
}

@media (max-width: 500px){

    section#upper .acess a {
        font-size: .7em;
    }

    section#upper .flags {
        margin-right: 1.5em;
    }

    section#upper .flags .flag img {
        height: 35%;
    }

    section#main_menu nav {
        width: inherit;
        position: absolute;
        justify-content: flex-end;
        display: none;
        top: 75%;
    }

    section#main_menu nav.show {
        display: flex;
    }

    section#main_menu nav ul {
        height: initial;
        width: 10em;
        background-color: #fff;
        position: absolute;
        flex-direction: column;
        box-shadow: rgba(50, 50, 93, 0.25) 0px 2px 5px -1px, rgba(0, 0, 0, 0.3) 0px 1px 3px -1px;
        border-radius: 2px;
        padding: 0;
        margin-right: .5em;
    }

    section#main_menu nav ul li {
        font-size: .8em;
    }

    section#main_menu section#mobile-menu {
        display: block;
    }
}