:root {
  --black: #000;
  --grey: #b1c7da;
  --dark-grey: #3d3f49;
  --light-grey: #cae5fd;
}

body, html {
  background-blend-mode: multiply;
  color: var(--grey);
  overscroll-behavior: none;
  background-image: url("https://ucarecdn.com/78ae8f64-1414-4611-ad5c-76d007d7f0b4/desktop_bg_multiply_texture.jpg"), linear-gradient(#00000080, #00000080);
  background-position: center;
  background-size: cover;
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: SystemError, Courier, monospace;
  font-size: 14px;
  line-height: 1.25;
}

.texture-overlay {
  mix-blend-mode: multiply;
  opacity: 1;
  z-index: 9999;
  pointer-events: none;
  background-image: url("https://ucarecdn.com/0820d53b-7440-4284-bdec-8eb8d052ddfd/desktop_fg_multiply_texture.jpg");
  background-position: center;
  background-size: cover;
  width: 100%;
  height: 100%;
  position: fixed;
}

.dots-overlay {
  width: 100%;
  height: 100%;
  mix-blend-mode: add;
  z-index: 9997;
  pointer-events: none;
  opacity: .19;
  background-image: url("https://ucarecdn.com/2e030f41-4e3c-4c34-b37c-15f6b420ab72/dots_pattern.jpg");
  background-repeat: repeat;
  background-size: 20px;
  position: fixed;
  top: 0;
  left: 0;
}

.lines-overlay {
  mix-blend-mode: multiply;
  z-index: 9998;
  pointer-events: none;
  opacity: .2;
  background-image: url("https://ucarecdn.com/9c2e00e3-adc8-424d-9672-65d61cd03f52/lines_pattern.png");
  background-repeat: repeat;
  background-size: 20px;
  width: 100%;
  height: 100%;
  position: fixed;
  top: 0;
  left: 0;
}

hr.dark {
  background-color: var(--dark-grey);
  border: none;
  height: 1px;
  margin: 4px 0;
}

h4 {
  color: var(--dark-grey);
}

h5 {
  color: var(--dark-grey);
  font-size: 8px;
}

h6 {
  color: #000;
  background-color: var(--grey);
}

h1 {
  text-transform: uppercase;
  text-align: center;
  background-color: var(--grey);
  color: #000;
  box-sizing: border-box;
  width: 100%;
  margin-top: 0;
  margin-bottom: 0;
  padding: 5px;
  font-size: 14px;
  display: inline-block;
}

h2 {
  text-transform: uppercase;
  text-align: left;
  background-color: var(--dark-grey);
  color: #000;
  box-sizing: border-box;
  width: 100%;
  margin-top: 10px;
  margin-bottom: 5px;
  padding: 4px;
  font-size: 10px;
  display: inline-block;
}

.key {
  color: #000;
  background-color: var(--light-grey);
}

.read {
  color: var(--dark-grey);
}

.float-right {
  float: right;
}

.container {
  flex-direction: column;
  height: 100dvh;
  display: flex;
}

.box {
  flex: 1;
  height: 600px;
  padding: 20px;
  overflow: auto;
}

.page-wrapper {
  mix-blend-mode: screen;
  flex-direction: column;
  max-width: 1000px;
  height: 100dvh;
  margin: 0 auto;
  padding: 0;
  display: flex;
}

.header-box {
  border-bottom: 1.25px solid var(--grey);
  background-color: #0000;
  flex: none;
  justify-content: space-between;
  align-items: center;
  height: 75px;
  margin-left: 13px;
  margin-right: 13px;
  padding: 0 15px;
  display: flex;
}

.header-content-left {
  align-items: center;
  display: flex;
}

.header-content-left img {
  object-fit: contain;
  height: 150%;
  margin-right: 10px;
}

.header-content-right {
  text-align: right;
  color: var(--dark-grey);
  font-variant-numeric: tabular-nums;
}

.blue-green-container {
  flex: 1;
  justify-content: space-between;
  min-height: 100px;
  display: flex;
}

.command-keyboard-container {
  flex-direction: row;
  justify-content: space-between;
  width: 100%;
  height: 250px;
  margin-bottom: 0;
  display: flex;
}

.mr-window {
  outline: 1.25px solid var(--grey);
  outline-offset: 10px;
  background-color: #0000;
  flex-direction: column;
  gap: 5px;
  margin: 25px;
  display: flex;
  position: relative;
  overflow: hidden;
}

.mr-window .header {
  background-color: var(--grey);
  color: #000;
  text-align: center;
  padding: 5px;
  top: 0;
  left: 0;
  right: 0;
}

.mr-window .content {
  float: left;
  flex: 1;
  justify-content: space-between;
  height: 100%;
  padding-top: 0;
  overflow-y: auto;
}

.mr-window.command-box {
  flex: 1;
  margin-top: 10px;
}

.mr-window.featured-box {
  width: 60%;
  margin-right: 10px;
}

.brink-animation-box {
  color: #fff;
  pointer-events: none;
  background-color: #0000;
  justify-content: center;
  align-items: center;
  width: 250px;
  height: 250px;
  margin-top: 15px;
  display: flex;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.mr-window.action-box {
  width: 40%;
}

.mr-window .content::-webkit-scrollbar {
  -webkit-appearance: none;
  width: 16px;
  height: 12px;
  margin-left: 10px;
}

.mr-window .content::-webkit-scrollbar-thumb {
  background-color: var(--dark-grey);
  border: 4px solid #000;
  border-radius: 0;
}

.character-container {
  border: 1px solid var(--dark-grey);
  justify-content: center;
  align-items: center;
  height: 150px;
  margin-bottom: 12px;
  padding: 10px;
  display: none;
}

.character-container img {
  filter: sepia() hue-rotate(-180deg) saturate(50%);
  width: auto;
  height: 100%;
  margin-right: 0;
}

.database-img-container {
  border: 1px solid var(--dark-grey);
  justify-content: center;
  align-items: center;
  width: 98%;
  height: 90%;
  display: none;
}

.database-img-container img {
  filter: sepia() hue-rotate(-180deg) saturate(50%);
  width: auto;
  height: 100%;
}

.character-container .text-content {
  flex: 1;
}

.keyboard-box {
  aspect-ratio: 540 / 293;
  background-color: #0000;
  height: 98%;
  margin: -4px 12px 15px -3px;
  display: block;
  position: relative;
}

.map-container {
  pointer-events: none;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  padding: 0;
  display: flex;
  position: absolute;
}

.map-rive-container {
  width: 100%;
  height: 100%;
}

#keyboard {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

#riveMap {
  width: 100%;
  height: 90%;
  position: relative;
  top: 1%;
  left: 0;
}

#riveDisplay {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

::selection {
  color: #000;
  background-color: #62c7f1;
}

hr {
  background-color: var(--grey);
  border: none;
  height: 1.5px;
  margin: 10px 0;
}

.grain-container {
  pointer-events: none;
  z-index: 1;
  width: 100%;
  height: 100%;
  position: fixed;
  top: 0;
  left: 0;
}

.grain {
  pointer-events: none;
  background-color: #ffffff59;
  width: 1.5px;
  height: 1.5px;
  animation: .1s infinite grain-animation;
  position: absolute;
}

@keyframes grain-animation {
  0% {
    transform: translate(0);
  }

  100% {
    transform: translate(calc(random() * 100vw), calc(random() * 100vh));
  }
}

@font-face {
  font-family: SystemError;
  src: url("https://ucarecdn.com/a5d30139-a924-45d4-9cc0-2bc9378e1d98/SystemError.otf") format("truetype");
}

@media only screen and (width <= 768px) {
  body, html {
    background-image: url("https://ucarecdn.com/24cc0965-2fa6-412a-af60-cfa92fb28744/mobile_bg_texture.jpg"), linear-gradient(#00000080, #00000080);
    font-size: 12px;
  }

  .texture-overlay {
    background-image: url("https://ucarecdn.com/042cdda5-28c3-4db7-b658-74b073256690/mobile_fg_multiply_texture.jpg");
  }

  h1 {
    font-size: 12px;
  }

  .brink-animation-box {
    width: 150px;
    height: 150px;
    margin-top: 10px;
  }

  .header-box {
    height: 60px;
    margin-bottom: 2px;
    margin-left: 5px;
    margin-right: 5px;
  }

  h2 {
    font-size: 8px;
  }

  h5 {
    font-size: 5px;
  }

  .mr-window {
    outline-offset: 6px;
    margin: 12px;
  }

  .character-container {
    height: 150px;
    margin-bottom: 8px;
  }

  .command-keyboard-container {
    flex-direction: column;
    height: 350px;
    margin-bottom: 0;
  }

  .keyboard-box {
    height: auto;
    margin: 0;
  }
}

@media only screen and (width <= 480px) {
  body, html {
    background-image: url("https://ucarecdn.com/24cc0965-2fa6-412a-af60-cfa92fb28744/mobile_bg_texture.jpg"), linear-gradient(#00000080, #00000080);
    font-size: 10px;
  }

  .texture-overlay {
    background-image: url("https://ucarecdn.com/042cdda5-28c3-4db7-b658-74b073256690/mobile_fg_multiply_texture.jpg");
  }

  h1 {
    font-size: 10px;
  }

  h2 {
    font-size: 8px;
  }

  h5 {
    font-size: 5px;
  }

  .command-keyboard-container {
    flex-direction: column;
    height: 350px;
    margin-bottom: 0;
  }

  .header-box {
    height: 40px;
    margin-bottom: 2px;
    margin-left: 5px;
    margin-right: 5px;
  }

  .brink-animation-box {
    width: 150px;
    height: 150px;
    margin-top: 10px;
  }

  .keyboard-box {
    height: auto;
    margin: 0;
  }

  .mr-window {
    outline-offset: 6px;
    margin: 12px;
  }

  .character-container {
    height: 100px;
    margin-bottom: 5px;
  }

  .mr-window.command-box {
    height: 120px;
  }
}
