@font-face {
    font-family: blacklisted;
    src: url("fonts/Blacklisted.ttf");
    font-display: swap;
}

@font-face {
    font-family: frostbite;
    src: url("fonts/FROSTBITE-Narrow.ttf");
    font-display: swap;
}

@font-face {
    font-family: square;
    src: url("fonts/forcedsquare.ttf");
    font-display: swap;
}

@font-face {
    font-family: "ubuntu";
    src: url("fonts/UbuntuMono-R.ttf");
    font-display: swap;
}

:root {
  --title_content: "Something is wrong...";
  --pos-after-left: 2%;
  --pos-before-left: 1%;
  --pos-after-top: 1%;
  --pos-before-top: 2%;
  --size-font-command: 3rem;
  --size-font-title: 8rem;
}

* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
  font-size: 1em;
  font-weight: 200;
}

h1 {
  font-size: var(--size-font-title);
}

html {
  height: 100%;
}

body {
  background: black;
  overflow: hidden;
}

#back {
  font-size: var(--size-font-command);
  position: absolute;
  width: 100%;
  overflow: hidden;
  z-index: -200;
  background-color: black;
  height: 100%;
  align-items: end;
}

#title-container {
  font-family: blacklisted;
  overflow: hidden;
}

#title-section {
  color: rgba(255, 255, 255, 0.8);
  position: absolute;
  top: 20vh;
  left: 50vw;
  transform: translateX(-50%);
}

#title-section::after {
  font-size: var(--size-font-title);
  opacity: 1;
  color: red;
  z-index: -1;
  content: var(--title_content);
  padding: 0;
  position: absolute;
  top: 0;
  transform: translate(var(--pos-after-left), var(--pos-after-top));
  /* animation: glitch 1s step-start alternate infinite;*/
}

#title-section::before {
  font-size: var(--size-font-title);
  opacity: 1;
  /* animation: glitch 1s step-start alternate infinite;*/
  padding: 0;
  color: blue;
  position: absolute;
  transform: translate(var(--pos-before-left), var(--pos-before-top));
  z-index: -1;
  content: var(--title_content);
}

.alert-off {
    display: none;
}

#alert-dialog,
#skip-dialog {
  text-align: center;
  vertical-align: middle;
  width: 60vw;
  height: max-content;
  top: 50vh;
  transform: translateY(-50%);
  padding-bottom: 5vh;
  left: 20vw;
  font-family: square;
  position: fixed;
  z-index: 10000;
  background-color: rgba(8, 5, 5, 0.97);
  background-image: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(0, 0, 0, 0.07) 3px,
    rgba(0, 0, 0, 0.07) 4px
  );
  color: white;
  overflow-y: auto;
  overflow-x: hidden;
  animation: dialogEnter 0.75s cubic-bezier(0.215, 0.61, 0.355, 1) forwards;
}

