body{
    background-color: rgb(15, 15, 15);
    font-family: Arial, sans-serif;
    color: white;
}

header{
    text-align: center;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10vh;
}

#accountLogo{
    font-size: 2.5vw;
}

#accountLogo:hover{
    cursor: pointer;
}

header h1{
    margin: 0 auto;
    font-size: 2vw;
}

#IMGflecheConnexion{
    position: absolute;
    width: 20%;
    height: auto;
    top: 60px;
    right: 10px;
}

.lancerJeu{
    display: flex;
    justify-content: center;
    margin-top: 20px;
    margin-bottom: 10vh;
}

button{
    padding: 10px;
    border-radius: 5px;
    border: none;
    margin-right: 10px;
    color: white;
    background-color: rgb(49, 49, 49);
    font-size: 0.8vw;
}

button:hover{
    cursor: pointer;
    background-color: rgb(26, 26, 26);
}

input{
    padding: 10px;
    border-radius: 5px;
    border: none;
    margin-right: 10px;
    color: white;
    background-color: rgb(49, 49, 49);
    font-size: 1vw;
}



.scoreboards{
    display: flex;
    justify-content: space-around;
    margin-top: 20px;
    flex-wrap: wrap;
}

.scoreboard {
    display: flex;
    flex-direction: column;
    width: 40vw;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 5vh;
}

.classe {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid rgb(15, 15, 15);
}

.classe:last-child {
    border-bottom: none;
}

h2 {
    margin: 0;
    font-size: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.classementTitre{
    margin-bottom: 10px;
}

.classementTitre:hover{
    cursor: pointer;
}

.textClass {
    font-size: 1.3rem;
    font-weight: bold;
    color: #ffffff;
}

/* Backgrounds dégradés stylisés */
.classe1 {
    background: #333333;
    padding-left: 20px;
    padding-right: 20px;
    width: 90%;
}

.classe2 {
    background: #333333;
    padding-left: 20px;
    padding-right: 20px;
    width: 80%;
}

.classe3 {
    background: #333333;
    padding-left: 20px;
    padding-right: 20px;
    width: 70%;
}

/* Responsive design pour les petits écrans */
@media (max-width: 600px) {
    .classe1, .classe2, .classe3 {
        width: 100%;
        margin-left: 0;
    }
}

.hiddenS {
    display: none;
}


/* pop up */
/* Popup container */
.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

/* Hidden class */
.hidden {
    display: none;
}

/* Popup content */
.popup-content {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    text-align: center;
    width: 90%;
    max-width: 400px;
}

.popup-content h2 {
    margin: 0 0 10px;
    font-size: 1.5rem;
    color: #333;
}

.popup-content p {
    margin: 0 0 20px;
    color: #555;
}

.popup-content button {
    padding: 10px 20px;
    background-color: #1f1f1f;
    border: none;
    border-radius: 5px;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.popup-content button:hover {
    background-color: #4e4e4e;
}

@media (max-width: 1199px){

    header{
        text-align: center;
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 10vh;
    }
    
    #accountLogo{
        font-size: 2rem;
    }
    
    #accountLogo:hover{
        cursor: pointer;
    }
    
    header h1{
        margin: 0 auto;
        font-size: 2rem;
    }
    
    #IMGflecheConnexion{
        position: absolute;
        width: 200px;
        height: auto;
        top: 45px;
        right: 10px;
    }

    /* lancerJeu */
    .lancerJeu{
        margin-top: 0px;
        margin-bottom: 5vh;
    }

    button{
        padding: 10px;
        border-radius: 5px;
        border: none;
        margin-right: 10px;
        color: white;
        background-color: rgb(49, 49, 49);
        font-size: 2vw;
    }
    
    input{
        padding: 10px;
        border-radius: 5px;
        border: none;
        margin-right: 10px;
        color: white;
        background-color: rgb(49, 49, 49);
        font-size: 2vw;
    }


    /* afficher les scoreboards les uns en dessous des autres */
    .scoreboards{
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .scoreboard {
        width: 80vw;
    }

    .classe {
        padding: 10px;
    }

    h2 {
        font-size: 1rem;
        margin-right: 10px;
    }

    .material-symbols-outlined {
        margin-left: -10px;
    }

    .textClass {
        font-size: 0.7rem;
    }

    /* Backgrounds dégradés stylisés */
    .classe1 {
        background: #333333;
        padding-left: 20px;
        padding-right: 20px;
        width: 90%;
    }

    .classe2 {
        background: #333333;
        padding-left: 20px;
        padding-right: 20px;
        width: 85%;
    }

    .classe3 {
        background: #333333;
        padding-left: 20px;
        padding-right: 20px;
        width: 80%;
    }

    .popup-content {
        background: white;
        padding: 20px;
        border-radius: 10px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
        text-align: center;
        width: 60%;
        max-width: 400px;
    }
}