body {
    margin: 0;
    padding: 0;
    background-color: #cccccc;
    width: 100%;
    min-height: 100%;
}
.header{
    height: fit-content;
    background-color: #000000;
    padding-top: 2px;
    padding-bottom: 2px;
    color: #F0EEED;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 100%;
    min-height: 60px;
    z-index: 95;
}

.header .HEADLOGO{
    padding: 10px;
    width: 80px;
    position: absolute;
    left: 20px;
}
.header a{
    padding: 10px;
    width: 50%;
    position: relative;
    left: auto;
    right: auto;
    cursor: pointer;
}
.header .HEADLOGO2{
    width: 100%;
}
.header .menu{
    padding: 10px;
    transition: max-height 0.2s;
    background: none;
    border: none;
    position: absolute;
    right: 30px;
}
.menu-icon{
    width: 50px;
    cursor: pointer;
}
#navMenu {
    display: none;
    flex-direction: column;
    background-color: #000000;
    height: 100dvh;
    padding: 30px;
    padding-top: 120px;
    position: absolute;
    right: 0;
    top: 0;
    z-index: 90;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 18px;
    opacity: 0;
    filter: blur(10px);
    transition: opacity 0.4s ease, filter 0.4s ease;
}
#navMenu.open {
    opacity: 1;
    filter: blur(0);
}
#navMenu a, #navMenu button{
    color: white;
    text-decoration: none;
    margin-bottom: 20px;
    margin-top: 10px;
}
#navMenu a:hover, #navMenu button:hover{
    color: #FB0000;
    text-decoration: underline;
}
#navMenu button{
    background: none;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 18px;
    padding: 0px;
    border: none;
    text-align: left;
    cursor: pointer;
}
.scenario h1{
    margin-left: 350px;
    margin-right: 350px;
}
.scenario h1{
    padding-top: 40px;
    padding-bottom: 0px;
}
h2{
    padding-top: 0px;
    margin-top: 10px;
    font-size: 22px;
    margin-bottom: 0px;
    padding-bottom: 0px;
}
.pres p, .usinage p, .items p, .items2 p{
    padding-top: 10px;
    padding-bottom: 10px;
}
.scenario{
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    justify-items: center;
    text-align: center;
    align-items: center;
    font-family: Arial, Helvetica, sans-serif;
}
.scenario button, #log button, #sign button{
    background-color: #FB0000;
    color: white;
    border-radius: 3px;
    padding: 10px;
    margin-top: 20px;
    font-size: 16px;
    font-family: Arial, Helvetica, sans-serif;
    cursor: pointer;
}
.scenario button{
    margin-top: 5px;
}
footer{
    background-color: #000000;
    padding-top: 0px;
    padding-bottom: 0px;
    margin-top: 20px;
    color: #F0EEED;
    position: relative;
    justify-content: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}
