/* === General Reset === */
* {
  box-sizing: border-box;
}


html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #004f48;
  color: #1a1a1a;
  overflow: hidden;
}

body {
  font-family: 'Poppins', sans-serif;
}

.page-header {
  position: relative;
  z-index: 3;
  text-align: center;
  margin-top: 80px;
  margin-bottom: 30px;
}

.page-header h1 {
  font-size: 36px;
  font-weight: 700;
  color: white;
  margin-bottom: 10px;
  letter-spacing: 0.5px;
}

.page-header p {
  font-size: 18px;
  font-weight: 400;
  color: #cccccc;
}


/* === Particle background === */
#particles-js {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

/* === Loader === */
#loader {
  position: fixed;
  z-index: 2000;
  width: 100%;
  height: 100%;
  background: #004f48;
  display: flex;
  align-items: center;
  justify-content: center;
}
.spinner {
  border: 6px solid #fff;
  border-top: 6px solid #c7a600;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* === Fade-in === */
.fade-in {
  animation: fadeIn 1s ease-in;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* === Modal === */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
.modal-content {
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}
.modal-content h3 {
  margin-bottom: 20px;
  color: #222;
}
.modal-content label {
  display: block;
  margin-top: 10px;
  color: #555;
}
.modal-content select {
  width: 100%;
  padding: 10px;
  margin-top: 5px;
  border-radius: 6px;
  border: 1px solid #ccc;
}
.modal-content .btn-start {
  margin-top: 30px;
  background-color: #017923; /* Green */
  color: #ffffff;            /* Yellow font */
  font-weight: bold;
  width: 100%;
  border-radius: 8px;
  font-size: 16px;
}
.modal-content .btn-start:hover {
  background-color: #145728;
}


/* === Quiz Wrapper === */
.quiz-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100%;
  z-index: 999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

/* === Quiz Container === */
.quiz-container {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
  padding: 30px 40px;
  width: 100%;
  max-width: 600px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.progress-bar-wrapper {
  width: 100%;
  height: 10px;
  background: #eee;
  margin-top: 20px;
  border-radius: 5px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  width: 0%;
  background: #4caf50;
  transition: width 0.5s ease-in-out;
}



/* === Top Section === */
.quiz-top {
  text-align: center;
  margin-bottom: 30px;
}
.quiz-top h2 {
  color: #000000;
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 15px;
}
.quiz-top audio {
  width: 100%;
  max-width: 100%;
  margin-bottom: 12px;
}
#timer {
  color: #d93025;
  font-size: 16px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

/* === Buttons Section === */
.quiz-bottom {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  max-width: 300px;
  align-items: center;
}
.quiz-bottom button {
  font-size: 16px;
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  transition: all 0.3s ease;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

/* === Buttons === */
button {
  padding: 14px 20px;
  font-size: 16px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
button:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.btn-real {
  background-color: #2e7d32;
  color: white;
  width: 100%;
}
.btn-real:hover {
  background-color: #388e3c;
}
.btn-fake {
  background-color: #c62828;
  color: white;
  width: 100%;
}
.btn-fake:hover {
  background-color: #e53935;
}

/* === Start Quiz Button === */
.btn-start {
  background-color: #9a7d00;
  color: #004f48;
  font-weight: bold;
  width: 100%;
}
.btn-start:hover {
  background-color: #856a00;
}

/* === Result Text === */
#result {
  margin-top: 20px;
  font-size: 18px;
  font-weight: bold;
  color: #333;
}

/* === Logo === */
#naussLogo {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  height: 120px;
  transition: transform 0.3s ease;
}
#naussLogo:hover {
  transform: translateX(-50%) scale(1.05);
}

#pageTitle {
  position: absolute;
  top: 120px;
  left: 40px;
  font-size: 28px;
  font-weight: bold;
  color: white;
  z-index: 5;
  margin: 0;
}

.input-error {
  border: 2px solid #d93025 !important;
  background-color: #fff0f0;
}
.page-header {
  text-align: center;
  padding-top: 40px;
  color: white;
  z-index: 3;
  position: relative;
}

.page-header h1 {
  font-size: 34px;
  font-weight: bold;
  margin-bottom: 10px;
  color: #ffffff;
}

.page-header p {
  font-size: 16px;
  color: #dddddd;
  margin: 0;
}
