/* Reset and basics */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(135deg, #e0f7fa, #e1bee7);
  color: #333;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
}

/* Headings */
h1, h3 {
  font-size: 28px;
  margin-bottom: 20px;
  color: #2c3e50;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
  text-align: center;
}

/* Scoreboard */
#scoreboard {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  width: 100%;
  max-width: 600px;
  background: white;
  padding: 12px;
  margin-bottom: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

#scoreboard p {
  margin: 5px;
  font-size: 14px;
}

/* Question text */
#question {
  font-size: 22px;
  margin-bottom: 15px;
  text-align: center;
}

/* Visual figure */
#figure {
  margin: 15px 0;
  text-align: center;
}

#figure svg {
  max-width: 90%;
  height: auto;
}

/* Choices */
#choices {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 400px;
}

button {
  padding: 14px;
  font-size: 16px;
  border: none;
  border-radius: 8px;
  background: #3498db;
  color: white;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  width: 100%;
  max-width: 400px;
  align-self: center;
}

button:hover {
  background: #2980b9;
  transform: translateY(-2px);
}

button:active {
  transform: translateY(0);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Start button */
#start-button {
  background: #27ae60;
  margin-top: 20px;
}

#start-button:hover {
  background: #219150;
}

/* Feedback */
#feedback {
  margin-top: 12px;
  font-weight: bold;
  min-height: 24px;
  font-size: 16px;
}

#feedback.correct {
  color: #27ae60;
}

#feedback.wrong {
  color: #e74c3c;
}

/* Result section */
#result {
  margin-top: 20px;
  font-size: 18px;
  font-weight: bold;
  text-align: center;
  color: #2c3e50;
}

/* Web3 Wallet Section */
#wallet-section {
  margin-top: 30px;
  padding: 10px;
  border-top: 2px dashed #ccc;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  max-width: 400px;
}

#wallet-section button {
  background-color: #8B4513;
  color: white;
  width: 100%;
  max-width: 300px;
}

#wallet-address {
  text-align: left;
  font-size: 13px;
  margin-top: 8px;
  color: green;
  font-weight: bold;
  word-break: break-all;
}


#wallet-balance {
  color: green;
}

#web3-status {
  color: blue;
  font-style: italic;
}

/* Mobile friendly */
@media (max-width: 600px) {
  h1, h3 {
    font-size: 20px;
  }

  #question {
    font-size: 18px;
  }

  button {
    font-size: 14px;
    padding: 12px;
  }

  #scoreboard p {
    font-size: 12px;
  }
}

/* Modal Animation */
#tokenModal {
  transition: all 0.3s ease;
}

#tokenModal > div {
  animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}