/* Section: Site-wide styles. */
html {
  height: 100%;
  min-width: 320px;
}
body {
  background-color: white;
  font-family: "DM Sans", sans-serif;
  font-size: 18px;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  margin: 0;
  min-width: -moz-fit-content;
  min-width: fit-content;
  padding: 0;
  position: relative;
}

h1 {
  font-size: 48px;
  font-weight: 500;
  line-height: 54px;
}
h1 a {
  color: #fff;
}
h2 {
  font-size: 18px;
  line-height: 24px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

hr {
  border-style: solid;
  color: #888;
  margin: 1em 0;
}

button, input[type="submit"] {
  font-family: "DM Sans", sans-serif;
  padding: 4px 12px;
}

table {
  border-collapse: collapse;
  margin-left: auto;
  margin-right: auto;
}
th, td {
  /* Fix Firefox issue https://stackoverflow.com/a/16337203 */
  background-clip: padding-box;
  padding: 5px;
}

table:not(.grid):not(.custom) tr:not(:last-child) td:not(.no-border),
table:not(.grid):not(.custom) tr:not(:last-child) th:not(.no-border) {
  border-bottom: 1px solid #80808080;
}

pre, code, samp, .monospace {
  font-family: 'Space Mono', monospace;
}

iframe, audio, video {
  margin-left: auto;
  margin-right: auto;
  display: block;
}


/* Section: Utility classes. */
.hidden {
  display: none !important;
}
html:not(.supports-js) .hidden-unless-js {
  display: none !important;
}
html.supports-js .hidden-when-js {
  display: none !important;
}

@media only screen and (min-width: 1080px) {
  .show-sm:not(.show-l), .show-md:not(.show-l) { display: none !important; }
  .hide-l { display: none !important; }
}
@media only screen and (min-width: 640px) and (max-width: 1079.9px), not screen {
  .show-sm:not(.show-md), .show-l:not(.show-md) { display: none !important; }
  .hide-md { display: none !important; }
}
@media only screen and (max-width: 639.9px) {
  .show-md:not(.show-sm), .show-l:not(.show-sm) { display: none !important; }
  .hide-sm { display: none !important; }
}

button.unstyled {
  background: transparent;
  border: 0;
  font: inherit;
  padding: 0;
  margin: 0;
  text-align: inherit;
  width: 100%;
}

@media (prefers-reduced-motion: reduce) {
  .can-reduce-transition {
    transition: none !important;
  }
  .can-reduce-animation {
    animation: none !important;
  }
}

@media only print {
  .hide-print { display: none !important; }
}
@media not print {
  .print-only { display: none !important; }
}

/* Based on https://github.com/angular/components/blob/master/src/cdk/a11y/_index.scss */
.sr-only:not(:focus),
.sr-only:not(.sr-only-focusable):focus {
  border: 0;
  clip: rect(0 0 0 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;

  /*
   * This works around a Chrome bug that can cause the tab to crash when large amounts of
   * non-English text get wrapped: https://bugs.chromium.org/p/chromium/issues/detail?id=1201444
   */
  white-space: nowrap;

  /* Avoid browsers rendering the focus ring in some cases. */
  outline: 0;

  /* Avoid some cases where the browser will still render the native controls (see #9049). */
  -webkit-appearance: none;
  -moz-appearance: none;
}


/* Section: Common page styles. */
.banner {
  align-items: center;
  box-sizing: border-box;
  display: flex;
  justify-content: space-between;
  line-height: 30px;
  padding: 1em;
}
.banner button {
  cursor: pointer;
  height: 30px;
}
.puzzle-win.banner {
  background-color: #00a400;
  color: #fff;
  line-height: 1.3;
}
.notice.banner {
  background-color: #DEF4FF;
}

.answer-display {
  font-weight: bold;
  text-transform: uppercase;
  white-space: nowrap;
}
.answer-display.spoiler-display {
  display: inline-block;
  min-width: 200px;
}
.spoiler-display:not(:hover) {
  background-color: currentColor;
}
