@font-face {
  font-family: 'Star4000';
  src: url('../fonts/Star4000.woff') format('woff');
  font-display: swap;
}

@font-face {
  font-family: 'Star4000 Extended';
  src: url('../fonts/Star4000 Extended.woff') format('woff');
  font-display: swap;
}

@font-face {
  font-family: 'Star4000 Large';
  src: url('../fonts/Star4000 Large.woff') format('woff');
  font-display: swap;
}

@font-face {
  font-family: 'Star4000 Small';
  src: url('../fonts/Star4000 Small.woff') format('woff');
  font-display: swap;
}

body {
  font-family: 'Star4000';

  @media (prefers-color-scheme: dark) {
    background-color: #000;
    color: #fff;

    a {
      color: #add8e6;
    }
  }
}

#divTwc {
  display: block;
  background-color: #000;
  color: #fff;
  width: 100%;
  max-width: 640px;

  &:fullscreen {
    display: flex;
    align-items: center;
    justify-content: center;
    align-content: center;
    max-width: none;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(to bottom, #1c0a57 0%, #233270 100%);

    &.no-cursor {
      cursor: none;
    }

    #display {
      position: relative;
    }

    #divTwcBottom {
      display: flex;
      flex-direction: row;
      background-color: rgba(0, 0, 0, 0.5);
      color: #fff;
      width: 100%;
      position: absolute;
      bottom: 0px;
    }

    .hidden {
      visibility: hidden;
      opacity: 0;
      transition:
        visibility 0s 1s,
        opacity 1s linear;
    }

    .weather-display {
      background-image: none !important;
    }
  }
}

#divTwcLeft {
  display: none;
  text-align: right;
  flex-direction: column;
  vertical-align: middle;

  > div {
    flex: 1;
    padding-right: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
}

#divTwcRight {
  text-align: left;
  display: none;
  flex-direction: column;
  vertical-align: middle;

  > div {
    flex: 1;
    padding-left: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
}

#divTwcBottom {
  display: flex;
  flex-direction: row;
  background-color: #000;
  color: #fff;
  width: 100%;

  @media (prefers-color-scheme: dark) {
    background-color: #303030;
  }

  > div {
    padding-left: 6px;
    padding-right: 6px;

    @media (max-width: 550px) {
      zoom: 0.9;
    }

    @media (max-width: 500px) {
      zoom: 0.8;
    }

    @media (max-width: 450px) {
      zoom: 0.7;
    }

    @media (max-width: 400px) {
      zoom: 0.6;
    }

    @media (max-width: 350px) {
      zoom: 0.5;
    }
  }

  img {
    transform: scale(0.75);
  }
}

#divTwcBottomLeft {
  text-align: left;
}

#divTwcBottomMiddle {
  flex: 0;
  text-align: center;
}

#divTwcBottomRight {
  flex: 1;
  text-align: right;
}

#divTwcNavContainer {
  display: none;
}

#divTwcNav {
  width: 100%;
  display: flex;
  flex-direction: row;
  background-color: #000;
  color: #fff;
  max-width: 640px;

  > div {
    padding-left: 6px;
    padding-right: 6px;
  }
}

#divTwcNavLeft {
  flex: 1;
  text-align: left;
}

#divTwcNavMiddle {
  flex: 0;
  text-align: center;
}

#divTwcNavRight {
  flex: 1;
  text-align: right;
}

#imgPause1x {
  visibility: hidden;
  position: absolute;
}

.HideCursor {
  cursor: none !important;
}

#txtScrollText {
  width: 475px;
}

#display {
  font-family: 'Star4000';
  margin: 0 0 0 0;
  width: 100%;
}

#container {
  position: relative;
  width: 640px;
  height: 480px;
  background-image: url(../images/backgrounds/1.png);
  transform-origin: 0 0;
}

#loading {
  width: 640px;
  height: 480px;
  max-width: 100%;
  text-shadow: 4px 4px #000;
  display: flex;
  align-items: center;
  text-align: center;
  justify-content: center;

  .title {
    font-family: Star4000 Large;
    font-size: 36px;
    color: #ff0;
    margin-bottom: 0px;
  }

  .version {
    margin-bottom: 35px;
  }

  .instructions {
    font-size: 18pt;
  }
}

#settings {
  margin-bottom: 15px;

  .loading,
  .retrying {
    color: #ff0;
  }

  .press-here {
    color: lime;
    cursor: pointer;

    @media (prefers-color-scheme: light) {
      color: #000;
    }
  }

  .failed {
    color: red;

    @media (prefers-color-scheme: light) {
      color: #900;
    }
  }

  .no-data {
    color: silver;

    @media (prefers-color-scheme: light) {
      color: hsl(0, 0%, 30%);
    }
  }

  .disabled {
    color: silver;

    @media (prefers-color-scheme: light) {
      color: hsl(0, 0%, 30%);
    }
  }

  label {
    display: block;
    max-width: 300px;

    .alert {
      display: none;

      &.show {
        display: inline;
        color: red;
      }
    }
  }
}

