body {
  font-family: 'Poppins', sans-serif;
  background-color: #030712;
  /* deeper dark blue/black */
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  color: #E2E8F0;
}

.container {
  text-align: center;
  padding: 2rem;
  background: #0B1220;
  /* darker blue panel */
  border-radius: 20px;
  box-shadow: 0 0 25px rgba(59, 130, 246, 0.25);
  width: 90%;
  max-width: 500px;
  border: 1px solid rgba(59, 130, 246, 0.3);
  box-shadow: 0 0 35px rgba(56, 189, 248, 0.15);
}

h1 {
  color: #60A5FA;
  /* sky blue */
  text-shadow: 0 0 5px rgba(45, 112, 194, 0.8);
}

#c1 {
  font-family: "Orbitron", sans-serif;
  font-weight: 700;
  font-size: 2rem;
  color: linear-gradient(deg, #49d6e0, #b955f7);

  background: linear-gradient(90deg, #61bcd2, #b955f7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;

  text-shadow: 0 0 500px rgba(150, 197, 255, 0.6),
    0 0 50px rgba(182, 85, 247, 0.5),
    0 0 20px rgba(39, 13, 85, 0.45);
}

#c2 {
  font-size: 1.5rem;
  color: #9569e7;
  font-family: "Orbitron", sans-serif;
  text-shadow: none;

}



h2 {
  color: #3B82F6;
  /* main blue */
  text-shadow: 0 0 10px rgba(59, 130, 246, 0.8);
}

.card {
  background: rgba(8, 12, 24, 0.85);
  /* darker blue glass */
  border-radius: 15px;
  padding: 2rem;
  margin-top: 1rem;
  border: 1px solid rgba(59, 130, 246, 0.25);
}

form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* ✨ More colorful input glow */
input[type="text"],
input[type="password"] {
  padding: 10px;
  border: 2px solid #3B82F6;
  background-color: transparent;
  color: #E2E8F0;
  border-radius: 10px;
  outline: none;
  transition: 0.3s ease;
}

input:focus {
  border-color: #9055f7;
  box-shadow: 0 0 10px rgba(63, 34, 135, 0.5),
    0 0 15px rgba(147, 85, 247, 0.5);
}

/* ✨ Button pop */
button,
.btn {
  background: linear-gradient(90deg, #3B82F6, #06B6D4, #A855F7);
  background-size: 200%;
  color: white;
  font-weight: 600;
  padding: 12px 25px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: 0.4s;
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.5);
}

button:hover {
  background-position: 100%;
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.7);
}

.quiz-container {
  width: 90%;
  max-width: 600px;
  background: #0B1220;
  border: 1px solid rgba(59, 130, 246, 0.35);
  box-shadow: 0 0 25px rgba(59, 130, 246, 0.35);
}

.question {
  background: rgba(3, 7, 18, 0.85);
  /* dark navy */
  border-radius: 10px;
  padding: 15px;
  margin: 10px 0;
  border: 1px solid rgba(96, 165, 250, 0.25);
  transition: transform 0.2s ease;
}

.question:hover {
  transform: scale(1.02);
  box-shadow: 0 0 20px rgba(96, 165, 250, 0.3);
}

.question p {
  color: #60A5FA;
  font-weight: 600;
}

label {
  display: block;
  margin: 5px 0;
  cursor: pointer;
}

input[type="radio"] {
  accent-color: #3B82F6;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  color: #E2E8F0;
}

table,
th,
td {
  border: 1px solid rgba(59, 130, 246, 0.25);
}

th,
td {
  padding: 8px;
}

th {
  background-color: rgba(59, 130, 246, 0.2);
}

tr:nth-child(even) {
  background-color: rgba(11, 18, 32, 0.7);
}

.loading-text {
  font-size: 1.1rem;
  color: #666;
  text-align: center;
  padding: 20px 0;
}

/* ✨ POP gradient border around card */
.card {
  background: rgba(8, 12, 24, 0.85);
  border-radius: 18px;
  padding: 2rem;
  margin-top: 1rem;
  border: 2px solid transparent;
  background-clip: padding-box;
  position: relative;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 18px;
  padding: 2px;
  background: linear-gradient(135deg, #3B82F6, #38BDF8, #A855F7);
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}



/* Green Submit Button */
#submit {
  background: #044826 !important;
  /* green */
  background-size: 100% !important;
  box-shadow: 0 0 10px rgba(14, 96, 112, 0.4);
}

button.submit-green:hover {
  box-shadow: 0 0 20px rgba(34, 197, 94, 0.7);
  transform: scale(0.03);
}

