/* ----------------- Base Styles ----------------- */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(to bottom, #f0f8ff, #e0f7ff);
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

h1 {
  text-align: center;
  color: #ff6f61;
  margin: 20px 0;
}

/* ----------------- Quiz Container ----------------- */
#quizContainer {
  max-width: 900px;
  margin: 20px auto;
  padding: 30px;
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}

/* ----------------- Toggle Buttons ----------------- */
#toggleButtons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 20px;
}

.toggle-btn {
  padding: 12px 25px;
  font-size: 16px;
  cursor: pointer;
  border-radius: 8px;
  border: none;
  background-color: #ffede9;
  transition: all 0.3s;
}

.toggle-btn:hover {
  background-color: #ffccc1;
}

.toggle-btn.active {
  background-color: #ff6f61;
  color: #fff;
  font-weight: bold;
}

/* ----------------- Question & Answers ----------------- */
#question-type {
  text-align: center;
  font-size: 1.1rem;
  font-weight: bold;
  margin-bottom: 10px;
  color: #333;
}

#question {
  font-size: 1.3rem;
  font-weight: 500;
  text-align: center;
  margin-bottom: 20px;
}

.answer-btn {
  display: block;
  width: 100%;
  margin: 8px 0;
  padding: 12px;
  background-color: #ffede9;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s;
}

.answer-btn:hover {
  background-color: #ffccc1;
}

.answer-btn:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

/* ----------------- Feedback & Tip ----------------- */
#feedback {
  text-align: center;
  font-weight: bold;
  margin: 10px 0;
  font-size: 1.1rem;
}

#tip {
  text-align: center;
  font-style: italic;
  color: #555;
  margin-bottom: 20px;
}

/* ----------------- Buttons ----------------- */
#nextBtn, #restartBtn {
  padding: 12px 25px;
  font-size: 16px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  display: block;
  margin: 15px auto;
  transition: all 0.3s;
}

#nextBtn {
  background-color: #ff6f61;
  color: #fff;
}

#restartBtn {
  background-color: #6fc1ff;
  color: #fff;
}

#nextBtn:hover {
  background-color: #e65b50;
}

#restartBtn:hover {
  background-color: #4da0e0;
}

/* ----------------- Progress Bar ----------------- */
#progressContainer {
  width: 100%;
  background-color: #eee;
  border-radius: 10px;
  height: 15px;
  margin-bottom: 20px;
  overflow: hidden;
}

#progress-bar-fill {
  height: 100%;
  width: 0%;
  background-color: #ff6f61;
  transition: width 0.3s;
}

/* ----------------- Results ----------------- */
#result {
  display: none;
  padding: 20px;
  margin-top: 20px;
  background-color: #fff;
  border-radius: 15px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}

.resultItem {
  border-top: 1px solid #ddd;
  padding: 10px 0;
}

#sideNotes {
  position: fixed;
  right: 20px;
  top: 150px; /* below header */
  width: 250px;
  background-color: #fff3e6;
  border: 2px solid #ff6f61;
  border-radius: 12px;
  padding: 15px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.1);
  font-size: 0.9rem;
}

#sideNotes h3 {
  color: #ff6f61;
  margin-top: 0;
}



body {
  background-image: url('https://em-content.zobj.net/source/animated-noto-color-emoji/356/sushi_1f363.png');
  background-repeat: no-repeat;
  background-position: top right;
  background-size: 50px;
}

/* ----------------- Footer ----------------- */
footer {
  text-align: center;
  font-size: 0.9rem;
  color: #777;
  margin-top: auto;
  padding: 20px 0;
}

header {
  position: relative;
  text-align: center;
  padding: 40px 20px;
  background-color: #ff6f61;
  color: white;
  overflow: hidden;
}

header h1 {
  font-size: 3rem;
  margin-bottom: 10px;
}

header p {
  font-size: 1rem;
  margin: 3px 0;
}

/* Floating sushi emojis */
.floating-sushi {
  position: absolute;
  font-size: 2rem;
  animation: float 6s linear infinite;
  opacity: 0.8;
}

/* Random starting positions for each sushi emoji */
.floating-sushi:nth-child(1) { left: 5%; animation-duration: 5s; top: 0; }
.floating-sushi:nth-child(2) { left: 25%; animation-duration: 7s; top: 0; }
.floating-sushi:nth-child(3) { left: 50%; animation-duration: 6s; top: 0; }
.floating-sushi:nth-child(4) { left: 75%; animation-duration: 8s; top: 0; }

/* Float animation */
@keyframes float {
  0% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(15deg); }
  100% { transform: translateY(0) rotate(-15deg); }
}

@media (max-width: 768px) {
  #quickTips[open] {
    display: block;
  }
  #quickTips summary {
    font-weight: bold;
    cursor: pointer;
  }
  #quickTips[open] ul {
    display: none;
  }
  #quickTips summary::after {
    content: ' (tap to open)';
    font-size: 0.8rem;
    color: #666;
  }
}
