body {
    font-family: "Courier New";
    background-color: #f5f5f5;
}

/* --- HEADER (identico a index.css) --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 52px;
    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 (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 del test */
#container {
    width: 100%;
    max-width: 100%;
    margin: auto;
    padding: 10px;
    box-sizing: border-box;
}

#lblNickName {
    font-size: 20px;
    font-weight: bold;
    background-color: green;
    margin-bottom: 10px;
    text-align: center;
    color: white;
    padding: 10px;
    border-radius: 5px;
}

#lblTest {
    font-size: 32px;
    background-color: oldlace;
    border: 3px solid #ccc;
    padding: 10px;
    color: olive;
    width: fit-content;
    margin-top: 90px;      /* Spazio sufficiente per non coprire il titolo con l'header fisso */
    margin-bottom: 10px; 
}

#testCounterContainer {
    font-size: 22px;
    font-weight: bold;
    margin-top: 0px;       
    margin-bottom: 0px;    
    text-align: left;
    padding-left: 10px;
}

#ruleContainer {
    font-size: 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin: 0 auto 10px auto; 
    gap: 0px;
    box-sizing: border-box;
}

#label1 {
    font-weight: bold;
    font-size: 34px;
    padding: 15px;
    margin: 5px auto; 
    margin-top: 0;
    background-color: #f0f0f0;
    border: 2px solid #999;
    border-radius: 10px;
    width: 100%;
    text-align: center;
}

#label2 {
    font-weight: bold;
    font-size: 34px;
    padding: 10px 10px;
    background-color: yellow;
    color: red;
    border: 2px solid #666;
    border-radius: 10px;
    margin-right: 0px;
}

#radioContainer span {
    font-family: Consolas, "Courier New", monospace;
    font-size: 30px;
    letter-spacing: 6px;
}

#radioContainer label {
    display: block;
    margin-top: 20px;
    font-size: 28px;
    font-weight: bold;
    color: red;
}

#buttons {
    margin-top: 20px;
}

#buttons button {
    font-size: 20px;
    margin-right: 10px;
    padding: 10px 20px;
}

/* Media query per dispositivi mobili coerente con index.css */
@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: 5px;
    }
}