/* Minimal Border Level Buttons */
.level-buttons .btn {
  display: flex;
  flex-direction: column;
  /* stack buttons vertically */
  gap: 15px;
  /* spacing between buttons */
  margin-top: 25px;
  /* spacing from leaderboard */
  align-items: center;
  background: transparent !important;
  border: 2px solid #3B82F6;
  color: #3B82F6;
  box-shadow: none;
  font-weight: 600;
  transition: 0.3s ease;
}

.level-buttons .btn:hover {

  background: rgba(59, 130, 246, 0.15);
  color: #60A5FA;
  border-color: #60A5FA;
  transform: scale(1.05);

}


/*new*/
/* Clean button link for result page */
.result-btn {
  display: inline-block;
  margin-top: 20px;
  /* spacing from table */
  padding: 12px 25px;
  text-decoration: none;
  /* removes underline */
  background: linear-gradient(90deg, #9f3bf6, #06B6D4);
  color: white;
  border-radius: 10px;
  font-weight: 600;
  box-shadow: 0 0 10px rgba(146, 59, 246, 0.4);
  transition: 0.3s ease;
}

.result-btn:hover {
  box-shadow: 0 0 15px rgba(121, 30, 219, 0.7);
  transform: translateY(-2px);
}

#leaderboard {
  margin-bottom: 25px;
  /* pushes button down */
}

/* Navigation Bar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1rem 2rem;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 20px;
  background: rgba(11, 18, 32, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(59, 130, 246, 0.2);
  z-index: 1000;
  box-sizing: border-box;
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #E2E8F0;
  font-weight: 500;
}

.user-avatar {
  width: 35px;
  height: 35px;
  background: linear-gradient(135deg, #3B82F6, #A855F7);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: white;
  font-size: 1.2rem;
}

.logout-btn {
  background: transparent;
  border: 1px solid #ef4444;
  color: #ef4444;
  padding: 8px 16px;
  font-size: 0.9rem;
  border-radius: 8px;
  box-shadow: none;
}

.question:hover {
  transform: scale(1.02);
  box-shadow: 0 0 20px rgba(96, 165, 250, 0.3);
}

.question p {
  color: #60A5FA;
  font-weight: 600;
}

label {
  display: block;
  margin: 5px 0;
  cursor: pointer;
}

input[type="radio"] {
  accent-color: #3B82F6;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  color: #E2E8F0;
}

table,
th,
td {
  border: 1px solid rgba(59, 130, 246, 0.25);
}

th,
td {
  padding: 8px;
}

th {
  background-color: rgba(59, 130, 246, 0.2);
}

tr:nth-child(even) {
  background-color: rgba(11, 18, 32, 0.7);
}

.loading-text {
  font-size: 1.1rem;
  padding: 20px 0;
}

/* ✨ POP gradient border around card */
.card {
  background: rgba(8, 12, 24, 0.85);
  border-radius: 18px;
  padding: 2rem;
  margin-top: 1rem;
  border: 2px solid transparent;
  background-clip: padding-box;
  position: relative;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 18px;
  padding: 2px;
  background: linear-gradient(135deg, #3B82F6, #38BDF8, #A855F7);
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}



/* Green Submit Button */
#submit {
  background: #044826 !important;
  /* green */
  background-size: 100% !important;
  box-shadow: 0 0 10px rgba(14, 96, 112, 0.4);
}

button.submit-green:hover {
  box-shadow: 0 0 20px rgba(34, 197, 94, 0.7);
  transform: scale(0.03);
}

/* Minimal Border Level Buttons */
.level-buttons .btn {
  display: flex;
  flex-direction: column;
  /* stack buttons vertically */
  gap: 15px;
  /* spacing between buttons */
  margin-top: 25px;
  /* spacing from leaderboard */
  align-items: center;
  background: transparent !important;
  border: 2px solid #3B82F6;
  color: #3B82F6;
  box-shadow: none;
  font-weight: 600;
  transition: 0.3s ease;
}

.level-buttons .btn:hover {

  background: rgba(59, 130, 246, 0.15);
  color: #60A5FA;
  border-color: #60A5FA;
  transform: scale(1.05);

}


/*new*/
/* Clean button link for result page */
.result-btn {
  display: inline-block;
  margin-top: 20px;
  /* spacing from table */
  padding: 12px 25px;
  text-decoration: none;
  /* removes underline */
  background: linear-gradient(90deg, #9f3bf6, #06B6D4);
  color: white;
  border-radius: 10px;
  font-weight: 600;
  box-shadow: 0 0 10px rgba(146, 59, 246, 0.4);
  transition: 0.3s ease;
}

.result-btn:hover {
  box-shadow: 0 0 15px rgba(121, 30, 219, 0.7);
  transform: translateY(-2px);
}

#leaderboard {
  margin-bottom: 25px;
  /* pushes button down */
}

