/* Mind Games: brushed steel, VT323 terminal type, red/blue team boxes. */
:root {
  --ink: #2B2B2B;
  --red: #ED2A2A;
  --blue: #2D63BD;
  --panel: #FFFFFF78;
  --dark: #2d2d2d;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: "VT323", ui-monospace, monospace;
  color: var(--ink);
  background: #b9bcbf url("/media/2021/03/stainless-steel-brush.jpg") center top / cover fixed;
  min-height: 100vh;
  font-size: 34px;
  line-height: 1.6;
  text-transform: uppercase;
}
main { width: min(890px, 100% - 32px); margin: 0 auto; padding: 46px 0 80px; }
section { margin: 0 0 86px; }
.pic { display: block; max-width: 100%; height: auto; margin: 0 auto 24px; }
.pics .pic:last-child { margin-bottom: 0; }

.panel { background: var(--panel); padding: 42px 43px; }
.panel .text { margin: 0 0 30px; }
.panel .text p { margin: 0 0 30px; }
.panel .text p:last-child { margin-bottom: 0; }
.panel .text ul { margin: 0 0 10px; padding-left: 34px; }
.panel .text li { margin: 0 0 10px; }
.panel > :last-child, .panel .text:last-child p:last-child { margin-bottom: 0; }
.label { display: inline-block; background: black; color: white; padding: 2px 9px; margin: 0 0 30px; line-height: 1.35; }
.box { display: inline-block; background: black; color: white; padding: 0 9px; line-height: 1.35; }
/* a lone label as the first panel ("The journey begins …") */
.panel:has(> .label:only-child) { padding: 26px 22px 20px; }
.panel:has(> .label:only-child) .label { margin: 0; }

.buttons { display: flex; justify-content: space-around; gap: 20px; flex-wrap: wrap; margin-top: 26px; }
.btn {
  display: inline-block; min-width: 192px; text-align: center; color: white; text-decoration: none;
  padding: 10px 28px; border: 2px solid var(--ink); font-size: 34px; letter-spacing: 1px;
  text-shadow: 1px 1px 0 rgba(0, 0, 0, .5);
}
.btn.red { background: var(--red); }
.btn.blue { background: var(--blue); }
.btn:hover { filter: brightness(1.08); }

.plane {
  display: inline-flex; align-items: center; justify-content: center; width: 85px; height: 85px;
  background: var(--dark); color: white; border: 0; cursor: pointer; padding: 0;
}
.plane:hover { background: black; }
.download { color: var(--ink); text-decoration: none; }
.download span { color: #d6336c; }
.panel:has(.plane) { display: flex; align-items: center; gap: 98px; padding: 50px 130px; }

.codebox { padding: 8px 0 8px; text-align: center; width: min(632px, 100%); margin-left: auto; margin-right: auto; }
.codebox.red { background: var(--red); }
.codebox.blue { background: var(--blue); }
.codebox .plane { display: flex; margin: 0 auto 30px; }
.codebox form.code { display: block; }

form.code {
  display: inline-block; text-align: left; border: 3px solid var(--dark); padding: 54px 18px 46px;
  width: min(256px, 100% - 32px); margin: 0 auto 8px;
}
form.code label { display: block; font-size: 30px; line-height: 1.45; margin-bottom: 10px; }
form.code .row { display: flex; gap: 4px; }
form.code input {
  flex: 1; min-width: 0; font: 20px/1 "VT323", monospace; padding: 6px 8px; border: 0; height: 36px;
}
form.code button {
  background: black; color: white; border: 0; font: 13px/1 system-ui, sans-serif; letter-spacing: .5px;
  padding: 0 12px; height: 36px; cursor: pointer;
}
form.code .err { color: black; font-size: 22px; min-height: 30px; margin-top: 8px; text-transform: none; }
form.code.bad input { outline: 3px solid black; animation: shake .3s; }
@keyframes shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }

/* home page */
.page-home main { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 100vh; padding: 0; }
.home { text-align: center; margin: 0; }
.home .pic { width: min(680px, 100%); margin-bottom: 26px; }
.home form.code { border: 2px solid #3a3a3a; padding: 28px 18px 18px; }
.home form.code label { font-size: 22px; letter-spacing: 1px; }

/* final page */
.page-final .panel { text-align: center; }

dialog#airport {
  width: min(680px, 100% - 24px); height: min(780px, 100vh - 40px); padding: 0; border: 0;
  background: #222; box-shadow: 2px 8px 23px 3px rgba(0, 0, 0, .4);
}
dialog#airport::backdrop { background: rgba(0, 0, 0, .8); }
dialog#airport iframe { width: 100%; height: calc(100% - 44px); border: 0; background: white; }
dialog#airport .close {
  position: absolute; top: 4px; right: 8px; background: none; border: 0; color: white; font-size: 34px; cursor: pointer;
}
dialog#airport .pdflink { display: block; color: white; text-align: center; font-size: 24px; line-height: 44px; }

@media (max-width: 700px) {
  body { font-size: 24px; background-attachment: scroll; }
  section { margin-bottom: 48px; }
  .panel { padding: 24px 20px; }
  .panel:has(.plane) { gap: 24px; padding: 24px 20px; }
  .btn { min-width: 0; font-size: 26px; }
  form.code label { font-size: 24px; }
}
