* {
    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;

    pointer-events: 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: 100%;

    top: 0;
    left: 0;
}

#exit-button {
    position: absolute;
    z-index: 31;
    top: 80px;
    right: 20px;

    width: 50px;
    height: 50px;

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

    background-color: lightgray;
    border: red solid 2px;

    transition: all 0.1s ease-in-out;

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

#exit-button:hover {
    border: red solid 4px;
    transition: all 0.1s ease-in-out;
}

#about-button {
    position: absolute;
    z-index: 43;
    top: 20px;
    right: 20px;

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

    width: 50px;
    height: 50px;

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

    background-color: lightgray;
    border: lime solid 2px;

    transition: all 0.1s ease-in-out;

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

#about-button:hover {
    border: lime solid 4px;
    transition: all 0.1s ease-in-out;
}

#about {
    position: absolute;
    z-index: 42;
    top: 3%;
    right: -100%;
    width: 30%;
    height: 95%;

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

    display: flex;
    flex-direction: column;
    overflow-y: auto;

    padding: 10px 5px 10px 10px;

    transition: all 0.3s ease-in-out;


        &::-webkit-scrollbar {
            width: 8px;
        }

        &::-webkit-scrollbar-track {
            background: #e0e0e0;
            border-radius: 5px;
        }

        &::-webkit-scrollbar-thumb {
            background: #999;
            border-radius: 5px;

            &:hover {
                background: #666;
            }
        }

    .about-title {
        font-size: 1.8rem;
        font-weight: bold;
        margin-bottom: 15px;
        text-align: center;
        color: #333;
        border-bottom: 2px solid #333;
        padding-bottom: 10px;
    }

    .about-subtitle {
        font-size: 1.8rem;
        font-weight: bold;
        margin-bottom: 15px;
        text-align: center;
        color: #333;
        padding-bottom: 10px;
    }

    .about-bar {
        margin-bottom: 15px;
        border-bottom: 2px solid dimgray;
        padding-bottom: 10px;
    }

    .about-section {
        margin-bottom: 15px;

        h2 {
            font-size: 1.3rem;
            font-weight: bold;
            color: #333;
            margin-bottom: 8px;
            border-left: 4px solid magenta;
            padding-left: 10px;
        }

        p {
            font-size: 0.95rem;
            color: #555;
            line-height: 1.5;
            text-align: justify;
        }
    }

    .about-regles {
        margin-bottom: 15px;

        h2 {
            font-size: 1.3rem;
            font-weight: bold;
            color: #333;
            margin-bottom: 8px;
            border-left: 4px solid yellow;
            padding-left: 10px;
        }

        ul {
            list-style: none;
            margin-left: 15px;
            margin-bottom: 10px;

            li {
                font-size: 0.95rem;
                color: #555;
                margin-bottom: 4px;
                position: relative;
                padding-left: 15px;

                &::before {
                    content: "•";
                    position: absolute;
                    left: 0;
                    color: #ff00ff;
                    font-weight: bold;
                }
            }
        }

        p {
            font-size: 0.95rem;
            color: #555;
            line-height: 1.5;
            text-align: justify;
        }
    }

    .about-logo {
        display: flex;
        align-items: center;
        justify-content: space-evenly;
        flex-shrink: 0;

        img {
            max-width: 150px;
            height: auto;
        }
    }

    .about-credits {
        margin-bottom: 20px;

        h3 {
            font-size: 1.3rem;
            font-weight: bold;
            color: #333;
            margin-top: 12px;
            margin-bottom: 6px;
            border-left: 3px solid cyan;
            padding-left: 8px;
        }

        ul {
            list-style: none;
            margin-left: 15px;
            margin-bottom: 10px;

            li {
                font-size: 0.95rem;
                color: #555;
                margin-bottom: 4px;
                position: relative;
                padding-left: 15px;

                &::before {
                    content: "•";
                    position: absolute;
                    left: 0;
                    color: yellow;
                    font-weight: bold;
                }
            }
        }

        p {
            font-size: 0.95rem;
            color: #555;
            margin-bottom: 8px;
            margin-left: 15px;
        }
    }

    .about-footer {
        text-align: center;
        margin-top: 20px;
        padding-top: 10px;
        border-top: 1px solid #999;
        font-size: 0.9rem;
        color: #666;
        flex-shrink: 0;

        p {
            margin: 0;
        }
    }
}

