@charset "UTF-8";
:root {
  --status-success-bg: #c8f7c5;
  --status-success-border: #2ecc71;
  --status-success-text: #2d662d;
  --status-error-bg: #f7c5c5;
  --status-error-border: #e74c3c;
  --status-error-text: #6b1f1f;
  --status-timedout-bg: #37474f;
  --status-timedout-border: #ffd740;
  --status-timedout-text: #fff8e1;
}

#question-container {
  height: 100%;
  display: grid;
  grid-template-rows: auto 1fr;
  border-radius: 5px;
  -webkit-overflow-scrolling: touch;
}
#question-container::-webkit-scrollbar {
  width: 0;
  height: 0;
}

/* video */
video {
  width: 100%;
  aspect-ratio: 960/540;
  top: 0;
  transform: translateZ(0);
}
video.hidden-video {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

#video-container {
  grid-row: 1;
  position: relative;
  display: grid;
}

#video-overlay {
  position: absolute;
  height: 100%;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: repeat(5, 1fr);
  z-index: 10;
}

#btn-play {
  grid-row: 3;
  grid-column: 3;
  align-self: center;
  justify-self: center;
  height: 5rem;
  width: 5rem;
  font-size: 2rem;
  border-radius: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

/* end video */
.stack-center {
  display: grid;
  place-items: center; /* Centers children horizontally and vertically */
  grid-template-areas: "overlay"; /* Creates a single grid cell */
}

.stack-center > * {
  grid-area: overlay; /* Forces all children into the same cell, stacking them */
}

/* Specific styling for the timer context */
.timer-text {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
  font-weight: bold;
  z-index: 1; /* Ensures text is visible above the SVG path */
}

#floating-btn {
  position: relative;
  left: calc(50% - 33px);
}

.timer-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  font-family: system-ui, sans-serif;
}

.timer-circle {
  position: absolute;
  width: 66px;
  height: 66px;
  top: -1rem;
  background: var(--footer-bg);
  border-radius: 30px;
}
.timer-circle svg {
  transform: rotate(-90deg);
  height: 100%;
  width: 100%;
}
.timer-circle circle {
  fill: none;
  stroke-width: 4;
  stroke-linecap: round;
}
.timer-circle .bg {
  stroke: #e4130c;
}
.timer-circle .fg {
  stroke: #4caf50;
  fill: none;
  stroke-width: 4;
  stroke-linecap: round;
  transition: stroke 0.3s, stroke-dashoffset 0.3s;
}

.toggle {
  font-size: 0.9rem;
  color: #444;
}

#question-box {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 1rem;
  box-sizing: border-box;
}

/*
#submit {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 1rem;
  box-sizing: border-box;
  margin-bottom: 80px;
}
*/
#next {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 1rem;
  box-sizing: border-box;
  margin-bottom: 80px;
}

#question-text {
  margin: auto auto 1rem auto;
  display: block;
  text-align: center;
  padding: 1rem;
  border-bottom: 1px solid var(--pico-secondary-border);
}

#transcript {
  position: relative;
  padding: 0.5rem 1rem;
  grid-row: 5/6;
  grid-column: 1/6;
  align-content: end;
  background-color: rgba(10, 10, 10, 0.4);
  color: var(--pico-secondary-color);
}

#transcript-button {
  cursor: pointer;
  color: #f1f5f9; /* Off-white */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: 0.015em;
}
#transcript-button::before {
  content: "🛈";
  position: relative;
  left: -0.5rem;
}

#transcript-text {
  color: #f1f5f9; /* Off-white */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: 0.015em;
}
#transcript-text::before {
  content: "cc";
  display: inline-grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  border: 1px solid var(--pico-secondary);
  position: relative;
  left: -0.5rem;
  border-radius: 5px;
}

/* The SVG Ring */
.timer-svg {
  transform: rotate(-90deg); /* Start at the top */
}

/* When 10s left, trigger the pulse */
.timer-pulse {
  animation: heartbeat 1s infinite;
}

