/* @import url('https://fonts.cdnfonts.com/css/instagram-sans-condensed');*/
@font-face {
  font-family: 'instagram sans condensed';
  font-style: normal;
  font-weight: 400;
  src:
    local('Instagram Sans Condensed'),
    url('Instagram Sans Condensed.woff') format('woff');
  font-display: block;
}

@font-face {
  font-family: 'Cheddar Gothic Stencil';
  src: url(CheddarGothicStencil-subset.woff2) format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

body,
input,
a.cta {
  /* Classic Mac OS-style "chicago" by default, with an array of safe fallbacks. */
  font-family: 'Chicago', 'SF Mono', 'Lucida Console', 'Terminal', Monaco,
    monospace;
}

body {
  background: #000;
  color: #ccc;
}

body,
tt {
  font-family: 'Instagram Sans Condensed', 'Courier New', Courier, Arial,
    sans-serif;
}

h1 {
  font-family: 'Cheddar Gothic Stencil', 'Times New Roman', Times, serif;
  font-weight: 400;
  margin: 0px;
  padding: 0px;
}

h1,
h2,
h3,
b,
strong {
  color: #fff;
  font-weight: 500;
}

h1,
h2,
h3 {
  font-family: 'Cheddar Gothic Stencil', 'Times New Roman', Times, serif;
  font-weight: 400;
  margin: 0px;
  padding: 0px;
  color: #ddd;
}

h2,
h3,
p,
li,
blockquote {
  font-size: 34px;
}

h1 {
  font-size: 96px;
  font-size: 8vmax;
  letter-spacing: 1px;
  padding-top: 64px;
  padding-bottom: 72px;
  text-align: center;
  line-height: 0.75em;
  font-weight: normal;
}

h2 {
  font-size: 56px;
  padding-top: 16px;
}

h3 {
  clear: both;
  font-size: 56px;
  padding-top: 28px;
  padding-bottom: 8px;
}

h3 + p {
  margin-top: 0.5em;
}

li,
p {
  color: #aaa;
}

ul {
  list-style-type: square;
}

ul.flat {
  list-style-type: none;
  margin-left: 0px;
  padding-left: 0px;
  margin-bottom: 0px;
}

ul.flat li p {
  /* margin: 0px; */
  padding: 0px;
  margin: 0px 0.75em 0.5em 0px;
  text-shadow: 1px 1px 2px black;
  color: #999;
}

ul.flex li {
  display: flex;
  border: 1px dotted #333;
  border-top-color: transparent;
  border-bottom-color: transparent;
  background: rgba(255, 255, 255, 0.075);
  padding-top: 10px;
  padding-bottom: 0px;
  margin-bottom: 16px;
  border-radius: 12px;
  padding-right: 10px;
}

.flex div {
  /* take all available space, by default */
  flex: 1;
}

.flex p {
  position: relative;
  /* allow text to overlap image, as needed. */
  z-index: 1;
}

.flex .unit {
  position: relative;
  flex: inherit; /* ? */
  display: block;
  min-width: 175px;
  margin-bottom: 1em;
  text-align: center;
}

.flex .unit strong {
  display: inline-block;
  margin-bottom: 2px;
}

.flex .unit img {
  display: block;
  margin-top: 2px;
  margin: 3px auto;
}

.indented {
  margin-left: 1em;
}

blockquote {
  margin-left: 0px;
}

ul li blockquote {
  font-style: italic;
  color: #8899cc;
  opacity: 0.85;
}

body {
  /**
  * avoid smooth image resizing, keep things pixelated - like the original.
  * Firefox does a great job here; Safari is OK (though not pixel-sharp.)
  * Chrome + Safari may be worse when using -webkit-optimize-contrast vs. default.
  * https://developer.mozilla.org/en-US/docs/Web/CSS/image-rendering
  */
  image-rendering: optimizeQuality;
  image-rendering: -webkit-optimize-contrast;
  /* non-standard, but quite nice under Firefox */
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
  image-rendering: pixelated;
  /* font trickery */
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  text-rendering: geometricPrecision;
  font-size: 20px;
  margin: 0px;
  padding: 0px;
}

#header {
  position: relative;
  width: 100%;
  overflow-x: hidden;
}