#insta{
    width: 4vw;
    margin-top: 20px;
    margin-left: 10px;
    margin-right: 10px;
    margin-bottom: 10px;
}
#fb{
    width: 4vw;
    margin-top: 20px;
    margin-left: 10px;
    margin-right: 10px;
    margin-bottom: 10px;
}
#cgv a{
    color: white;
    text-decoration: none;
    margin-left: 10px;
    margin-right: 10px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
}
#cgv a:hover{
    color: #FB0000;
    text-decoration: underline;
}
#copy p{
    font-size: 10px;
}
#map{
    z-index: 80;
}
#toolbar {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 10px;
    background-color: #333;
    color: white;
    align-items: center;
    width: 100%;
    padding-right: 0px;
    padding-left: 0px;
}
#toolbar button {
    background-color: #555;
    color: white;
    border: none;
    padding: 8px 12px;
    margin: 0px;
    cursor: pointer;
}
#polygonColor, #markerColor{
    width: 5%;
}
#icone{
    width: 20px;
    height: 20px;
}
#icone img{
    width: 18px;
    height: 18px;
}
#map .leaflet-div-icon{
    background: none;
    border: none;
}
#toolbar button:hover {
    background-color: #777;
}
.numbered-marker div {
    font-weight: bold;
    text-align: center;
}
#flou, #floulog{
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    backdrop-filter: blur(10px);
    z-index: 100;
}
#floualert{
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    backdrop-filter: blur(10px);
    z-index: 210;
}
#devis, #logadmin, #devisadmin, #log, #sign{
    font-size: 20px;
    display: flex;
    position: fixed;
    top: 5%;
    left: 30%;
    width: 40%;
    background-color: #2c2c2cf5;
    justify-content: center;
    border-radius: 5px;
    box-shadow: 0px 0px 20px black;
    z-index: 110;
    min-height: 20%;
    max-height: 90%;
    height: fit-content;
    overflow: hidden;
    overflow-y: auto;
    scroll-behavior: smooth;
}
#devisalert, #messalert, #logalert{
    font-size: 20px;
    display: flex;
    position: fixed;
    top: 5%;
    left: 30%;
    width: 40%;
    background-color: #2c2c2cf5;
    justify-content: center;
    align-items: center;
    text-align: center;
    border-radius: 5px;
    box-shadow: 0px 0px 20px black;
    z-index: 220;
    min-height: 20%;
    max-height: 90%;
    height: fit-content;
}
#logalert p{
    color: white;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    margin: 5px;
    margin-top: 10px;
    text-align: center;
}
#devis form, #logadmin form, #devisadmin form, #log form, #sign form{
    width: 95%;
    display: flex;
    justify-content: center;
    text-align: center;
    align-items: center;
    flex-direction: column;
    z-index: 120;
    padding-top: 10px;
    padding-bottom: 10px;
    height: fit-content;
}
#devis span, #devisadmin span, #log span, #sign span{
    position: absolute;
    top: 0px;
    right: 10px;
    cursor: pointer;
    font-size: 30px;
    font-weight: 600;
    color: white;
    z-index: 200;
}
#devisalert span, #messalert span, #logalert span{
    position: absolute;
    top: 0px;
    right: 10px;
    cursor: pointer;
    font-size: 30px;
    font-weight: 600;
    color: white;
    z-index: 230;
}
#devis label, #logadmin label, #devisadmin label, #devis p, #devisalert p, #messalert p, #log label, #sign label{
    font-family: Arial, Helvetica, sans-serif;
    color: white;
    margin-top: 10px;
    font-size: 18px;
}
#log p{
    font-family: Arial, Helvetica, sans-serif;
    color: white;
    margin-top: 20px;
    margin-bottom: 0px;
    padding-bottom: 0px;
    font-size: 18px;
}
#scenarioForm label, #teamFields label{
    font-family: Arial, Helvetica, sans-serif;
    color: #000000;
    margin-top: 5px;
    font-size: 18px;
}
#scenarioForm, #teamFields{
    z-index: 10;
    width: 95%;
    display: flex;
    justify-content: center;
    text-align: center;
    align-items: center;
    flex-direction: column;
    padding-top: 10px;
    padding-bottom: 10px;
    height: fit-content;
}
#teamFields{
    padding: 0px;
}
.teamCount{
    margin-bottom: 10px;
}
#devis p{
    margin-bottom: 0px;
    padding-bottom: 0px;
}
#devis input, #devis select, #logadmin input, #devisadmin input, #log input, #sign input{
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    padding: 3px;
    width: 50%;
    border-radius: 5px;
}
#scenarioForm input, #scenarioForm select, #teamFields input, .scenario input{
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    padding: 3px;
    width: 25%;
    border-radius: 5px;
}
.team-field{
    width: 100%;
    padding: 0px;
    margin: 0px;
}
#teamFields select{
    width: 5%;
    margin-top: 5px;
}
.team-name{ 
    margin-top: 5px;
}
#devis textarea{
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    padding: 3px;
    min-height: 150px;
    width: 80%;
    border-radius: 5px;
}
#contactform textarea{
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    padding: 3px;
    min-height: 200px;
    width: 40%;
    border-radius: 5px;
}
#adresse, #dep{
    display: flex;
    flex-direction: inline-block;
    width: 100%;
}
#numero, #post{
    width: 40%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-right: 0px;
    padding-right: 0px;
}
#voie, #dept{
    width: 80%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-left: 0px;
    padding-left: 0px;
}
#devis #voie input, #devis #dept input{
    width: 80%;
}
#devis::-webkit-scrollbar, body::-webkit-scrollbar{
    width: 8px;
}
#devis::-webkit-scrollbar-track{
    background: #e8e8e83d;
    border-radius: 10px;
}
body::-webkit-scrollbar-track{
    background: #e8e8e83d;
    border-radius: 0px;
}
#devis::-webkit-scrollbar-thumb, body::-webkit-scrollbar-thumb{
    background: #393939;
    border-radius: 10px;
}
#devis::-webkit-scrollbar-thumb:hover, body::-webkit-scrollbar-thumb:hover{
    background: #919191;
}
#map{
    margin-top: 10px;
    margin-bottom: 10px;
    height: 500px;
}
#suggestions{
    font-family: Arial, Helvetica, sans-serif;
    border-radius: 5px;
}
#searchBox, #polygonName, #polygonStyle{
    font-family: Arial, Helvetica, sans-serif;
}
#markerListContainer{
    flex-direction: column;
}
#markerListContainer ul{
    list-style: none;
    padding-left: 0;
}
#polygonOptions{
    justify-items: center;
    justify-content: center;
    align-items: center;
}
#polygonName{
    width: 180px;
    font-size: 16px;
}
#sign select{
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    padding: 3px;
    width: 50%;
    border-radius: 5px;
}

