@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');

* { box-sizing: border-box; }

body {
  margin: 0;
  background: radial-gradient(#ffffff, #dcdcdc);
  font-family: 'Roboto', sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
  color: #00188a;
}

html {
  cursor: url("https://raw.githubusercontent.com/WebDevSimplified/Mix-Or-Match/master/Assets/Cursors/Ghost.cur"), auto;
}

/* --- TELA INICIAL --- */
#tela-inicial {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100vh;
  padding: 20px;
}

#tela-inicial .logo-container img {
  max-width: 450px;
  width: 90%;
}

@media (max-width: 600px) {
  #tela-inicial .logo-container img {
    max-width: 500px;
    width: 95%;
  }
  #botao-iniciar { margin-top: 70px; }
}

#botao-iniciar {
  margin-top: 60px;
  padding: 18px 70px;
  font-size: 2.4em;
  background: #f35096;
  color: #ffffff;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  font-weight: bold;
  box-shadow: 0 6px 20px rgba(0,0,0,0.4);
  transition: transform 0.2s;
}

#botao-iniciar:hover { transform: scale(1.08); }

@media (max-width: 600px) {
  #botao-iniciar { font-size: 2.2em; padding: 16px 60px; }
}

/* Classe utilitária para esconder */
.escondido { display: none !important; }

/* --- NOVA TELA: MENU DE TEMAS --- */
#tela-temas {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 20px;
}

.titulo-menu {
  color: #00188a;
  margin: 20px 0 30px 0;
  font-size: 2em;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
  text-align: center;
}

.menu-botoes {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  max-width: 400px;
  align-items: center;
}

.btn-tema {
  width: 100%;
  padding: 18px 20px;
  font-size: 1.6em;
  background: #f35096;
  color: #00188a;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  font-weight: bold;
  box-shadow: 0 6px 20px rgba(0,0,0,0.4);
  transition: transform 0.2s, background 0.2s;
}

.btn-tema:hover {
  transform: scale(1.05);
  background: #ff6cb1;
}

/* Estilo para botão bloqueado (já jogado) */
.btn-tema.bloqueado {
  background: #555;
  color: #aaa;
  cursor: default;
  transform: none !important;
  box-shadow: none;
  border: 2px solid #777;
}

/* --- TELA DO JOGO (TRIVIA) --- */
.jogo-logo {
  text-align: center;
  margin: 30px auto 20px;
}

.jogo-logo img {
  max-width: 420px;
  width: 100%;
}

@media (max-width: 600px) {
  .jogo-logo img { max-width: 300px; width: 100%; }
}

/* INFO SUPERIOR */
.trivia-info {
  max-width: 580px;
  margin: 0 auto 30px;
  padding: 0 15px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.game-info {
  font-size: 1.5em;
  background: #00178a1e;
  padding: 10px 20px;
  border-radius: 50px;
  flex: 1;
  text-align: center;
}

@media (max-width: 600px) {
  .trivia-info { max-width: 500px; }
  .game-info { font-size: 1.4em; }
}

/* CONTAINER DAS PERGUNTAS */
.trivia-container {
  max-width: 700px;
  margin: 0 auto;
  padding: 20px;
  text-align: center;
}

#pregunta-text {
  font-size: 2em;
  margin-bottom: 40px;
  line-height: 1.4;
}

.opciones {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 40px;
}

.opcion {
  padding: 20px;
  font-size: 1.6em;
  background: rgba(255,255,255,0.1);
  color: #00188a;
  border: 3px solid #f35096;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s;
}

.opcion:hover {
  background: rgba(255,197,69,0.2);
  transform: scale(1.03);
}

.opcion.correcta {
  background: #4ecdc4 !important;
  border-color: #4ecdc4;
}

.opcion.incorrecta {
  background: #ff6b6b !important;
  border-color: #ff6b6b;
}

.opcion:disabled {
  cursor: not-allowed;
  opacity: 0.8;
}

#siguiente-btn {
  padding: 15px 50px;
  font-size: 1.8em;
  background: #f35096;
  color: #ffffff;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  font-weight: bold;
}

/* POPUP FINAL */
.popup-modal {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.85);
  justify-content: center;
  align-items: center;
  z-index: 1000;
  padding: 20px;
}

.popup-modal.active { display: flex; }

.popup-content {
  background: #ffffff;
  padding: 40px;
  border-radius: 50px;
  text-align: center;
  border: 4px solid #f35096;
  max-width: 90%;
  box-shadow: 0 10px 30px rgba(0,0,0,0.6);
}

.popup-content h2 {
  font-size: 3.2em;
  color: #f35096;
  margin-bottom: 20px;
}

.popup-content p {
  font-size: 1.8em;
  margin: 15px 0;
}

.btn-popup {
  margin-top: 30px;
  padding: 15px 50px;
  font-size: 1.8em;
  background: #f35096;
  color: #00188a;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  font-weight: bold;
}

/* Responsividade Geral */
@media (max-width: 600px) {
  #pregunta-text { font-size: 1.7em; }
  .opcion { font-size: 1.4em; padding: 18px; }
  .popup-content h2 { font-size: 2.8em; }
  .popup-content p { font-size: 1.6em; }
  .btn-tema { font-size: 1.4em; padding: 15px; }
}

.btn-tema.bloqueado {
  background: #555 !important;
  color: #aaa !important;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}