#header h1 {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  font-size: 9vw;
  pointer-events: none;
  opacity: 0.75;
  transition: opacity linear 0.75s;
}

#header video {
  width: 100%;
  /* video is 1920 x 758 */
  aspect-ratio: 2.53 / 1;
  height: auto;
}

@media screen and (max-width: 768px) {
  /* approximately mobile, portrait */
  h1 {
    font-size: 64px;
    letter-spacing: 1px;
    padding-top: 64px;
    padding-bottom: 16px;
  }

  h2 {
    font-size: 42px;
    padding-top: 16px;
  }

  h3 {
    clear: both;
    font-size: 42px;
    padding-top: 32px;
    padding-bottom: 16px;
  }

  #header {
    position: relative;
    height: auto;
    border-bottom: none;
  }

  #header video {
    /* scale up so menu UX/UI roughly fits across screen */
    width: 200%;
    margin-left: -50%;
    height: auto;
  }
}

@media screen and (max-width: 1280px) {
  #logo {
    max-width: 531px !important; /* wordmark image width */
  }
}

.start-game {
  display: inline-block;
  width: 180px;
  margin: 0px 28px 20px 0px;
}

#remaster {
  position: relative;
  display: inline-block;
  vertical-align: top;
  margin: 0px;
  min-height: 180px;
  box-sizing: border-box;
  max-width: 30rem;
  padding: 16px 32px;
  background: #161616;
  border-left: 1px dotted #333;
  border-right: 1px dotted #333;
  border-radius: 20px;
  margin-bottom: 20px;
  text-align: left;
  font-size: 20px;
  line-height: 1.25em;
}

#preamble {
  text-align: center;
}

#content {
  position: relative;
  margin: 16px auto;
  max-width: 48rem;
  padding: 16px 32px;
}

a.button {
  display: inline-block;
  border-radius: 20px;
  font-size: 0px;
  line-height: 1em;
  margin: 0px;
  padding: 0px;
  font-size: 0px;
  transform: scale3d(1, 1, 1);
  transition: all 0.05s;
  transition-property: background-color, filter, transform;
}

