body {
  background-color: #0d1117;
  color: #f0f6fc;
  font-family: Arial, sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0;
}

.hidden {
  display: none;
}

/* Intro Screen */
#intro {
  text-align: center;
  color: #fff;
  animation: fadeOut 1s ease forwards;
  animation-delay: 3s; /* stays 3s before fading */
}

#intro h1 {
  font-size: 2rem;
}
#intro h1 span {
  color: #58a6ff;
}

.loader {
  margin: 20px auto;
  border: 4px solid #30363d;
  border-top: 4px solid #58a6ff;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
}

/* Fade animation */
@keyframes fadeOut {
  to {
    opacity: 0;
    visibility: hidden;
  }
}

/* Spinner animation */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Main container */
.container {
  background: #161b22;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
  width: 420px;
  text-align: center;
}

h1 {
  margin-bottom: 1rem;
  color: #58a6ff;
}

h2 {
  margin-bottom: 1rem;
  color: #a371f7;
}

button {
  width: 100%;
  padding: 12px;
  margin: 8px 0;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.2s;
}

#btn-add, #save-question { background: #2ea043; color: white; }
#btn-add:hover, #save-question:hover { background: #238636; }

#btn-answer, #submit-quiz { background: #f85149; color: white; }
#btn-answer:hover, #submit-quiz:hover { background: #c93c3c; }

#btn-save { background: #8250df; color: white; }
#btn-save:hover { background: #6639ba; }

#btn-myquizzes { background: #d29922; color: black; }
#btn-myquizzes:hover { background: #a67d18; }

#back-menu, #back-menu2, #back-menu3 {
  background: #30363d;
  color: white;
}
#back-menu:hover, #back-menu2:hover, #back-menu3:hover {
  background: #21262d;
}

input, select {
  width: 100%;
  padding: 10px;
  margin: 6px 0;
  border-radius: 6px;
  border: 1px solid #30363d;
  background: #0d1117;
  color: white;
}

pre {
  text-align: left;
  background: #0d1117;
  padding: 10px;
  border-radius: 6px;
  max-height: 300px;
  overflow-y: auto;
}
