@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

.game-bg {
    background: radial-gradient(circle at top left, #ffde59, #ff914d 70%);
    font-family: 'Press Start 2P', cursive, monospace;
    color: #222;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    user-select: none;
}

.game-box {
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    border-radius: 25px;
    padding: 40px 30px;
    max-width: 640px;
    width: 100%;
    box-shadow:
      0 0 15px #ffd93b,
      0 0 30px #ff6f91,
      0 0 40px #ff6f91 inset;
    border: 4px solid #ffd93b;
    color: #ffd93b;
    text-shadow: 0 0 10px #ff6f91, 0 0 20px #ff6f91;
}

.logo-img {
    width: 80%;
    max-width: 450px; /* tamanho máximo */
    margin-bottom: 25px;
    filter: drop-shadow(0 0 6px #ff6f91);
    animation: logo-pulse 3s ease-in-out infinite;
}

@keyframes logo-pulse {
    0%, 100% { filter: drop-shadow(0 0 6px #ff6f91); }
    50% { filter: drop-shadow(0 0 20px #ffd93b); }
}

label {
    font-weight: 700;
    color: #ffd93b;
    text-shadow: 0 0 5px #ff6f91;
    display: block;
    margin-bottom: 8px;
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

input, select, textarea {
    border: 3px solid #ff6f91;
    border-radius: 12px;
    padding: 14px 16px;
    width: 100%;
    margin-bottom: 18px;
    background: #222c44;
    color: #ffd93b;
    font-family: 'Press Start 2P', monospace;
    font-size: 0.85rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: inset 0 0 8px #ff6f91;
}

input:focus, select:focus, textarea:focus {
    border-color: #ffd93b;
    box-shadow: 0 0 12px #ffd93b, inset 0 0 15px #ff6f91;
    outline: none;
}

.is-invalid {
    border-color: #ff3f3f !important;
    box-shadow: 0 0 10px #ff3f3f !important;
    background: #330000cc !important;
    color: #ff3f3f !important;
}

.next-btn, .btn-success {
    border-radius: 50px;
    padding: 14px 36px;
    font-size: 1.3rem;
    font-weight: 700;
    font-family: 'Press Start 2P', monospace;
    box-shadow: 0 0 12px #ff6f91, 0 6px 15px #ff6f91;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.next-btn {
    background: linear-gradient(45deg, #ff6f91, #ffd93b);
    color: #222;
    box-shadow: 0 0 10px #ff6f91, 0 4px 12px #ffd93b;
    user-select: none;
}

.next-btn:hover, .next-btn:focus {
    background: linear-gradient(45deg, #ffd93b, #ff6f91);
    box-shadow: 0 0 20px #ffd93b, 0 0 25px #ff6f91;
    transform: scale(1.05);
}

.btn-success {
    background: linear-gradient(45deg, #00ff6a, #00c851);
    color: #0b3300;
    box-shadow: 0 0 12px #00c851, 0 6px 15px #00ff6a;
}

.btn-success:hover, .btn-success:focus {
    background: linear-gradient(45deg, #00c851, #00ff6a);
    box-shadow: 0 0 25px #00ff6a, 0 0 30px #00c851;
    transform: scale(1.05);
}

.game-step h3 {
    font-size: 1.4rem;
    text-shadow: 0 0 12px #ffd93b;
    margin-bottom: 30px;
    user-select: none;
}

.progress {
    height: 24px !important;
    border-radius: 20px;
    background: #222c44;
    box-shadow: inset 0 0 12px #111a30;
    margin-bottom: 30px;
}

.progress-bar {
    font-family: 'Press Start 2P', monospace;
    font-size: 0.85rem;
    text-shadow: 0 0 8px #ffd93b;
    box-shadow: 0 0 12px #ff6f91;
    background: linear-gradient(45deg, #ff6f91, #ffd93b);
    transition: width 0.7s ease;
    border-radius: 20px;
    text-align: center;
    line-height: 24px;
    user-select: none;
}

/* Estilos para o formulário */
.game-box {
    background-color: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    max-width: 800px;
}

.game-step {
    padding: 1rem;
}

/* Estilos para as perguntas */
.game-step p {
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.game-step label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: normal;
    word-wrap: break-word;
    white-space: normal;
}

/* Para perguntas de múltipla escolha (radio buttons) */
.game-step input[type="radio"] + label,
.game-step input[type="checkbox"] + label {
    display: inline-block;
    margin-left: 0.5rem;
    margin-bottom: 0.8rem;
    cursor: pointer;
    width: calc(100% - 30px); /* Ajuste para o input */
    vertical-align: middle;
}

.game-step input[type="radio"],
.game-step input[type="checkbox"] {
    margin-top: 0.3rem;
    vertical-align: top;
}

/* Estilo para campos de texto e seleção */
.game-step input[type="text"],
.game-step input[type="email"],
.game-step select,
.game-step textarea {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    margin-bottom: 1rem;
}

/* Quebra de linha automática para perguntas longas */
.question-text {
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-wrap: break-word;
    margin-bottom: 1rem;
    line-height: 1.6;
}

/* Espaçamento entre opções de resposta */
.radio-option, .checkbox-option {
    margin-bottom: 0.8rem;
    padding: 0.5rem;
    border-radius: 5px;
    transition: background-color 0.2s;
}

.radio-option:hover, .checkbox-option:hover {
    background-color: #f8f9fa;
}

/* Responsividade */
@media (max-width: 768px) {
    .game-box {
        padding: 1.5rem;
    }
    
    .game-step p, .game-step label {
        font-size: 0.95rem;
    }
}

/* Controla a largura máxima do texto da pergunta */
.question-text {
  max-width: 100%;       /* Para não ultrapassar a largura do container */
  white-space: normal;   /* Permite quebra de linha automática */
  word-wrap: break-word; /* Quebra palavras longas se necessário */
  overflow-wrap: break-word; /* Compatibilidade extra para quebra */
  margin-bottom: 0.5rem; /* Espaçamento abaixo da pergunta */
  padding-right: 10px;   /* Pequeno espaçamento à direita */
  font-weight: 600;      /* Deixa o texto um pouco mais forte */
  line-height: 1.3;      /* Facilita a leitura */
}

/* Se quiser limitar o tamanho do container da pergunta */
.game-step > div.mb-4 {
  max-width: 100%;
  box-sizing: border-box;
}
.game-step > div.mb-4 {
  max-width: 600px; /* ou outro valor que preferir */
  margin-left: auto;
  margin-right: auto;
}
/* Aplica a todos os labels dentro da fase 2 (perguntas) */
#fase2 label {
  max-width: 100%;           /* não ultrapassa container */
  white-space: normal !important; /* força quebra de linha */
  word-wrap: break-word;
  overflow-wrap: break-word;
  display: block;            /* para o label ocupar a linha toda */
  font-weight: 600;          /* opcional, só pra ficar mais legível */
  margin-bottom: 0.25rem;    /* um espacinho embaixo */
}
.question-text {
  white-space: normal !important;
  word-wrap: break-word;
  overflow-wrap: break-word;
  max-width: 100%;
  margin-bottom: 0.5rem;
  font-weight: 600;
}
/* Ajusta o espaçamento geral das perguntas para um pouco mais de "respiro" */
.game-step p {
    margin-bottom: 2rem; /* aumentei um pouco de 1.5rem para 2rem */
    line-height: 1.6;
}

/* Pergunta em texto: deixa com espaçamento mais confortável */
.question-text {
    margin-bottom: 1rem;  /* de 0.5rem para 1rem */
    line-height: 1.5;     /* um pouco mais espaçado que antes */
    font-weight: 600;
    padding-right: 10px;
}

/* Espaçamento entre as opções de resposta - radio e checkbox */
.radio-option, .checkbox-option {
    margin-bottom: 1.2rem; /* um pouco mais espaçado */
    padding: 0.5rem 0.75rem; /* um pouco mais de padding horizontal */
    border-radius: 5px;
    transition: background-color 0.2s;
}

/* Label das perguntas, para não ficar colado nas opções */
label {
    margin-bottom: 0.75rem; /* aumentar um pouco do 0.5rem */
    font-weight: 600;
    white-space: normal !important;
    word-wrap: break-word;
    overflow-wrap: break-word;
    display: block;
}

/* Para inputs radio/checkbox + label alinhados, mantém espaçamento */
.game-step input[type="radio"] + label,
.game-step input[type="checkbox"] + label {
    margin-left: 0.5rem;
    margin-bottom: 1rem; /* aumentar para dar espaçamento entre linhas */
    cursor: pointer;
    width: calc(100% - 30px);
    vertical-align: middle;
}

/* Responsividade - deixa um pouco maior no mobile */
@media (max-width: 768px) {
    .game-step p, .game-step label {
        font-size: 1rem; /* aumentei de 0.95rem para 1rem */
    }

    .radio-option, .checkbox-option {
        margin-bottom: 1.5rem;
        padding: 0.75rem 1rem;
    }
}
/* Campos de formulário */
input, select, textarea {
    border: 3px solid #ff6f91;
    border-radius: 12px;
    padding: 14px 16px;
    width: 100%;
    margin-bottom: 18px;
    background: #222c44;
    color: #ffd93b;
    font-family: 'Press Start 2P', monospace;
    font-size: 1rem; /* Aumentado de 0.85rem para 1rem */
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: inset 0 0 8px #ff6f91;
}

/* Labels */
label {
    font-weight: 700;
    color: #ffd93b;
    text-shadow: 0 0 5px #ff6f91;
    display: block;
    margin-bottom: 8px;
    font-size: 1rem; /* Aumentado de 0.85rem para 1rem */
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Para responsividade */
@media (max-width: 768px) {
    .game-step p, .game-step label {
        font-size: 1rem; /* Aumentado de 0.95rem para 1rem para melhor legibilidade móvel */
    }

    input, select, textarea {
        font-size: 1rem;
    }
}
textarea {
    height: 60px !important; /* Altura menor para caber melhor no formulário */
    max-height: 80px;
    font-size: 0.9rem;
    padding: 8px;
    border-radius: 10px;
    resize: none; /* impede o usuário de redimensionar */
}
.small-textarea {
    height: 60px;
    font-size: 0.9rem;
    padding: 8px;
    border-radius: 10px;
    resize: none;
}
