/* Reset / Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f4f8fb;
  color: #222;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 20px;
}

header {
  text-align: center;
  margin-bottom: 30px;
}

.avatar {
  width: 120px;
  height: auto;
  display: block;
  margin: 0 auto 15px;
}

header h1 {
  font-size: 2rem;
  margin-bottom: 5px;
  color: #00457c;
}

.tagline {
  font-style: italic;
  color: #333;
  font-size: 1rem;
}

.form-card {
  background: white;
  border-radius: 12px;
  padding: 30px;
  max-width: 450px;
  width: 100%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  margin-top: 10px;
}

.form-card h2 {
  text-align: center;
  margin-bottom: 20px;
  color: #00457c;
}

form label {
  display: block;
  margin-top: 15px;
  font-weight: 600;
}

form input {
  width: 100%;
  padding: 10px;
  margin-top: 5px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

button[type="submit"] {
  margin-top: 20px;
  padding: 12px;
  width: 100%;
  border: none;
  background-color: #0074cc;
  color: white;
  font-size: 1rem;
  font-weight: bold;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s ease;
}

button[type="submit"]:hover {
  background-color: #005fa3;
}

#videoSection,
#quizSection {
  margin-top: 40px;
  width: 100%;
  max-width: 640px;
  text-align: center;
}

#answers button {
  display: block;
  margin: 10px auto;
  padding: 10px;
  width: 100%;
  font-size: 1rem;
  background-color: #e1ecf4;
  border: 1px solid #0074cc;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s;
}

#answers button:hover {
  background-color: #cde0f4;
}

#nextBtn {
  margin-top: 20px;
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: bold;
  background-color: #0074cc;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  animation: fadeInUp 0.5s ease-out;
  transition: background-color 0.3s ease;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

#nextBtn:hover {
  background-color: #005fa3;
}

.rewatch-button {
  margin-top: 10px;
  background: transparent;
  border: none;
  color: #0077cc;
  font-weight: bold;
  text-decoration: underline;
  cursor: pointer;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

footer {
  margin-top: 60px;
  text-align: center;
  font-size: 0.9rem;
  color: #888;
}

.hidden {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
}