/* Navigation Bar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1rem 2rem;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 20px;
  background: rgba(11, 18, 32, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(59, 130, 246, 0.2);
  z-index: 1000;
  box-sizing: border-box;
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #E2E8F0;
  font-weight: 500;
}

.user-avatar {
  width: 35px;
  height: 35px;
  background: linear-gradient(135deg, #3B82F6, #A855F7);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: white;
  font-size: 1.2rem;
}

.logout-btn {
  background: transparent;
  border: 1px solid #ef4444;
  color: #ef4444;
  padding: 8px 16px;
  font-size: 0.9rem;
  border-radius: 8px;
}

.question:hover {
  transform: scale(1.02);
  box-shadow: 0 0 20px rgba(96, 165, 250, 0.3);
}

.question p {
  color: #60A5FA;
  font-weight: 600;
}

label {
  display: block;
  margin: 5px 0;
  cursor: pointer;
}

input[type="radio"] {
  accent-color: #3B82F6;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  color: #E2E8F0;
}

table,
th,
td {
  border: 1px solid rgba(59, 130, 246, 0.25);
}

th,
td {
  padding: 8px;
}

th {
  background-color: rgba(59, 130, 246, 0.2);
}

tr:nth-child(even) {
  background-color: rgba(11, 18, 32, 0.7);
}

.loading-text {
  font-size: 1.1rem;
  color: #666;
  text-align: center;
  padding: 20px 0;
}

/* ✨ POP gradient border around card */
.card {
  background: rgba(8, 12, 24, 0.85);
  border-radius: 18px;
  padding: 2rem;
  margin-top: 1rem;
  border: 2px solid transparent;
  background-clip: padding-box;
  position: relative;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 18px;
  padding: 2px;
  background: linear-gradient(135deg, #3B82F6, #38BDF8, #A855F7);
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* Green Submit Button */
#submit {
  background: #044826 !important;
  /* green */
  background-size: 100% !important;
  box-shadow: 0 0 10px rgba(14, 96, 112, 0.4);
}

button.submit-green:hover {
  box-shadow: 0 0 20px rgba(34, 197, 94, 0.7);
  transform: scale(1.03);
}

/* Minimal Border Level Buttons Container */
.level-buttons {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 25px;
  align-items: center;
  width: 100%;
}

/* Common Button Styles */
.btn-beginner,
.btn-intermediate,
.btn-hard {
  display: block;
  width: 100%;
  max-width: 300px;
  padding: 12px 25px;
  border-radius: 8px;
  /* Boxy but slightly rounded */
  text-decoration: none;
  font-weight: 600;
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid;
  color: white;
  /* White text as requested */
  box-sizing: border-box;
}

/* Difficulty Buttons Specifics */
.btn-beginner {
  background: rgba(34, 197, 94, 0.1);
  /* Light Green */
  border-color: #22c55e;
}

.btn-beginner:hover {
  background: rgba(34, 197, 94, 0.25);
  box-shadow: 0 0 15px rgba(34, 197, 94, 0.3);
  transform: translateY(-2px);
}

.btn-intermediate {
  background: rgba(234, 179, 8, 0.1);
  /* Light Yellow/Orange */
  border-color: #eab308;
}

.btn-intermediate:hover {
  background: rgba(234, 179, 8, 0.25);
  box-shadow: 0 0 15px rgba(234, 179, 8, 0.3);
  transform: translateY(-2px);
}

.btn-hard {
  background: rgba(239, 68, 68, 0.1);
  /* Light Red */
  border-color: #ef4444;
}

.btn-hard:hover {
  background: rgba(239, 68, 68, 0.25);
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.3);
  transform: translateY(-2px);
}

/* Clean button link for result page */
.result-btn {
  display: inline-block;
  margin-top: 20px;
  /* spacing from table */
  padding: 12px 25px;
  text-decoration: none;
  /* removes underline */
  background: linear-gradient(90deg, #9f3bf6, #06B6D4);
  color: white;
  border-radius: 10px;
  font-weight: 600;
  box-shadow: 0 0 10px rgba(146, 59, 246, 0.4);
  transition: 0.3s ease;
}

.result-btn:hover {
  box-shadow: 0 0 15px rgba(121, 30, 219, 0.7);
  transform: translateY(-2px);
}

#leaderboard {
  margin-bottom: 25px;
  /* pushes button down */
}

.logout-btn:hover {
  background: rgba(239, 68, 68, 0.1);
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.3);
  transform: translateY(-1px);
}