.navButton {
  cursor: pointer;
}

#ToggleScanlines {
  display: inline-block;

  .on {
    display: none;
  }

  .off {
    display: inline-block;
  }

  &.on {
    .on {
      display: inline-block;
    }

    .off {
      display: none;
    }
  }
}

.visible {
  visibility: visible;
  opacity: 1;
  transition: opacity 0.1s linear;
}

#divTwc:fullscreen .hidden {
  visibility: hidden;
  opacity: 0;
  transition:
    visibility 0s 1s,
    opacity 1s linear;
}

.github-links {
  width: 610px;
  max-width: calc(100vw - 30px);
  display: flex;
  justify-content: space-evenly;
  flex-wrap: wrap;

  span {
    a {
      text-decoration: none;
      outline: 0;
    }

    .widget {
      display: inline-block;
      overflow: hidden;
      font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
      font-size: 0;
      line-height: 0;
      white-space: nowrap;
    }

    .btn,
    .social-count {
      position: relative;
      display: inline-block;
      display: inline-flex;
      height: 14px;
      padding: 2px 5px;
      font-size: 11px;
      font-weight: 600;
      line-height: 14px;
      vertical-align: bottom;
      cursor: pointer;
      -webkit-user-select: none;
      -moz-user-select: none;
      -ms-user-select: none;
      user-select: none;
      background-repeat: repeat-x;
      background-position: -1px -1px;
      background-size: 110% 110%;
      border: 1px solid;
    }

    .btn {
      border-radius: 0.25em;

      &:not(:last-child) {
        border-radius: 0.25em 0 0 0.25em;
      }

      &:focus-visible,
      .social-count:focus-visible {
        outline: 2px solid #0969da;
        outline-offset: -2px;
      }

      color: #24292f;
      background-color: #ebf0f4;
      border-color: #ccd1d5;
      border-color: rgba(27, 31, 36, 0.15);
      background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg'%3e%3clinearGradient id='o' x2='0' y2='1'%3e%3cstop stop-color='%23f6f8fa'/%3e%3cstop offset='90%25' stop-color='%23ebf0f4'/%3e%3c/linearGradient%3e%3crect width='100%25' height='100%25' fill='url(%23o)'/%3e%3c/svg%3e");
      background-image: -moz-linear-gradient(top, #f6f8fa, #ebf0f4 90%);
      background-image: linear-gradient(180deg, #f6f8fa, #ebf0f4 90%);
      filter: progid:DXImageTransform.Microsoft.Gradient(startColorstr="#FFF6F8FA", endColorstr="#FFEAEFF3");

      :root & {
        filter: none;
      }

      &:hover,
      &:focus {
        background-color: #e9ebef;
        background-position: 0 -0.5em;
        border-color: #caccd1;
        border-color: rgba(27, 31, 36, 0.15);
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg'%3e%3clinearGradient id='o' x2='0' y2='1'%3e%3cstop stop-color='%23f3f4f6'/%3e%3cstop offset='90%25' stop-color='%23e9ebef'/%3e%3c/linearGradient%3e%3crect width='100%25' height='100%25' fill='url(%23o)'/%3e%3c/svg%3e");
        background-image: -moz-linear-gradient(top, #f3f4f6, #e9ebef 90%);
        background-image: linear-gradient(180deg, #f3f4f6, #e9ebef 90%);
        filter: progid:DXImageTransform.Microsoft.Gradient(startColorstr="#FFF3F4F6", endColorstr="#FFE8EAEE");

        :root & {
          filter: none;
        }
      }

      &:active {
        background-color: #e5e9ed;
        border-color: #c7cbcf;
        border-color: rgba(27, 31, 36, 0.15);
        box-shadow: inset 0 0.15em 0.3em rgba(27, 31, 36, 0.15);
        background-image: none;
        filter: none;
      }
    }

    .social-count {
      border-left: 0;
      border-radius: 0 0.25em 0.25em 0;
      color: #24292f;
      background-color: #fff;
      border-color: #ddddde;
      border-color: rgba(27, 31, 36, 0.15);

      &:hover,
      &:focus {
        color: #0969da;
      }
    }

    .widget-lg {
      .btn,
      .social-count {
        height: 16px;
        padding: 5px 10px;
        font-size: 12px;
        line-height: 16px;
      }
    }

    .octicon {
      display: inline-block;
      vertical-align: text-top;
      fill: currentColor;
      overflow: visible;

      &.octicon-heart {
        color: #bf3989;
      }
    }
  }

  @media (prefers-color-scheme: light) {
    span {
      .btn:focus-visible,
      .social-count:focus-visible {
        outline: 2px solid #0969da;
        outline-offset: -2px;
      }

      .btn {
        color: #24292f;
        background-color: #ebf0f4;
        border-color: #ccd1d5;
        border-color: rgba(27, 31, 36, 0.15);
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg'%3e%3clinearGradient id='o' x2='0' y2='1'%3e%3cstop stop-color='%23f6f8fa'/%3e%3cstop offset='90%25' stop-color='%23ebf0f4'/%3e%3c/linearGradient%3e%3crect width='100%25' height='100%25' fill='url(%23o)'/%3e%3c/svg%3e");
        background-image: -moz-linear-gradient(top, #f6f8fa, #ebf0f4 90%);
        background-image: linear-gradient(180deg, #f6f8fa, #ebf0f4 90%);
        filter: progid:DXImageTransform.Microsoft.Gradient(startColorstr="#FFF6F8FA", endColorstr="#FFEAEFF3");

        :root & {
          filter: none;
        }

        &:hover,
        &:focus {
          background-color: #e9ebef;
          background-position: 0 -0.5em;
          border-color: #caccd1;
          border-color: rgba(27, 31, 36, 0.15);
          background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg'%3e%3clinearGradient id='o' x2='0' y2='1'%3e%3cstop stop-color='%23f3f4f6'/%3e%3cstop offset='90%25' stop-color='%23e9ebef'/%3e%3c/linearGradient%3e%3crect width='100%25' height='100%25' fill='url(%23o)'/%3e%3c/svg%3e");
          background-image: -moz-linear-gradient(top, #f3f4f6, #e9ebef 90%);
          background-image: linear-gradient(180deg, #f3f4f6, #e9ebef 90%);
          filter: progid:DXImageTransform.Microsoft.Gradient(startColorstr="#FFF3F4F6", endColorstr="#FFE8EAEE");

          :root & {
            filter: none;
          }
        }

        &:active {
          background-color: #e5e9ed;
          border-color: #c7cbcf;
          border-color: rgba(27, 31, 36, 0.15);
          box-shadow: inset 0 0.15em 0.3em rgba(27, 31, 36, 0.15);
          background-image: none;
          filter: none;
        }
      }

      .social-count {
        color: #24292f;
        background-color: #fff;
        border-color: #ddddde;
        border-color: rgba(27, 31, 36, 0.15);

        &:hover,
        &:focus {
          color: #0969da;
        }
      }

      .octicon-heart {
        color: #bf3989;
      }
    }
  }

  @media (prefers-color-scheme: dark) {
    span {
      .btn:focus-visible,
      .social-count:focus-visible {
        outline: 2px solid #58a6ff;
        outline-offset: -2px;
      }

      .btn {
        color: #c9d1d9;
        background-color: #1a1e23;
        border-color: #2f3439;
        border-color: rgba(240, 246, 252, 0.1);
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg'%3e%3clinearGradient id='o' x2='0' y2='1'%3e%3cstop stop-color='%2321262d'/%3e%3cstop offset='90%25' stop-color='%231a1e23'/%3e%3c/linearGradient%3e%3crect width='100%25' height='100%25' fill='url(%23o)'/%3e%3c/svg%3e");
        background-image: -moz-linear-gradient(top, #21262d, #1a1e23 90%);
        background-image: linear-gradient(180deg, #21262d, #1a1e23 90%);
        filter: progid:DXImageTransform.Microsoft.Gradient(startColorstr="#FF21262D", endColorstr="#FF191D22");

        :root & {
          filter: none;
        }

        &:hover,
        &:focus {
          background-color: #292e33;
          background-position: 0 -0.5em;
          border-color: #8b949e;
          background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg'%3e%3clinearGradient id='o' x2='0' y2='1'%3e%3cstop stop-color='%2330363d'/%3e%3cstop offset='90%25' stop-color='%23292e33'/%3e%3c/linearGradient%3e%3crect width='100%25' height='100%25' fill='url(%23o)'/%3e%3c/svg%3e");
          background-image: -moz-linear-gradient(top, #30363d, #292e33 90%);
          background-image: linear-gradient(180deg, #30363d, #292e33 90%);
          filter: progid:DXImageTransform.Microsoft.Gradient(startColorstr="#FF30363D", endColorstr="#FF282D32");

          :root & {
            filter: none;
          }
        }

        &:active {
          background-color: #161719;
          border-color: #8b949e;
          box-shadow: inset 0 0.15em 0.3em rgba(1, 4, 9, 0.15);
          background-image: none;
          filter: none;
        }
      }

      .social-count {
        color: #c9d1d9;
        background-color: #0d1117;
        border-color: #24282e;
        border-color: rgba(240, 246, 252, 0.1);

        &:hover,
        &:focus {
          color: #58a6ff;
        }
      }

      .octicon-heart {
        color: #db61a2;
      }
    }
  }
}

.weather-display {
  width: 640px;
  height: 480px;
  overflow: hidden;
  position: relative;
  background-image: url(../images/backgrounds/1.png);
  height: 0px;

  &.show {
    height: 480px;
  }

  .template {
    display: none;
  }

  .header {
    width: 640px;
    height: 60px;
    padding-top: 30px;

    .title {
      color: #ff0;
      text-shadow:
        3px 3px 0 #000,
        -1.5px -1.5px 0 #000,
        0 -1.5px 0 #000,
        1.5px -1.5px 0 #000,
        1.5px 0 0 #000,
        1.5px 1.5px 0 #000,
        0 1.5px 0 #000,
        -1.5px 1.5px 0 #000,
        -1.5px 0 0 #000;
      font-family: 'Star4000';
      font-size: 24pt;
      position: absolute;
      width: 400px;
      left: 50px;
      top: 25px;

      &.single {
        left: 50px;
        top: 25px;
      }

      &.dual {
        left: 50px;

        > div {
          position: absolute;
        }

        .top {
          top: 0px;
        }

        .bottom {
          top: 32px;
        }
      }
    }

    .logo {
      top: 30px;
      left: 50px;
      position: absolute;
      z-index: 10;
    }

    .noaa-logo {
      position: absolute;
      top: 39px;
      left: 356px;
    }

    .title.single {
      top: 40px;
    }

    .date-time {
      white-space: pre;
      color: #fff;
      font-family: 'Star4000 Small';
      font-size: 24pt;
      text-shadow:
        3px 3px 0 #000,
        -1.5px -1.5px 0 #000,
        0 -1.5px 0 #000,
        1.5px -1.5px 0 #000,
        1.5px 0 0 #000,
        1.5px 1.5px 0 #000,
        0 1.5px 0 #000,
        -1.5px 1.5px 0 #000,
        -1.5px 0 0 #000;
      left: 415px;
      width: 170px;
      text-align: right;
      position: absolute;

      &.date {
        padding-top: 22px;
      }
    }
  }

  .main {
    position: relative;

    &.has-scroll {
      width: 640px;
      height: 310px;
      overflow: hidden;

      &.no-header {
        height: 400px;
      }
    }

    &.has-box {
      margin-left: 64px;
      margin-right: 64px;
      width: calc(100% - 128px);
    }
  }

  .scroll {
    text-shadow:
      3px 3px 0 #000,
      -1.5px -1.5px 0 #000,
      0 -1.5px 0 #000,
      1.5px -1.5px 0 #000,
      1.5px 0 0 #000,
      1.5px 1.5px 0 #000,
      0 1.5px 0 #000,
      -1.5px 1.5px 0 #000,
      -1.5px 0 0 #000;
    width: 640px;
    height: 70px;
    overflow: hidden;
    margin-top: 3px;

    &.hazard {
      background-color: #702323;
    }

    .fixed,
    .scroll-header {
      margin-left: 55px;
      margin-right: 55px;
      overflow: hidden;
    }

    .scroll-header {
      height: 26px;
      font-family: 'Star4000 Small';
      font-size: 20pt;
      margin-top: -10px;
    }

    .fixed {
      font-family: 'Star4000';
      font-size: 24pt;

      .scroll-area {
        text-wrap: nowrap;
        position: relative;
      }
    }
  }
}

#extended-forecast-html.weather-display {
  background-image: url('../images/backgrounds/2.png');
}

.weather-display .main.extended-forecast {
  .day-container {
    margin-top: 16px;
    margin-left: 27px;
  }

  .day {
    text-shadow:
      3px 3px 0 #000,
      -1.5px -1.5px 0 #000,
      0 -1.5px 0 #000,
      1.5px -1.5px 0 #000,
      1.5px 0 0 #000,
      1.5px 1.5px 0 #000,
      0 1.5px 0 #000,
      -1.5px 1.5px 0 #000,
      -1.5px 0 0 #000;
    padding: 5px;
    height: 285px;
    width: 155px;
    display: inline-block;
    margin: 0px 15px;
    font-family: 'Star4000';
    font-size: 24pt;

    .date {
      text-transform: uppercase;
      text-align: center;
      color: #ff0;
    }

    .condition {
      text-align: center;
      height: 74px;
      margin-top: 5px;
    }

    .icon {
      text-align: center;
      height: 75px;

      img {
        max-height: 75px;
      }
    }

    .temperatures {
      width: 100%;

      .temperature-block {
        display: inline-block;
        width: 44%;
        vertical-align: top;

        > div {
          text-align: center;
        }

        .value {
          font-family: 'Star4000 Large';
          margin-top: 4px;
        }

        &.lo .label {
          color: #8080ff;
        }

        &.hi .label {
          color: #ff0;
        }
      }
    }
  }
}

.weather-display .main.travel.main {
  overflow-y: hidden;

  .column-headers {
    background-color: #200057;
    height: 20px;
    position: absolute;
    width: 100%;
    position: sticky;
    top: 0px;
    z-index: 5;

    div {
      display: inline-block;
      font-family: 'Star4000 Small';
      font-size: 24pt;
      color: #ff0;
      position: absolute;
      top: -14px;
      z-index: 5;
      text-shadow:
        3px 3px 0 #000,
        -1.5px -1.5px 0 #000,
        0 -1.5px 0 #000,
        1.5px -1.5px 0 #000,
        1.5px 0 0 #000,
        1.5px 1.5px 0 #000,
        0 1.5px 0 #000,
        -1.5px 1.5px 0 #000,
        -1.5px 0 0 #000;
    }

    .temp {
      width: 50px;
      text-align: center;

      &.low {
        left: 455px;
      }

      &.high {
        left: 510px;
        width: 60px;
      }
    }
  }

  .travel-lines {
    min-height: 338px;
    padding-top: 10px;
    background: repeating-linear-gradient(0deg, #001040 0px, #102080 136px, #102080 202px, #001040 338px);

    .travel-row {
      font-family: 'Star4000 Large';
      font-size: 24pt;
      height: 72px;
      color: #ff0;
      text-shadow:
        3px 3px 0 #000,
        -1.5px -1.5px 0 #000,
        0 -1.5px 0 #000,
        1.5px -1.5px 0 #000,
        1.5px 0 0 #000,
        1.5px 1.5px 0 #000,
        0 1.5px 0 #000,
        -1.5px 1.5px 0 #000,
        -1.5px 0 0 #000;
      position: relative;

      > div {
        position: absolute;
        white-space: pre;
        top: 8px;
      }

      .city {
        left: 80px;
      }

      .icon {
        left: 330px;
        width: 70px;
        text-align: center;
        top: unset;

        img {
          max-width: 47px;
        }
      }

      .temp {
        width: 50px;
        text-align: center;

        &.low {
          left: 455px;
        }

        &.high {
          left: 510px;
          width: 60px;
        }
      }
    }
  }
}

.weather-display .latest-observations.main {
  overflow-y: hidden;

  .column-headers {
    height: 20px;
    position: absolute;
    width: 100%;
    top: 0px;

    div {
      display: inline-block;
      font-family: 'Star4000 Small';
      font-size: 24pt;
      position: absolute;
      top: -14px;
      text-shadow:
        3px 3px 0 #000,
        -1.5px -1.5px 0 #000,
        0 -1.5px 0 #000,
        1.5px -1.5px 0 #000,
        1.5px 0 0 #000,
        1.5px 1.5px 0 #000,
        0 1.5px 0 #000,
        -1.5px 1.5px 0 #000,
        -1.5px 0 0 #000;
    }

    .temp {
      display: none;

      &.show {
        display: inline-block;
      }
    }
  }

  .temp {
    left: 230px;
  }

  .weather {
    left: 280px;
  }

  .wind {
    left: 430px;
  }

  .observation-lines {
    min-height: 338px;
    padding-top: 10px;

    .observation-row {
      font-family: 'Star4000';
      font-size: 24pt;
      text-shadow:
        3px 3px 0 #000,
        -1.5px -1.5px 0 #000,
        0 -1.5px 0 #000,
        1.5px -1.5px 0 #000,
        1.5px 0 0 #000,
        1.5px 1.5px 0 #000,
        0 1.5px 0 #000,
        -1.5px 1.5px 0 #000,
        -1.5px 0 0 #000;
      position: relative;
      height: 40px;

      > div {
        position: absolute;
        top: 8px;
      }

      .wind {
        white-space: pre;
        text-align: right;
      }
    }
  }
}

.weather-display .local-forecast {
  .container {
    position: relative;
    top: 15px;
    margin: 0px 10px;
    box-sizing: border-box;
    height: 280px;
    overflow: hidden;
  }

  .forecasts {
    position: relative;
  }

  .forecast {
    font-family: 'Star4000';
    font-size: 24pt;
    text-transform: uppercase;
    text-shadow:
      3px 3px 0 #000,
      -1.5px -1.5px 0 #000,
      0 -1.5px 0 #000,
      1.5px -1.5px 0 #000,
      1.5px 0 0 #000,
      1.5px 1.5px 0 #000,
      0 1.5px 0 #000,
      -1.5px 1.5px 0 #000,
      -1.5px 0 0 #000;
    min-height: 280px;
    line-height: 40px;
  }
}

.weather-display .progress {
  text-shadow:
    3px 3px 0 #000,
    -1.5px -1.5px 0 #000,
    0 -1.5px 0 #000,
    1.5px -1.5px 0 #000,
    1.5px 0 0 #000,
    1.5px 1.5px 0 #000,
    0 1.5px 0 #000,
    -1.5px 1.5px 0 #000,
    -1.5px 0 0 #000;
  font-family: 'Star4000 Extended';
  font-size: 19pt;

  .container {
    position: relative;
    top: 15px;
    margin: 0px 10px;
    box-sizing: border-box;
    height: 310px;
    overflow: hidden;

    .item {
      position: relative;

      .name {
        white-space: nowrap;

        &::after {
          content: '........................................................................';
        }
      }

      .links {
        position: absolute;
        text-align: right;
        right: 0px;
        top: 0px;

        > div {
          background-color: #26235a;
          display: none;
          padding-left: 4px;
        }

        .loading,
        .retrying {
          color: #ff0;
        }

        .press-here {
          color: lime;
          cursor: pointer;
        }

        .failed {
          color: red;
        }

        .no-data {
          color: silver;
        }

        .disabled {
          color: silver;
        }

        &.loading .loading,
        &.press-here .press-here,
        &.failed .failed,
        &.no-data .no-data,
        &.disabled .disabled,
        &.retrying .retrying {
          display: block;
        }
      }
    }
  }
}

@keyframes progress-scroll {
  0% {
    background-position: -40px 0;
  }
  100% {
    background-position: 40px 0;
  }
}

#progress-html.weather-display .scroll {
  .progress-bar-container {
    border: 2px solid #000;
    background-color: #fff;
    margin: 20px auto;
    width: 524px;
    position: relative;
    display: none;

    &.show {
      display: block;
    }

    .progress-bar {
      height: 20px;
      margin: 2px;
      width: 520px;
      background: repeating-linear-gradient(
        90deg,
        #09246f 0px,
        #09246f 5px,
        #364ac0 5px,
        #364ac0 10px,
        #4f99f9 10px,
        #4f99f9 15px,
        #8ffdfa 15px,
        #8ffdfa 20px,
        #4f99f9 20px,
        #4f99f9 25px,
        #364ac0 25px,
        #364ac0 30px,
        #09246f 30px,
        #09246f 40px
      );
      animation-duration: 2s;
      animation-fill-mode: forwards;
      animation-iteration-count: infinite;
      animation-name: progress-scroll;
      animation-timing-function: steps(8, end);
    }

    .cover {
      position: absolute;
      top: 0px;
      right: 0px;
      background-color: #fff;
      width: 100%;
      height: 24px;
      transition: width 1s steps(6);
    }
  }
}

#radar-html.weather-display {
  background-image: url('../images/backgrounds/4.png');

  .header {
    height: 83px;

    .title.dual {
      color: #fff;
      font-family: 'Arial', sans-serif;
      font-weight: bold;
      font-size: 28pt;
      left: 50px;

      .top {
        top: 0px;
      }

      .bottom {
        top: 32px;
      }
    }

    .right {
      position: absolute;
      right: 0px;
      width: 360px;
      margin-top: 2px;
      font-family: 'Star4000';
      font-size: 18pt;
      font-weight: bold;
      text-shadow:
        3px 3px 0 #000,
        -1.5px -1.5px 0 #000,
        0 -1.5px 0 #000,
        1.5px -1.5px 0 #000,
        1.5px 0 0 #000,
        1.5px 1.5px 0 #000,
        0 1.5px 0 #000,
        -1.5px 1.5px 0 #000,
        -1.5px 0 0 #000;
      text-align: center;

      .scale {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 5px;

        .scale-table {
          display: table;
          border-collapse: collapse;

          .box {
            display: table-cell;
            border: 2px solid #000;
            width: 17px;
            height: 24px;
            padding: 0;

            &.box-1 {
              background-color: #31d216;
            }

            &.box-2 {
              background-color: #1c8a12;
            }

            &.box-3 {
              background-color: #145a0f;
            }

            &.box-4 {
              background-color: #0a280a;
            }

            &.box-5 {
              background-color: #c4b346;
            }

            &.box-6 {
              background-color: #be4813;
            }

            &.box-7 {
              background-color: #ab0e0e;
            }

            &.box-8 {
              background-color: #731f04;
            }
          }
        }

        .text {
          position: relative;
          top: -5px;
        }
      }

      .time {
        position: relative;
        font-weight: normal;
        top: -14px;
        font-family: 'Star4000 Small';
        font-size: 24pt;
      }
    }

    .noaa-logo {
      position: absolute;
      top: 39px;
      left: 356px;
    }
  }
}

.weather-display .main.radar {
  overflow: hidden;
  height: 367px;

  .container {
    .tiles {
      position: absolute;
      width: 1400px;

      img {
        vertical-align: middle;
      }
    }

    .scroll-area {
      position: relative;
    }
  }
}

#regional-forecast-html.weather-display {
  background-image: url('../images/backgrounds/5.png');
}

.weather-display .main.regional-forecast {
  position: relative;

  .map {
    position: absolute;
    transform-origin: 0 0;
  }

  .location {
    position: absolute;
    width: 140px;
    margin-left: -40px;
    margin-top: -35px;

    > div {
      position: absolute;
      text-shadow:
        3px 3px 0 #000,
        -1.5px -1.5px 0 #000,
        0 -1.5px 0 #000,
        1.5px -1.5px 0 #000,
        1.5px 0 0 #000,
        1.5px 1.5px 0 #000,
        0 1.5px 0 #000,
        -1.5px 1.5px 0 #000,
        -1.5px 0 0 #000;
    }

    .icon {
      top: 26px;
      left: 44px;

      img {
        max-height: 32px;
      }
    }

    .temp {
      font-family: 'Star4000 Large';
      font-size: 28px;
      padding-top: 2px;
      color: #ff0;
      top: 28px;
      text-align: right;
      width: 40px;
    }

    .city {
      font-family: Star4000;
      font-size: 20px;
    }
  }
}

#almanac-html.weather-display {
  background-image: url('../images/backgrounds/3.png');

  .header {
    .title.single {
      left: 50px;
      top: 25px;
      text-align: center;
      width: 300px;
    }
  }
}

.weather-display .main.almanac {
  font-family: 'Star4000';
  font-size: 24pt;
  text-shadow:
    3px 3px 0 #000,
    -1.5px -1.5px 0 #000,
    0 -1.5px 0 #000,
    1.5px -1.5px 0 #000,
    1.5px 0 0 #000,
    1.5px 1.5px 0 #000,
    0 1.5px 0 #000,
    -1.5px 1.5px 0 #000,
    -1.5px 0 0 #000;

  .sun {
    display: table;
    margin-left: 50px;
    height: 100px;

    > div {
      display: table-row;
      position: relative;

      > div {
        display: table-cell;
      }
    }

    .days {
      color: #ff0;
      text-align: right;
      top: -5px;

      .day {
        padding-right: 10px;
      }
    }

    .times {
      text-align: right;

      .sun-time {
        width: 200px;
      }

      &.times-1 {
        top: -10px;
      }

      &.times-2 {
        top: -15px;
      }
    }
  }

  .moon {
    position: relative;
    top: -10px;
    padding: 0px 60px;

    .title {
      color: #ff0;
    }

    .day {
      display: inline-block;
      text-align: center;
      width: 130px;

      .icon {
        padding-left: 10px;
      }

      .date {
        position: relative;
        top: -10px;
      }
    }
  }
}

.weather-display .main.hazards.main {
  overflow-y: hidden;
  height: 480px;

  .hazard-lines {
    min-height: 400px;
    padding-top: 10px;
    background-color: #702323;

    .hazard {
      font-family: 'Star4000';
      font-size: 24pt;
      color: #fff;
      text-shadow:
        0px 0px 0 #000,
        -1.5px -1.5px 0 #000,
        0 -1.5px 0 #000,
        1.5px -1.5px 0 #000,
        1.5px 0 0 #000,
        1.5px 1.5px 0 #000,
        0 1.5px 0 #000,
        -1.5px 1.5px 0 #000,
        -1.5px 0 0 #000;
      position: relative;
      text-transform: uppercase;
      margin-top: 10px;
      margin-left: 80px;
      margin-right: 80px;
      padding-bottom: 10px;
    }
  }
}

.media {
  display: none;
}

#ToggleMedia {
  display: none;

  &.available {
    display: inline-block;

    img.on {
      display: none;
    }

    img.off {
      display: block;
    }

    &.playing {
      img.on {
        display: block;
      }

      img.off {
        display: none;
      }
    }
  }
}

#spc-outlook-html.weather-display {
  background-image: url('../images/backgrounds/6.png');
}

.weather-display .spc-outlook {
  .container {
    position: relative;
    top: 0px;
    margin: 0px 10px;
    box-sizing: border-box;
    height: 300px;
    overflow: hidden;
  }

  .risk-levels {
    position: absolute;
    left: 206px;
    font-family: 'Star4000 Small';
    font-size: 32px;
    text-shadow:
      3px 3px 0 #000,
      -1.5px -1.5px 0 #000,
      0 -1.5px 0 #000,
      1.5px -1.5px 0 #000,
      1.5px 0 0 #000,
      1.5px 1.5px 0 #000,
      0 1.5px 0 #000,
      -1.5px 1.5px 0 #000,
      -1.5px 0 0 #000;

    .risk-level {
      position: relative;
      top: -14px;
      height: 20px;

      &:nth-child(1) {
        left: 100px;
      }

      &:nth-child(2) {
        left: 80px;
      }

      &:nth-child(3) {
        left: 60px;
      }

      &:nth-child(4) {
        left: 40px;
      }

      &:nth-child(5) {
        left: 20px;
      }

      &:nth-child(6) {
        left: 0px;
      }
    }
  }

  .days {
    position: absolute;
    top: 120px;

    .day {
      height: 60px;

      .day-name {
        position: absolute;
        font-family: 'Star4000';
        font-size: 24pt;
        width: 200px;
        text-align: right;
        text-shadow:
          3px 3px 0 #000,
          -1.5px -1.5px 0 #000,
          0 -1.5px 0 #000,
          1.5px -1.5px 0 #000,
          1.5px 0 0 #000,
          1.5px 1.5px 0 #000,
          0 1.5px 0 #000,
          -1.5px 1.5px 0 #000,
          -1.5px 0 0 #000;
        padding-top: 20px;
      }

      .risk-bar {
        position: absolute;
        width: 150px;
        height: 40px;
        left: 210px;
        margin-top: 20px;
        border: 3px outset hsl(0, 0%, 70%);
        background: linear-gradient(0deg, hsl(0, 0%, 40%) 0%, hsl(0, 0%, 60%) 50%, hsl(0, 0%, 40%) 100%);
      }
    }
  }
}

#current-weather-html.weather-display {
  background-image: url('../images/backgrounds/1.png');

  .main.current-weather {
    .col {
      height: 50px;
      width: 255px;
      display: inline-block;
      margin-top: 10px;
      padding-top: 10px;
      position: absolute;
      text-shadow:
        3px 3px 0 #000,
        -1.5px -1.5px 0 #000,
        0 -1.5px 0 #000,
        1.5px -1.5px 0 #000,
        1.5px 0 0 #000,
        1.5px 1.5px 0 #000,
        0 1.5px 0 #000,
        -1.5px 1.5px 0 #000,
        -1.5px 0 0 #000;

      &.left {
        font-family: 'Star4000 Extended';
        font-size: 24pt;
      }

      &.right {
        right: 0px;
        font-family: 'Star4000 Large';
        font-size: 20px;
        font-weight: bold;
        line-height: 24px;

        .row {
          margin-bottom: 12px;

          .label,
          .value {
            display: inline-block;
          }

          .label {
            margin-left: 20px;
          }

          .value {
            float: right;
            margin-right: 10px;
          }
        }
      }
    }

    .center {
      text-align: center;
    }

    .temp {
      font-family: 'Star4000 Large';
      font-size: 24pt;
    }

    .icon {
      height: 100px;

      img {
        max-width: 126px;
      }
    }

    .wind-container {
      margin-bottom: 10px;

      > div {
        width: 45%;
        display: inline-block;
        margin: 0px;
      }

      .wind-label {
        margin-left: 5px;
      }

      .wind {
        text-align: right;
      }
    }

    .wind-gusts {
      margin-left: 5px;
    }

    .location {
      color: #ff0;
      max-height: 32px;
      margin-bottom: 10px;
      padding-top: 4px;
      overflow: hidden;
      text-wrap: nowrap;
    }
  }
}

#location-info-html.weather-display {
  background-image: url('../images/backgrounds/1.png');

  .header {
    .version {
      position: absolute;
      right: 20px;
      top: 20px;
      font-family: 'Star4000';
      font-size: 16px;
      color: #fff;
      text-shadow:
        2px 2px 0 #000,
        -1px -1px 0 #000,
        0 -1px 0 #000,
        1px -1px 0 #000,
        1px 0 0 #000,
        1px 1px 0 #000,
        0 1px 0 #000,
        -1px 1px 0 #000,
        -1px 0 0 #000;
    }
  }

  .main.location-info {
    .container {
      padding: 30px 20px;
      text-align: center;
    }

    .location-details {
      display: inline-block;
      text-align: left;
      font-family: 'Star4000 Large';
      font-size: 20px;
      color: #fff;
      text-shadow:
        3px 3px 0 #000,
        -1.5px -1.5px 0 #000,
        0 -1.5px 0 #000,
        1.5px -1.5px 0 #000,
        1.5px 0 0 #000,
        1.5px 1.5px 0 #000,
        0 1.5px 0 #000,
        -1.5px 1.5px 0 #000,
        -1.5px 0 0 #000;

      .location-row {
        margin-bottom: 15px;
        display: flex;
        align-items: center;

        .label {
          width: 100px;
          font-weight: bold;
          color: #ff0;
        }

        .value {
          margin-left: 27px;
          max-width: 350px;
          font-weight: normal;
        }
      }
    }
  }
}
