html,
body {
  height: 100%;
  width: 100%;
  background-color: #061072;
  color: #fff;
  margin: 0;
  padding: 0;
  cursor: var(--default-cursor-url, auto);
  font-smooth: never;
}

* {
  user-select: none;
  -khtml-user-select: none;
  -o-user-select: none;
  -moz-user-select: -moz-none;
  -webkit-user-select: none;
}

span {
  display: inline-block;
}

#menu_bar {
  margin-bottom: 0.8em;
  padding: 0.3em;
  background-color: #888;
  font-size: 1.1em;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

#menu_bar div.menu {
  display: inline-block;
}

.menu_separator {
  color: #061072;
  padding: 0 0.5em;
  display: inline-flex;
  align-items: center;
  height: 1.5em;
}


.menu_item::first-letter {
  color: #f00;
}

.menu_item {
  display: block;
  color: #061072;
  cursor: var(--default-cursor-url, auto);
}

.menu_item:hover {
  cursor: var(--hover-cursor-url, pointer);
}

.content {
  display: block;
  position: absolute;
  background-color: #888;
  visibility: hidden;
}

.content ul {
  list-style-type: none;
  margin: 0;
  padding: 0.3em;
}

.content li {
  cursor: var(--default-cursor-url, auto);
}

.content li:hover {
  cursor: var(--hover-cursor-url, pointer);
}

.content li:active {
  color: #f00;
}

#buffer {
  display: none;
}

#main_content {
  font-size: 1.2em;
  padding: 1em;
  padding-top: 0.2em;
  caret-color: rgba(73, 217, 228, 0.85);
}

.page {
  display: none;
}

#fgbg {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  background-image: url("../bg.png");
  background-blend-mode: multiply;
  z-index: 9999;
  pointer-events: none;
  visibility: hidden;
}

a,
a.retro-link {
  cursor: var(--default-cursor-url, auto);
  color: white;
}

a:hover,
a.retro-link:hover {
  cursor: var(--hover-cursor-url, pointer);
}

a.retro-link {
  color: #fff;
  background: #061072;
  padding: 2px 6px;
  border: 2px solid #fff;
  border-radius: 2px;
  text-decoration: none;
  font-family: "Press Start 2P", cursive;
  font-size: 1em;
  letter-spacing: 1px;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  box-shadow: 2px 2px 0 #000;
}

a.retro-link:hover,
a.retro-link:focus {
  color: #f00;
  background: #222c99;
  border-color: #f00;
  outline: none;
  box-shadow: 2px 2px 0 #f00;
}

a:visited {
  color: white;
  text-decoration: underline;
}

.menu_item[data-direct="true"] {
  background-color: #444;
  border-left: 3px solid #f00;
}

.menu_item[data-direct="true"]:hover {
  background-color: #555;
  border-left-color: #ff0;
}

.menu_item.active {
  background-color: #222c99;
  color: #fff;
}

.typing-cursor {
  animation: blink 1s infinite;
}

@keyframes blink {
  0%,
  50% {
    opacity: 1;
  }
  51%,
  100% {
    opacity: 0;
  }
}

.loading-indicator {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid #f00;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.slider {
  position: absolute;
  cursor: var(--default-cursor-url, auto);
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: 0.4s;
}

.slider:hover {
  cursor: var(--hover-cursor-url, pointer);
}

.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: 0.4s;
}
input:checked + .slider {
  background-color: #2196f3;
}
input:focus + .slider {
  box-shadow: 0 0 1px #2196f3;
}
input:checked + .slider:before {
  transform: translateX(26px);
}
#power-screen {
  position: fixed;
  z-index: 99999;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #061072;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 999;
  background-image: url("../bg.png");
}

.toggle-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 20px;
}

.toggle-label {
  margin-top: 10px;
  color: #fff;
  font-family: "Press Start 2P", cursive;
  font-size: 1.1em;
  text-align: center;
}

#avtor {
  position: absolute;
  bottom: 0;
  right: 0;
  padding: 0.5em;
  font-size: 0.8em;
  color: #fff;
  text-align: right;
  z-index: 1000;
}

@media (max-width: 768px) {
  body {
    font-size: 1.4vh;
  }

  #menu_bar {
    flex-direction: column;
    padding: 0;
    font-size: 2vh;
  }

  #menu_bar div.menu {
    display: block;
    width: 100%;
    padding: 0.3em;
    box-sizing: border-box;
    text-align: center;
    margin-bottom: 2px;
  }

  #menu_bar div.menu:last-child {
    margin-bottom: 0;
  }

  .menu_separator {
    display: none;
  }

  #main_content p {
    word-break: normal !important;
    overflow-wrap: break-word;
    line-height: 1.5;
  }
  a.retro-link {
    text-decoration: underline;
    border: none;
    background: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
  }

  a.retro-link:hover,
  a.retro-link:focus {
    background: transparent;
    border-color: transparent;
    box-shadow: none;
  }
}
