/* === General Quiz Container === */
.dryadyne-quiz {
  max-width: 650px;
 /* margin: 0 auto;*/
  font-family: system-ui, sans-serif;
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.dryadyne-quiz h3 {
  text-align: center;
  margin-bottom: 20px;
  color: #003366;
}

/* === Start Screen === */
.dryadyne-quiz-startscreen {
  text-align: center;
  padding: 25px;
  border: 2px solid #003366;
  border-radius: 10px;
  background: #f7f9fc;
  margin-bottom: 20px;
}

 input.dryadyne-cadet-code {
  padding: 8px 10px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 5px;
  width: 70%;
  max-width: 250px;
  margin-top: 10px;
  text-align: center;
}

.dryadyne-quiz-startscreen button.dryadyne-quiz-start {
  margin-top: 15px;
  padding: 10px 22px;
  font-size: 16px;
  background: #003366;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s;
}

.dryadyne-quiz-startscreen button.dryadyne-quiz-start:hover:not(:disabled) {
  background: #004c99;
}

.dryadyne-quiz-startscreen button.dryadyne-quiz-start:disabled {
  background: #ccc;
  cursor: not-allowed;
}

.dryadyne-code-status {
  margin-top: 10px;
  font-weight: bold;
}

/* === Question Layout === */
.dryadyne-quiz-question {
  margin-bottom: 25px;
  padding: 20px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fafafa;
}

.dryadyne-quiz-question p {
  font-size: 17px;
  margin-bottom: 10px;
}

.dryadyne-quiz-question label {
  display: block;
  margin: 6px 0;
  cursor: pointer;
  font-size: 16px;
}

.dryadyne-quiz-question input[type="radio"] {
  margin-right: 8px;
}

/* === Feedback Messages === */
.dryadyne-feedback {
  margin-top: 10px;
  font-weight: bold;
  padding: 8px 12px;
  border-radius: 5px;
}

.dryadyne-feedback.correct {
  background: #e9f9ec;
  color: #007700;
  border: 1px solid #009900;
}

.dryadyne-feedback.incorrect {
  background: #fbe9e9;
  color: #bb0000;
  border: 1px solid #cc0000;
}

/* === Navigation Buttons === */
.dryadyne-quiz-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  gap: 10px;
}

.dryadyne-quiz-controls button {
  flex: 1;
  background: #003366;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 10px 18px;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.2s;
}

.dryadyne-quiz-controls button:hover:not(:disabled) {
  background: #004c99;
}

.dryadyne-quiz-controls button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* === Result Section === */
.dryadyne-quiz-result {
  text-align: center;
  font-size: 18px;
  margin-top: 25px;
  padding: 15px;
  background: #f9f9f9;
  border: 1px solid #eee;
  border-radius: 6px;
}

.dryadyne-cadet-code {
	width: 200px !important;
	margin-right: 15px !important;
}

.dryadyne-quiz-cadet-summary {
  background: #f7f7f7;
  padding: 10px 15px;
  margin: 20px 0;
  border-left: 4px solid #0073aa;
  font-size: 1em;
}

.dryadyne-cadet-progress-wrap {
	margin-bottom: 25px;
}

.dryadyne-progress-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #444;
  background: #fff;
}
.dryadyne-progress-table thead th {
  background: #000;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.dryadyne-progress-table tbody tr:nth-child(odd) {
  background: #f2f2f2;
}
.dryadyne-progress-table th,
.dryadyne-progress-table td {
  padding: 6px;
}


/* === Mobile Adjustments === */
@media (max-width: 600px) {
  .dryadyne-quiz {
    padding: 15px;
  }

  .dryadyne-quiz-startscreen input.dryadyne-cadet-code {
    width: 100%;
  }

  .dryadyne-quiz-controls {
    flex-direction: column;
  }

  .dryadyne-quiz-controls button {
    width: 100%;
  }
}


.dryadyne-quiz-wrapper {
  display: flex;
  flex-wrap: wrap;          /* allows stacking on small screens */
  gap: 20px;                /* space between quiz and ad */
  align-items: flex-start;  /* top-align both sections */
  margin-bottom: 25px;
}

/* Quiz section = 66% width */
.dryadyne-quiz-wrapper .dryadyne-quiz {
  flex: 2;
  max-width: 66%;
}




/* Responsive adjustment for small screens */
@media (max-width: 768px) {
  .dryadyne-quiz-wrapper .dryadyne-quiz {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

. dryadyne-quiz-wrapper {
  display: flex;
  flex-wrap: wrap;          /* allows stacking on small screens */
  gap: 20px;                /* space between quiz and ad */
  align-items: flex-start;  /* top-align both sections */
  margin-bottom: 25px;
}


.dryadyne-quiz-button {
  flex: 1;
  background: #003366;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 10px 18px;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.2s;
}

 input.dryadyne-quiz-user-code {
  padding: 8px 10px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 5px;
  width: 70%;
  max-width: 250px;
  margin-top: 10px;
  text-align: center;
  width: 200px !important;
    margin-right: 15px !important;
}

.dryadyne-quiz-feedback {
    margin-top: 10px;
    font-weight: bold;
    padding: 8px 12px;
    border-radius: 5px;
}

.dryadyne-quiz-feedback.incorrect {
    background: #fbe9e9;
    color: #bb0000;
    border: 1px solid #cc0000;
}

.dryadyne-quiz-feedback.correct {
    background: #e9f9ec;
    color: #007700;
    border: 1px solid #009900;
}