/* ----------------GLOBAL---------------- */
body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  background-image: url('images/backgroundtile.png');
  background-repeat: repeat;
  background-size: auto;
  background-color: #A3D9F2;
  padding: 40px;
  margin: 0;
}
.seat-wrapper {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}
/* Outer seat back */
.seat-back {
  padding: 32px;
  border-radius: 32px;
  background:
    /* subtle fabric pattern */
    radial-gradient(circle at 0 0, rgba(255,255,255,0.06), transparent 55%),
    radial-gradient(circle at 100% 0, rgba(255,255,255,0.04), transparent 55%),
    radial-gradient(circle at 0 100%, rgba(0,0,0,0.25), transparent 55%),
    radial-gradient(circle at 100% 100%, rgba(0,0,0,0.3), transparent 55%),
    repeating-linear-gradient(
      45deg,
      rgba(255,255,255,0.04),
      rgba(255,255,255,0.04) 2px,
      rgba(0,0,0,0.08) 2px,
      rgba(0,0,0,0.08) 4px
    );
  background-color: #3b4a5c; /* base seat color */
  box-shadow:
    0 24px 40px rgba(0, 0, 0, 0.6),
    inset 0 2px 4px rgba(255, 255, 255, 0.15),
    inset 0 -4px 8px rgba(0, 0, 0, 0.5);
}

/* Inner panel to give a bit more depth */
.seat-inner {
  padding: 16px;
  border-radius: 24px;
  background: linear-gradient(145deg, #2f3b4a, #202833);
  box-shadow:
    inset 0 1px 3px rgba(255, 255, 255, 0.1),
    inset 0 -3px 6px rgba(0, 0, 0, 0.7);
}
/* The “screen” where your game lives */
#appScreen {
  width: min(900px, 100vw);
  height: 1100px;
  background: #000;
  border-radius: 18px;
  overflow: hidden;
  box-shadow:
    0 0 0 3px #111,
    0 10px 20px rgba(0, 0, 0, 0.7),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
#app {
    max-width: 600px;
    margin: auto;
    background: #ffffffd4;
    padding: 30px 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

h1, h2 {
    text-align: center;
}

select {
    width: 100%;
    max-width: 300px;
    padding: 12px 14px;
    margin-top: 10px;
    font-size: 16px;
    border-radius: 6px;
    border: 1px solid #ccc;
    background: #fff;
    cursor: pointer;
}

select:focus {
    border-color: #0078ff;
    outline: none;
    box-shadow: 0 0 4px rgba(0, 120, 255, 0.4);
}

button {
    width: 100%;
    padding: 12px;
    margin-top: 10px;
    font-size: 16px;
    background: #43A5C5;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s ease;
}

button:hover {
    background: #0293c4;
}
.dropdown-row {
  display: flex;
  flex-direction: column;   /* or row, depending on your layout */
  align-items: center;      /* centres the dropdowns horizontally */
  justify-content: center;
  width: 100%;
}
/* Landing animation — RIGHT → LEFT */
@keyframes landing {
    0%   { transform: translateX(-220px) translateY(0); }
    40%  { transform: translateX(-70px) translateY(45px); }
    70%  { transform: translateX(80px) translateY(90px); }
    100% { transform: translateX(180px) translateY(90px); }
}
/* Footer */
#global-footer {
  position: fixed;
  bottom: 0;
  width: 100%;
  text-align: center;
  padding: 5px 0;
  background: #A3D9F2;
  font-size: 0.4rem;
  color: #555;
  backdrop-filter: blur(4px);
}
@keyframes runway-move {
    from { transform: translateX(0); }
    to { transform: translateX(-60px); }
}
.flag-icon {
    width: 18px;
    height: 12px;
    object-fit: cover;
    margin-right: 6px;
    vertical-align: middle;
}




/* ----------------PHASE A---------------- */
#countryFilter,
#departureSelect {
    display: block;
    margin: 0 auto;
    max-width: 300px;
    width: 100%;
}
#zonePreviewContainer {
  width: 100%;
  height: 180px; /* adjust to taste */
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 12px;
}

