/* Reset */
* { margin: 0; padding: 0; box-sizing: border-box; }

/* Body */
body {
  font-family: 'Segoe UI', sans-serif;
  background-image: url('https://images.pexels.com/photos/8409850/pexels-photo-8409850.jpeg');
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-position: center;
  color: #333;
  padding: 20px;
}

/* Overlay */
main section {
  max-width: 800px;
  margin: auto;
  padding: 20px;
}


/* Header */
header { text-align: center; margin-bottom: 20px; }
header h1 { font-size: 2.5em; color: #2c3e50; }
.welcome-message {
  font-size: 1.2em; margin-top: 10px;
  background: #e8f5e9; padding: 12px;
  border-radius: 6px; display: inline-block;
}

/* Nav Buttons */
.nav-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.nav-buttons button {
  padding: 10px 15px;
  font-size: 1rem;
  border-radius: 5px;
}

/* Sections */
section {
  margin: 20px auto; padding: 20px;
  background: white; border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
section h2 { margin-bottom: 15px; color: #2c3e50; }

/* Forms */
form label { display: block; margin-top: 10px; font-weight: bold; }
form input {
  width: 100%; padding: 8px; margin-top: 5px;
  border: 1px solid #ccc; border-radius: 6px;
}
form button {
  margin-top: 15px; padding: 10px 15px;
  background: #3498db; color: white;
  border: none; border-radius: 6px; cursor: pointer;
}
form button:hover { background: #2980b9; }

/* Quiz Options */
#quizContainer button {
  display: block; width: 100%; margin: 8px 0;
  padding: 10px; background: #f39c12; color: white;
  border: none; border-radius: 6px; cursor: pointer;
}
#quizContainer button:hover { background: #e67e22; }

/* Results */
#scoreDisplay { font-size: 1.3em; font-weight: bold; margin-bottom: 10px; color: #27ae60; }
#correctAnswers p { margin: 5px 0; }

/* Profile */
#profileSection {
  margin-top: 20px; padding: 15px;
  background: #f9f9f9; border-radius: 8px;
  text-align: center; box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
#profileInfo { font-size: 1.1em; color: #2c3e50; margin-bottom: 10px; }
#deleteAccountBtn {
  background: #e74c3c; color: white;
  border: none; padding: 8px 12px;
  border-radius: 6px; cursor: pointer;
}
#deleteAccountBtn:hover { background: #c0392b; }

/* Logout */
#logoutBtn {
  background: #e74c3c; color: white;
  display: none; /* hidden until login */
}
#logoutBtn:hover { background: #c0392b; }

/* Footer */
footer { text-align: center; margin-top: 30px; font-size: 0.9em; color: #777; }
#quizList {
  list-style: none;
  padding: 0;
}
/* quize listing*/
#quizList li {
  margin: 10px 0;
  padding: 10px;
  background: #f4f4f4;
  border-radius: 6px;
}

#quizList button {
  margin-left: 10px;
  padding: 6px 12px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

#quizList button:first-of-type {
  background: #3498db;
  color: white;
}

#quizList button:first-of-type:hover {
  background: #2980b9;
}

#quizList button:last-of-type {
  background: #f39c1;;
  color: white;
}

#quizList button:last-of-type:hover {
  background: #c0392b;
}
/* Mobile screens */
@media (max-width: 600px) {
  header h1 {
    font-size: 1.6em;
    text-align: center;
  }

  .welcome-message {
    font-size: 1em;
    padding: 8px;
    text-align: center;
  }

  .nav-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .nav-buttons button {
    width: 100%;
    margin-bottom: 8px;
  }

  section {
    padding: 15px;
  }

  #quizContainer button {
    display: block;
    width: 100%;
    margin: 5px 0;
  }
}