.alert-topbar {
  background: linear-gradient(90deg, #1a0000 0%, #001515 100%);
  border-bottom: 1px solid #2a2a2a;
  padding: 0.4ch 1.2ch;
  font-size: calc(var(--size-font-command) * 0.42);
  letter-spacing: 0.08ch;
  display: flex;
  justify-content: space-between;
}

.alert-topbar-label {
  color: #ff4444;
}

.alert-topbar-status {
  color: #00c8e0;
}

.alert-title {
  font-family: frostbite;
  padding: 4% 5% 3% 5%;
  width: 100%;
  background: rgba(10, 10, 10, 0.9);
  border-bottom: 1px solid #222;
  font-size: calc(var(--size-font-command) * 1.4);
  color: rgba(255, 255, 255, 0.85);
  text-shadow:
    2px 1px 0 red,
    1px 2px 0 blue;
}

.alert-cursor {
  animation: blinkCursor 0.8s step-start infinite;
}

@keyframes blinkCursor {
  50% { opacity: 0; }
}

.alert-description {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  pointer-events: none;
  padding: 1.5ch;
  line-height: 2ch;
  font-size: calc(var(--size-font-command) * 0.95);
  color: #ddd;
}

.alert-description.active {
  position: relative;
  opacity: 1;
  pointer-events: auto;
  animation: glitchIn 0.45s forwards;
}

.alert-description.glitch-out {
  position: absolute;
  opacity: 1;
  pointer-events: none;
  animation: glitchOut 0.3s forwards;
}

.alert-options {
  display: inline-block;
  transition: transform 0.25s, filter 0.25s;
  width: 30%;
  padding: 0.6ch 0.5ch;
  color: rgba(255, 255, 255, 0.9);
  font-size: calc(var(--size-font-command) * 1.1);
  cursor: pointer;
  letter-spacing: 0.1ch;
}

.alert-opt-container {
  margin-top: 2%;
  display: flex;
  justify-content: center;
}

#btn-prev {
  margin-right: 5%;
  background: linear-gradient(135deg, #6e0000 0%, #bb0000 60%, #8b0000 100%);
  clip-path: polygon(22% 0, 100% 0, 100% 100%, 22% 100%, 0 80%, 0 20%);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
}

#btn-prev:hover {
  filter: brightness(1.4);
}

.btn-disabled {
  pointer-events: none;
  background: linear-gradient(135deg, #1a1a1a, #2e2e2e) !important;
  filter: none !important;
  color: #555 !important;
  text-shadow: none !important;
}

#btn-next {
  margin-left: 5%;
  background: linear-gradient(135deg, #00006e 0%, #0000bb 60%, #00008b 100%);
  clip-path: polygon(80% 0, 100% 20%, 100% 80%, 80% 100%, 0 100%, 0 0);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
}

#btn-next:hover {
  filter: brightness(1.4);
}

#btn-next:active,
#btn-prev:active {
  transform: scale(0.82);
  filter: brightness(0.9);
}

#btn-skip {
  letter-spacing: -1rem;
  background: linear-gradient(135deg, #111 0%, #1e1e1e 100%);
  margin-top: 1vh;
  clip-path: polygon(20% 0, 80% 0, 100% 20%, 100% 80%, 80% 100%, 20% 100%, 0 80%, 0 20%);
  color: rgba(255, 255, 255, 0.6);
}

#btn-skip:hover {
  filter: brightness(1.5);
  color: rgba(255, 255, 255, 0.9);
}

#btn-skip:active {
  transform: scale(0.82);
}