#zonePreview {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  transition: opacity 0.25s ease;
  opacity: 0;
}

/* Base wheel container */
#zoneWheel {
  width: 58%;
    height: 300px; /* or whatever fits your design */
  overflow: hidden;
  position: relative;
  margin-top: -90px; /* pull the wheel upward */ 
  position: relative; 
  z-index: 1; /* behind the image */
  border-left: 3px solid #828282;
  border-right: 3px solid #828282;
}


/* The vertical list */
#zoneList {
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.25s ease-out;
}

/* Every item in the wheel */
.zoneItem {
  padding: 12px 0;
  font-size: 1.0rem;
  opacity: 0.35;
  text-align: center;
  transition: opacity 0.2s, font-size 0.2s, transform 0.2s;
  user-select: none;
}

/* The selected (active) item */
.zoneItem.active {
  width: 100%;
  background: #a3d9f2;
  color: rgb(156, 1, 1) !important;
  border-top: 2px #828282;
  border-bottom: 2px #828282;
  transform: scale(1.3) !important;
  font-weight: bold;
}

/* Images hidden by default */
.zoneItem img {
  width: 160px;
  height: 68px;
  object-fit: cover;
  border-radius: 8px;
  margin-top: 6px;
  display: none;
}

/* Only the active item shows its image */
.zoneItem img {
  display: none !important;
}
.zoneItem {
  cursor: pointer;
  transition: background 0.15s ease;
}

.zoneItem:hover {
  background: rgba(255,255,255,0.06);
}
.runway-container {
    position: relative;
    width: 70%;
    height: 150px;
    overflow: hidden;
    margin: 20px auto;
background: rgba(0,0,0,0.1); 
}

.plane {
    position: absolute;
    bottom: -80px;
    left: -20px;
    font-family: monospace;
    font-size: 16px;
    white-space: pre;
    background: none;
}

/* Animation class — only added when takeoff begins */
.plane.takeoff {
    animation: takeoff 4s ease-in forwards;
}

.runway {
    position: absolute;
    bottom: 0;
    width: 200%;
    height: 5px;
    background: linear-gradient(#87ceeb, #b0e0e6); /* sky */
    animation: runway-move 1s linear infinite;
}

#output {
    margin-top: 30px;
    padding: 20px;
    background: #f0f6ff;
    border-left: 4px solid #0078ff;
    border-radius: 6px;
    display: none;
    font-size: 17px;
}

@keyframes takeoff {
    0%   { transform: translateX(0) translateY(0); }
    60%  { transform: translateX(200px) translateY(0); }
    80%  { transform: translateX(350px) translateY(-40px); }
    100% { transform: translateX(500px) translateY(-120px); opacity: 0; }
}

.animation-window {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(#87ceeb, #b0e0e6); /* sky */
}
.clouds {
    position: absolute;
    top: 20px;
    left: 100%;
    animation: clouds-move 12s linear infinite;
}

.cloud {
    font-family: monospace;
    font-size: 18px;
    color: white;
    opacity: 0.9;
    margin-bottom: 20px;
}
@keyframes clouds-move {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-700%); }
}
.sky {
    position: relative;
    width: 100%;
    height: 200px;       /* same as departure window */
    overflow: hidden;
    background: linear-gradient(#87ceeb, #b0e0e6); /* sky blue */
}
.planeflyby {
    position: absolute;
    bottom: 60px;
    left: 40px;
}
#takeoffBtn {
    width: 240px;
    padding: 14px 28px;
    border: none;
    border-radius: 30px;
    background: #a3d9f2;
    color: #28353b;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

#takeoffBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.22);
}

#takeoffBtn:active {
    transform: translateY(0);
    box-shadow: 0 3px 10px rgba(0,0,0,0.18);
}
/* ----------------PHASE B---------------- */

