/* FOUNDATION */
:root {
  --core-yellow: #f2ed6e;
  --core-yellow-alt1: #f9f584;

  --anim-yellow1: #4c4b1a;
  --anim-yellow2: #524f11;

  --neutral-black: #111111;
  --neutral-black-alt1: #161616;
  --neutral-white: #eeeeee;
}

* {
  margin: 0;
  padding: 0;
}

html {
  height: 100%;
}

body {
  background: repeating-linear-gradient(
      45deg,
      var(--neutral-black-alt1) 0%,
      var(--neutral-black-alt1) 10%,
      var(--neutral-black) 0%,
      var(--neutral-black) 50%
    )
    0/15px 15px;
  background-color: var(--neutral-black);
  color: var(--neutral-white);
  font-family: 'Lucida Console', monospace;
  font-size: 1rem;
  font-size-adjust: 0.5;
  font-weight: 300;
  height: 100%;
  line-height: 1.3;
  margin: 0;
  padding: 0;
}

a,
a:active a:visited {
  color: #eecd90;
}

button {
  -moz-user-select: none;
  -ms-user-select: none;
  -webkit-tap-highlight-color: #444444;
  -webkit-user-select: none;
  align-items: center;
  background: #eff1d1;
  border: 1px solid transparent;
  border-radius: 0.25rem;
  color: #1e1e1e;
  cursor: pointer;
  display: flex;
  flex: 1;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 400;
  height: 26px;
  justify-content: center;
  line-height: 1.5;
  margin: 0 3px 0 0;
  padding: 0.375rem 0.375rem;
  text-align: center;
  text-transform: uppercase;
  transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out,
    box-shadow 0.15s ease-in-out, color 0.15s ease-in-out;
  user-select: none;
  vertical-align: middle;
  white-space: nowrap;
}
button:disabled {
  background-color: #eee;
  color: #ddd;
  cursor: not-allowed;
}
button.icon {
  background: none;
  border: none;
  color: #fffca3;
  cursor: pointer;
  font-size: 16px;
  padding: 0 4px;
  text-shadow: 1px 1px 1px var(--neutral-black);
}
@media (min-width: 768px) {
  button.icon {
    font-size: 24px;
  }
}
@media (hover: hover) {
  button.icon:hover {
    color: #fcfcfc;
  }
}
button.inline {
  display: inline-flex;
  font-size: 0.75rem;
  height: 20px;
  margin-right: 0;
  padding: 0.2rem;
}

.half {
  flex: 0.5;
}

.one {
  flex: 1;
}

.one-and-a-half {
  flex: 1.5;
}

.two {
  flex: 2;
}

code {
  background-color: #dadda2;
  color: #b90eb6;
  display: inline-block;
  padding: 0 2px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 auto;
  text-align: center;
  text-transform: uppercase;
}

@counter-style dagger-emoji {
  system: cyclic;
  symbols: U+1F5E1;
  suffix: ' ';
}

ul {
  list-style: none;
  margin-left: 0.6em;
}
ul li {
  text-indent: -0.7rem;
}
ul li::before {
  content: '🗡 ';
  font-size: 0.75rem;
}

header {
  align-items: center;
  background-color: #444444;
  border-bottom: 5px solid #f2ed6e;
  box-shadow: none;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: space-between;
  height: 50px;
  padding: 0 16px;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 2;
}
header .menu-left {
  align-items: center;
  display: flex;
  justify-content: flex-start;
  margin: 0;
  padding: 0;
  width: 70px;
}
header .menu-left #nav-overlay {
  align-items: unset;
  background-color: transparent;
  display: none;
  height: 100%;
  justify-content: left;
  left: 0;
  position: fixed;
  top: 55px;
  width: 100%;
  z-index: 10;
}
header .menu-left #nav-overlay.show {
  display: flex;
}
header .menu-left #nav-overlay #nav-content {
  background-color: #444444;
  border-radius: 0;
  box-shadow: 3px 5px 5px rgba(0, 0, 0, 0.15);
  box-sizing: border-box;
  max-height: calc(100% - 41px);
  max-width: 500px;
  overflow-y: auto;
  padding: 0px;
  position: relative;
  top: 0;
  width: 100%;
}
header .menu-left #nav-overlay #nav-content a {
  color: #fcfcfc;
  text-decoration: none;
}
header .menu-left #nav-overlay #nav-content .container {
  align-items: normal;
  padding: 0;
}
header .menu-left #nav-overlay #nav-content .container .nav-header {
  font-size: 20px;
  padding-bottom: 18px;
  padding-left: 18px;
  padding-top: 18px;
}
header .menu-left #nav-overlay #nav-content .container .nav-list a {
  align-items: center;
  background-color: transparent;
  display: flex;
  font-size: 16px;
  font-weight: bold;
  height: 30px;
  justify-content: left;
  padding: 4px 0 4px 18px;
}
@media (hover: hover) {
  header .menu-left #nav-overlay #nav-content .container .nav-list a:hover {
    background-color: #f2ed6e;
    color: #000;
  }
}
header .menu-left #nav-overlay #nav-content #button-nav-close {
  font-size: 20px;
  height: 24px;
  position: absolute;
  right: 16px;
  top: 16px;
  width: 24px;
}
@media (hover: hover) {
  header .menu-left #nav-overlay #nav-content #button-nav-close a:hover {
    color: #f1cf29;
  }
}
header .menu-left #nav-overlay #nav-content .nav-footer {
  display: flex;
}
header .menu-left #nav-overlay #nav-content #footer-neb-host {
  background: #100210;
  border-top: 2px solid black;
  bottom: 15px;
  color: #fcfcfc;
  font-family: 'Consolas', sans-serif;
  font-size: 12px;
  font-weight: 500;
  height: 18px;
  left: 0;
  letter-spacing: initial;
  margin-top: 20px;
  padding: 10px 18px;
  position: absolute;
  right: 0;
  text-align: left;
  z-index: 2;
}
header .menu-left #nav-overlay #nav-content #footer-neb-host a {
  color: #fffca3;
}
@media (hover: hover) {
  header .menu-left #nav-overlay #nav-content #footer-neb-host a:hover {
    color: #fcfcfc;
  }
}