a.button:hover {
  background-color: #c86f29;
  filter: drop-shadow(0px 0px 6px #c86f29);
}

a.button:active {
  transform: scale3d(0.9, 0.9, 1);
  transform-origin: 50% 50%;
  filter: drop-shadow(0px 0px 8px #c86f29);
}

a {
  color: #dd8833;
}

a:hover {
  color: #fff;
}

a.cta {
  display: inline-block;
  background: #009900;
  font-size: 24px;
  border-radius: 4px;
  padding: 8px 16px;
  border: 1px solid #66ff66;
  text-decoration: none;
  color: #fff;
  vertical-align: middle;
  text-shadow: 1px 1px rgba(0, 0, 0, 0.25);
  filter: drop-shadow(0px 0px 0px rgba(0, 0, 0, 0));
  transform: scale3d(1, 1, 1);
  transition: all 0.05s;
  transition-property: background-color, color, filter, text-shadow, transform;
}

a.cta:hover {
  background-color: #00aa00;
  filter: drop-shadow(0px 0px 3px #99ff99);
}

a.cta:active {
  transform: scale3d(0.9, 0.9, 1);
  transform-origin: 50% 50%;
  filter: drop-shadow(0px 0px 1.5px #99ff99);
}

tt,
tt b {
  color: #cc9966;
}

tt,
p,
li,
blockquote {
  font-weight: 400;
  font-size: 24px;
  line-height: 1.35em;
  max-width: 63em;
  margin-bottom: 0.5em;
}

cite {
  text-wrap: nowrap;
}

.heading {
  display: inline-block;
  line-height: 1.5em;
  margin: 0px;
  padding: 0px;
  margin-top: 10px;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px dotted #ccc;
}

strong {
  font-size: 24px;
}

hr {
  border: none;
  clear: both;
  max-width: 72%;
  margin: 32px auto 16px auto;
  padding-top: 24px;
  border-bottom: 1px solid #333;
  /*
  border-bottom: 1px solid #875400;
  background: url(van-static.png);
  background-size: 38px 16px;
  background-position: 1% 100%;
  background-repeat: no-repeat;
  */
}

ul.inline {
  position: relative;
  margin-left: -2em;
  list-style-type: disc;
}

ul.inline li {
  float: left;
  margin-left: 1.5em;
}

pre {
  font-family: 'Courier New', Courier, monospace;
  font-size: 5.5px;
  line-height: 1.25em;
  letter-spacing: -0.4px;
}

@media screen and (max-width: 980px) and (orientation: portrait) {
  /**
   * iPhone 14 Pro, portrait
   * Probably reasonable on iPad, etc., but I don't have one.
   */
  #content {
    max-width: 60em;
    margin: 16px;
    padding: 0px 16px;
  }
  /* vertical stack, horizontal centering */
  .start-game {
    margin: 0px 0px 20px 0px;
  }
  /* reduce indentation */
  ul {
    padding-left: 1em;
  }
  ul.inline {
    padding-left: 1.5em;
  }
  hr {
    margin-top: 16px;
  }
  pre {
    font-size: 4px;
  }
}

/* hackish: iOS-only. */
@supports (-webkit-touch-callout: none) {
  /* iOS: try to account for The Notch. */
  #content {
    max-width: 60em;
    margin: 16px auto;
    margin-right: calc(env(safe-area-inset-right) / 2);
    margin-left: calc(env(safe-area-inset-left) / 2);
  }
}

.logo-wrapper-wrapper {
  position: relative;
  display: block;
  width: 100%;
  border-top: 1.75vw solid rgba(64, 64, 64, 0.75);
  padding-top: 1.25vw;
  padding-left: 8px;
  padding-right: 8px;
  padding-bottom: 1.25vw;
  border-bottom: 1px solid #be7832;
  box-sizing: border-box;
  /* classic trick... */
  text-align: center;
  /* collapse, s'il vous plait */
  flex-basis: content;
}

.logo-wrapper {
  position: relative;
  display: block;
  width: 100%;
  margin: 0 auto;
  overflow: hidden;
}

.logo-overlay,
.logo-overlay-cutout,
.logo-overlay-highlight,
.logo-overlay-shadow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.logo-overlay-cutout {
  mask-image: url(armor-alley-wordmark-white.webp);
  -webkit-mask-image: url(armor-alley-wordmark-white.webp);
  mask-size: contain;
  -webkit-mask-size: contain;
  mask-repeat: no-repeat;
  -webkit-mask-repeat: no-repeat;
  /* this affects how the highlight gradient blends with the logo */
  mix-blend-mode: overlay;
}

.logo-overlay-highlight {
  width: 33%;
  height: 150%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0,
    rgba(255, 255, 255, 0) 5%,
    rgba(255, 255, 255, 0.75) 35%,
    rgba(255, 255, 255, 0.75) 66%,
    rgba(255, 255, 255, 0) 95%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: translate3d(-100%, -14.5%, 0) rotate(15deg);
  animation: 12s ease-in-out 1s infinite glint;
}

.logo-overlay-highlight {
  animation-duration: 12s;
  animation-delay: 0.75s;
}

@keyframes glint {
  0% {
    transform: translate3d(-100%, -14.5%, 0) rotate(15deg);
  }

  25% {
    transform: translate3d(350%, -14.5%, 0) rotate(15deg);
  }

  /* stay until the end */
  100% {
    transform: translate3d(350%, -14.5%, 0) rotate(15deg);
  }
}

/* prevent firefox video rendering issue */
video {
  image-rendering: auto;
}

#start-game-button-mobile {
  display: none;
  margin: 0.65em auto 0;
  border-radius: 5px;
}

.logo-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  /* note height here, for animation offset / scaling purposes */
  height: 600%;
  /**
   * Tool with color smoothing, albeit one color at a time...
   * https://www.learnui.design/tools/gradient-generator.html
   * #a52a2a @ 0%
   * #ffa500 @ 16%
   * #ffff00 @ 32%
   * #dd3333 @ 48%
   * #ffa500 @ 67%
   * #008000 @ 83%
   * #a52a2a @ 100%
   */
  /* smoothened version of the above */
  background: linear-gradient(
    180deg,
    brown,
    #b13225,
    #bd3d20,
    #c94b1a,
    #d65c14,
    #e3710e,
    #f18907,
    orange,
    orange,
    #ffb200,
    #ffbf00,
    #fc0,
    #ffd800,
    #ffe500,
    #fff200,
    #ff0,
    #ff0,
    #fad708,
    #f5b30f,
    #f09316,
    #eb761e,
    #e65c25,
    #e2462c,
    #d33,
    #d33,
    #e23d2c,
    #e64925,
    #eb571e,
    #f06716,
    #f5790f,
    #fa8e08,
    orange,
    orange,
    #edc700,
    #d3db00,
    #9bc900,
    #6ab600,
    #40a400,
    #1c9200,
    green,
    green,
    #2a8704,
    #558e09,
    #81940e,
    #998614,
    #9e661b,
    #a24722,
    brown
  );
  animation: 20s ease-in-out infinite alternate logo-gradient;
}

