/*
/styles.css
Global stylesheet controlling layout and typography for the landing page.
*/
@import './app/views/styles/survey-styles.css';
@import './app/views/styles/induction-arcade-styles.css';
/* Make body fill viewport and use a calm, light background */
html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Inter", sans-serif;
  background: #3d3d3d;
  color: #111827;
}

/* Phaser canvas layer */
#game {
  position: fixed;
  inset: 0;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

#game canvas {
  width: 100vw;
  height: 100vh;
  max-width: none;
  max-height: none;
}

/* Choo app layer, centered, over the game */
#app-wrapper {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem 1rem; /* mobile-first padding */
  pointer-events: none;
  height: 100vh;
  width: 100%;

}
#app-wrapper > #app {
    max-width: 100vh;
    width: 100%;
}

/* Outer screen shell: keeps everything centered & constrained */
.screen-shell {
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;

  box-sizing: border-box;
}

/* The main card that holds content */
.screen-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 1.75rem 1.5rem;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
  width: min(94vw, 740px);
  max-width: min(740px, 90vh);
  min-height: 60vh;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  overflow: auto;
  box-sizing: border-box;
  pointer-events: auto;
}

@media (orientation: landscape) {
  .screen-card {
    width: min(70vw, 740px, 90vh);
  }
}

/* For slightly larger surveying content */
.screen-card--tall {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

/* Typography */
.screen-title {
  font-size: 1.35rem;
  font-weight: 600;
  margin: 0 0 0.25rem 0;
  color: #111827;
}

.screen-subtitle {
  font-size: 0.95rem;
  color: #6b7280;
  margin: 0 0 1rem 0;
}

.body-text {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #374151;
  margin: 0;
}

/* Forms */
.form-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.field-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #111827;
}

.input-control {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  background: #ffffff;
  font-size: 0.95rem;
  box-sizing: border-box;
}

.input-control:focus {
  outline: 2px solid #1d4ed8;
  border-color: #1d4ed8;
}

.checkbox-row {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  font-size: 0.9rem;
  color: #111827;
  line-height: 1.4;
}

.checkbox-input {
  margin-top: 0.15rem;
  width: 1.1rem;
  height: 1.1rem;
  border: 1px solid #d1d5db;
  border-radius: 0.25rem;
}

/* Buttons */
.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  min-width: 8rem;
  border-radius: 9999px;
  border: none;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  background: #1e3a8a;
  color: #ffffff;
  transition: transform 0.12s ease-out, box-shadow 0.12s ease-out,
    background 0.12s ease-out;
  align-self: flex-start;
}

.primary-button:hover,
.primary-button:focus-visible {
  outline: none;
  background: #1d4ed8;
  box-shadow: 0 6px 15px rgba(37, 99, 235, 0.35);
  transform: translateY(-1px);
}

/* induction arcade */
.induction-arcade-layout {
  position: relative;
  width: 100%;
  height: 100vh;
  padding: 2rem;
  box-sizing: border-box;
  color: #f8f8ff;
  pointer-events: none; /* important: underlying Phaser still clickable */
}

.induction-arcade-layout .module-header,
.induction-arcade-layout .induction-arcade-body,
.induction-arcade-layout button {
  pointer-events: auto; /* re-enable for actual controls */
}

.module-header h1 {
  margin: 0 0 0.25rem;
  font-size: 1.8rem;
}

.module-subtitle {
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.7;
}