header .title {
  color: #f4f085;
  font-size: 0.6rem;
  font-weight: normal;
  line-height: 200%;
  letter-spacing: 0.1em;
  pointer-events: none;
  text-align: center;
  text-transform: uppercase;
}
header .menu-right {
  display: flex;
  width: 70px;
}
header .menu-right #button-settings {
  display: flex;
  justify-content: flex-end;
  margin-right: 0;
}

@media (min-width: 415px) {
  header .menu-left #nav-overlay #nav-content {
    width: 325px;
  }
  header .title {
    font-size: 0.7rem;
    line-height: 170%;
  }
}
@media (min-width: 768px) {
  header .title {
    font-size: 1.1rem;
    letter-spacing: 0.01em;
    transform: translateY(5px);
  }
}

section#log-container {
  display: none;
}

#feedback p {
  padding-bottom: 1em;
}

#feedback input[type='email'],
#feedback textarea {
  padding: 0.5em;
  width: 100%;
}

#feedback textarea {
  height: 80px;
  margin: 1em 0 0.5em;
}

#feedback #captcha-container {
  align-items: center;
  background-color: #444444;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-bottom: 0.5em;
  padding: 0.3em 1em 1em;
  width: auto;
}
#feedback #captcha-container #captcha {
  bottom: 0;
  display: block;
  font-size: 60px;
  height: 50px;
  left: 0;
  letter-spacing: 3px;
  margin: auto;
  position: relative;
  right: 0;
  top: 0;
}
#feedback #captcha-container #captcha-usertext {
  padding: 0.5em;
}
#feedback #captcha-container #feedback-button-refresh {
  border: 0px;
  font-weight: bold;
  max-height: 26px;
}
#feedback .incorrect {
  color: #ee9090;
}
#feedback .correct {
  color: #90ee90;
}

#game {
  height: 100%;
  margin: 0 auto;
  overflow: hidden;
  position: relative;
  width: 100%;
}
#game #output {
  bottom: 0;
  font-size: 0.9rem;
  left: 0;
  margin: 55px auto 165px;
  overflow-y: scroll;
  padding: 10px;
  position: absolute;
  right: 0;
  scroll-behavior: smooth;
  top: 0;
  width: 97%;
}
#game #output a {
  color: #fffb8a;
  text-decoration: none;
  text-shadow: unset;
  transition: all 0.3s ease-in-out;
}
#game #output a.glow-repeat {
  animation: glow-pulse 1.5s ease-in-out infinite alternate;
}
#game #output a.glow-up {
  animation: glow-up 0.5s ease-in-out infinite;
}
#game #output a.glow-transition:hover {
  color: #deaddd;
  text-shadow: 0 0 5px #3d083c, 0 0 10px #deaddd, 0 0 40px #deaddd;
}

@keyframes glow-pulse {
  100% {
    text-shadow: 0 0 4px #fcfcfc, 0 0 11px #fcfcfc, 0 0 19px #fcfcfc, 0 0 40px #fcfcfc,
      0 0 80px #efefef, 0 0 90px #efefef, 0 0 100px #efefef, 0 0 150px #efefef;
  }
  0% {
    text-shadow: 0 0 4px #fcfcfc, 0 0 10px #fcfcfc, 0 0 18px #fcfcfc, 0 0 38px #fcfcfc,
      0 0 73px #efefef, 0 0 80px #efefef, 0 0 94px #efefef, 0 0 140px #efefef;
  }
}
@keyframes glow-up {
  0% {
    text-shadow: 0 0 1px #fcfcfc;
  }
  100% {
    text-shadow: 0 0 10px #fcfcfc;
  }
}