/* Announcement Screen */
#announcement-screen {
  display: none;
  text-align: center;
  padding: 20px 20px;
  color: #E9EEF5;
}

#announcement-screen h2 {
  font-size: 1.4rem;
  margin-bottom: 20px;
  letter-spacing: 0.05em;
  color: #28353b;
}

#announcement {
  font-family: "SF Mono", ui-monospace, Menlo, Monaco, Consolas, "Courier New", monospace;
  white-space: pre-wrap;
  font-size: 1.1rem;
  line-height: 1.5;
  min-height: 120px;
  margin-bottom: 30px;
}

/* Static header */
.announcement-title {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 0px;
    text-transform: uppercase;
    color: #003366;
}

/* Announcement box — now matches app screen colour */
.announcement-box {
    width: 100%;
    max-width: 600px;
    height: 300px; /* slightly taller for realism */
    padding: 0px;
    border-radius: 12px;
    background: #d2d6db;
    box-shadow: 0 0 10px rgba(0,0,0,0.08);
    overflow-y: hidden;
}

/* Typewriter text — more breathing room */
.announcement-text {
    font-size: 1rem;
    line-height: 0.8; /* increased for readability */
    white-space: pre-wrap;
    font-family: "Segoe UI", sans-serif;
    color: #000;
    background: #d2d6db;
}
.phase-screen {
    width: 100%;
    height: 100%;
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}
#proceedToGuessingBtn {
    width: 240px;
    padding: 14px 28px;
    border: none;
    border-radius: 30px;
    background: #a3d9f2;
    color: #28353b;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

#proceedToGuessingBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.22);
}

#proceedToGuessingBtn:active {
    transform: translateY(0);
    box-shadow: 0 3px 10px rgba(0,0,0,0.18);
}
/* ----------------PHASE C---------------- */

/* Phase C landing window */
.landing-window {
    position: relative;
    width: 70%;
    height: 180px;
    overflow: hidden;
    margin: 20px auto;
    background: linear-gradient(
        to bottom,
        #ffe08a,   /* soft dawn yellow */
        #ffcc66,   /* warm sunrise gold */
        #ffb380,   /* peachy morning light */
        #f2e6d8    /* pale sky near horizon */
    );

}


/* Base plane styling */
.landing-plane {
    position: absolute;
    top: -40px;              /* plane in the sky */
    left: 30%;              /* centered-ish */
    transform: translateX(-50%);
    font-family: monospace;
    font-size: 16px;
    white-space: pre;
    line-height: 1.1;
}

/* Cruising = plane is still */
.landing-plane.cruising {
    /* no animation */
}

/* Runway */
.landing-runway {
    position: absolute;
    bottom: 0;
    width: 200%;
    height: 5px;
    background: repeating-linear-gradient(
        to right,
        #444 0 12px,
        #fff 12px 18px
    );
    animation: runway-move 1s linear infinite;
}


/* comment out summary table 
.summary-table-container {
  margin-top: 10px;
  padding: 20px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.summary-table-container h3 {
  margin-bottom: 16px;
  font-size: 20px;
  font-weight: 600;
  
}

.summary-table {
  width: 100%;
  border-collapse: collapse;
    font-size: 0.8rem;
}

.summary-table th {
  text-align: left;
  padding: 6px 0;
  font-weight: 600;
  width: 180px;
  color: #444;
    font-size: 0.8rem;
}

.summary-table td {
  padding: 6px 0;
  color: #222;
  font-size: 0.8rem;
}
  */
#captainMessage {
  font-family: "SF Mono", ui-monospace, Menlo, Monaco, Consolas, "Courier New", monospace;
  white-space: pre-wrap;
  font-size: 1.1rem;
  line-height: 1.2;
  min-height: 120px;
  margin-bottom: 30px;
}

.play-again-btn {
    width: 240px;
    padding: 14px 28px;
    border: none;
    border-radius: 30px;
    background: #a3d9f2;
    color: #28353b;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);


}

