/* Base style for the header */
header {
    background-color: #A50000;
    min-height: 50px;
    height: 50px;
    /* position: relative; */
    /* background color */
    /* padding: 10px 20px; /* inner spacing * */
}

header nav {
    display: -webkit-box; /* Safari and Chrome */
    display: -moz-box; /* Firefox */
    display: -ms-flexbox; /* IE 10 */
    display: -webkit-flex; /* Safari */
    display: flex;
    /* border: 2px solid blue; */
    height: 100%;
    width: 80%;
    margin: 0 auto;
    -webkit-box-pack: center; /* Safari and Chrome */
    -moz-box-pack: center; /* Firefox */
    -ms-flex-pack: center; /* IE 10 */
    -webkit-justify-content: center; /* Safari */
    justify-content: center;
    padding: 0;
}

header .logo {
    height: 100%;
    width: 7vw;
    display: none;
    /* border: 1px solid red; */
}

/* Style for the navigation bar */
nav ul {
    list-style-type: none; /* Remove bullets */
    margin: 0 !important; /* Remove margins */
    padding: 0 !important; /* Remove padding */
    height: 100% !important;
    /* border: 2px solid purple; */
    width: auto;
    display: -webkit-box; /* Safari and Chrome */
    display: -moz-box; /* Firefox */
    display: -ms-flexbox; /* IE 10 */
    display: -webkit-flex; /* Safari */
    display: flex;
    min-height: 5vh;
    -webkit-box-orient: horizontal; /* Safari and Chrome */
    -moz-box-orient: horizontal; /* Firefox */
    -ms-flex-direction: row; /* IE 10 */
    -webkit-flex-direction: row; /* Safari */
    flex-direction: row;
    -webkit-box-align: center; /* Safari and Chrome */
    -moz-box-align: center; /* Firefox */
    -ms-flex-align: center; /* IE 10 */
    -webkit-align-items: center; /* Safari */
    align-items: center;
    -webkit-box-pack: center; /* Safari and Chrome */
    -moz-box-pack: center; /* Firefox */
    -ms-flex-pack: center; /* IE 10 */
    -webkit-justify-content: center; /* Safari */
    justify-content: center;
    gap: 10px;
}

nav ul li {
    height: 100%;
    /* border: 2px solid yellow; */
    padding: 0;
    -webkit-box-flex: 1; /* Safari and Chrome */
    -moz-box-flex: 1; /* Firefox */
    -ms-flex: 1; /* IE 10 */
    -webkit-flex: 1; /* Safari */
    flex: 1;
    display: -webkit-box; /* Safari and Chrome */
    display: -moz-box; /* Firefox */
    display: -ms-flexbox; /* IE 10 */
    display: -webkit-flex; /* Safari */
    display: flex;
    -webkit-box-orient: horizontal; /* Safari and Chrome */
    -moz-box-orient: horizontal; /* Firefox */
    -ms-flex-direction: row; /* IE 10 */
    -webkit-flex-direction: row; /* Safari */
    flex-direction: row;
    -webkit-flex-wrap: nowrap; /* Safari */
    flex-wrap: nowrap;
    -webkit-box-pack: center; /* Safari and Chrome */
    -moz-box-pack: center; /* Firefox */
    -ms-flex-pack: center; /* IE 10 */
    -webkit-justify-content: center; /* Safari */
    justify-content: center;
    vertical-align: middle;
    width: 100%;
    margin: 0;
    /* text-align: center; */
}

nav ul li a {
    text-decoration: none; /* Remove underline from links */
    color: white; /* Text color */
    font-weight: bold; /* Bold font */
    font-size: 1rem;
    letter-spacing: 0.35px;
    width: 100%;
    /* word-break: keep-all; */
    line-height: 50px;
    min-width: 5vw;
    text-align: center;
    /* vertical-align: middle; */
    /* align-self: stretch; */
    white-space: nowrap;
    padding: 0;
    margin: 0;
    /* line-height: 100%; */
    /* border: 1px solid blueviolet; */
}

li.numero_telephone {
    /* border: 2px solid green; */
    /* line-height: 2rem; */
    padding: 0 1rem 0 1rem;
    display: -webkit-box; /* Safari and Chrome */
    display: -moz-box; /* Firefox */
    display: -ms-flexbox; /* IE 10 */
    display: -webkit-flex; /* Safari */
    display: flex;
    /* width: 20vw; */
    -webkit-box-orient: horizontal; /* Safari and Chrome */
    -moz-box-orient: horizontal; /* Firefox */
    -ms-flex-direction: row; /* IE 10 */
    -webkit-flex-direction: row; /* Safari */
    flex-direction: row;
    -webkit-box-pack: center; /* Safari and Chrome */
    -moz-box-pack: center; /* Firefox */
    -ms-flex-pack: center; /* IE 10 */
    -webkit-justify-content: center; /* Safari */
    justify-content: center;
    -webkit-box-align: center; /* Safari and Chrome */
    -moz-box-align: center; /* Firefox */
    -ms-flex-align: center; /* IE 10 */
    -webkit-align-items: center; /* Safari */
    align-items: center;
    gap: 0.3vw;
    -webkit-box-flex: 3; /* Safari and Chrome */
    -moz-box-flex: 3; /* Firefox */
    -ms-flex: 3; /* IE 10 */
    -webkit-flex: 3; /* Safari */
    flex: 3;
    color: white;
    border-radius: 3px;
    background-color: #EFBF04;
}