#interface {
  background-color: var(--neutral-black);
  bottom: 0;
  display: flex;
  flex-direction: column;
  height: 165px;
  position: fixed;
  width: 100%;
}
#interface #stats,
#interface #location {
  font-size: 0.8rem;
  padding: 2px;
  width: 100%;
  z-index: 0;
}

#interface #stats {
  background: #3d083c;
  color: #deaddd;
  display: flex;
  height: 20px;
}
#interface #location {
  background: #2e0a2e;
  height: 20px;
}
#interface #avatar {
  bottom: 72px;
  color: #fcfcfc;
  display: block;
  font-family: 'Lucida Console', monospace;
  font-size: 10px;
  font-weight: 700;
  height: 145px;
  margin: 0;
  padding: 0;
  position: fixed;
  right: -14px;
  transform: scale(0.28);
  white-space: break-spaces;
  width: 55px;
  z-index: 1;
}
#interface #keyboard {
  display: block;
  margin: 0;
  padding-top: 8px;
  user-select: none;
  width: 95%;
}
#interface #keyboard .row {
  display: flex;
  justify-content: center;
  margin: 0 auto 3px;
  padding: 0 8px;
  touch-action: manipulation;
  width: 100%;
}
#interface #keyboard .row button:last-of-type {
  margin: 0;
}
#interface #keyboard-input {
  background: #eff1d1;
  border-radius: 4px;
  bottom: 105%;
  color: #1e1e1e;
  font-size: 1.1rem;
  left: 50%;
  min-width: 0px;
  opacity: 0;
  padding: 5px;
  pointer-events: none;
  position: absolute;
  text-transform: uppercase;
  transform: translate(-50%, 0);
  transition: all 200ms;
  width: 1px;
  z-index: 1000;
}
#interface #keyboard-input.show {
  opacity: 1;
  width: fit-content;
}
#interface #cli {
  background: #222222;
  border-top: 2px solid var(--neutral-black);
  color: var(--neutral-white);
  display: none;
  height: 30px;
  padding: 5px 0;
  width: 100%;
}
#interface #cli form {
  display: flex;
}
#interface #cli form label {
  padding-left: 8px;
  position: relative;
  top: 5px;
}
#interface #cli form input {
  background: #222222;
  border: 0;
  color: var(--neutral-white);
  font-family: 'Lucida Console', 'Consolas', monospace;
  font-size: 0.9rem;
  min-width: 300px;
  outline: none;
  padding: 5px;
}

@media (min-width: 768px) {
  #game #output {
    font-size: 1rem;
    margin-bottom: 92px;
  }

  #interface {
    height: 92px;
  }
  #interface #keyboard {
    display: none;
  }
  #interface #cli {
    display: flex;
  }
  #interface #stats,
  #interface #location {
    font-size: 1rem;
  }
  #interface #avatar {
    bottom: 44px;
    right: 20px;
    transform: scale(1);
  }
}

.noun {
  color: #90ee90;
}

.keyword {
  color: #eecd90;
}
.keyword.false {
  color: #dd4a4a;
}
.keyword.true {
  color: #32ce32;
}

.argument {
  background-color: #dddddd;
  color: #100210;
  padding: 0 2px;
}

.command-previous {
  color: #7d7d7d;
}

@media screen and (prefers-reduced-motion) {
  #game #output a {
    animation: none;
  }
}

.radio {
  margin: 0.2rem;
}
.radio input[type='radio'] {
  position: absolute;
  opacity: 0;
}
.radio input[type='radio'] + .radio-label.radio-label-disabled {
  color: #666;
}
.radio input[type='radio'] + .radio-label:before {
  background: #f4f4f4;
  border: 1px solid #b4b4b4;
  border-radius: 100%;
  content: '';
  cursor: pointer;
  display: inline-block;
  height: 1em;
  margin-right: 0.5em;
  position: relative;
  text-align: center;
  transition: all 250ms ease;
  top: 0;
  vertical-align: top;
  width: 1em;
}
.radio input[type='radio']:checked + .radio-label:before {
  background-color: #155da1;
  box-shadow: inset 0 0 0 4px #f4f4f4;
}
.radio input[type='radio']:focus + .radio-label:before {
  outline: none;
  border-color: #155da1;
}
.radio input[type='radio']:disabled + .radio-label:before {
  box-shadow: inset 0 0 0 4px #f4f4f4;
  border-color: #b4b4b4;
  background: #b4b4b4;
}
.radio input[type='radio'] + .radio-label:empty:before {
  margin-right: 0;
}

.switch {
  background-color: #444;
  border-radius: 999px;
  cursor: pointer;
  display: block;
  height: 20px;
  position: relative;
  width: 32px;
}
.switch[data-status='true'] {
  background-color: #155da1;
}
.switch[data-status='true'] .knob {
  transform: translateX(calc(100% - 4px));
}
.switch .knob {
  background-color: #fff;
  border-radius: 8px;
  display: block;
  height: calc(100% - 4px);
  left: 2px;
  position: absolute;
  top: 2px;
  transform: translateX(0);
  transition: transform 0.3s;
  width: 50%;
}