.play-again-btn:hover {
    background-color: #005fcc;
}
.guess-history {
    margin-top: 15px;
    font-size: 0.8rem;
    line-height: 1.6;
}

.guess-history .wrong {
    text-decoration: line-through;
    color: #b30000;
    font-size: 0.8rem;
}

.guess-history .correct {
    font-weight: bold;
    color: green;
    font-size: 0.8rem;
}
/* Hiding Old Zone
.zone-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 10px;
    font-size: 0.9rem;
}

.zone {
    text-align: center;
    width: 200px;
    padding: 5px;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}
*/
/* Hover effect 
.zone:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}*/

/* Pressed / selected effect 
.zone.active {
    background-color: #A3D9F2;
    color: black;
    transform: translateY(0);
    box-shadow: inset 0 0 10px rgba(0,0,0,0.4);
    border: 2px solid #43A5C5;
}*/

/* Hiding Phase B 
#country-screen {
    display: none;
}*/

/*body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #111; 
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}*/
#guessAirportBtn {
    width: 240px;
    padding: 14px 28px;
    border: none;
    border-radius: 30px;
    background: #a3d9f2;
    color: #28353b;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

#guessAirportBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.22);
}

#guessAirportBtn:active {
    transform: translateY(0);
    box-shadow: 0 3px 10px rgba(0,0,0,0.18);
}

/* Comment out flight arc summary
.flight-arc-summary {
  width: 100%;
  padding: 20px 0;
  color: #fff;
  font-family: "Inter", "Segoe UI", sans-serif;
}

.arc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.airport-code {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.arc-svg {
  width: 60%;
  height: 80px;
}

.arc-path {
  fill: none;
  stroke: #ffffff55;
  stroke-width: 3;
  stroke-linecap: round;
}

.plane {
  font-size: 1.2rem;
  margin-left: 6px;
}

.info-row {
  margin-top: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
*/
/* Comment out Compass 
.compass {
  position: relative;
  width: 60px;
  height: 60px;
  border: 2px solid #ffffff33;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.compass-arrow {
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 18px solid #fff;
  position: absolute;
  top: 8px;
  transition: transform 0.3s ease;
}

.compass-label {
  position: absolute;
  bottom: -20px;
  font-size: 0.75rem;
  opacity: 0.8;
}
*/
/* Comment out Attempts 
.attempts {
  font-size: 1rem;
  opacity: 0.9;
}
*/



/* ----------------PHASE D---------------- */
#phase-d #captainMessage {
    font-family: "SF Mono", ui-monospace, Menlo, Monaco, Consolas, "Courier New", monospace;
    white-space: pre-wrap;
    font-size: 1.1rem;
    line-height: 1.5;
    min-height: 120px;
    margin-bottom: 30px;
}
.summary-circles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 25px;
    margin-top: 30px;
    justify-content: center;   /* <-- THIS centers the row */
}


.summary-item {
    text-align: center;
    font-family: "SF Mono", ui-monospace, Menlo, Monaco, Consolas, "Courier New", monospace;
}

.summary-title {
    font-size: 0.9rem;
    color: #9ca3af;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.summary-circle {
    width: 90px;
    height: 90px;
    margin: 0 auto;
    border-radius: 50%;
    background: #4f4f4f;
    border: 2px solid #5c5b5b;

    display: inline-flex;        /* <-- THIS is the missing piece */
    align-items: center;
    justify-content: center;

    font-size: 1.3rem;
    color: #f3f4f6;

    box-shadow: 0 0 12px rgba(0,0,0,0.35);
    transition: transform 0.2s ease, background 0.2s ease;
}
.summary-circle:hover {
    transform: scale(1.07);
    background: #1f2937;
}
.summary-correct {
    background: #0fc12f;      /* deep green */
    border-color: #198754;    /* bright green */
    color: #d1fae5;           /* soft mint text */
}

.summary-incorrect {
    background: #9f1e1e;      /* deep red */
    border-color: #dc3545;    /* bright red */
    color: #ffe5e5;           /* soft pink text */
}