
#questionContainer {
  position: relative;
  min-height: 680px; /* Adjust based on average question height */
}
.question {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 0;
}

.question.active {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}


@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeOut {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(-10px); }
}

.fade-in {
  animation: fadeIn 0.5s ease forwards;
}

.fade-out {
  animation: fadeOut 0.5s ease forwards;
}

.option {
    border: 1px solid #ccc;
    border-radius: 15px;
    padding: 15px;
    margin: 8px 0;
    cursor: pointer;
    background-color: #f9f9f9;
    transition: background-color 0.3s ease, transform 0.2s ease;
    color: #1D2757;
	 font-weight: 700;
}

.option small {
  font-weight: 400; 
  font-size: 0.9em;
  color: #555; /* Optional: subtle color to de-emphasize */
}

.option:hover {
    background-color: #eef0f9;
    transform: scale(1.01);
}

.option.selected {
    background-color:#f9f9f9;
    border-color: #EC7922 ;
    color: #c65e12;
}
.option.selected .small {
    color: #1D2757;
}

.option:active {
    transform: scale(0.98);
	
}

button {
    margin: 10px 5px;
    padding: 10px 20px;
    border: none;
    background-color: #1D2757;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #131b3c;
}

#progressBar {
    background-color: #EC7922!important;
    color: white;
    text-align: center;
    padding: 6px 0;
    border-radius: 5px;
    transition: width 0.3s ease;
	line-height:10px!important;
	font-size:12px!important;
}

canvas {
    max-width: 800px;
    margin: 20px auto;
}

#totalScoreContainer {
    text-align: center;
    margin-top: 20px;
}

#assessment-form {
    width: 500px;
    height: 760px;
}

#resultados {
    width: 600px;
    height: 600px;
}

.clear {
    float: none;
    clear: both;
}

#resultados, #assessment-form {
    max-width: 625px;
    margin: 0 auto;
    padding: 0 15px;
}

@media screen and (max-width: 480px) {
    .option {
        font-size: 14px;
    }

    button {
        width: 100%;
        margin: 10px 0;
    }

    #progressBar {
        font-size: 12px;
    }
}

#spiderChart {
    width: 500px;
    height: 500px;
}
#quizLayout {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 15px;
}

#assessment-form {
    flex: 1;
}

#resultados {
    flex: 1;
}
@media screen and (max-width: 768px) {
  #quizLayout {
    flex-direction: column;
    align-items: stretch; /* full width */
  }

  #assessment-form,
  #resultados {
    width: 100%;
    max-width: 100%;
  }

  #spiderChart {
    width: 100%;
    height: auto;
	margin: 260px 0 50px 0!important;
  }
}
