@media (max-width: 999px) {

    :root{
        --small: 2.5vh;
        --medium: 3vh;
        --large: 3.5vh;
    }
    
    html {
        height: 100%;
        font-size: clamp(80%, 1rem + 1vw, 14px);
        font-family: 'Jaldi', sans-serif;
    }
    
    body {
        background-image: linear-gradient(to bottom, #062f49, #063652, #073c5b, #064364, #054a6d, #055075, #04567c, #035c84, #03628c, #026893, #016e9b, #0074a3);
        height: 100%;
    }
    
    p,h1,h2,h3,h4 {
        color:white;
    }
    
    hr {
        background-color: white !important;
        width: 80%;
        height: 1px !important;
        opacity: 1 !important;
        margin-left: 2vw !important;
        margin-top: 0px !important;
    }
    
    button {
        border: 1px solid var(--dark-blue);
    }
    
    .row {
        --bs-gutter-x: 0 !important;
    }
    
    .title {
        font-size: 3.5vh;
    }
    
    .mesure {
        width: 18vw;
        height: 5vh;
    }
    
    .pointeur {
        width: 2vw;
        height: 3vh;
    }
    
    #main {
        text-align: center;
        width: 90%;
    }
    
    .balancier-height {
        height: 100%;
    }
    
    #levier {
        display: flex;
        position: absolute;
        bottom: 22vh;
    }
    
    #levier-container {
        position: absolute;
        display: flex;
        width: 29%;
        min-height: 31vh;
        background-image: url("../images/middlestand.svg");
        background-repeat: no-repeat;
        background-position-x: center;
        background-position-y: bottom;
        background-size: 62%;
        bottom: 1vh;
        z-index: 2;
        justify-content: center;
        text-align: -webkit-center;
    }
    
    #pointeur {
        position:absolute;
        left: 45%;    
    }
    
    .choicesBox {
        align-self: end;
        width: 100%;
        justify-content: center;
        position: relative;
    }
    
    #menuOptions {
        text-align: -webkit-center;
        text-align: -moz-center;
    }
    
    #PlateauFR {
        display: grid;
        flex-direction: column;
        align-self: flex-end;
        margin-bottom: 10vh;
        justify-items: center;
    }
    
    #PlateauNoFR {
        display: grid;
        align-self: flex-end;
        margin-bottom: 10vh;
        justify-items: center;
    }
    
    .plateau {
        max-height: calc(5vw) !important;
    }
    
    .labels {
        height: fit-content;
        min-height: 6.5vh;
        max-width: 10vw !important;
        color: white;
        align-content: center;
        margin-bottom: 1vh;
        margin-right: 0.5vw !important;
        border-radius: 60px 20px 20px 60px;
    }
    
    .small {
        height: var(--small);
        width: var(--small);
        align-self: center;
    }
    
    .medium {
        height: var(--medium);
        width: var(--medium);
        align-self: center;
    }
    
    .large {
        height: var(--large);
        width: var(--large);
        align-self: center;
    }
    
    .hide {
        visibility: hidden;
    }
    
    .header {
        font-size: 1.2vw !important;
        display: grid;
        border-radius: 10px 10px 10px 10px;
        background-color: var(--dark-blue);
        align-content: center;
        padding: 5px !important;
    }
    
    .form-group {
        padding: 15px !important;
    }
    
    .bonhomme_card {
        font-size: 1.1vw !important;
        display: grid;
        border-radius: 10px 10px 10px 10px;
        background-color: var(--dark-blue);
        align-content: center;
        padding: 10px !important;
    }
    
    .gameBtn {
        width: 20vw !important;
        height: 5vh;
        font-size: 1.2vw;
        position: relative;
        display: flex !important;
        justify-content: space-evenly;
    }
    
    .btnOption {
        border-radius: 10px 10px 10px 10px;
        margin-top: 1vh;
        color: white !important;
        align-items: center;
    }
    
    .btnValider {
        border-radius: 180px;
        background-color: white;
        color: black !important;
        font-size: 1.1vw;
        font-weight: 500;
        z-index: 5;
        width: calc(6vw) !important;
        height: calc(6vw) !important;
        padding: 0 !important;
        border: 1px solid var(--bs-cyan);
        box-shadow: 0px 1px 25px 10px #E6E6E6;
        align-items: center;
        align-self: center;
    }
    
    .btnValider:hover {
        box-shadow: 0px 1px 25px 10px var(--dark-blue);
    }
    
    .btnValiderPrint {
        border-radius: 180px;
        background-color: white;
        color: black !important;
        font-size: 1.1vw;
        font-weight: 500;
        z-index: 5;
        width: calc(4vw) !important;
        height: calc(4vw) !important;
        padding: 0 !important;
        left: 5px;
        bottom: 0vh;
        border: 1px solid var(--bs-cyan);
        box-shadow: 0px 1px 25px 10px #E6E6E6;
        align-items: center;
    }
    
    .btnValiderPrint:hover {
        box-shadow: 0px 1px 25px 10px var(--dark-blue);
    }
    
    .btnText {
        font-size: 1vw;
        white-space: normal;
        align-self: center;
        margin-left: 3vw;
        padding: 0px 5px 0px 0px !important;
    }
    
    .btn-repick-container {
        position: absolute;
        justify-content: center;
        bottom: 2vh;
        z-index: 5;
        min-height: 11vw;
        font-size: 1vw;
    }
    
    .btn-repick {
        min-width: max-content;
        padding: 1vw !important;
        margin-right: 5px;
        background-color: var(--dark-blue);
        color: white;
    }
    
    .btn-creer {
        display: grid;
        z-index: 10;
        position: absolute;
        bottom: 38%;
        max-width: 30vw !important;
        height: 7vh;
        place-content: center;
        font-size: 1.2vw;
        box-shadow: 0px 1px 25px 10px #E6E6E6;
    }

    .btn-creer:hover {
        box-shadow: 0px 1px 25px 10px var(--dark-blue);
    }

    #stepTooltip {
        margin-top: 13vh;
    }

    #stepName {
        font-size: 1.1rem !important;
    }
    
    .plateau-text {
        position: relative;
        text-align: center;
        font-weight: 600;
        font-size: 1.5vw;
        background-color: var(--dark-blue);
        width: 50%;
        place-self: center;
        border: 1px solid;
        border-radius: 10px;
        z-index: 10;
    }
    
    .ecole-card {
        position: relative;
        display: grid;
        width: fit-content !important;
        height: fit-content !important;
        background-color: transparent;
        border: 2px solid white;
        color: white;
        border-radius: 20px 20px 20px 20px;
        margin-bottom: 0px;
        margin-top: 1vh !important;
    }
    
    .ecole-title-card {
        display: grid;
        position: absolute;
        place-self: center;
        justify-content: center;
        align-items: center;
        z-index: 2;
        top: -1vw;
        width: 13vw !important;
        height: 3vh;
        border: 2px solid white;
        background-color: var(--dark-blue);
        border-radius: 10px 10px 10px 10px;
    }
    
    .ecole-title {
        font-size: 1vw;
    }
    
    .ecole-row1 {
        margin-top: 1vh !important;
        display: flex;
    }
    
    .ecole-row2 {
        margin-top: 0.5vh !important;
        display: flex;
    }
    
    .btnEcole {
        display: flex;
        border-radius: 60px 20px 20px 60px;
        color: white;
        margin-left: auto;
        margin-right: auto;
    }
    
    div[name*="-fr"], div[name*="-nofr"]{
        background-position-x: 5px;
        position:absolute;
        max-width: 3vw !important;
        background-color: unset;
    }
    
    .small0 {
        background-image: url("../images/s-0.svg");
        background-repeat: no-repeat;
        border: 0px;
        background-color: transparent;
    }
    .small1 {
        background-image: url("../images/s-1.svg");
        background-repeat: no-repeat;
        border: 0px;
        background-color: transparent;
    }
    .small2 {
        background-image: url("../images/s-2.svg");
        background-repeat: no-repeat;
        border: 0px;
        background-color: transparent;
    }
    .small3 {
        background-image: url("../images/s-3.svg");
        background-repeat: no-repeat;
        border: 0px;
        background-color: transparent;
    }
    .small4 {
        background-image: url("../images/s-4.svg");
        background-repeat: no-repeat;
        border: 0px;
        background-color: transparent;
    }
    
    
    .medium0 {
        background-image: url("../images/m-0.svg");
        background-repeat: no-repeat;
        border: 0px;
        background-color: transparent;
    }
    .medium1 {
        background-image: url("../images/m-1.svg");
        background-repeat: no-repeat;
        border: 0px;
        background-color: transparent;
    }
    .medium2 {
        background-image: url("../images/m-2.svg");
        background-repeat: no-repeat;
        border: 0px;
        background-color: transparent;
    }
    .medium3 {
        background-image: url("../images/m-3.svg");
        background-repeat: no-repeat;
        border: 0px;
        background-color: transparent;
    }
    .medium4 {
        background-image: url("../images/m-4.svg");
        background-repeat: no-repeat;
        border: 0px;
        background-color: transparent;
    }
    
    .large0 {
        background-image: url("../images/l-0.svg");
        background-repeat: no-repeat;
        border: 0px;
        background-color: transparent;
    }
    .large1 {
        background-image: url("../images/l-1.svg");
        background-repeat: no-repeat;
        border: 0px;
        background-color: transparent;
    }
    .large2 {
        background-image: url("../images/l-2.svg");
        background-repeat: no-repeat;
        border: 0px;
        background-color: transparent;
    }
    .large3 {
        background-image: url("../images/l-3.svg");
        background-repeat: no-repeat;
        border: 0px;
        background-color: transparent;
    }
    .large4 {
        background-image: url("../images/l-4.svg");
        background-repeat: no-repeat;
        border: 0px;
        background-color: transparent;
    }
    
    .hidden-menu {
        position: absolute;
        top: -9999px;
    }
}