


body {
  font-family: Arial, sans-serif;
  background: #E0E0E0;
  color: #555555;
  margin: 0;
  padding: 0;
  overflow-x: auto;
}


h1 {
  text-align: center;
  padding-top: 12px;
  margin-top: 0px;
  color: #003366;
}


/* Grid container with 4 columns */
.grid-layout {
  display: grid;
  grid-template-columns: 1.3fr 2fr .8fr .9fr;
  gap: 5px;
  padding: 0 20px;
  max-width: 1650px;
  margin: 0 auto 40px auto;
}


/* Sidebar columns styling */
.left-column, .right-column {
  background: #D3D3D3;
  border: 1px solid white;
  border-radius: 12px;
  padding: 0 0 18px 0;
  box-shadow: 0 2px 8px #e3e7ed;
  min-height: 400px;
  font-size: 0.95em;
  text-align: justify;
  color: navy;
  overflow-y: auto;
  /* max-height: 80vh;  Prevent sidebar too tall */
}


/* Quiz column styling */
.quiz-col {
  background: #D3D3D3;
  border: 1px solid white;
  border-radius: 12px;
  padding: 0 0 16px 0;
  box-shadow: 0 2px 8px #e3e7ed;
  color: navy;
  min-width: 0; /* allows shrinking inside grid cells */
  overflow-wrap: break-word; /* wrap long text nicely */
  box-sizing: border-box; /* ensure padding/border do not expand width */
}

*, *::before, *::after {
  box-sizing: border-box;
}


.quiz-header {
  background: #0000FF;
  color: #00FFFF;
  padding: 5px;
  text-align: center;
  font-weight: bold;
  font-size: 1.1em;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  margin-bottom: 8px;
  user-select: none;
}

.quiz-content {
  padding: 10px 20px;

}

#col3 {
  max-width: 240px;
}


.question {
  margin-bottom: 18px;
  padding: 8px 0;
  border-bottom: 1px solid #e3e7ed;
}

.qtext {
  margin-bottom: 6px;
  font-weight: bold;
  font-size: 1em;
  color: navy;
}


/* Wrap the labels in .options to enable shuffle */
.options label {
  display: block;
  margin: 4px 0;
  cursor: pointer;
  color: navy;
}

.options input[type="radio"] {
  margin-right: 8px;
  transform: scale(0.95);
  vertical-align: middle;
}

.feedback {
  font-style: italic;
  margin-top: 6px;
  min-height: 22px;
}

.quiz-summary {
  background: #e3f2fd;
  margin-top: 16px;
  padding: 14px;
  font-weight: bold;
  color: #0000FF;
  border-radius: 6px;
  text-align: center;
  min-height: 50px;
}

.btn-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin: 20px 0 10px;
  padding: 0 12px;
}


.nav-btn, .check-btn, .reset-btn {
  display: flex;               /* Needed for align-items to work */
  align-items: center;         /* Vertically center content */
  justify-content: center;     /* Horizontally center content */
  flex: 1;
  padding: 10px;
  font-weight: bold;
  font-size: 1em;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  color: #fff;
  user-select: none;
}


.nav-btn {
  background: blue;
}

.nav-btn:hover {
  background: #000080;
  color: aqua;
}

.check-btn {
  background-color: green;
}

.check-btn:hover {
  background-color: darkgreen;
  color: aqua;
}

.reset-btn {
  background-color: red;
}

.reset-btn:hover {
  background-color: darkred;
  color: aqua;
}


/* Responsive breakpoint */
@media (max-width: 1100px) {
  .grid-layout {
    display: flex;
    flex-direction: column; /* This stacks everything vertically */
    padding: 10px;
  }

  /* Make sure all columns take up the full width now that they are stacked */
  .left-column, .quiz-col, .right-column, #col3 {
    width: 100%;
    max-width: 100%;
    margin-bottom: 20px;
    display: block; /* Ensures they are visible */
  }
}

a {
  text-decoration: none;
}

a:hover {
  color: #CC5500; /* burnt orange */
}

nav {
  display: block;
  font-size: 14px;
  line-height: 1.70;
  padding-left: 6px;
  padding-right: 5px;
  word-spacing: -2px;
  /*max-height: 78vh;*/
  overflow-y: auto;
}


/* Remove bullet points from all lists in the nav */
nav ul,
nav ul {
  list-style-type: none !important;
  margin: 0;
  padding-left: 0;
}

nav ul ul {
  padding-left: 14px; /* Nested list indent */
}

nav li {
  margin: 0;
  padding: 0;
}

nav li::before {
  content: none !important; /* Remove any pseudo bullet */
}


/* Collapsible styles for details/summary */
nav details {
  margin-bottom: 3px;
  background: #e7edf5;
  border-radius: 6px;
  padding: 2px 8px;
  box-shadow: 0 1px 2px #dbe2ed;
}

nav summary {
  font-weight: bold;
  color: #003366;
  cursor: pointer;
  padding: 1px 0;
  outline: none;
  user-select: none;
}

nav details[open] > summary {
  color: #BE5103;
}

nav a {
  color: navy;
  font-size: 0.98em;
  margin: 0;

  letter-spacing: 1px; /* Widens the space between letters */
  margin-right: 3px;   /* Adds more space after each comma */
  display: inline-block;

}

