


#game-screen {
    height: auto;
    width: 100%;
    min-height: 100vh;

}


.game-container {
    display: flex;
    flex-direction: column;
    height: auto;
        width: auto;
    min-height: 100vh;
    background-color: #2e7d32;
    width: 100%;

}

.game-content {
    display: flex;
    padding: 0px;
    gap: 0px;
    max-width: 900px;
    width: 100%;
    background-color: #777d77;
    


}

.professor-game {
    flex: 0 0 0px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 100px;
    width: 250px;
}
.nomeProfessora {
    color: rgb(255, 255, 255);
}

.question-container {
    flex: 1;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
   
    gap: 25px;
        width: 600px;
        margin-bottom: 100px;


}

.question-text {
    font-size: 18px;
    line-height: 1.6;
    color: #333;
    background: #f8f9fa;
    padding: 25px;
    border-radius: 15px;
    border-left: 5px solid #4CAF50;
    min-height: 100px;
    display: flex;
    flex-direction: column; /* <-- deixa os elementos em coluna */
    align-items: flex-start; /* <-- alinha à esquerda (opcional) */
    height: auto;
    margin-bottom: 10px;
    margin-top: 10px;
        width: 100%;          /* ocupa 100% do espaço disponível */
         /* mas nunca passa de 550px */
    box-sizing: border-box; /* garante que padding conte dentro da largura */
    word-wrap: break-word; /* quebra palavras grandes */

}

div  {
    width: 100%;
    height: auto;
}

i {
    width: 100%;
}

span {
    width: auto;
}
br {
    width: 100%;
}
.question-text strong {
    font-weight: 700;
    color: #2c3e50;
    
}

.question-text em {
    font-style: italic;
    color: #7f8c8d;

}

.alternatives {
    display: flex;
    flex-direction: column;
    gap: 10px;
margin-bottom: 10px;

}

.alternative {
    display: flex;
    align-items: center;
    background: white;
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    padding: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;

}

.alternative:hover {
    border-color: #4CAF50;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.2);
    transform: translateY(-2px);
}

