/* Y2K web 1.0, red & white. Same visual language as 10rokiv.club */

html, body {
  margin: 0;
  padding: 0;
  font-family: "Comic Sans MS", "Chalkboard SE", "Comic Neue", Verdana, Tahoma, sans-serif;
  font-size: 13px;
  background-color: #FFFFFF;
  background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAYAAACp8Z5+AAAAIklEQVQIW2NkQAKrVq36zwjjgzhhYWGMYAEYB8RmROaABADeOQ8CXl/xfgAAAABJRU5ErkJggg==');
  color: #000;
  cursor: crosshair;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

input, textarea, button {
  font-family: inherit;
  -webkit-appearance: none;
  appearance: none;
  border-radius: 0;
}

::-webkit-scrollbar { width: 16px; }
::-webkit-scrollbar-track { background: #FFF; border-left: 2px solid #F00; }
::-webkit-scrollbar-thumb { background: #F00; border: 3px outset #FFF; }

a { color: #F00; font-weight: bold; }
a:visited { color: #900; }
a:hover { color: #FFF; background: #F00; cursor: help; }

@keyframes jitter {
  0% { transform: translate3d(1px, 1px, 0) rotate(0deg); }
  20% { transform: translate3d(-2px, 0, 0) rotate(2deg); }
  40% { transform: translate3d(1px, -1px, 0) rotate(1deg); }
  60% { transform: translate3d(-2px, 1px, 0) rotate(0deg); }
  80% { transform: translate3d(-1px, -1px, 0) rotate(2deg); }
  100% { transform: translate3d(1px, -2px, 0) rotate(-1deg); }
}
@keyframes blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
@keyframes spin-slow { 100% { transform: rotate(360deg); } }

.spin-logo { animation: spin-slow 12s linear infinite; will-change: transform; }
.blink { animation: blink 1s steps(1) infinite; }
.jitter { display: inline-block; animation: jitter 0.1s infinite; will-change: transform; }

@media (prefers-reduced-motion: reduce) {
  .spin-logo, .blink, .jitter { animation: none; }
}

.wrapper {
  width: 760px;
  max-width: 100%;
  margin: 10px auto;
  background: #FFF;
  border: 5px ridge #F00;
  box-sizing: border-box;
  box-shadow: 10px 10px 0 rgba(255, 0, 0, 0.3);
}

.header {
  border-bottom: 3px solid #F00;
  padding: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
}
.header-logo { width: 80px; height: 80px; flex: none; }
.header-logo img { width: 100%; height: 100%; object-fit: contain; }
.logo-area { text-align: center; }
.logo-area h1 {
  margin: 0;
  font-family: Impact, sans-serif;
  font-size: 40px;
  color: #F00;
  text-shadow: 3px 3px 0 #000;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: normal;
}
.logo-area .sub {
  font-family: "Courier New", monospace;
  font-weight: bold;
  font-size: 16px;
  margin-top: 6px;
  text-transform: lowercase;
}

.topbar {
  border-bottom: 3px solid #F00;
  font-family: "Courier New", monospace;
  font-weight: bold;
  font-size: 16px;
  display: flex;
}
.topbar a { flex: 1; text-align: center; text-decoration: none; padding: 10px; border-right: 2px solid #F00; background: #FFF; text-transform: lowercase; }
.topbar a:last-child { border-right: none; }
.topbar a:hover, .topbar a.active { background: #F00; color: #FFF; }

.main { padding: 15px; background: #FAFAFA; }

.section-title {
  background: #F00;
  color: #FFF;
  padding: 5px 10px;
  font-size: 17px;
  font-weight: bold;
  margin-bottom: 15px;
  display: block;
  border: 3px outset #F99;
  text-align: center;
  text-transform: uppercase;
}

.text-block {
  background: #FFF;
  border: 2px solid #F00;
  padding: 15px;
  margin-bottom: 15px;
  line-height: 1.5;
  text-transform: lowercase;
  word-wrap: break-word;
}
.text-block h3 { color: #F00; margin-top: 0; text-transform: uppercase; }
.text-block p:first-child { margin-top: 0; }
.text-block p:last-child { margin-bottom: 0; }

.ticker-box { background: #FFC; }
.ticker-box marquee { text-transform: none; font-family: "Courier New", monospace; font-weight: bold; font-size: 15px; }

.steps { list-style: none; margin: 0; padding: 0; font-family: "Courier New", monospace; font-weight: bold; }
.steps li { padding: 6px 0; border-bottom: 2px dashed #F00; text-transform: lowercase; }
.steps li:last-child { border-bottom: none; }
.steps .n { display: inline-block; background: #F00; color: #FFF; min-width: 22px; text-align: center; margin-right: 8px; padding: 0 4px; }

label { font-weight: bold; text-transform: lowercase; }

.y2k-input, .y2k-textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 8px;
  border: 2px inset #F00;
  font-family: monospace;
  font-size: 16px; /* 16px stops iOS from zooming into the field */
  margin-top: 5px;
  margin-bottom: 4px;
  background: #FFF;
  color: #000;
}
.y2k-textarea { resize: vertical; height: 90px; }
.counter { text-align: right; font-family: "Courier New", monospace; font-size: 12px; margin-bottom: 14px; }
.counter.warn { color: #F00; font-weight: bold; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.btn {
  display: block;
  width: 100%;
  box-sizing: border-box;
  background: #F00;
  border: 3px outset #F99;
  color: #FFF;
  font-weight: bold;
  font-size: 17px;
  padding: 10px;
  cursor: pointer;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
}
.btn:visited { color: #FFF; }
.btn:hover { background: #C00; color: #FFF; cursor: pointer; }
.btn:active { border-style: inset; background: #900; }
.btn:disabled { background: #666; border-color: #999; color: #CCC; cursor: not-allowed; }
.btn.light { background: #FFF; color: #F00; border-color: #F00; font-size: 14px; padding: 6px; }
.btn.light:hover { background: #F00; color: #FFF; }

.code-inline { text-transform: uppercase; }
.code-box {
  text-transform: uppercase;
  text-align: center;
  font-family: "Courier New", monospace;
  font-weight: bold;
  font-size: 34px;
  letter-spacing: 3px;
  color: #F00;
  background: #FFF;
  border: 3px dashed #F00;
  padding: 10px;
  margin: 10px 0;
  user-select: all;
}

.status { font-family: "Courier New", monospace; font-weight: bold; }
.status li { padding: 6px 0; text-transform: lowercase; }
.status .mark { display: inline-block; width: 26px; }
.status li.done { color: #090; }
.status li.wait { color: #F00; }
.status li.todo { color: #999; }
.status li.bad { color: #F00; text-decoration: line-through; }

.error { background: #F00; color: #FFF; padding: 8px; font-weight: bold; margin-bottom: 12px; text-transform: lowercase; display: none; }
.hidden { display: none !important; }

.footer {
  padding: 15px;
  border-top: 5px dashed #F00;
  font-size: 12px;
  text-align: center;
  text-transform: lowercase;
  line-height: 1.7;
}
.footer .header-logo { margin: 0 auto 8px; width: 56px; height: 56px; }

@media (max-width: 768px) {
  .wrapper { width: 100%; margin: 0; border-left: none; border-right: none; box-shadow: none; }
  .header { flex-direction: column; }
  .logo-area h1 { font-size: 30px; }
  .code-box { font-size: 28px; }
}
