/* 
    Fichier de style pour la partie lancement avec le choix des rooms.
*/

/* ---------- Styles généraux ---------- */

body {
    background: #f0f0f0 url('../assets/wallpaper.jpg') center/cover no-repeat; /* Fond avec image */
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
}

header, footer {
    display: none; /* Cache le header et le footer */
}

/* ---------- Formulaire de connexion ---------- */

#formulaire {
    display: flex;
    flex-direction: column;
    gap: 10px; /* Espacement entre les champs */
    padding: 20px 40px;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    background-color: #f9f9f9;
}

#formulaire label {
    font-size: 30px;
    margin-bottom: 5px;
}

#formulaire input {
    padding: 8px;
    font-size: 27px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

/* Bouton de validation */
#formulaire button {
    align-self: center; /* Centre le bouton horizontalement */
    margin-top: 15px;
    padding: 10px 15px;
    font-size: 16px;
    color: white;
    background-color: #0078d7;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: 0.2s;
}

#formulaire button:hover {
    background-color: #005bb5;
    transform: scale(0.99);
}

/* ---------- Attente du lancement ---------- */

#wait {
    text-align: center;
    flex-direction: column;
    padding: 0 40px;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    background-color: #f9f9f9;
}

#wait p {
    font-size: 23px;
}

/* ---------- Animation de chargement ---------- */

.loading-circle {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(0, 0, 0, 0.1); /* Cercle de fond */
    border-top: 5px solid #3498db; /* Couleur animée */
    border-radius: 50%;
    margin: 20px auto; /* Centre horizontalement et ajoute un espace en haut */
    display: block; /* Assure le bon centrage */
    animation: spin 1s linear infinite;
}


@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* ---------- Bouton de copie ---------- */

#copier {
    height: 35px;
    width: 90px;
    color: #fff;
    background: #147297;
    border: none;
    border-radius: 5px;
    margin: 5px 0 15px 10px;
}

#copier:hover {
    background: rgb(36, 37, 41);
}
