html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  background: black;
  font-family: monospace, monospace;
  color: white;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

/* Loading overlay */
#loading {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: black;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4vh;
  z-index: 9999;
  transition: opacity 0.6s ease-out;
}
#loading.fade-out {
  opacity: 0;
  pointer-events: none;
}

/* Content fills screen */
.content {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-bottom: 80px;
}

/* Flight lines */
.line {
  flex: 1; /* all lines share space evenly */
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  white-space: nowrap;
  width: 100%;
  font-size: 10vh;
  line-height: 1.2;
  margin: 0;
  padding: 0;
}
.flight     { color: violet; }
.route      { color: lime; }
.aircraft   { color: orange; }
.route-long { color: cyan; }

/* Responsive adjustments */
@media (min-width: 768px) {
  .line { font-size: 4vh; }
}

/* Footer */
footer {
  flex: 0 0 auto;
  background: black;
  text-align: center;
  padding: 0.5em 0;
}
footer img {
  height: 40px;
}
footer .last-updated {
  font-size: 2.5vh;
  color: gray;
}

/* Hide footer in landscape for full screen experience */
@media (orientation: landscape) {
  footer { display: none; }

}

/* Header */
header {
  text-align: center;
  padding: 1em 0;
  background: black;
}
@media (orientation: landscape) {
header h1 {
  font-size: 5vh;
  margin: 0.2em 0;
  color: white;
}
}
header .support img {
  height: 30px;
  margin-top: 0.5em;
}
/* Scrolling animation for long text */
.scroll {
  display: inline-block;
  padding-left: 100%;
  animation-name: scroll-left;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  animation-duration: var(--scroll-duration, 12s);
}

@keyframes scroll-left {
  from { transform: translateX(100%); }
  to   { transform: translateX(-100%); }
}
.seo-text {
  padding: 1em;
  font-size: 2vh;
  color: #ccc;
  line-height: 1.4;
  text-align: left;
}
.seo h2 {
  font-size: 3vh;
  color: #fff;
  margin-bottom: 0.5em;
}
.controls {
  text-align: center;
  padding: 0.5em;
  background: black;
  color: white;
}

.controls label {
  margin-right: 0.5em;
}

.controls select {
  font-size: 2vh;
  padding: 0.2em;
}

/* Force-hide SEO text in landscape */
@media (orientation: landscape) {
  .seo-text {
    display: none !important;
    visibility: hidden;
    height: 0;
    overflow: hidden;
  }
}
.seo-text .more-text {
  display: none;
}
#read-more {
  background: #444;
  color: white;
  border: none;
  padding: 0.5em 1em;
  margin-top: 0.5em;
  cursor: pointer;
  font-size: 2vh;
}