@keyframes animateGO {
  0% {
    background: linear-gradient(135deg, #111 0%, #1e1e1e 100%);
    text-shadow: none;
    letter-spacing: 0;
    color: rgba(255, 255, 255, 0.6);
    filter: none;
  }
  35% {
    background: linear-gradient(135deg, #1c0000 0%, #00001c 100%);
    text-shadow: 3px 1px 0 red, -3px -1px 0 blue;
    letter-spacing: 0.25ch;
    color: rgba(255, 255, 255, 0.95);
    filter: brightness(1.2);
  }
  65% {
    background: linear-gradient(135deg, #00001c 0%, #1c0000 100%);
    text-shadow: -3px 1px 0 blue, 3px -1px 0 red;
    letter-spacing: 0.1ch;
    filter: brightness(1.4);
  }
  100% {
    background: linear-gradient(135deg, #1a0000 0%, #00001a 100%);
    text-shadow: 2px 1px 0 red, -2px -1px 0 blue;
    letter-spacing: 0.3ch;
    color: white;
    filter: brightness(1.6);
  }
}

@keyframes dialogEnter {
  0% {
    opacity: 0;
    transform: translateY(calc(-50% - 20px)) scaleX(0.04) scaleY(0.5);
    filter: brightness(6) saturate(0);
  }
  14% {
    opacity: 1;
    transform: translateY(calc(-50% + 8px)) scaleX(1.03) scaleY(1.02);
    filter: brightness(2.5) saturate(2);
  }
  22% {
    transform: translateY(-50%) scaleX(0.99) scaleY(1);
    filter: brightness(1);
  }
  28% {
    transform: translateY(-50%) scaleX(1.01);
    filter: none;
  }
  33% {
    transform: translateY(-50%);
  }
  /* glitch flickers */
  58% {
    filter: none;
    transform: translateY(-50%);
  }
  60% {
    filter: hue-rotate(120deg) brightness(2) saturate(3);
    transform: translateY(-50%) translateX(6px);
  }
  62% {
    filter: none;
    transform: translateY(-50%);
  }
  64% {
    filter: hue-rotate(-80deg) brightness(1.6);
    transform: translateY(-50%) translateX(-4px);
  }
  66% {
    filter: none;
    transform: translateY(-50%);
  }
  100% {
    opacity: 1;
    transform: translateY(-50%);
    filter: none;
  }
}

.alert-desc-container {
  position: relative;
  overflow: hidden;
  width: 60vw;
}

@keyframes glitchIn {
  0%   { opacity: 0; clip-path: inset(40% 0 40% 0); transform: translateX(-8px); filter: hue-rotate(90deg) brightness(3); }
  15%  { opacity: 1; clip-path: inset(10% 0 60% 0); transform: translateX(6px);  filter: hue-rotate(-45deg) brightness(2); }
  35%  { clip-path: inset(70% 0 5% 0);  transform: translateX(-4px); filter: brightness(1.8); }
  55%  { clip-path: inset(0% 0 30% 0);  transform: translateX(3px);  filter: brightness(1.2); }
  75%  { clip-path: inset(0);           transform: translateX(-1px); filter: none; }
  100% { opacity: 1; clip-path: inset(0); transform: translateX(0); filter: none; }
}

@keyframes glitchOut {
  0%   { opacity: 1; clip-path: inset(0); filter: none; transform: translateX(0); }
  25%  { clip-path: inset(30% 0 30% 0); transform: translateX(8px);  filter: hue-rotate(60deg) brightness(2); }
  55%  { clip-path: inset(0% 0 70% 0);  transform: translateX(-5px); filter: brightness(1.5); }
  80%  { clip-path: inset(60% 0 0% 0);  transform: translateX(4px);  filter: hue-rotate(-90deg); opacity: 0.4; }
  100% { opacity: 0; clip-path: inset(50% 0 50% 0); transform: translateX(0); }
}

.command-line {
  position: absolute;
  bottom: 0;
  font-family: square;
  color: white;
  border: 0;
  margin: 0;
  padding: 0;
  height: min-content;
  width: 100%;
}

.commandcontainer {
  height: max-content;
}

#command-input {
  caret-color: rgb(255, 255, 255);
  caret-shape: block;
  border-radius: 30px;
  font-family: square;
  border: 0;
  margin-bottom: calc(var(--size-font-command) / 6);
  margin-left: 0;
  padding: 0 var(--size-font-command) 0 var(--size-font-command);
  width: 100%;
  background: rgba(90, 90, 90, 0.9);
  color: white;
}

#command-input::placeholder {
  font-weight: 500;
  color: rgba(255, 255, 255, 0.479);
  transition: all 0.1s;
}

.commandcontainer::before {
  z-index: 100;
  position: absolute;
  color: white;
  content: "\27A4";
  font-size: calc(var(--size-font-command) / 1.4);
  left: calc(var(--size-font-command) / 4);
  bottom: calc(var(--size-font-command) / 30);
  animation: apdis 0.5s ease-in-out infinite alternate;
  margin-bottom: calc(var(--size-font-command) / 6);
}

@keyframes apdis {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.input-btn-group {
  display: none;
}

#history {
  position: absolute;
  bottom: calc(var(--size-font-command) * 1.3);
  margin-left: 2vw;
  font-family: square;
  color: rgb(255, 255, 255);
  overflow-x: hidden;
  overflow-y: auto;
  max-height: 95vh;
}

#blank-history {
  height: 90vh;
  width: 100vw;
}

.userpastcommands {
  color: rgb(255, 255, 255);
}

.errorcommands {
  color: rgb(255, 94, 0);
}

a {
  color: rgb(223, 223, 223);
}

.respondcommand {
  display: inline-block;
  font-size: calc(var(--size-font-command) * 0.9);
  color: rgb(158, 158, 158);
}

.column {
  float: left;
  padding: 10px;
}

.left {
  width: 25%;
}

.right {
  width: 75%;
}

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

@media only screen and (max-width: 670px) {
  .left {
    width: 100%;
  }

  :root {
    --size-font-command: 3.2rem;
    --size-font-title: 4rem;
  }



    .alert-opt-container {
        display: contents;
    }

    .alert-options {
        width: 100%;
    }

    #command-input {
        padding-right: calc(var(--size-font-command) * 2.9);
    }

    .input-btn-group {
        display: flex;
        align-items: center;
        gap: calc(var(--size-font-command) / 6);
        position: absolute;
        z-index: 100;
        right: calc(var(--size-font-command) / 5);
        bottom: calc(var(--size-font-command) / 5.7);
        margin-bottom: calc(var(--size-font-command) / 6);
    }

    .input-btn-group button {
        width: calc(var(--size-font-command) / 2.1);
        height: calc(var(--size-font-command) / 2.1);
        display: flex;
        align-items: center;
        justify-content: center;
        font-family: square;
        font-size: calc(var(--size-font-command) / 3.4);
        line-height: 1;
        padding: 0;
        border: 1px solid rgba(255, 255, 255, 0.5);
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.15);
        color: white;
        cursor: pointer;
    }

    .input-btn-group button:active {
        background: rgba(255, 255, 255, 0.35);
    }
}

