/* CSS Document */

  body {
            background-color: #f8f9fa;
            min-height: 100vh;
            display: flex;
            flex-direction: column;
        }

        /* --- HEADER PERSONALIZZATO --- */
        #logoxquiz {
            position: absolute;
            top: 2px;
            left: 8px;
        }
        #logoxquiz img {
            width: 160px;
        }
        #logoxquiz span {
            margin-top: 20px;
            position: absolute;
            width: 500px;
            text-align: left;
            font-size: 12px !important;
            color: #333;
        }
        .header-ridotto {
            position: absolute;
            top: 0px;
            left: 0px;
            height: 50px;
            width: 100%;
            background-color: #fff;
            border-bottom: 5px solid #c20;
            z-index: 1000;
        }
        /* Margine superiore per non sovrapporre l'header */
        .main-content {
            margin-top: 50px; 
        }

    
        .empty-state, .welcome-state {
            text-align: center;
            padding: 3rem;
            background: white;
            border-radius: 1rem;
            box-shadow: 0 4px 6px rgba(0,0,0,0.05);
            max-width: 800px;
            margin: 0 auto;
        }
     
		        /* --- STILI FLASHCARD (DIMENSIONI MASSIME) --- */
        .flashcard-container {
            perspective: 1000px;
            width: 100%;
            max-width: 900px;       /* Aumentato da 800px */
            height: 500px;          /* Aumentato da 450px */
            margin: 1.5rem auto;
            cursor: pointer;
        }
        .card-inner {
            position: relative;
            width: 100%;
            height: 100%;
            transition: transform 0.6s;
            transform-style: preserve-3d;
            box-shadow: 0 15px 35px rgba(0,0,0,0.2); /* Ombra più marcata per dare profondità */
            border-radius: 1.5rem;
        }
        .card-inner.is-flipped {
            transform: rotateY(180deg);
        }
        .card-face {
            position: absolute;
            width: 100%;
            height: 100%;
            backface-visibility: hidden;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 3.5rem;        /* Molto più spazio interno */
            border-radius: 1.5rem;
            text-align: center;
            font-size: 2.2rem;      /* Font molto più grande (era 1.6rem) */
            line-height: 1.3;
        }
        .card-front {
            background-color: #ffffff;
            color: #212529;
            border: 4px solid #0d6efd; /* Bordo più spesso */
            font-weight: 700;
        }
        .card-back {
            background-color: #0d6efd;
            color: #ffffff;
            transform: rotateY(180deg);
            font-weight: 600;
        }
        
        /* --- CONTROLLI E PULSANTI INGRANDITI --- */
        .controls {
            max-width: 900px;
            margin: 0 auto;
        }
        .controls .btn {
            font-size: 1.25rem;     /* Pulsanti più grandi */
            font-weight: 600;
            padding: 1rem 2rem;
        }
        .progress-text {
            font-size: 1.2rem;      /* Testo di stato più leggibile */
            color: #495057;
            margin-top: 1rem;
            font-weight: 500;
        }

        /* --- SCHERMATA INIZIALE --- */
        .welcome-state h2 {
            font-size: 2.5rem;      /* Titolo più grande */
            font-weight: 700;
        }
        .session-selector .form-select-lg {
            font-size: 1.4rem;
            padding: 1.2rem 1.5rem;
        }
        .session-selector .btn-lg {
            font-size: 1.5rem;
            font-weight: 600;
            padding: 1rem 1.5rem;
        }
        .hint-text {
            font-size: 0.9rem;
            color: #6c757d;
            margin-top: 0.5rem;
        }