body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  justify-content: flex-start;
  background: #f8fbff;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  font-family: 'Poppins', 'Nunito', 'Roboto', sans-serif;
  color: #0f172a;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: 200%;
  letter-spacing: 0.4px;
}

p {
  font-size: 150%;
}

ol,
ul {
  list-style: none;
}

ul {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 0;
}

li {
  margin-bottom: 10px;
}

.score_check {
  border: 1px solid #bfdbfe;
  background: #ffffff;
  color: #1d4ed8;
  cursor: pointer;
  font-size: 100%;
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 600;
  box-shadow: 0 8px 14px rgba(37, 99, 235, 0.1);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.score_check:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 18px rgba(37, 99, 235, 0.16);
}

.create_btn {
  border: 1px solid #86efac;
  background: #ffffff;
  color: #15803d;
  cursor: pointer;
  font-size: 100%;
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 600;
  box-shadow: 0 8px 14px rgba(22, 163, 74, 0.12);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.create_btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 18px rgba(22, 163, 74, 0.18);
}

main {
  text-align: center;
  justify-content: center;
  flex: 1 0 auto;
  margin: 0 auto;
}

.intro_page,
.question_page,
.submit_page,
.highscore_page {
  background: #ffffff;
  border-radius: 22px;
  padding: 24px;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.06);
  border: 1px solid #e2e8f0;
}

.question_page {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  justify-content: center;
}

.answer_btn {
  background: #eff6ff;
  border-radius: 16px;
  padding: 12px 16px;
  cursor: pointer;
  margin-bottom: 10px;
  border: 1px solid #bfdbfe;
  color: #1e3a8a;
  width: 100%;
  font-weight: 600;
  box-shadow: 0 8px 16px rgba(15, 23, 42, 0.06);
  transition: transform 0.15s ease, background-color 0.15s ease,
    box-shadow 0.15s ease;
}

.answer_btn:hover {
  background-color: #dbeafe;
  transform: translateY(-1px);
  box-shadow: 0 12px 20px rgba(15, 23, 42, 0.1);
}

.start_btn,
.submit_btn,
.back_btn,
.clear_btn {
  border-radius: 16px;
  padding: 12px 18px;
  cursor: pointer;
  margin-bottom: 10px;
  color: #fff;
  font-weight: 600;
  transition: transform 0.15s ease, background-color 0.15s ease,
    box-shadow 0.15s ease;
}

.start_btn:hover,
.submit_btn:hover,
.back_btn:hover,
.clear_btn:hover {
  transform: translateY(-1px);
}

.start_btn {
  background: #2563eb;
  border: none;
  box-shadow: 0 14px 26px rgba(37, 99, 235, 0.28);
}

.start_btn:hover {
  background: #1d4ed8;
  box-shadow: 0 18px 30px rgba(37, 99, 235, 0.35);
}


.submit_btn {
  background: #16a34a;
  border: none;
  box-shadow: 0 14px 26px rgba(22, 163, 74, 0.25);
}

.submit_btn:hover {
  background: #15803d;
  box-shadow: 0 18px 30px rgba(22, 163, 74, 0.32);
}

.back_btn,
.clear_btn {
  background: #ffffff;
  color: #1d4ed8;
  border: 2px solid #bfdbfe;
  box-shadow: 0 10px 18px rgba(15, 23, 42, 0.08);
}

.clear_btn {
  color: #16a34a;
  border-color: #86efac;
}

.back_btn:hover,
.clear_btn:hover {
  background: #f8fafc;
  box-shadow: 0 14px 22px rgba(15, 23, 42, 0.12);
}

.initial_ipt {
  height: 44px;
  border-radius: 12px;
  border: 1px solid #bfdbfe;
  padding: 6px 10px;
  background: #ffffff;
  color: #0f172a;
}

.submit_page .row {
  max-width: 720px;
  margin: 0 auto;
  justify-content: center;
  align-items: center;
}

.submit_page .submit_btn {
  height: 44px;
  padding: 0 24px;
  margin-bottom: 0;
}

.submit_page .col-sm-6 {
  width: 100%;
  max-width: 520px;
}

.submit_page .form-label {
  font-weight: 600;
  color: #1d4ed8;
}

.submit_page .initial_ipt {
  background: #f8fbff;
  border: 2px solid #bfdbfe;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.06);
}

.submit_page .initial_ipt:focus {
  border-color: #1d4ed8;
  box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.2);
}

.initial_error {
  margin-top: 8px;
  font-weight: 600;
  color: #dc2626;
}

.submit_page .submit_btn {
  background: #16a34a;
  border: none;
  box-shadow: 0 12px 20px rgba(22, 163, 74, 0.25);
}

.submit_page .submit_btn:hover {
  background: #15803d;
  box-shadow: 0 16px 26px rgba(22, 163, 74, 0.32);
}

.create_title {
  font-weight: 600;
  color: #1d4ed8;
}

.create_page {
  background: #ffffff;
  border-radius: 22px;
  padding: 24px;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.06);
  border: 1px solid #e2e8f0;
}

.question-builder {
  background: #f8fbff;
  border-radius: 18px;
  padding: 18px;
  border: 1px solid #e2e8f0;
  margin-bottom: 18px;
}

.answer-grid {
  display: grid;
  gap: 12px;
}

@media (min-width: 768px) {
  .answer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.create_actions .submit_btn,
.create_actions .back_btn {
  width: auto;
  margin-bottom: 0;
}

.create_message {
  min-height: 24px;
  margin-bottom: 16px;
  font-weight: 600;
}

.create_message.success,
.create_message.error,
.create_message.info {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
}

.create_message.success {
  color: #15803d;
  border-color: #86efac;
  background: #f0fdf4;
}

.create_message.error {
  color: #dc2626;
  border-color: #fecaca;
  background: #fef2f2;
}

.create_message.info {
  color: #1d4ed8;
  border-color: #bfdbfe;
  background: #eff6ff;
}

.share_box {
  display: block;
  margin-bottom: 16px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
}

.share_box.is-visible {
  display: block;
}

.share_label {
  font-weight: 600;
  color: #1d4ed8;
  margin-bottom: 8px;
}

.share_actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.share_input {
  flex: 1;
  min-width: 220px;
}

.share_hint {
  margin-top: 8px;
  color: #475569;
  font-size: 0.95rem;
}

.expired_notice {
  display: none;
  margin: 0 auto 16px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid #fecaca;
  background: #fef2f2;
  color: #b91c1c;
  font-weight: 600;
  max-width: 520px;
}

.expired_notice.is-visible {
  display: block;
}

.input-error {
  border-color: #dc2626 !important;
  box-shadow: 0 0 0 0.2rem rgba(220, 38, 38, 0.15);
}

.correct_or_wrong_text {
  text-align: center;
  font-weight: 600;
  color: #0f172a;
}

.correct_or_wrong_text.is-correct {
  color: green !important;
}

.correct_or_wrong_text.is-wrong {
  color: red !important;
}


.score_record {
  text-align: left;
}

.deaftech-ui #timer {
  font-size: 120%;
  color: #0f172a;
}