nav a:hover {
  color: #CC5500;
}

.quiz-btn {
  padding: 4px 8px;
  font-size: 0.85rem;
  border: none;
  background: #1976d2;
  color: #fff;
  border-radius: 4px;
  cursor: pointer;
}
.quiz-btn:disabled {
  background-color: gray;
  cursor: not-allowed;
}
@media (max-width: 600px) {
  .quiz-content {
    max-width: 98vw !important;
  }
  #wheel {
    width: 70vw !important;
    height: 70vw !important;
    min-width: 60px !important;
    max-width: 150px !important;
  }
}

/*  SPIN THE WHEEL GAME */

.slice {
  width: 50%;
  height: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform-origin: 0% 0%;
  clip-path: polygon(0 0, 100% 0, 0 100%);
  border: 1px solid #fff;
}

.slice0 {
  background: #e74c3c;
  transform: rotate(0deg);
}

.slice60 {
  background: #f39c12;
  transform: rotate(60deg);
}

.slice120 {
  background: #27ae60;
  transform: rotate(120deg);
}

.slice180 {
  background: #2980b9;
  transform: rotate(180deg);
}

.slice240 {
  background: #8e44ad;
  transform: rotate(240deg);
}

.slice300 {
  background: #c0392b;
  transform: rotate(300deg);
}

#spinBtn {
  padding: 10px 20px;
  font-size: 1em;
  background: #003366;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

#wheel {
  margin: 0 auto 16px auto;
  width: 100px;
  height: 100px;
  border: 10px solid #003366;
  border-radius: 50%;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 10px #333;
  transition: transform 4s cubic-bezier(0.33, 1, 0.68, 1);
}
#pointer {
  margin: 0 auto 4px auto;
  width: 0;
  height: 0;
  border-left: 18px solid transparent;
  border-right: 18px solid transparent;
  border-bottom: 26px solid #003366;
}

.vocab-quiz-container {
  margin-bottom: 20px;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  background: #c0c2c3;
  min-height: 450px;
  width: fit-content;
}

.vocab-quiz-title {
  font-weight: bold;
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: blue;
}

#scoreDisplay, #wordDisplay {
  font-weight: bold;
  font-size: 1rem;
  color: #1976d2;
  margin-bottom: 5px;
  margin-top: 10px;
}

#wordDisplay {
  margin-bottom: 10px;
  min-height: 1.4em;
  text-align: center;
}

.quiz-btn.full-width {
  width: 100%;
}

#result {
  min-height: 2em;
  font-weight: bold;
  font-size: 0.9rem;
  margin-bottom: 10px;
}

#nextBtn {
  min-height: 2.5em; /* reserve space even when display:none */
  display: block; /* consider display block for height calculation */
  width: 100%;
  background: #4caf50;
}




/* ----------------- START TIMER COMPONENT ----------------- */
.timer-container {
  margin-bottom: 20px;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  background: #c0c2c3;
  width: fit-content;
  overflow: hidden;
}

hr {
  border: none;
  border-top: 1px solid #ccc;
  margin: 18px 0;
}


.timer-title {
  font-weight: bold;
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: #1976d2;
}

.timer-display {
  font-size: 1.4rem;
  font-weight: bold;
  color: #1976d2;
  margin-bottom: 10px;
}

.timer-button-group {
  display: flex;
  justify-content: center;
  gap: 5px;
}

/* Dedicated styles for timer buttons only */
.timer-btn {
  padding: 3px 6px;
  border: none;
  border-radius: 4px;
  background-color: #1976d2;
  color: white;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.3s;
}

.timer-btn:hover {
  background-color: #125a9d;
}
/* ----------------- END TIMER COMPONENT ----------------- */



/* Prevents TEXT SELECTION on the entire site */

/*body {
  -webkit-user-select: none; /* Safari */
 /* -ms-user-select: none;     /* IE 10 and Info */
/*  user-select: none;*/         /* Standard syntax */
/*}*/

/* Optional: Re-enable selection for specific areas, like input fields */

/*input, textarea {
  -webkit-user-select: text;
  -ms-user-select: text;
  user-select: text;
}*/


/* --------------  START LOGO -------------*/


.logo-link {
  display: inline-block;
  margin-left: -60px;
  margin-right: 60px;
  margin-top: -35px;
  text-decoration: underline;
  padding: 2px 5px;         /* Space between the text and the border */
  transition: all 0.1s ease; /* Makes hover effects smooth */
  background-color: none;
}

.logo-link::after {
  content: "QuizLearn"; /* Ensure this text is here */
  font-weight: 525;
  font-size: 1.25em;
  color: navy;
  }

.logo-link:hover::after {
  color: #CC5500;
}

/* ------ END LOGO -------------  */


/* -------------- START FOOTER -------*/

.footer{
  display: block;
  width: 100%;
  text-align: center;
  background: none;
  margin-bottom: 20px;
}

.footer p {
  margin: 5px;
}

/* ------- END FOOTER ------*/

/* ---START SPONSOR---*/

.right-column {
  position: -webkit-sticky; /* For Safari */
  position: sticky;
  top: 10px;
  align-self: flex-start;
}
/* ---END SPONSOR---*/