@keyframes logo-gradient {
  0% {
    transform: translate3d(0, 0, 0);
  }

  100% {
    /* bottom-align, i.e., 100% minus a fraction of the full 600% height */
    transform: translate3d(0, calc(-100% + (100% * 1 / 6)), 0);
  }
}

.logo-overlay-shadow {
  background: linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0) 0,
      rgba(0, 0, 0, 0.15) 10%,
      rgba(0, 0, 0, 0) 25%,
      rgba(0, 0, 0, 0) 50%,
      rgba(0, 0, 0, 0.2) 85%,
      rgba(0, 0, 0, 0.1) 95%,
      rgba(0, 0, 0, 0.05) 98%,
      rgba(0, 0, 0, 0) 99%
    ),
    repeating-linear-gradient(
      -45deg,
      rgba(0, 0, 0, 0),
      rgba(0, 0, 0, 0) 1px,
      rgba(0, 0, 0, 0.075) 1px,
      rgba(0, 0, 0, 0.075) 1.5px,
      rgba(0, 0, 0, 0.075) 1.5px,
      rgba(0, 0, 0, 0) 2px
    );
}

#logo {
  /* allow clicks through to underlying video. */
  pointer-events: none;
}

#logo,
#logo-image {
  image-rendering: auto;
  image-rendering: optimizequality;
}

#logo-image {
  display: block;
  width: 100%;
  visibility: hidden;
}

#logo {
  position: absolute;
  top: 55%;
  left: 50%;
  width: 50%; /* ? */
  min-width: 360px;
  max-width: 1062px; /* wordmark image width */
  transform: translate(-50%, -50%);
  transition-property: transform, scale, opacity;
}

#logo.mix_blend_mode {
  /* 11/2024: Applying this in Firefox breaks video rendering, pink color - suspect a compositing issue. */
  mix-blend-mode: screen;
}

#logo h1 {
  /* hackish: hide text */
  font-size: 0px;
  color: transparent;
}

#logo p {
  color: #be7832;
  opacity: 0.88;
  text-align: center;
  margin-top: 0.25em;
  font-size: 2.1vw;
}