@media screen and (max-width: 750px) {
    #navMenu{
        padding-top: 80px;
    }
    .header .HEADLOGO{
        width: 45px;
        left: 0px;
    }
    .header a{
        width: 65%;
    }
    .header .menu{
        right: 0px;
    }
    .menu-icon{
        width: 40px;
    }
    .pres p, .pres h1, .usinage p, .usinage h1, .items p, .items h1, .items2 p, .items2 h1{
        margin-left: 50px;
        margin-right: 50px;
    }
    .demandes p, .demandes h1{
        margin-left: 20px;
        margin-right: 20px;
    }
    .items2 ul{
        margin-left: 20px;
        margin-right: 50px;
    }
    .pres h1, .usinage h1, .items h1, .gameapp h1, .items2 h1, .items2 h2, .demandes h1{
        padding-top: 20px;
        font-size: 18px;
    }
    .pres p, .usinage p, .items p, .items2 p, .items ul, .items2 ul, .dmandes p{
        padding-top: 0px;
        font-size: 12px;
    }
    .usinage a, .items a, #navMenu a, .items2 a, #navMenu button{
        font-size: 12px;
    }
    .usinageSlider button, .itemSlider button{
        width: 10%;
    }
    .usinage img, .items img{
        width: 60%;
    }
    .items2 button, #logadmin button, #devisadmin button, .demandes button, .scenario button{
        font-size: 12px;
        width: fit-content;
    }
    footer{
        padding-top: 0px;
        padding-bottom: 0px;
    }
    #cgv a{
        font-size: 10px;
    }
    #copy p{
        font-size: 8px;
    }
    #insta{
        width: 8vw;
    }
    #fb{
        width: 8vw;
    }
    #devis, #logadmin, #devisadmin{
        width: 90%;
        left: 5%;
        top: 5%;
    }
    #devis, #logadmin, #devisadmin{
        max-height: 80%;
    }
    #devisalert, #messalert{
        width: 60%;
    }
    #devis input, #devis select, #devis p, #devisadmin label, #devisadmin input, #logadmin label, #logadmin input, #devisalert p, #messalert p, #contactform label, #logform label, #logform p, #signform label, #contactform input, #logform input, #contactform input, #scenarioForm label, #scenarioForm input{
        font-size: 14px;
    }
    #scenarioForm label{
        margin-top: 5px;
    }
    #devis input, #logadmin input, #devisadmin input, #contactform input, #signform input, #logform input, #contactform textarea, #scenarioForm input{
        width: 70%;
    }
    #scenarioForm input{
        margin-bottom: 0px;
    }
    #scenarioForm select{
        width: 100px;
        font-size: 14px;
    }
    #devis label{
        font-size: 13px;
    }
    #devis textarea, #contactform textarea{
        height: 120px;
    }
    #devis::-webkit-scrollbar, body::-webkit-scrollbar{
        width: 12px;
    }
    #map{
        height: 350px;
        margin-top: 0px;
    }
    .scenario #searchBox{
        margin-bottom: 0px;
        margin-top: 5px;
    }
    #icone{
        width: 8vw;
        height: 8vw;
    }
    #icone img{
        width: 7vw;
        height: 7vw;
    }
    .scenario h1{
        padding: 0px;
    }
    h3{
        margin-top: 0px;
    }
    .scenario p{
        margin: 5px;
        font-size: 14px;
    }
    .scenario ul{
        margin-top: 0px;
        padding-left: 20px;
    }
    #polygonOptions, #option1, #option2, #option3{
        display: flex;
        justify-content: center;
        align-items: center;
    }
    #option1, #option2, #option3{
        margin-top: 2px;
        margin-bottom: 2px;
    }
    #polygonColor, #markerColor{
        padding: 0px;
        width: 30px;
    }
    #toolbar select{
        margin-left: 5px;
        margin-right: 5px;
        padding: 3px;
        border-radius: 5px;
        font-size: 12px;
        font-family: Arial, Helvetica, sans-serif;
    }
    #toolbar label{
        font-size: 12px;
        margin-left: 5px;
        margin-right: 5px;
    }
    #autocomplete, #markerName, #polygonName, #polygonStyle{
        padding: 3px;
        font-size: 14px;
    }
    #markerName, #polygonName{
        width: 120px;
    }
    #suggestions{
        font-size: 14px;
    }
    #scenarioDetails{
        font-size: 14px;
    }
    .marker-wrapper img{
        width: 20px;
        height: 20px;
    }
    #sign, #log{
        width: 80%;
        left: 10%;
    }
    #devisalert, #messalert, #logdevisalert, #logalert{
        width: 80%;
        left: 10%;
    }
    #devisalert p, #messalert p, #logdevisalert p, #logalert p{
        margin-left: 10px;
        margin-right: 10px;
    }
    #sign select{
        font-size: 14px;
    }
}