body {
    font-family: "Courier New";
    background-color: #f5f5f5;
    margin: 0;
    padding-top: 72px; /* Spazio per l'header fisso */
}

/* --- HEADER (identico a index.css) --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 62px;
    background: #0d3b66;
    margin-bottom: 0 !important;
    padding: 10px !important;
    box-shadow: 0 2px 10px rgba(0,0,0,.25);
    z-index: 9999;
}

/* --- LOGO (identico a index.css) --- */
.logo {
    position: absolute;
    left: 25px;
    top: 18px;
    font-size: 30px;
    font-weight: bold;
    color: white;
    letter-spacing: 1px;
}

/* --- NAVBAR (identica a index.css) --- */
nav {
    position: absolute;
    right: 35px;
    top: 22px;
    z-index: 9999;
}

nav ul {
    display: flex;
    gap: 25px;
    list-style: none;
    margin: 0;
    padding: 0;
}

nav a, nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 20px;
    font-weight: 600;
    transition: .25s;
    background-color: transparent;
    text-shadow: none;
}

nav a:hover, nav ul li a:hover {
    color: #8fd3ff;
}

/* --- FOOTER / CONTATTI (identico a index.css) --- */
#contatti, footer {
    margin-top: 60px;
    background: #0d3b66;
    color: white;
    text-align: center;
    padding: 30px;
    font-size: 1rem;
    line-height: normal;
}

#contatti a, footer a {
    color: #8fd3ff;
    text-decoration: none;
}

#contatti a:hover, footer a:hover {
    text-decoration: underline;
}

/* --- CONTAINER PRINCIPALE --- */
#container, .wrapper {
    width: 100% !important;
    max-width: 1268px;
    margin: 0 auto;
    padding: 10px;
    box-sizing: border-box;
    position: relative;
}

/* --- REGOLA | label1 | label2 --- */
#ruleContainer {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;        
    width: 100% !important;                 
    max-width: 1200px;           
    margin: 0 auto 10px auto;
    gap: 10px;                   
    box-sizing: border-box;
}

#lblNickName {
    font-size: 20px;
    font-weight: bold;
    background-color: green;
    color: white;
    padding: 10px 15px;
    border-radius: 5px;
    white-space: nowrap;
    margin: 0;
    flex-shrink: 0;
}

#label1 {
    flex: 1;                    
    font-weight: bold;
    font-size: 30px;
    padding: 15px;
    background-color: #f0f0f0;
    border: 2px solid #999;
    border-radius: 10px;
    text-align: center;
    white-space: pre-wrap;
    margin: 0;                    
    min-width: 0;               
}

#label2 {
    font-weight: bold;
    font-size: 34px;
    padding: 10px 20px;
    background-color: yellow;
    color: red;
    border: 2px solid #666;
    border-radius: 10px;
    white-space: nowrap;        
    margin: 0;
    flex-shrink: 0;              
}

/* --- TITOLO TEST --- */
#lblTest {
    font-size: 32px;
    background-color: oldlace;
    border: 3px solid #ccc;
    padding: 10px;
    color: olive;
    width: fit-content;
    margin: 20px auto 10px auto !important;     
}

/* --- CONTENITORE DOPPIO (RADIO E CHECKBOX) --- */
#mainRow {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 60px;                 
    margin-top: 20px;
}

#radioContainer,
#checkContainer {
    width: 340px;              
    background-color: #f9f9f9;
    border: 3px solid #bbb;
    border-radius: 12px;
    padding: 30px;             
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 22px;                 
}

#radioContainer label,
#checkContainer label {
    font-size: 26px;           
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 14px;
}

#radioContainer span,
#checkContainer span {
    font-size: 28px;           
    font-family: "Courier New", monospace;
}

#radioContainer input[type="radio"],
#checkContainer input[type="checkbox"] {
    transform: scale(1.6);     
}

/* --- PULSANTI --- */
#buttons {
    margin-top: 20px;
    text-align: center;
}

#buttons button, .buttons button {
    font-size: 20px;
    margin-right: 10px;
    padding: 10px 20px;
    font-family: "Microsoft Sans Serif", Arial, sans-serif;
    font-weight: bold;
    border: 1px solid #666;
    cursor: pointer;
    border-radius: 8px;
}

#btnPartenza {
    background-color: rgb(192, 255, 192);
    color: red;
}

#btnContinua {
    background-color: rgb(192, 255, 255);
    color: rgb(192, 0, 192);
}

#btnFine {
    background-color: rgb(192, 255, 105);
    color: rgb(192, 0, 192);
}

#solutionBox {
    margin-top: 10px;          
    display: flex;
    justify-content: center;
    width: 100%;
}

#textBox1 {
    width: 300px;
    height: 40px;
    font-size: 22px;
    font-family: "Courier New", monospace;
    padding: 12px;
    border: 2px solid #999;
    border-radius: 8px;
    background: #fffef0;
    display: none;             
}

/* --- MEDIA QUERY DISPOSITIVI MOBILI --- */
@media(max-width:900px){
    .logo {
        position: static;
        text-align: center;
        margin-top: 5px;
    }
    nav {
        position: static;
        margin-top: 10px;
        text-align: center;
    }
    nav ul {
        flex-direction: column;
        gap: 10px;
    }
    .header {
        height: auto;
        padding-bottom: 20px;
    }
    #mainRow {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
}