@keyframes heartbeat {
  0% {
    transform: scale(1);
    filter: drop-shadow(0 0 0px #e74c3c);
  }
  50% {
    transform: scale(1.05);
    filter: drop-shadow(0 0 10px #e74c3c);
  }
  100% {
    transform: scale(1);
    filter: drop-shadow(0 0 0px #e74c3c);
  }
}
.timer-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.timer-text {
  position: absolute;
  font-size: 1.5rem;
  font-weight: bold;
}

.timer-track {
  stroke: #eee;
  fill: none;
  stroke-width: 8;
}

#action-buttons {
  margin-bottom: 1rem;
}
#action-buttons .feedback-card {
  width: 100%;
  max-width: 400px;
  margin: 0;
  border-left-width: 8px; /* Thick border for easy status recognition */
  border-left-style: solid;
  position: relative;
}
#action-buttons {
  /* Header layout for Icon + Title */
}
#action-buttons .card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}
#action-buttons .card-header div {
  display: inherit;
}
#action-buttons {
  /* SVG Icon styling */
}
#action-buttons .status-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}
#action-buttons {
  /* Typography overrides for clarity */
}
#action-buttons .status-title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: bold;
}
#action-buttons .status-desc {
  margin-bottom: 1.5rem;
  font-size: 1rem;
}
#action-buttons {
  /* --- STATE MODIFIERS --- */
  /* SUCCESS */
}
#action-buttons .is-success {
  border-left-color: var(--status-success-border);
  /* Subtle background tint for context */
  background-color: rgba(29, 233, 182, 0.05);
}
#action-buttons .is-success .status-icon {
  color: var(--status-success-border);
}
#action-buttons .is-success .status-title {
  color: var(--status-success-border);
}
#action-buttons {
  /* ERROR */
}
#action-buttons .is-error {
  border-left-color: var(--status-error-border);
  background-color: rgba(255, 110, 64, 0.05);
}
#action-buttons .is-error .status-icon {
  color: var(--status-error-border);
}
#action-buttons .is-error .status-title {
  color: var(--status-error-border);
}
#action-buttons {
  /* TIMEOUT */
}
#action-buttons .is-timedout {
  border-left-color: var(--status-timedout-border);
  background-color: rgba(255, 215, 64, 0.05);
}
#action-buttons .is-timedout .status-icon {
  color: var(--status-timedout-border);
}
#action-buttons .is-timedout .status-title {
  color: var(--status-timedout-border);
}

#choices-container {
  position: relative;
  width: 100%;
}
#choices-container .choice {
  cursor: pointer;
  margin-bottom: 1rem;
  min-height: 4rem;
  position: relative;
  text-align: center;
  transition: all 0.2s ease;
  align-content: center;
}
#choices-container .choice:hover {
  background: #eaeaea;
}
#choices-container .choice.correct {
  background: var(--status-success-bg) !important;
  border-color: var(--status-success-border) !important;
  color: var(--status-success-text) !important;
}
#choices-container .choice.correct.indicated::before {
  content: "✓";
  position: absolute;
  top: -1rem;
  font-size: 2rem;
  left: 0.5rem;
}
#choices-container .choice.incorrect {
  background: var(--status-error-bg) !important;
  border-color: var(--status-error-border) !important;
  color: var(--status-error-text) !important;
}
#choices-container .choice.incorrect.indicated::before {
  content: "✗";
  position: absolute;
  top: -1rem;
  font-size: 2rem;
  left: 0.5rem;
}
#choices-container .choice.selected {
  border-color: #0078e7;
  background: #e6f1ff;
  color: #0078e7;
}
#choices-container .choice-indicator {
  position: absolute;
  top: -0.5rem;
  left: 1rem;
  font-size: 1.3em;
  background: inherit;
  border: 1px solid;
  border-radius: 5px;
  color: inherit;
  font-weight: bold;
  text-shadow: 1px 0px #aaa;
}
#choices-container .skeleton-bone {
  display: inline-block;
  height: 1rem;
  background-color: var(--pico-border-color);
  margin-right: 8px;
  margin-bottom: 8px;
  border-radius: 4px;
  position: relative;
  overflow: hidden;
  vertical-align: middle;
}
#choices-container {
  /* Varied Widths */
}
#choices-container .bone-small {
  width: 10%;
}
#choices-container .bone-medium {
  width: 25%;
}
#choices-container .bone-large {
  width: 45%;
}
#choices-container {
  /* Shimmer Effect */
}
#choices-container .skeleton-bone::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.4) 50%, rgba(255, 255, 255, 0) 100%);
  animation: skeleton-shimmer 2s infinite;
}
@keyframes skeleton-shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  #choices-container .skeleton-bone::after {
    animation-duration: 2s !important;
    animation-iteration-count: infinite !important;
  }
}
#arrow {
  grid-row: 4;
  grid-column: 4;
  position: absolute;
  background: #b520b5;
  align-content: center;
  text-align: center;
  border-radius: 1rem;
  padding: 1rem;
  color: white;
}
#arrow svg {
  position: absolute;
  top: -1rem;
  left: -2rem;
  width: 2rem;
  height: 2rem;
  fill: #b520b5;
  stroke: #b520b5;
}

#metadata ul {
  list-style: none;
  padding: 0;
}

