@font-face {
  font-family: "DOS";
  src: url('junk-drawer/Web437_DOS-V_re_ANK30.woff') format('woff2');
}

@font-face {
  font-family: "Courier";
}

:root {
  font-size: 1em;
  color-scheme: light dark;
  accent-color: teal;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  image-rendering: pixelated;
  scrollbar-color: cadetblue gainsboro;
  overscroll-behavior: none;
}

body {
  color: black;
  font-family: "Courier", Courier, monospace;
  -webkit-font-smoothing: none;
  -moz-osx-font-smoothing: grayscale;
  cursor: url("junk-drawer/PixelatedCursor.cur"), auto;
}

a {
  cursor: url("junk-drawer/classic_linksel.cur"), auto;
}

ul {
  list-style-type: square;
  padding: 0 10px 0 20px;
  margin: 18px 0 18px 18px;
  text-align: left;
}

ol {
  margin: 18px 0 18px 54px;
}

ol ol {
  margin: 0 0 0 54px;
}

ul ul, dd {
  margin: 0 0 0 18px;
}

details p {
  margin: 18px 0 18px 36px;
}

summary {
  cursor: pointer;
}

img {
  max-width: 100%;
}

hr {
  border: none;
  border-top: 1px solid;
  margin: 18px 0;
}

h1, h2, h3 {
  font-family: "DOS";
  font-weight: normal;
  line-height: 1;
  margin: 18px 0;
}

h1 {
  font-size: 2.75rem;
  text-align: center;
}

h2 {
  font-size: 2rem;
  text-transform: uppercase;
}

h3 {
  font-size: 1.5rem;
  font-style: italic;
}

p, ol, ul, dl, code, details {
  font-size: 1rem;
  line-height: 1.3;
  margin: 18px 0;
}

cite, blockquote, details, h4, h5, h6 {
  margin: 18px 0;
}

table {
  margin: 0px 0;
}

code {
  background-color: lightgrey;
  font-family: "CourierPrime", monospace;
  padding: 1px 4px;
}

pre {
  background-color: lightgrey;
  overflow-x: auto;
  padding: 1px 4px;
  font-family: "CourierPrime", monospace;
}

table {
  border: 0px solid;
}

tr, td, th {
  border: 0px dotted;
}

td, th {
  padding: 2px;
}

textarea {
  padding: 2px;
}

cite {
  display: block;
  text-align: right;
}

blockquote {
  border-left: 4px double;
  padding-left: 14px;
}

.clearfix::after {
  content: "";
  display: table;
  clear: both;
}

.border {
  border: 3px outset white;
  background-color: rgba(255, 255, 255, 0.85);
  padding: 18px 36px;
}

.container {
  background-color: white;
  padding: 40px;
  width: 80%;
  max-width: 900px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
  margin: 40px auto;
}

.hover-container {
  position: relative;
  display: inline-block;
  vertical-align: middle;
}

.hover-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 10px;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  font-size: 0.95em;
  z-index: 10;
  white-space: nowrap;
}

.hover-container:hover .hover-text,
.hover-container:focus .hover-text {
  opacity: 1;
}

.video-container {
  position: relative;
  width: 100%;
  max-width: 560px; /* desktop standard width */
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  height: auto;
}

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

@media screen and (max-width: 600px) {
  h1, h2, h3, h4, h5, h6, p, table, details, cite, blockquote, hr {
    margin: 16px 0;
  }

  ul, dl {
    margin: 16px 0 16px 16px;
  }

  ol {
    margin: 16px 0 16px 48px;
  }

  ol ol {
    margin: 0 0 0 48px;
  }

  ul ul, dd {
    margin: 0 0 0 16px;
  }

  details p {
    margin: 16px 0 16px 32px;
  }

  p, ol, ul, dl, code, details, table, figcaption {
    font-size: 0.9rem;
  }
  
  .video-container {
    max-width: 100%;
  }
}


@media (prefers-color-scheme: dark) {
  * {
    scrollbar-color: cadetblue darkslategrey;
  }

  body {
    color: white;
  }

  img {
    filter: brightness(0.9);
  }

  .border {
    background-color: rgba(0, 20, 20, 0.75);
    border-color: darkslategrey;
  }

  .new, code {
    color: black;
  }

  a {
    color: #b2d7c1;
  }

  a:hover, a:focus {
    color: darkslategrey;
    background-color: #b2d7c1;
  }
}