.alternative.selected {
    border-color: #4CAF50;
    background: linear-gradient(135deg, #e8f5e8, #f1f8e9);
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.alternative.correct {
    border-color: #4CAF50;
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    animation: correctAnswer 0.6s ease;
}

.alternative.wrong {
    border-color: #f44336;
    background: linear-gradient(135deg, #f44336, #d32f2f);
    color: white;
    animation: wrongAnswer 0.6s ease;
}

@keyframes correctAnswer {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes wrongAnswer {
    0% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
    100% { transform: translateX(0); }
}

.alternative-letter {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    margin-right: 20px;
    flex-shrink: 0;
}

.alternative.selected .alternative-letter {
    background: linear-gradient(135deg, #4CAF50, #45a049);
}

.alternative.correct .alternative-letter,
.alternative.wrong .alternative-letter {
    background: rgba(255, 255, 255, 0.2);
}

.alternative-text {
    flex: 1;
    font-size: 16px;
    line-height: 1.5;
    color: #333;
}

.alternative.correct .alternative-text,
.alternative.wrong .alternative-text {
    color: white;
}

.question-actions {
    display: flex;
    justify-content: center;
    padding-top: 20px;
}

.question-actions .btn-primary {
    padding: 10px 10px;
    font-size: 16px;
    font-weight: 600;
}

.startIncorrectReviewQuizBtn {
    width: 30%;
}

/* Quiz Setup Screen */
#quiz-setup-screen {
    background: linear-gradient(135deg, #000000 0%, #764ba2 100%);
    justify-content: start;
    align-items: center;
    text-align: center;
        overflow-y: auto;
                position: fixed;
                height: 100vh;


}

.quiz-setup {
    max-width: 600px;
    padding: 10px;
    margin-top: 30px;
}

.setup-content {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
    text-align: left;
    margin-bottom: 100px;
    max-width: 600px;
    margin-right: 10px;

}

.setup-section {
    margin-bottom: 30px;
}
.setup-section2 {
    margin-bottom: 30px;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.setup-section h3 {
    color: #333;
    font-size: 1.3rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.radio-option {
    display: flex;
    align-items: center;
    padding: 15px;
    background: white;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.radio-option:hover {
    border-color: #4CAF50;
    background: #f8f9fa;
}

.radio-option input[type="radio"] {
    margin-right: 12px;
    transform: scale(1.2);
    accent-color: #4CAF50;
}

.radio-option span {
    font-size: 16px;
    color: #333;
    font-weight: 500;
}










/* Result Screen */
#result-screen {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    height: 100vh;
    display: flex;
    justify-content: top;   /* centraliza na horizontal */
    overflow-y: auto;          /* ativa rolagem vertical */
    align-items: center;   /* 🔥 começa de cima e deixa rolar */
    
}

.result-container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 20px;
    max-width: 500px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
    min-height: 200px;         /* altura mínima, mas pode crescer */
    margin-top: 80px;
    width: 90%;
}

.result-header h2 {
    color: #333;
    font-size: 2rem;
    margin-bottom: 30px;
    font-weight: 700;
}

.result-stats {
    display: flex;
    justify-content: space-around;
    margin-bottom: 40px;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #4CAF50;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 14px;
    color: #666;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.result-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.result-actions .btn-primary,
.result-actions .btn-secondary {
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 600;
}

/* Game Info */
.game-info {
    display: flex;
    gap: 30px;
    align-items: center;
}

.game-info span {
    font-weight: 600;
    color: #333;
    font-size: 16px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .game-content {
        flex-direction: column;
        padding: 0px;
        gap: 20px;
    }
    
    .professor-game {
        flex: none;
        padding-top: 20px;
    }
    
    .question-container {
        padding: 20px;
        gap: 20px;
        width: 90%;
        margin-bottom: 200px;
    }
    .question-text {
        font-size: 16px;
        padding: 20px;
        min-height: 100px;
        width: 100%;
    }
    
    .alternative {
        padding: 15px;
    }
    
    .alternative-letter {
        width: 35px;
        height: 35px;
        font-size: 16px;
        margin-right: 15px;
    }
    
    .alternative-text {
        font-size: 15px;
    }
 
    .result-container {
        padding: 25px;
    }
    
    .result-stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .game-info {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
   
}


/* Loading states */
.question-container.loading {
    opacity: 0.7;
    pointer-events: none;
}

.question-container.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #4CAF50;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Progress indicator */
.progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 20px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #4CAF50, #45a049);
    border-radius: 3px;
    transition: width 0.3s ease;
}

/* Celebration effects */
.celebration {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
}

.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    background: #4CAF50;
    animation: confetti-fall 3s linear infinite;
}

@keyframes confetti-fall {
    0% {
        transform: translateY(-100vh) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}



/* Review Incorrect Questions Screen Styles */
#review-incorrect-screen {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    height: auto;
}

.review-questions-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 0;
}

.review-question-item {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-left: 5px solid #f44336;
    width: 100%;
}
.h2incorretasq {
    color: white;
    background-color: white;
    border-radius: 20px;
    padding: 0px;
    width: 100%;
}

.space50px {
    height: 50px;
}
.review-question-header {
    display: flex;
    justify-content: between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.review-question-number {
    background: #f44336;
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 14px;
}

.review-question-status {
    background: #ffebee;
    color: #c62828;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 500;
}

.review-question-text {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
    color: #333;
    font-weight: 500;
}

.review-alternatives {
    margin-bottom: 20px;
}

.review-alternative {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    margin-bottom: 10px;
    border-radius: 10px;
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
}

.review-alternative.user-selected {
    background: #ffebee;
    border-color: #f44336;
    color: #c62828;
}

.review-alternative.correct-answer {
    background: #e8f5e8;
    border-color: #4caf50;
    color: #2e7d32;
}

.review-alternative.user-selected.correct-answer {
    background: #e8f5e8;
    border-color: #4caf50;
    color: #2e7d32;
}

.review-alternative-letter {
    background: #666;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 15px;
    font-size: 14px;
}

.review-alternative.user-selected .review-alternative-letter {
    background: #f44336;
}

.review-alternative.correct-answer .review-alternative-letter {
    background: #4caf50;
}

.review-alternative-text {
    flex: 1;
    font-size: 15px;
    line-height: 1.4;
}

.review-answer-indicators {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.review-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

.review-indicator.user-answer {
    background: #ffebee;
    color: #c62828;
}

.review-indicator.correct-answer {
    background: #e8f5e8;
    color: #2e7d32;
}

.review-indicator-icon {
    font-size: 16px;
}

.review-explanation {
    background: #f8f9fa;
    border-left: 4px solid #2196f3;
    padding: 15px 20px;
    border-radius: 0 10px 10px 0;
    margin-top: 15px;
}

.review-explanation h4 {
    color: #2196f3;
    margin: 0 0 10px 0;
    font-size: 16px;
    font-weight: 600;
}

.review-explanation p {
    margin: 0;
    line-height: 1.6;
    color: #555;
    font-size: 14px;
}

.review-actions {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    gap: 15px;
    z-index: 1000;
    width: 30%;
}

.review-actions .btn-primary,
.review-actions .btn-secondary {
    padding: 15px 25px;
    border-radius: 25px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.review-actions .btn-primary:hover,
.review-actions .btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}
.review-content {
    margin-bottom: 400px;
}


/* Responsive design for review screen */
@media (max-width: 768px) {
    .review-questions-container {
        padding: 10px;
    }
    
    .review-question-item {
        padding: 20px 15px;
        margin-bottom: 20px;
    }
    
    .review-question-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .review-alternative {
        padding: 10px 12px;
    }
    
    .review-alternative-letter {
        width: 25px;
        height: 25px;
        font-size: 12px;
        margin-right: 10px;
    }
    
    .review-alternative-text {
        font-size: 14px;
    }
    
    .review-actions {
        position: static;
        justify-content: center;
        margin-top: 30px;
        padding: 0 20px;
    }
    
    .review-actions .btn-primary,
    .review-actions .btn-secondary {
        padding: 12px 20px;
        font-size: 14px;
    }

    

    #reviewQuestionsBtn {
        display: none;
    }
       
}

/* Animation for review items */
.review-question-item {
    animation: slideInUp 0.5s ease-out;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Empty state for no incorrect questions */
.no-incorrect-questions {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.no-incorrect-questions h3 {
    color: #4caf50;
    margin-bottom: 15px;
    font-size: 24px;
}

.no-incorrect-questions p {
    font-size: 16px;
    line-height: 1.6;
    max-width: 400px;
    margin: 0 auto;
}

.no-incorrect-questions .celebration-icon {
    font-size: 48px;
    margin-bottom: 20px;
    display: block;
}


@media screen and (max-width: 768px) {
  .game-header {
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    flex-direction: row;     /* garante em linha */
    flex-wrap: nowrap;       /* não deixa quebrar */
    justify-content: space-between;
    align-items: center;
    gap: 10px;               /* espaçamento entre itens */
    box-shadow: 0 0px 10px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 5px 15px;
    height: auto;
    overflow-x: hidden;        /* se apertar muito, adiciona scroll horizontal */
  }

  /* Força os filhos a não ocuparem 100% */
   /* 🔥 aqui estava o problema */

.quiz-setup {
    margin-top: 0px;
}
.setup-content {
        margin-top: 30px;
        margin-right: 0px;
        width: 90%;
        margin-bottom: 200px;
        padding: 30px;
}
#quiz-setup-screen {
padding: 0px;}
.fundoProfessora {
    display: none;
}
.fundoQuestoes {
margin-left: 0px;    width: 100%;
}


}
