/* SOTAPOLKU – Lomakkeen puhdas CSS ilman kuvia */

/* --- PERUSASETUKSET --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
    font-family: 'Montserrat', sans-serif;
}

/* --- BODY & SECTION --- */
html, body {
    height: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: #111; /* Yksivärinen tausta */
    color: #eee;
}



.section {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* --- KESKITETTY KONTAINERI --- */
.container {
    max-width: 900px;
    width: 100%;
    text-align: center;
}

/* --- TEKSTIALUE --- */
.text-overlay {
    background: rgba(0,0,0,0.85);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.text-overlay p {
    color: #eee;
    font-size: 1em;
    margin-bottom: 10px;
}

.text-overlay em {
    color: #d4af37;
    font-style: normal;
    font-weight: 600;
}

.text-overlay strong {
    color: #fff;
    font-weight: 700;
}

/* Kuva lomakkeen yläpuolella */
.taistelujen-tie-img {
    width: 400px;
    max-width: 90%;               /* Responsiivisuus pienillä näytöillä */
    display: block;
    margin: 0 auto 20px auto;     /* Keskittää kuvan ja lisää tilaa alapuolelle */
}


/* --- LOMAKE KESKELLE --- */
/* Lomake täysin läpinäkyvä */
#quiz-container {
    background-color: transparent; /* Ei taustaa */
    border-radius: 0;              /* Ei pyöristettyä reunaa */
    box-shadow: none;              /* Ei varjoa */
    padding: 20px;                 /* Halutessasi voit säätää */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}


#quiz-form {
    display: grid;
    gap: 20px;
    width: 100%;
}

/* --- KYSYMYKSET --- */
.question-group {
    display: none; /* JS näyttää oikean stepin */
    background-color: rgba(34,34,34,0.9);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
    text-align: center;
}

.question-group h3 {
    color: #d4af37;
    margin-bottom: 10px;
    font-size: 1.2em;
    border-bottom: 1px solid #3a3a3a;
    padding-bottom: 10px;
}

.question-group p {
    font-style: italic;
    color: #ccc;
    margin: 10px 0 20px 0;
}

/* --- INPUTIT & TEXTAREA --- */
input[type="text"], input[type="email"], textarea {
    width: 100%;
    padding: 14px;
    margin-top: 5px;
    background: #111;
    border: 1px solid #444;
    border-radius: 4px;
    color: #eee;
    font-size: 1em;
}

input:focus, textarea:focus {
    border-color: #d4af37;
    box-shadow: 0 0 8px rgba(212,175,55,0.6);
    outline: none;
    background: #1a1a1a;
}

::placeholder {
    color: #777;
}

/* --- RADIO & LABELIT --- */
.question-group label {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    margin: 8px 0;
    padding: 15px;
    width: 100%;
    border-radius: 6px;
    background-color: rgba(255,255,255,0.05);
    cursor: pointer;
    transition: background 0.3s, color 0.3s, transform 0.2s;
}

.question-group label:hover {
    background-color: rgba(212,175,55,0.2);
    color: #d4af37;
    transform: translateY(-2px);
}

.question-group input[type="radio"] {
    accent-color: #d4af37;
    transform: scale(1.2);
}

/* --- NAPIT --- */
.next-btn, .prev-btn, .final-submit-btn, .submit-btn {
    padding: 12px 20px;
    font-size: 1em;
    font-weight: 600;
    text-transform: none;
    width: auto;
    margin-top: 10px;
    border-radius: 4px;
    cursor: pointer;
    border: none;
    transition: background-color 0.2s ease; 
}

/* Edellinen-nappi: HARMAA PERUSVÄRI (Pakotetaan, jotta .submit-btn ei yliaja) */
.prev-btn {
    background-color: #555 !important; /* Pakotetaan harmaaksi */
    color: #eee;
}

/* Edellinen-nappi: HARMAA HOVER-EFEKTI */
.prev-btn:hover {
    background-color: #666 !important; /* Pakotetaan kirkkaammaksi harmaaksi hoverissa */
}

/* Seuraava ja Lähetä -napit: KULTAINEN PERUSVÄRI */
.next-btn, .final-submit-btn, .submit-btn {
    background-color: #d4af37; 
    color: #111;
}

/* Seuraava ja Lähetä -napit: KULTAINEN HOVER-EFEKTI */
.next-btn:hover, .final-submit-btn:hover, .submit-btn:hover {
    background-color: #ffda6a; /* Vaaleampi/Kirkkaampi kulta hoverissa */
}




/* --- FOOTER (Paranneltu tyyli) --- */

footer {
    text-align: center;
    padding: 40px 15px; /* Säilytetään pystysuuntainen tila */
    
    /* POISTETTU: tummempi tausta, jotta sulautuu sivun taustaan */
    background-color: transparent; /* Asetetaan läpinäkyväksi tai poistetaan kokonaan */
    
    color: #b0b0b0; /* Hieman pehmeämpi harmaa teksti */
    font-size: 0.8rem; /* Kevyesti isompi teksti */
    width: 100%;
    
    /* POISTETTU: kullanvärinen yläreunaviiva */
    border-top: none; 
}

/* Sosiaalisen median linkit footerissa */
.social-links-footer {
    display: flex;
    justify-content: center; /* Keskittää kuvakkeet */
    margin-bottom: 5px; /* Tilaa tekstin yläpuolelle */
}

.social-links-footer a {
    margin: 0 12px;
    font-size: 1.8rem; /* Isompi koko */
    color: #d4af37; /* Kultainen väri */
    transition: all 0.3s ease; /* Animoitu muutos */
    
    /* POISTETTU: width, height, line-height, border-radius, background-color, text-align */
    /* Nämä säännöt loivat sen laatikon/ympyrän */
}

.social-links-footer a:hover {
    color: #fff; /* Valkoinen kuvake */
    /* Hieno kultainen varjo hoverissa */
    text-shadow: 0 0 10px #d4af37, 0 0 20px rgba(212, 175, 55, 0.6); 
    transform: scale(1.1); /* Pieni suurennus hoverissa */
}


/* --- Mobiiliasetukset --- */
@media (max-width: 768px) {
    .question-group {
        padding: 20px;
    }
    .navigation-buttons {
        flex-direction: column;
    }
}

