


/*body {
  font-family: Arial, sans-serif;
  background: #E0E0E0;
  color: #555555;
  margin: 0;
  padding: 0;
  overflow-x: auto;
}*/

body {
  font-family: Arial, sans-serif;
  background: #ffffff; /* Pure white */
  color: #1a1a1a;      /* Dark gray/black for high readability */
  margin: 0;
  padding: 0;
  overflow-x: auto;
}


h1 {
  text-align: center;
  padding-top: 6px;
  margin-top: 0px;
  margin-bottom: -10px;
  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 */
 .right-column {
  background: #D3D3D3;
  border: 1px solid white;
  border-radius: 12px;
  padding: 0 0 18px 0;
  box-shadow: 0 2px 8px #e3e7ed;
  max-height: 690px;
  font-size: 0.95em;
  text-align: justify;
  overflow-y: hidden;
  /*max-height: 93.1vh; Prevent sidebar too tall */
}

.left-column {
  background: #D3D3D3;
  border: 1px solid white;
  border-radius: 12px;
  padding: 0 0 18px 0;
  box-shadow: 0 2px 8px #e3e7ed;
  max-height: 690px;
  max-height: 93.1vh;
  font-size: 0.95em;
  text-align: justify;
  overflow-y: hidden;
  }





/* 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: white;
  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:visited {
  color: white;
}

.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:visited {
  color: gray;
}


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: #a9a9a9;
  cursor: pointer;
  padding: 1px 0;
  outline: none;
  user-select: none;
}*/

nav summary {
  font-weight: bold;
  color: #333333; /* Darker gray for higher contrast */
  cursor: pointer;
  padding: 1px 0;
  outline: none;
  user-select: none;

}


nav details[open] > summary {
  color:navy;
  text-decoration: underline;
}

/*nav a {
  color: gray;
  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 {
  color: #333333; /* Darker gray for contrast */
  font-size: 1em; /* Standardize size */
  padding: 12px 8px; /* Expands hit area vertically and horizontally */
  display: inline-block;
  text-decoration: none;
}

nav a:hover {
  color: #CC5500;
}

/* The 'chosen' class for the active link */
.chosen {
  font-weight: bold;
  color: #673ab7 !important; /* Your brand purple */
  text-decoration: underline;
  padding-left: 5px;
}


.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 ----------------- */



/* --------------  START LOGO -------------*/


   /* THE LOGO STYLES */
 .logo-link {
   text-decoration: none;
   display: inline-block;
   vertical-align: middle;
 }

.logo-box {
  position: relative;
  display: inline-block;
  width: 110px;
  height: 45px;
  user-select: none;
}

.char-q, .char-L {
  display: inline-block;
  font-family: "Liberation Sans", Arial, sans-serif;
  font-size: 40px;
  font-weight: bold;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.2px #aaa; /* Brushed aluminum gray */
}

.char-q {
  margin-right: -14px;
  position: relative;
  z-index: 1;
  text-transform: lowercase;
  text-shadow: -1px -1px 1px rgba(255,255,255,0.5), 1px 1px 2px rgba(0,0,0,0.8);
}

.char-L {
  position: relative;
  z-index: 2;
  text-transform: uppercase;
  text-shadow: -1px -1px 1px rgba(255,255,255,0.5), 1px 1px 2px rgba(0,0,0,0.8);
}

.logo-text {
  font-family: Tahoma, "Segoe UI", sans-serif;
  font-size: 16px;
  font-weight: bold;
  color: #666; /* The darker "winner" gray */
  position: absolute;
  left: 30px;
  top: 7px;
  z-index: 3;
  letter-spacing: 0.4px;
}


.logo-text:hover {
  color: #BE5103;
}
.char-L:hover{
  color: #BE5103;
}
.char-q:hover{
  color: #BE5103;
}


  /* THE HORIZONTAL BAR: allows different height for search and logo */

.instruction-bar {
  display: grid;
  /* Col 1: Logo width | Col 2: Text width | Col 3: Search width */
  grid-template-columns: 110px auto auto;
  column-gap: 20px;
  align-items: end; /* Default everything to the bottom */
  padding-left: 50px;
  height: 60px;     /* Fixed height gives you room to move things */
}


.logo-link {
  text-decoration: none;
  /* This pushes the logo to the TOP of the grid cell */
  align-self: start;
  margin-top: 2px;
}

.instruction-text {
  color: blue;
  font-weight: 500;
  /* This keeps the text at the BOTTOM of the grid cell */
  align-self: end;
  padding-bottom: 5px; /* Fine-tune the "drop" distance */
}

.search-form {
  display: inline;
  /* This keeps the search box at the BOTTOM */
  align-self: end;
  padding-bottom: 3px;
}


/* ------ END LOGO -------------  */



/* -------------- START FOOTER -------*/

.footer{
  display: block;
  width: 100%;
  text-align: center;
  background: none;
  margin-bottom: 15px;

}

.footer p {
  margin: 5px;
}

/* ------- END FOOTER ------*/

/* ---START SPONSOR---*/

.right-column {
  position: -webkit-sticky; /* For Safari */
  color: #fff;
  position: sticky;
  top: 10px;
  align-self: flex-start;
}
/* ---END SPONSOR---*/