li.numero_telephone a {
    /* vertical-align: middle; */
    /* font-size: 1rem; */
    height: 100%;
    line-height: 50px;
    letter-spacing: normal;
    /* border: 2px solid blue; */
}

header nav ul .menu span {
    color: white;
    font-size: 3rem;
}

.menu {
    display: none;
}

@media screen and (max-width: 1400px) {
    header {
        height: auto;
        width: 100vw;
        z-index: 999 !important;
        position: fixed !important;
    }

    header nav .logo {
        height: 60px;
        width: 90px;
        display: block;
        /* border: 2px solid green; */
    }

    header nav {
        -webkit-box-orient: horizontal; /* Safari and Chrome */
        -moz-box-orient: horizontal; /* Firefox */
        -ms-flex-direction: row; /* IE 10 */
        -webkit-flex-direction: row; /* Safari */
        flex-direction: row;
        width: 80vw;
        -webkit-box-pack: justify; /* Safari and Chrome */
        -moz-box-pack: justify; /* Firefox */
        -ms-flex-pack: justify; /* IE 10 */
        -webkit-justify-content: space-between; /* Safari */
        justify-content: space-between;
        -webkit-box-align: center; /* Safari and Chrome */
        -moz-box-align: center; /* Firefox */
        -ms-flex-align: center; /* IE 10 */
        -webkit-align-items: center; /* Safari */
        align-items: center;
        padding: 0.3rem 0;
        gap: 5px;
        /* border: 2px solid yellow; */
    }

    header nav ul {
        -webkit-box-orient: horizontal; /* Safari and Chrome */
        -moz-box-orient: horizontal; /* Firefox */
        -ms-flex-direction: row; /* IE 10 */
        -webkit-flex-direction: row; /* Safari */
        flex-direction: row;
        padding: 0;
    }

    header nav ul li:not(.show-small-screen) {
        display: none;
    }

    header nav ul li.show-small-screen {
        display: inline-flex;
    }

    header nav ul .numero_telephone {
        padding: 0 10px !important;
    }

    .menu {
        cursor: pointer;
    }

    header nav ul li a {
        font-size: 1.1rem;
    }

    .show-menu-active {
        background-color: #A50000;
        position: fixed;
        height: 100vh;
        overflow: hidden;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 999;
        display: -webkit-box; /* Safari and Chrome */
        display: -moz-box; /* Firefox */
        display: -ms-flexbox; /* IE 10 */
        display: -webkit-flex; /* Safari */
        display: flex;
        -webkit-box-orient: vertical; /* Safari and Chrome */
        -moz-box-orient: vertical; /* Firefox */
        -ms-flex-direction: column; /* IE 10 */
        -webkit-flex-direction: column; /* Safari */
        flex-direction: column;
        transition: 0.7s ease;
        /* border: 2px solid blue; */
    }

    .show-menu-active .logo {
        height: 25vh;
        width: 65vw;
        max-width: 300px;
        /* border: 1px solid blueviolet; */
    }

    .show-menu-active nav {
        /* border: 2px solid yellow; */
        -webkit-box-orient: vertical; /* Safari and Chrome */
        -moz-box-orient: vertical; /* Firefox */
        -ms-flex-direction: column; /* IE 10 */
        -webkit-flex-direction: column; /* Safari */
        flex-direction: column;
        -webkit-box-pack: baseline; /* Safari and Chrome */
        -moz-box-pack: baseline; /* Firefox */
        -ms-flex-pack: baseline; /* IE 10 */
        -webkit-justify-content: baseline; /* Safari */
        justify-content: baseline;
    }

    .show-menu-active ul {
        -webkit-box-orient: vertical; /* Safari and Chrome */
        -moz-box-orient: vertical; /* Firefox */
        -ms-flex-direction: column; /* IE 10 */
        -webkit-flex-direction: column; /* Safari */
        flex-direction: column;
        /* border: 2px solid blue; */
        /* width: 100%; */
        height: 100%;
        -webkit-box-pack: start; /* Safari and Chrome */
        -moz-box-pack: start; /* Firefox */
        -ms-flex-pack: start; /* IE 10 */
        -webkit-justify-content: flex-start; /* Safari */
        justify-content: flex-start;
    }

    .show-menu-active ul li {
        /* border: 3px solid green; */
        -webkit-box-flex: 0; /* Safari and Chrome */
        -moz-box-flex: 0; /* Firefox */
        -ms-flex: 0; /* IE 10 */
        -webkit-flex: 0; /* Safari */
        flex: 0;
    }

    .show-menu-active .menu:not(.close) {
        display: none;
    }

    .show-menu-active .close {
        -webkit-align-self: flex-end; /* Safari */
        align-self: flex-end;
        margin-top: auto;
        transition: -webkit-transform 0.8s ease; /* Safari */
        transition: transform 0.8s ease;
        transition: transform 0.8s ease, -webkit-transform 0.8s ease; /* Safari */
        /* border: 10px solid red; */
    }

    .show-menu-active .close:hover {
        -webkit-transform: rotate(180deg); /* Safari */
        transform: rotate(180deg);
    }

    .show-menu-active .menu.close span {
        font-size: 8rem !important;
    }

    .show-menu-active li:not(.show-small-screen) {
        display: inline-flex !important;
    }
}