/* Main page container */
.pagina {
    max-width: 800px;
    margin: 40px auto;               /* centers the page */
    font-family: Arial, sans-serif;
    line-height: 1.5;
    padding: 20px;
}

#bottone-indietro {
    position: fixed;     /* keeps it on screen at all times */
    bottom: 20px;        /* distance from bottom */
    right: 20px;         /* distance from right */
    padding: 12px 18px;
    background: black;
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 16px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

/* Title spacing */
.pagina h3 {
    margin-bottom: 5px;
}

/* Name list before correction block */
.pagina p {
    margin-top: 0px;
    margin-bottom: 40px;
}

/* Correction container for 1 person */
.correzione {
    padding: 20px;
    border-radius: 8px;
    background: #f7f7f7;
    border: 1px solid #ddd;
    margin-bottom: 40px;
}

/* Student name */
.correzione .nome {
    display: block;
    font-weight: bold;
    font-size: 1.2em;
    margin-bottom: 20px;
}

/* Each question block */
.correzioneDomanda {
    background: #fff;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #ccc;
    margin-bottom: 20px;
}

/* Preformatted question text */
.correzioneDomanda pre {
    white-space: pre-wrap;        /* allows wrapping instead of horizontal scrolling */
    font-family: Consolas, monospace;
    margin: 0;
}

/* Score box inside last question div */
.punteggio {
    padding: 15px;
    border-radius: 6px;
    margin-top: 10px;
}

.punteggio p {
    margin: 5px 0;
    font-weight: bold;
}
