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

    font-family: Calibri, serif;
}

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

html, body {
    overflow: hidden;
}

.no-js, #no-webgl {
    z-index: 40;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: black;
    color: white;
    font-size: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

#no-webgl {
    display: none;
}

.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;

}

.menu-container {
    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;
}

.menu-container button,
.menu-container a{
    display: flex;
    align-items: center;
    justify-content: center;

    width: 250px;
    height: 75px;

    font-size: 1.3rem;
}

#twoPlayersButton, #offlineButton, #privateJoinButton, #replay-btn, #publicGame {
    background-color: magenta;
}

#IAButton, #onlineButton, #privateCreateButton, #privateGame {
    background-color: cyan;
}

#offlineBackButton, #privateBackButton, #onlineBackButton {
    background-color: yellow;
}

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

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

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

#codeLabel {
    display: none;
}



#valider-button {
    background-color: #00ff00;
}

#Annuler-button {
    background-color: red;
}

#canvas {
    overflow: hidden;
    position: absolute;
    z-index: 1;
    width: 100%;
    height: 100vh;

    top: 0;
    left: 0;
}

#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;
}

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

    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;
    opacity: 0.875;

    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%;
    }

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

    .menu-container {
        position: fixed;
        bottom: 20px;
        left: 0;
        width: 100%;
        padding: 0 10px;
        flex-wrap: wrap;
        gap: 12px;
    }

    .menu-container button,
    .menu-container a {
        width: calc(50% - 16px);
        min-width: unset;
        height: 60px;
        font-size: 1.2rem;
    }

    .side-canvas, .hamburger, #infos, .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=main.96a26fe1e92a45fa368b.css.map*/