@media only screen and (max-width: 450px), (max-height: 450px) {
  :root {
    --size-font-command: 2.5rem;
    --size-font-title: 4rem;
  }

  #alert-dialog,
  #skip-dialog {
    width: 80vw;
    left: 10vw;
  }

  .alert-desc-container {
    width: 80vw;
  }
}

@media only screen and (max-height: 600px) {
  :root {
    --size-font-command: 2.5rem;
    --size-font-title: 3rem;
  }
}

.loadingword span {
  font-size: calc(var(--size-font-command) + 1.2em);
}

.reversed {
  transform: scaleX(-1);
}

li {
  list-style-type: none;
}

ul {
  font-size: calc(var(--size-font-command) * 0.8);
  margin-left: 2%;
}

del {
  color: rgb(136, 136, 136);
  font-size: calc(var(--size-font-command) * 0.8);
}

#btn-skip-cancel {
  margin-right: 5%;
  background: linear-gradient(135deg, #1a1a1a, #2e2e2e);
  clip-path: polygon(22% 0, 100% 0, 100% 100%, 22% 100%, 0 80%, 0 20%);
  color: rgba(255, 255, 255, 0.6);
}

#btn-skip-cancel:hover {
  filter: brightness(1.5);
  color: rgba(255, 255, 255, 0.9);
}

#btn-skip-confirm {
  margin-left: 5%;
  background: linear-gradient(135deg, #00006e 0%, #0000bb 60%, #00008b 100%);
  clip-path: polygon(80% 0, 100% 20%, 100% 80%, 80% 100%, 0 100%, 0 0);
}

#btn-skip-confirm:hover {
  filter: brightness(1.4);
}

#btn-skip-cancel:active,
#btn-skip-confirm:active {
  transform: scale(0.82);
  filter: brightness(0.9);
}

.homebuttons {
  color: white;
  font-family: square, cursive;
  cursor: pointer;
  position: absolute;
  height: max-content;
  background: black;
    padding: 1.5%;
  font-size: 2rem;
}

#omit {
  right: 2vw;
  top: 1rem;
}

#blog-link {
  right: 2vw;
  top: 6rem;
}

.details {
  color: rgba(0, 0, 0, 0) !important;
  pointer-events: none;
  user-select: none;
}

address {
  display: none;
}
