/* style.css */

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  background: #181c20;
  color: #f4f4f4;
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

#game-container {
  background: #23272b;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.3);
  padding: 2rem 1.5rem;
  max-width: 400px;
  width: 100%;
}

h1, h2 {
  text-align: center;
  margin-bottom: 1rem;
  font-weight: 600;
}

#score {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  text-align: right;
}

#question-text {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  min-height: 3rem;
}

#answers {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

#answers button {
  background: #2d8cff;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 0.75rem;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s;
}

#answers button:focus {
  outline: 2px solid #fff;
  outline-offset: 2px;
  background: #1a5fb4;
}

#answers button[aria-pressed="true"] {
  background: #1a5fb4;
}

#next-btn, #restart-btn {
  width: 100%;
  background: #4caf50;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 0.75rem;
  font-size: 1rem;
  cursor: pointer;
  margin-top: 0.5rem;
  transition: background 0.2s;
}

#next-btn:focus, #restart-btn:focus {
  outline: 2px solid #fff;
  outline-offset: 2px;
  background: #357a38;
}

#end-screen {
  text-align: center;
}

@media (max-width: 500px) {
  #game-container {
    padding: 1rem 0.5rem;
    max-width: 98vw;
  }
  h1 {
    font-size: 1.3rem;
  }
}
