/* ================== GLOBAL ================== */
body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
  color: #fff;
  min-height: 100vh;
  text-align: center;
  display: flex;
  flex-direction: column;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #06141b;
  padding: 10px 20px;
}

.nav-left a {
  margin-right: 10px;
}

.nav-icon {
  width: 30px;
  transition: transform 0.2s;
}

.nav-icon:hover {
  transform: scale(1.1);
}

.brand {
  font-size: 1.5rem;
  font-weight: bold;
}

.brand .blue { color: #00bfff; }
.brand .white { color: #fff; }
.brand .yellow { color: #ffdd00; }

.container {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  padding: 20px;
}

#backBtn {
  align-self: flex-start;
  margin-bottom: 10px;
  padding: 5px 10px;
  background-color: #06141b;
  border: 1px solid #00bfff;
  color: #00bfff;
  cursor: pointer;
  border-radius: 5px;
}

#backBtn:hover {
  background-color: #00bfff;
  color: #06141b;
}

h1 {
  margin: 20px 0;
  font-size: 2rem;
}

#score {
  font-size: 1.2rem;
  margin-top: 10px;
  position: relative;
  display: inline-block;
  font-weight: bold;
  margin-bottom: 15px;
  padding: 6px 16px;
  border-radius: 8px;
  background: rgba(0,0,0,0.4);
  color: #fff;
  transition: transform 0.3s, background 0.3s, color 0.3s;
}
#score.correct {
  background: #00ff99;
  color: #06141b;
  transform: scale(1.2);
}
#score.incorrect {
  background: #ff4444;
  color: #fff;
  transform: scale(1.5);
}


/* ================== TIMER ================== */
#timerContainer {
  width: 100%;
  max-width: 400px;
  margin: 15px auto;
  text-align: center;
  font-family: 'Poppins', sans-serif;
}

#timerCount {
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 5px;
  color: #00ff99;
}

#timerBar {
  width: 100%;
  height: 18px;
  background: rgba(255,255,255,0.2);
  border-radius: 9px;
  overflow: hidden;
}

#timerBarInner {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, #00ff99, #00bfff);
  transition: width 1s linear, background 1s linear;
}

/* ================== CLUB IMAGE ================== */
#clubImg {
  max-width: 200px;
  margin: 20px 0;
}

/* ================== OPTIONS ================== */
#optionsContainer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 10px;
}

.option-btn {
  margin: 5px;
  padding: 10px 20px;
  background-color: #06141b;
  border: 1px solid #00bfff;
  color: #fff;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.2s;
}

.option-btn:hover {
  background-color: #00bfff;
  color: #06141b;
}

/* ================== ANSWER INPUT ================== */
#answerContainer {
  margin-top: 15px;
}

#answerInput {
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid #00bfff;
  background-color: #06141b;
  color: #fff;
  width: 200px;
}

#submitAnswer {
  padding: 8px 15px;
  margin-left: 10px;
  background-color: #06141b;
  border: 1px solid #00bfff;
  color: #00bfff;
  border-radius: 8px;
  cursor: pointer;
}

#submitAnswer:hover {
  background-color: #00bfff;
  color: #06141b;
}

/* ================== MESSAGE ================== */
#message {
  margin-top: 15px;
  font-size: 1.1rem;
  min-height: 24px;
}

/* ================== MODAL ================== */
#configModal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 100;
}

#configContent {
  background-color: #06141b;
  padding: 30px;
  border-radius: 12px;
  width: 90%;
  max-width: 400px;
  text-align: center;
  color: #fff;
}

.time-btn, .difficulty-btn, #startGameBtn {
  padding: 8px 15px;
  margin: 5px;
  border: 1px solid #00bfff;
  background-color: #06141b;
  color: #00bfff;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.2s;
}

#startGameBtn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.time-btn.selected, .difficulty-btn.selected {
  background-color: #00bfff;
  color: #06141b;
}

.time-btn:hover, .difficulty-btn:hover, #startGameBtn:hover {
  background-color: #00bfff;
  color: #06141b;
}

/* ================== FOOTER ================== */
footer {
  background-color: #06141b;
  padding: 15px 20px;
  color: #fff;
  font-size: 0.9rem;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  align-items: center;
}

.footer-left a {
  color: #00bfff;
  text-decoration: none;
}

.footer-left a:hover {
  text-decoration: underline;
}
