* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;

    font-family: Calibri, serif;
}

html, body, main {
    height: 100%;
}

html, body {
    overflow: hidden;
}

.alert-box {
    z-index: 40;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: black;
    color: white;
    font-size: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}


#no-webgl {
    display: none;
    z-index: 40;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: black;
    color: white;
    font-size: 40px;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.button {
    border: none;
    border-radius: 10px;

    transition: all 0.1s ease-in-out;

    text-decoration: none;

    color: black;
}

.button:hover {
    cursor: pointer;
    transform: scale(1.0375);
    transition: all 0.1s ease-in-out;
}

.button:active {
    transform: scale(1);
    transition: all 0.1s ease-in-out;
}

#logo {
    position: absolute;
    z-index: 30;
    top: 20px;
    left: 30px;
    width: 150px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    transition: all 0.1s ease-in-out;

    text-decoration: none;

}

#local, #play, #gameCode, #end {
    position: absolute;
    z-index: 10;
    top: auto;
    bottom: 50px;
    left: 0;
    width: 100%;

    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

#local button, #play button, #gameCode button, #validation button,
#local a, #play a, #gameCode a, #end a {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 250px;
    height: 75px;

    font-size: 1.3rem;
}

#offline-play, #local-play, #code-btn, #replay-btn {
    background-color: magenta;
}

#ia-play, #online-play, #create {
    background-color: cyan;
}

#private-play, #back-btn-local, #back-btn-private {
    background-color: yellow;
}

.input {
    width: 250px;
    height: 75px;

    font-size: 1.3rem;
    text-align: center;

    border: none;
    border-radius: 10px;
}

#codeLabel {
    display: none;
}

#validation {
    position: absolute;
    z-index: 10;
    bottom: 50px;
    left: 0;
    width: 100%;

    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

#valid-btn {
    background-color: #00ff00;
}

#reset-btn {
    background-color: red;
}


.side-canvas {
    position: absolute;
    z-index: 1;
    width: 100%;
    height: 100vh;

    top: 0;
    left: 0;
}

.full-canvas {
    overflow: hidden;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 1;
}

#hamburger {
    display: none;
}

.hamburger {
    position: absolute;
    z-index: 31;
    top: 20px;
    right: 20px;

    padding: 10px;
    border-radius: 5px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;

    background-color: lightgray;
    border: none;

    transition: all 0.1s ease-in-out;

    span {
        background: black;
        border: none;

        width: 37px;
        height: 5px;

        border-radius: 10px;
        overflow: hidden;

        transition: all 0.1s ease-in-out;
    }
}

.hamburger:hover {
    cursor: pointer;

    span {
        transition: all 0.1s ease-in-out;
    }

    span:nth-child(1) {
        transform: rotate(10deg);
    }

    span:nth-child(2) {
        transform: translateX(10px);
    }

    span:nth-child(3) {
        transform: rotate(-10deg);
    }
}

#hamburger:checked + .hamburger {
    padding-right: 3px;
    transition: all 0.1s ease-in-out;

    span:nth-child(1) {
        transform: rotate(45deg) translateY(10px) translateX(6px);
        transform-origin: center;
    }

    span:nth-child(2) {
        transform: translateX(70px);
    }

    span:nth-child(3) {
        transform: rotate(-45deg) translateY(-10px) translateX(6px);
        transform-origin: center;
    }
}

#infos {
    position: absolute;
    z-index: 30;
    top: 20px;
    right: -250px;
    width: 200px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    background-color: lightgray;
    border: none;
    border-radius: 5px;

    padding: 10px;


    transition: all 0.3s ease-in-out;

    button {
        background-color: orangered;
        border-radius: 5px;

        margin: 15px 0;
        padding: 10px 5px;

        font-size: 1.2rem;
    }

    div {
        margin: 5px 0;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;

        span {
            font-weight: bold;
            border: orangered 1px solid;
            border-radius: 5px;
            padding: 2px 5px;
            font-size: 1.5rem;
        }
    }
}

#hamburger:checked ~ #infos {
    right: 90px;

    transition: all 0.3s ease-in-out;
}

#rules-input {
    display: none;
}

.rules-input {
    position: absolute;
    z-index: 12;
    top: 80px;
    right: 20px;

    padding: 10px;
    border-radius: 5px;

    width: 56px;
    height: 50px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;

    background-color: lightgray;
    border: none;

    transition: all 0.1s ease-in-out;

    img {
        width: 100%;
        height: 100%;
    }
}

.rules-input:hover {
    cursor: pointer;

    /*scale: 0.1;*/
}

#rules-input:checked + .rules-input {
    transition: all 0.1s ease-in-out;

    /*padding-right: 4px;*/
    width: 50px;
}

#rules {
    position: absolute;
    z-index: 11;
    top: 140px;
    right: -350px;
    width: 300px;
    height: 80%;
    overflow-y: scroll;

    background-color: lightgray;
    border: none;
    border-radius: 5px;

    padding: 10px;

    transition: all 0.3s ease-in-out;

    img {
        width: 100%;
        margin-bottom: 15px;
    }
}

#rules-input:checked ~ #rules {
    right: 20px;

    transition: all 0.3s ease-in-out;
}



#schemaCouleurs {
    position: fixed;
    z-index: 10;
    bottom: 10px;
    right: 10px;
    width: 200px;
    height: auto;
}

.none {
    display: none !important;
}

#chargement {
    z-index: 20;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 20px;

    background-color: black;

    font-size: 2rem;
    font-weight: bold;
    color: white;
}

#popup {
    z-index: 40;
    position: fixed;;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    padding: 20px;
    background-color: lightgray;
    border: 2px solid black;
    border-radius: 10px;
    backdrop-filter: blur(70px);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;

    button {
        margin-top: 20px;
        padding: 10px 20px;
        font-size: 1.2rem;
        border: none;
        border-radius: 5px;
        background-color: magenta;
        color: black;
        cursor: pointer;
    }
}

#joueurActuel {
    z-index: 10;
    color: lime;
    position: fixed;;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.5rem;
}

@media only screen and (max-width: 600px) {
    #logo {
        position: fixed;
        top: 12px;
        left: 12px;
        width: 20%;

        img {
            width: 20%;
        }
    }

    #schemaCouleurs {
        width: 30%;
        bottom: 100px;
    }

    #local, #play, #gameCode, #end, #validation {
        position: fixed;
        bottom: 20px;
        left: 0;
        width: 100%;
        padding: 0 10px;
        flex-wrap: wrap;
        gap: 12px;
    }

    #local button, #play button, #gameCode button, #validation button,
    #local a, #play a, #gameCode a, #end a {
        width: calc(50% - 12px);
        min-width: unset;
        height: 60px;
        font-size: 1.2rem;
    }

    .side-canvas {
        position: fixed;
    }

    .hamburger {
        position: fixed;
    }

    #infos {
        position: fixed;
    }

    .rules-input {
        position: fixed;
    }

    #rules {
        position: fixed;
        right: -400px;
        width: 90%;
        height: 70%;

        padding: 5px;

        img {
            margin-bottom: 10px;
        }
    }


    #joueurActuel {
        bottom: 100px !important;
        left: 60px;
        transform: translateX(-40px);
        top: unset;
        width: 100%;
    }

    .input {
        width: calc(100% - 20px);
        height: 60px;

        font-size: 1.2rem;
    }
}


/*# sourceMappingURL=jeu.987f9d5c4b50e02aabb0.css.map*/