/* @Jael Orea para FCS */
@import url('https://fonts.googleapis.com/css2?family=Krub:wght@200;300;400;500;600;700&display=swap');

body,
html {
  font-family: 'Krub', sans-serif;
  margin: 0;
  padding: 0;
  background: linear-gradient(to bottom, #D2E04C, #5EDDC0);
  display: flex;
  flex-direction: column;
  height: 100%;
}

main {
  flex-grow: 1;
  min-height: 600px;
}

/* Layout */
.introduction-align,
.pages,
.index-container03,
#content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.introduction-align {
  justify-content: center;
  height: 100%;
}

.pages {
  max-width: 900px;
  margin: 0 auto;
}

/* Contenedor principal */
.decision-container {
  background-color: #fff;
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  margin-bottom: 5px;
  width: 95%;
}

/* Pregunta y título */
#question-title,
#question-text {
  text-align: center;
}

#question-title {
  margin-top: -5px;
}

#question-text {
  font-size: 1.2rem;
}

.question {
  font-size: 1.2em;
  font-weight: bold;
  margin-bottom: 20px;
  color: black;
  padding-bottom: 10px;
  border-bottom: 2px solid #eee;
}

/* Opciones */
.options {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.option-btn,
.mingle,
div:where(.swal2-container) button:where(.swal2-styled).swal2-confirm {
  font-family: "Open Sans", sans-serif;
  font-size: 16px;
  letter-spacing: 2px;
  color: white;
  background-color: #D94BD5;
  cursor: pointer;
  border: 3px solid black;
  padding: 0.25em 0.5em;
  margin-top: 0;
  font-weight: 600;
  width: 95%;
}

.option-btn:hover,
.mingle:hover,
div:where(.swal2-container) button:where(.swal2-styled).swal2-confirm:hover {
  border: 3px solid #D94BD5;
  background-color: black;
  color: white;
  transform: scale(1.07);
  box-shadow: 0 0 7px 1px #FF1493;
}

/* Navegación */
.back-btn,
.ahead-btn,
.restart-btn {
  background-color: #95a5a6;
  margin-top: 15px;
  width: fit-content;
}

.back-btn:hover,
.ahead-btn:hover {
  background-color: #7f8c8d;
}

.ahead-btn {
  display: inline-block;
  transform: scaleX(-1);
}

.ahead-btn:hover {
    background-color: #7f8c8d;

    display: inline-block;
    transform: scaleX(-1);
}

/* Nodos de decisión */
.decision-node {
  display: none;
  animation: fadeIn 0.5s;
}

.decision-node.active {
  display: block;
}

/* Feedback */

.feedback {
    text-align: left;

    padding: 15px;
    border-radius: 5px;
    margin-top: 5px;
    font-size: 0.9rem;
}

#general-feedback,
.correct,
.incorrect {
  padding: 15px;
  border-radius: 5px;
  margin-top: 5px;
  font-size: 0.9rem;
  text-align: center;
}

.feedback {
  background-color: #e8f4fc;
  border-left: 4px solid #3498db;
}

.correct,
.incorrect {
  font-weight: 500;
  font-size: 1.1rem;
  line-height: 1.5;
  position: relative;
  margin: 15px 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  animation: subtleBounce 0.5s ease;
  background-color: #e8f8f0;
}

.correct {
  border-left: 5px solid #77ff33;
}

.incorrect {
  border-left: 5px solid #ff4f33;
}

.feedback-title {
  font-weight: bold;
  margin-bottom: 10px;
  color: black;
  text-align: center;
}

.path {
  font-size: 0.9em;
  color: #7f8c8d;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px dashed #ddd;
}

/* Ayuda y respuestas */
.hint {
  width: 100%;
  max-width: 80%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

#general-feedback {
  display: none;
  background-color: #e9ecef;
}

#general-feedback-btn {
  margin-top: 10px;
}

#answers {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.answer {
  margin: 5px 0;
  width: 80%;
  font-size: 0.9rem;
  height: 40px;
  cursor: pointer;
}

.answer:hover {
  transform: scale(1.02);
  border-color: #00b4ff;
  box-shadow: 0 0 10px rgba(0, 180, 255, 0.5);
}

/* Imágenes */
.logo {
  width: auto;
  max-width: 200px;
}

/* Footer */
.footer {
  font-size: 0.75rem;
  font-weight: 700;
  margin-top: 20px;
}

/* Animaciones */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes subtleBounce {
  0% { transform: translateY(0); animation-timing-function: ease-out; }
  25% { transform: translateY(-15px); animation-timing-function: ease-in; }
  50% { transform: translateY(0); animation-timing-function: ease-out; }
  65% { transform: translateY(-7px); animation-timing-function: ease-in; }
  80% { transform: translateY(0); animation-timing-function: ease-out; }
  90% { transform: translateY(-3px); animation-timing-function: ease-in; }
  100% { transform: translateY(0); animation-timing-function: ease-out; }
}

/* Media queries */
@media (max-width: 700px) {
  .feedback{
    font-size: 0.75rem;
    text-align: left;
    padding: 5px;
  }
}

@media (max-width: 600px) {
  body {
    padding: 10px;
  }

  .decision-container {
    padding: 15px;
  }

  .logo {
    max-width: 150px;
  }
}

@media (max-width: 350px) {
  .feedback-text {
    font-size: 0.65rem;
    line-height: 1rem;
  }

  .answer {
    font-size: 0.6rem;
  }
}

/* SweetAlert fondo */
/*div:where(.swal2-container).swal2-backdrop-show,
div:where(.swal2-container).swal2-noanimation {
  background: rgba(0, 0, 0, 0.6) !important;
}*/
