
#loading-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7); /* Noir semi-transparent */
    /* display: flex; */
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000; /* Toujours au-dessus */
}

/* Le contenu de la popup (le rectangle blanc) */
.loading-content {
    background: #ffffff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    text-align: center;
    width: 35%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2vh;
}

/* Le texte du chargement */
.loading-content h2, .loading-content p {
    margin: 0;
    color: black;
    font-family: 'Quicksand', sans-serif;
    font-weight: 500;
}

.loading-content-subtitle {
    width: 80%;
}

#loading-content-instruction {
    font-size: 0.9rem;
    color: #555;
}

.redText {
    color: #E83151;
    font-weight: bold;
}

.loading-score-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2vh;
}

.loading-score-form .popup-buttons, .loading-score-form .popup-inputs {
    display: flex;
    gap: 1vw;
    justify-content: center;
    width: 100%;
}

.loading-score-form input {
    background: rgba(0,0,0,.3);
    border: none;
    border-radius: 10px;
    padding: 10px;
    color: white;
    font-size: 1rem;
    outline: none;
    width: 50%;
}

.loading-score-form input::placeholder {
    color: rgba(255,255,255,.7);
}

.loading-score-form .popup-buttons button {
    background-color: #E83151;
    color: white;
    padding: 0.8vh 0.8vw;
    border: none;
    outline: none;
    border-radius: 4px;
    font-family: 'Quicksand';
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease-in-out;
}

.loading-score-form .popup-buttons button:hover {
    background-color: #b01831;
}

.loading-content #cancel {
    background: none;
    border: none;
    color: #555;
    cursor: pointer;
    font-size: 0.9rem;
    text-decoration: underline;
    margin: 0;
}

.loading-content .popup-errors {
    color: #ff4d4d !important;
    display: none;
}


@media screen and (max-width: 1024px) {
    .loading-content {
        width: 80%;
        padding: 30px;
    }

    .loading-content-subtitle {
        width: 100%;
    }
}