/* Oldschool farewell site - late 90s / early 2000s LOUD */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  color: #222;
  background: #ffcc00 url("data:image/svg+xml,%3Csvg width='24' height='24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0h8v8H0V0zm16 16h8v8h-8v-8z' fill='%23ff9900' fill-opacity='0.2'/%3E%3C/svg%3E") repeat;
  min-height: 100vh;
}

.page {
  min-height: 100vh;
  padding: 20px 0;
}

.layout {
  max-width: 820px;
  margin: 0 auto;
  background: #ffffcc;
  border: 4px solid #000;
  box-shadow: 8px 8px 0 #333, 0 0 0 2px #ff6600;
}

.layout td {
  vertical-align: top;
}

/* Links - loud blue/purple */
a:link {
  color: #0000ff;
  text-decoration: underline;
  font-weight: bold;
}

a:visited {
  color: #551a8b;
  text-decoration: underline;
  font-weight: bold;
}

a:hover {
  color: #ff0000;
  text-decoration: underline;
  background: #ffff00;
}

a:focus {
  outline: 3px solid #ff6600;
  outline-offset: 2px;
}

/* Blink (CSS animation - no deprecated <blink>) */
.blink {
  animation: blink 1s step-end infinite;
}

.blink-slow {
  animation: blink 1.5s step-end infinite;
}

.blink-fast {
  animation: blink 0.5s step-end infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

/* Spinning */
.spin {
  animation: spin 3s linear infinite;
  display: inline-block;
}

.spin-slow {
  animation: spin 6s linear infinite;
  display: inline-block;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Visitor counter - fixed left */
.visitor-counter-left {
  position: fixed;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 900;
  background: #ff6600;
  border: 4px solid #000;
  padding: 12px 16px;
  text-align: center;
  font-weight: bold;
  font-size: 14px;
  box-shadow: 4px 4px 0 #333;
  min-width: 100px;
}

.visitor-counter-left p {
  margin: 4px 0;
}

.visitor-num-left {
  font-size: 1.4em;
  color: #000;
}

/* Under construction badge - top right */
.under-construction-badge {
  position: fixed;
  top: 10px;
  right: 10px;
  z-index: 1000;
  background: #ff6600;
  border: 4px solid #000;
  padding: 8px 12px;
  text-align: center;
  font-weight: bold;
  font-size: 14px;
  box-shadow: 4px 4px 0 #333;
}

.under-construction-badge img {
  display: inline-block;
  width: 40px;
  height: 40px;
  margin: 0 2px 4px;
  object-fit: contain;
  vertical-align: middle;
}

/* Hero */
.hero {
  margin-bottom: 2em;
  position: relative;
}

.hero-gifs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 12px;
}

.gif-hero {
  width: 56px;
  height: 56px;
  object-fit: contain;
  vertical-align: middle;
}

.hero h1 {
  font-size: 1.9em;
  margin: 0 0 0.5em;
  line-height: 1.4;
  color: #000;
}

.plane-emoji {
  text-decoration: none;
  font-size: 1em;
}

.tagline {
  font-size: 1.2em;
  margin: 0 0 1.5em;
  font-weight: bold;
}

/* Animated plane */
.plane-wrap {
  margin: 2em 0;
  min-height: 60px;
}

.plane-link {
  display: inline-block;
  font-size: 3em;
  text-decoration: none;
  animation: fly-across 8s linear infinite;
}

@keyframes fly-across {
  0% {
    transform: translateX(-120%) translateY(0);
    opacity: 0;
  }
  5% {
    opacity: 1;
  }
  95% {
    opacity: 1;
  }
  100% {
    transform: translateX(120vw) translateY(-20px);
    opacity: 0;
  }
}

/* Marquee styling - louder */
.ticker {
  display: block;
  padding: 12px 0;
  margin: 1em 0;
  background: #ff9900;
  border: 3px solid #000;
  font-size: 1.15em;
  font-weight: bold;
}

/* Under construction strip */
.construction-strip {
  margin: 1.5em 0;
  padding: 12px 16px;
  background: #ffcc00;
  border: 3px dashed #ff6600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.construction-strip span {
  font-weight: bold;
  font-size: 1.1em;
}

.gif-strip {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

/* Link farm */
.link-farm {
  margin: 2em 0;
  padding: 1em 0;
  border-top: 3px solid #000;
  border-bottom: 2px dashed #666;
}

.link-farm h2 {
  margin: 0 0 0.5em;
  font-size: 1.4em;
  color: #000;
}

.link-farm p {
  margin: 0.6em 0;
  line-height: 2.2;
}

.gif-row-inline {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0;
}

.gif-tiny {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

/* GIF row - spinning clickable GIFs */
.gif-row {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin: 2em 0;
  padding: 1em 0;
  border-top: 2px solid #333;
}

.gif-link {
  display: block;
  text-decoration: none;
  border: 3px solid #000;
  background: #fff;
  padding: 4px;
}

.gif-link img {
  display: block;
  width: 80px;
  height: 80px;
  object-fit: contain;
}

/* GIF gallery - plethora */
.gif-gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 2em 0;
  padding: 1em;
  background: #ffe8a0;
  border: 3px dashed #ff6600;
}

.gif-gal {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

/* Footer */
.footer {
  margin-top: 2em;
  padding-top: 1em;
  border-top: 4px solid #000;
  font-size: 0.95em;
  position: relative;
}

.footer .counter {
  margin-top: 0.5em;
  font-style: italic;
  font-weight: bold;
  color: #333;
}

.footer-gifs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 12px;
}

.gif-footer {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

/* Video modal */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.9);
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal[aria-hidden="false"] {
  display: flex;
}

.modal-content {
  position: relative;
  background: #ffffcc;
  border: 5px solid #ff6600;
  padding: 20px;
  max-width: 90vw;
  max-height: 90vh;
  box-shadow: 0 0 0 4px #000;
}

.close-link {
  display: inline-block;
  margin-bottom: 10px;
  font-weight: bold;
  font-size: 1.2em;
}

.video-container {
  position: relative;
  width: 90vw;
  max-width: 640px;
  aspect-ratio: 16 / 9;
  background: #000;
}

.video-container iframe,
.video-container video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.video-container video {
  object-fit: contain;
}

/* Are you sure? modal - position set by JS each time */
.confirm-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.6);
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.confirm-modal[aria-hidden="false"] {
  display: flex;
  pointer-events: auto;
}

.confirm-box {
  position: fixed;
  background: #ffffcc;
  border: 5px solid #ff0000;
  padding: 24px;
  box-shadow: 0 0 0 4px #000, 8px 8px 0 #333;
  min-width: 260px;
  text-align: center;
}

.confirm-box p {
  margin: 0 0 12px;
  font-weight: bold;
  font-size: 1.1em;
}

.confirm-hint {
  font-size: 0.95em;
  margin-bottom: 16px !important;
}

.confirm-yes,
.confirm-no {
  display: inline-block;
  padding: 6px 12px;
  margin: 0 4px;
}
