body {
    font-family: 'Orbitron', sans-serif;
    margin: 0;
    padding: 0;
    height: 100vh;
    display: flex;
    justify-content: center;   /* centré horizontalement */
    align-items: flex-start;   /* aligné en haut pour réduire l'espace */
    background: linear-gradient(180deg,#0f0f1a,#1b0033);
    color: white;
    overflow: hidden;           /* pas de scroll global */
}


/* Soleil / cercle néon subtil */
body::before {
    content:'';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(143,0,255,0.15) 0%, transparent 70%);
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 50%;
    z-index: -1;
}

/* Grille rétro discrète */
body::after {
    content:'';
    position: absolute;
    width: 100%;
    height: 100%;
    background:
        repeating-linear-gradient(0deg,transparent,transparent 30px,rgba(255,255,255,0.02) 30px, rgba(255,255,255,0.02) 31px),
        repeating-linear-gradient(90deg,transparent,transparent 30px,rgba(255,255,255,0.02) 30px, rgba(255,255,255,0.02) 31px);
    z-index: -1;
}

.container {
    max-width: 600px;
    width: 90%;
    margin-top: 30px;          /* réduit l’espace avant le container */
    padding: 30px;
    background: rgba(0,0,0,0.6);
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* le contenu commence en haut */
    min-height: 450px;           /* hauteur fixe pour uniformiser le quiz */
}

.title {
    color:#00e5ff;
    text-shadow:
        0 0 5px #00e5ff,
        0 0 10px #00e5ff,
        0 0 20px #ff2fd1,
        0 0 40px #ff2fd1,
        0 0 60px #ff2fd1;
    animation: glow 1.5s infinite alternate;
}

@keyframes glow {
    from { text-shadow: 0 0 10px #00e5ff,0 0 20px #ff2fd1; }
    to { text-shadow: 0 0 20px #00e5ff,0 0 40px #ff2fd1; }
}

/* Boutons néon */
button {
    background:#ff2fd1;
    border:none;
    padding:15px;
    color:white;
    font-size:18px;
    border-radius:10px;
    box-shadow:0 0 10px #ff2fd1,0 0 20px #ff2fd1;
    cursor:pointer;
}

input[type=text], input[type=radio]{
    margin:10px 0;
    padding:10px;
}



/* Barre de progression */
#progressBarContainer {
    width: 90%;
    max-width: 600px;
    height: 20px;            /* hauteur fixe */
    margin: 10px auto 30px auto;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
}

#progressBar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg,#8f00ff,#00cfff);
    border-radius: 10px;
    transition: width 0.3s;
}


.question {
    flex: 1;                   /* prend tout l’espace disponible du container */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow-y: auto;           /* scroll si question trop longue */
    background: rgba(255,255,255,0.05);
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 20px;
}

.question::-webkit-scrollbar {
    width: 6px;
}

.question::-webkit-scrollbar-thumb {
    background: rgba(143,0,255,0.3);
    border-radius: 3px;
}

.question::-webkit-scrollbar-track {
    background: transparent;
}

label {
    margin: 10px 0;
    font-size: 1rem;
    word-wrap: break-word;   /* casse les phrases longues */
}

button.nextBtn {
    align-self: flex-end;    /* bouton toujours en bas */
}


.ranking-table {
    width: 90%;
    max-width: 600px;
    margin: 30px auto;
    border-collapse: collapse;
    background: #111; /* fond noir ardoise */
    color: #fff;      /* texte blanc par défaut */
    font-family: 'Courier New', Courier, monospace; /* style “craie” */
    text-align: center;
    box-shadow: 0 0 15px rgba(0,0,0,0.5);
    border-radius: 10px;
    overflow: hidden;
}

.ranking-table th, .ranking-table td {
    padding: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

/* Titres du tableau avec effet “craie” */
.ranking-table th {
    font-size: 1.2rem;
    text-shadow:
        0 0 1px #fff,
        0 0 2px #fff; /* léger effet craie */
    background: #111;
}

.ranking-table tr:nth-child(even){
    background: rgba(255,255,255,0.05);
}

.ranking-table td {
    font-size: 1rem;
    text-shadow:
        0 0 1px #fff,
        0 0 2px #fff; /* léger effet craie */
}

button {
    margin-top: 20px;
}


/*Login*/
.login-container {
    background: rgba(0,0,0,0.6);
    padding: 40px 30px;
    border-radius: 20px;
    max-width: 400px;
    width: 90%;
    margin-top: 30px;           /* réduit l’espace au-dessus */
    text-align: center;
    box-shadow: 0 0 30px rgba(143,0,255,0.4);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 300px;           /* fixe la hauteur du login */
}

.login-container input[type=text] {
    width: 80%;
    padding: 12px;
    margin: 10px 0;
    border-radius: 10px;
    border: none;
    font-size: 1rem;
}

.login-container button {
    width: 50%;
    padding: 12px;
    margin-top: 20px;
    font-size: 1rem;
    border-radius: 10px;
    border: none;
    color: white;
    background: linear-gradient(90deg,#8f00ff,#00cfff);
    box-shadow: 0 0 10px #8f00ff, 0 0 20px #00cfff;
    cursor: pointer;
    transition: 0.2s;
}

.login-container button:hover {
    transform: scale(1.05);
}