#about.active {
    right: 5%;
    left: auto;

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

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

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

#pionsJ1 {
    z-index: 10;
    color: #cccccc;
    position: fixed;
    top: 20px;
    left: 25%;
    transform: translateX(-50%);
    font-size: 1.2rem;
}

#pionsJ2 {
    z-index: 10;
    color: #cccccc;
    position: fixed;;
    top: 20px;
    left: 75%;
    transform: translateX(-50%);
    font-size: 1.2rem;
}

.pionJ1 {
    display: inline-block;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin: 0 5px;
    background-color: magenta;
}

.pionJ2 {
    display: inline-block;
    width: 50px;
    height: 50px;
    margin: 0 5px;
    background-color: cyan;
}

#hudTop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* Permet de cliquer à travers le HUD */
    display: flex;
    z-index: 10;
}


@media only screen and (min-width: 601px) and (max-width: 1024px) {

    #infos {
        position: fixed;
        z-index: 30;
        top: 20px;
        right: -100vw;
        width: 200px;
    }

    #infos.active {
        right: 90px;
    }


    #logo {
        width: 100px;
        top: 15px;
        left: 15px;
    }

    .hamburger {
        position: fixed;
        top: 20px;
        right: 20px;
    }


    .menu-container {
        gap: 15px;
        bottom: 30px;
    }

    .menu-container button,
    .menu-container a,
    .input {
        width: 200px;
        height: 60px;
        font-size: 1.1rem;
    }


    #pionsJ1, #pionsJ2 {
        font-size: 1rem;
        top: 20px;
    }


    .pionJ1, .pionJ2 {
        width: 40px;
        height: 40px;
    }


    #schemaCouleurs {
        width: 150px;
    }

}

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

    #schemaCouleurs {
        width: 30%;
    }

    .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 {
        position: fixed;
    }
    #infos {
        right: -100vw;
    }


    .about-input {
        position: fixed;
        top: 80px;
        right: 20px;
        width: 50px;
        height: 50px;
        z-index: 43;
    }

    #about {
        position: fixed;
        z-index: 42;
        top: 0;
        right: 0;
        transform: translateX(100%);
        width: 100%;
        height: 100%;
        border-radius: 0;
        padding: 20px 25px 10px 25px;

        transition: all 0.3s ease-in-out;

        .about-title {
            font-size: 1.5rem;
            margin-bottom: 12px;
            padding-bottom: 8px;
        }

        .about-section {
            margin-bottom: 12px;

            h2 {
                font-size: 1.1rem;
                margin-bottom: 6px;
            }

            p {
                font-size: 0.9rem;
                line-height: 1.4;
            }
        }

        .about-credits {
            margin-bottom: 15px;

            h3 {
                font-size: 1rem;
                margin-top: 10px;
                margin-bottom: 5px;
            }

            ul {
                margin-left: 12px;
                margin-bottom: 8px;

                li {
                    font-size: 0.9rem;
                    margin-bottom: 3px;
                    padding-left: 12px;
                }
            }

            p {
                font-size: 0.9rem;
                margin-bottom: 6px;
                margin-left: 12px;
            }
        }

        .about-logo {
            margin: 15px 0;

            img {
                max-width: 120px;
            }
        }

        .about-footer {
            margin-top: 15px;
            padding-top: 8px;
            font-size: 0.85rem;

            p {
                margin: 0;
            }
        }
    }

    #about.active {
        transform: translateX(0);
        transition: all 0.3s ease-in-out;
    }

    #joueurActuel {
        bottom: 100px !important;
        left: 0;
        transform: none;
        top: unset;
        width: 100%;
        display: flex;
        justify-content: center;
    }

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

        font-size: 1.2rem;
    }

    #pionsJ1 {
        top: 20px;
        left: 25%;
        transform: translateX(-50%);
    }

    #pionsJ2 {
        top: 80px;
        left: 25%;
        transform: translateX(-50%);
    }
    .pionJ1, .pionJ2 {
        width: 30px;
        height: 30px;
    }
}


/*# sourceMappingURL=main.47c5b57d1f466c76a359.css.map*/