:root {
  --primary-color: #5acedd;
  --secondary-color: #addabc;
  --button-bg: #0d0f13;
  --button-text: #eee6e6;
}

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

body {
  background: radial-gradient(circle, var(--primary-color) 0%, rgba(255, 255, 255, 1) 100%);
  font-family: 'Poppins', sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

.quiz-container {
  position: relative; 
  z-index: 1; 
  background: #ece9e6;
  border-radius: 10px;
  box-shadow: 0 0 10px 2px rgba(100, 100, 100, 0.1);
  max-width: 600px;
  width: 100%;
  overflow: hidden;
}
.quiz-header,
.quiz-footer {
  padding: 1rem 2rem;
}

.quiz-footer {
  position: relative; 
  z-index: 2; 
  padding: 1rem 2rem;
}

.quiz-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #cbdce9;
  
  box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.5);
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}

.quiz-header h2 {
  font-size: 1.5rem;
}

.quiz-header p {
  background: var(--secondary-color);
  padding: 0.4rem 1rem;
  color: #918585;
  border-radius: 5px;
}

.quiz-body {
  padding: 1.5rem 2rem;
}

.quiz-body h2 {
  padding: 0rem 0;
  font-size: 1.36rem;
  font-weight: 790;
  text-align: justify;
  margin: 0;
}

.quiz-body h1 {
  text-align: center;
  padding-bottom: 20px;
}

.quiz-body ul {
  list-style: none;
  padding: 0;
}

.quiz-body ul li {
  margin: 1rem 0;
  font-size: 1rem;
  border: 1px solid #7a999b;
  padding: 0.7rem;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.quiz-body ul li label {
  cursor: pointer;
  padding: 0 0.4rem;
}

.quiz-body ul li:hover {
  background-color: rgb(187, 178, 164)
}

.quiz-footer button,
.btn {
  position: relative; 
  z-index: 3; 
  margin-bottom: 28px;
  margin-top: 12px;
  padding: 0.6rem 1.5rem;
  outline: none;
  background: var(--button-bg);
  border: 0;
  cursor: pointer;
  font-family: inherit;
  border-radius: 5px;
  color: var(--button-text);
  opacity: 0.9;
  transition: opacity 0.3s ease, background-color 0.3s ease;
}

.quiz-body button {
  display: block;
  margin: 0 auto;
}

.quiz-footer button:hover,
.btn:hover {
  opacity: 1;
  background-color: var(--button-bg);
}

.popup-container {
  position: fixed; 
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 4; 
}

.popup {
  background-color: #96699c;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  z-index: 5; 
}

button {
  background-color: #0d0f13;
  padding: 12px 24px;
  color: #ffffff;
  cursor: pointer;
  border-radius: 5px;
  font-size: 16px;
  border: none;
  transition: background-color 0.3s ease;
}

button:hover {
  background-color: #1a1c20;
}

.correct {
  background-color: lightgreen;
}

.wrong {
  background-color: #e42a2a;
}

#timer {
  font-size: 17px;
  font-weight: bold;
  margin-left: 6px;
  color: #004edf;
  margin-top: 4px;
  text-align: center;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Responsive Styles */
@media screen and (max-width: 768px) {
  .quiz-container {
    max-width: 90%;
  }
  .popup {
    background-color: #a465b4; 
  }
}