#metadata li {
  position: relative;
  margin-bottom: 1rem;
  border-bottom: 1px solid grey;
}

#metadata .title {
  font-weight: bold;
}

#metadata .director,
#metadata .producer {
  font-weight: bold;
  fon-size: 1.25rem;
}

#metadata .uptitle {
  font-size: 0.75rem;
  color: dimgray;
}

#profile-form,
#study-form,
#account-form {
  margin-bottom: 2rem;
  border-radius: 16px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  padding: 1.5rem !important;
}
#profile-form legend,
#study-form legend,
#account-form legend {
  font-size: 1.25rem;
  border-bottom: 2px solid var(--pico-secondary-border);
  width: 100%;
}

/* Action Buttons */
/* Add this to your CSS or <style> block */
.button-error {
  background: #e53e3e !important;
  /* Red */
  color: white !important;
  transition: all 0.3s ease;
}


* {
  box-sizing: border-box;
}

body {
  margin: 0;
  height: 100dvh;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto 1fr auto;
  gap: 3px;
  /* dark theme 
  background: #778899;
  background: linear-gradient(
    180deg,
    rgba(119, 136, 153, 0.6) 0%,
    rgba(255, 255, 255, 1) 100%
  );
  */
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

[x-cloak] {
  display: none !important;
}

#top-nav,
#bottom-nav {
  z-index: 100;
}

#top-nav {
  align-items: center;
  color: #fff;
  display: flex;
  font-weight: bold;
  grid-row: 1;
  height: 50px;
  z-index: 10;
}

#content {
  grid-row: 2;
  -webkit-overflow-scrolling: touch;
}

#bottom-nav {
  grid-row: 3;
  border-top: 1px solid #ddd;
  z-index: 10;
  background-color: white;
  height: 50px;
}
#bottom-nav #bottom-nav-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: 100%;
  height: 100%;
  box-sizing: border-box;
}
#bottom-nav .nav-item {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}
#bottom-nav .nav-item .icon {
  width: 24px; /* Explicit width */
  height: 24px; /* Explicit height */
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}
#bottom-nav #game-logo {
  width: 100%;
  height: 100%;
}

#content-inner {
  height: 100%;
  overflow: scroll;
}

:root[data-theme=dark] {
  /* Backgrounds */
  --background-color: #12171f;
  --card-background-color: #252d38;
  /* Structural Elements */
  --header-bg: #0b0e14;
  --footer-bg: #1b222c;
  /* Interactive States */
  --primary: #22d3ee;
  --primary-hover: #06b6d4;
  --secondary: #f59e0b; /* Penalty/Warning Color */
  /* Typography */
  --color: #f8fafc;
  --muted-color: #94a3b8;
  /* Borders */
  --border-color: #334155;
}

#top-nav {
  background-color: var(--header-bg);
  border-bottom: 1px solid var(--border-color);
}

body {
  background-color: var(--background-color);
}

#bottom-nav {
  background-color: var(--footer-bg);
  border-top: 1px solid var(--border-color);
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.3);
}

body > footer,
body > header,
body > main {
  padding-block: 0;
}

.walkthrough-tooltip {
  background: white;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  position: absolute;
  z-index: 100000 !important; /* Higher than highlight */
  pointer-events: auto;
}
.walkthrough-tooltip::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 20px;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 10px solid white;
}

.walkthrough-highlight {
  position: relative !important;
  z-index: 99999 !important; /* Extremely high */
  box-shadow: 0 0 0 100vmax rgba(0, 0, 0, 0.8) !important;
}

.highlight {
  color: var(--pico-h1-color);
}

svg {
  width: 100%;
  height: 100%;
}

#metadata {
  border-top: 1px solid var(--pico-secondary-border);
  padding-top: 0.5rem;
  margin-top: 0.5rem;
}
#metadata header {
  display: flex;
  flex-direction: row;
  justify-content: start;
  align-items: center;
}
#metadata header svg {
  margin-right: 0.5rem;
}
#metadata header span {
  font-size: 1.2rem;
}
#metadata .grid {
  grid-template-rows: 1fr 1fr;
  grid-template-columns: 1fr;
  grid-auto-flow: row;
}
#metadata .grid div {
  display: flex;
  flex-direction: column;
}

.metadata-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.5rem 1.5rem;
  margin-bottom: 1rem;
}

.label {
  font-weight: bold;
  color: var(--pico-muted-color);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05rem;
}

.value {
  font-size: 0.95rem;
}

svg.lucide {
  width: 24px;
  height: 24px;
}

dialog {
  transform: translateZ(0);
}

/*# sourceMappingURL=style.css.map */
