body {
  background: linear-gradient(to right, #00ffff, #ff00ff);
  color: #000;
  margin: 0;
  font-family: "Comic Sans MS", "Courier New", monospace;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: background-color 0.5s, color 0.5s;
}

h1, h2 {
  font-family: "Comic Sans MS", "Courier New", cursive;
  color: #0000aa;
  text-shadow: 2px 2px #ff66ff;
  margin: 20px;
  text-align: center;
}

a {
  color: #0000ee;
  text-decoration: underline;
  font-weight: bold;
}

.body-container {
  display: flex;
  width: 100%;
  max-width: 1500px;
  height: 90vh;
  border: 5px ridge #0000ff;
  background-color: #e0e0ff;
  box-shadow: inset 0 0 20px #9999ff, 5px 5px 0 #cc00cc;
}

.leaderboard-container {
  flex: 1;
  padding: 20px;
  background-color: #f0f8ff;
  border-right: 3px dashed #9900cc;
  overflow-y: auto;
}

#quiz-container {
  flex: 2;
  padding: 20px;
  overflow-y: auto;
  background-color: #eaeaea;
  border-left: 3px dashed #00ccff;
  position: relative;
}

.quiz-ui {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

#question,
#answer {
  font-size: 18px;
  margin-bottom: 10px;
}

#answer {
  padding: 6px;
  border: 2px inset #999;
  background-color: #fff8dc;
  width: 80%;
}

#feedback {
  flex: 1;
  padding-left: 20px;
  text-align: left;
  font-size: 20px;
}

#question-image {
  max-width: 100%;
  margin: 10px 0;
  border: 3px groove #0000cc;
  transition: opacity 0.5s;
  opacity: 1;

}

#question-image.transitioning {
  opacity: 0;
}

#feedback-image {
  max-width: 300px;
  border: 3px outset #cc00cc;
}

#correct-answer {
  font-weight: bold;
  margin-top: 10px;
  background-color: #ccffcc;
  padding: 4px;
  border: 2px dashed #009900;
}

button {
  font-family: 'Comic Sans MS', cursive;
  font-weight: bold;
  padding: 8px 12px;
  margin: 6px;
  color: #fff;
  background: linear-gradient(145deg, #0057e7, #00cfff, #ff00ff);
  border: 2px outset #000080;
  border-radius: 6px;
  box-shadow: 3px 3px 0 #000088;
  cursor: pointer;
  text-shadow: 1px 1px 0 #000;
}

button:hover {
  background: linear-gradient(145deg, #0000cc, #0099ff);
  box-shadow: 1px 1px 0 #000055;
}

#logout-button {
  margin: 10px;
  align-self: flex-end;
}

#suggestions {
  font-family: monospace;
  list-style-type: none;
  padding: 0;
  margin: 0;
  background-color: #ffffe0;
  border: 2px solid #ff00ff;
  max-width: 400px;
  display: none;
  margin-top: 5px;
  position: absolute;
  z-index: 10;
}

#suggestions li {
  padding: 8px;
  cursor: pointer;
  font-size: 14px;
  border-bottom: 1px dotted #ff00ff;
}

#suggestions li:hover {
  background-color: #ffe6ff;
}

marquee.marqueeH1 h1 {
  font-size: 28px;
  font-weight: bold;
  color: 000;
  text-shadow: 2px 2px 5px #0000ff;
}

#leaderboard-table th:first-child,
#leaderboard-table td:first-child {
  border-right: 2px solid #000;
}

#question-image {
  transition: opacity 0.5s ease;
  opacity: 1;
}
#question-image.transitioning {
  opacity: 0;
}
@media (max-width: 600px) {
  /* Mobile-only styles here */
  #question-image {
    max-width: 95vw;
    border-width: 2px;
  }
  .body-container, .quiz-ui, #quiz-container {
    flex-direction: column !important;
    width: 100vw;
    max-width: 100vw;
    min-width: 0;
    padding: 8px;
    box-sizing: border-box;
  }
  input[type="text"], input[type="email"], button {
    width: 100%;
    font-size: 1em;
    margin-bottom: 10px;
  }
  h1, h2 {
    font-size: 1.2em;
    margin: 10px 0;
  }
  #feedback-image {
    max-width: 90vw;
  }
  /* Add more mobile-specific overrides as needed */
}