body {
  overflow: hidden;
  transition: all 0.5s ease;
  background-color: black;
  background-repeat: no-repeat;
  height: 100vh;
}

#gameloader {
  background-color: black;
  position: absolute;
  z-index: 999999999;
  width: 100vw;
  height: 100dvh;
  display: flex;
  justify-content: center;
  place-items: center;
}

html {
  background-color: black;
}

@font-face {
  font-family: 'ra-inet';
  src: url('C&C Red Alert [INET].ttf');
  font-weight: lighter;
}

footer {
  bottom: 0;
  background-color: #3d3d3d;
  border: #4d4d4d outset 3px;
  height: 40px;
  position: fixed !important;
  z-index: 999999;
  box-sizing: border-box;
  width: 100%;
  overflow: hidden;
  display: flex;
}

.openSauron {
  right: 22px;
  top: 46px;
  position: absolute;
  background: #4d4d4d;
  border: #5d5d5d outset 3px;
  padding: 5px;
  color: white;
}

.sauronText:hover {
  background-color: lightgray;
  cursor: pointer;
}

#sauronLeft {
  padding: 10px;
}

#sidebar {
  width: 15vw;
  height: 100vh;
  position: absolute;
  background: #1d1d1dab;
  right: 0;
}

.openSauron:active {
  border: #4d4d4d inset 3px;
}

#sauronLeft button,
#sidebar button {
  background: #4d4d4d;
  border: #5d5d5d outset 3px;
  padding: 5px;
  color: white;
  width: 100%;
  margin-top: 5px;
}

#sauronLeft button:active,
#sidebar button:active {
  border: #4d4d4d inset 3px;
}

.window {
  display: none;
  animation: fadein;
  animation-duration: 250ms;
  position: absolute !important;
  min-width: fit-content;
  min-height: fit-content;
  width: 40vw;
  height: 50vh;
  max-width: 90vw;
  max-height: 90vh;
  resize: both;
  overflow: hidden;
  box-sizing: border-box;
}

#outro .right {
  float: right;
}

.header {
  width: calc(100% - 4px);
  background-color: #3d3d3d;
  cursor: move;
  overflow: hidden;
  height: fit-content;
  border: #4d4d4d outset 3px;
  color: white;
  box-sizing: content-box;
  height: 31px;
}

.content {
  background: white;
  border: #4d4d4d outset 3px;
  border-top: none;
  width: 100%;
  height: calc(100% - 40px);
  box-sizing: border-box;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  overflow: auto;
}

.content iframe {
  border: none;
  width: 100%;
  height: 100%;
}

.headertext {
  color: white;
  background: none;
  border: black solid 0px;
  margin-right: 0px;
  height: 30px;
  transition: all 250ms ease;
  padding: 8px;
  pointer-events: none;
  font-family: 'ra-inet';
  line-height: 1.1;
}

* {
  margin: 0;
  padding: 0;
  user-select: none;
  outline: none;
  font-family: ra-inet;
  box-sizing: border-box;
}

nav {
  display: inline-block;
}

.menubutton2 {
  background: none;
  border: black solid 0px;
  font-family: ra-inet;
  color: white;
  float: left;
  text-align: left;
  font-size: 20px;
  margin-bottom: 5px;
  padding: 5px;
  cursor: pointer;
}

.menubuttonminimizing {
  background-color: #9d9d9d20;
  border: #5d5d5d inset 3px !important;
}

.menubuttonminimized:hover {
  background-color: #8d8d8d80;
  transition: all 250ms ease;
}

.menubuttonminimized:active {
  background-color: #6d6d6d66;
  transition: all 250ms ease;
}

/* Audio stuff */
.btn.music {
  border: black solid 0px;
  background-color: black;
  cursor: pointer;
  font-family: ra-inet;
  color: white;
  text-align: center;
  font-size: 20px;
  min-height: 30px;
  min-width: 30px;
  padding: 0;
  margin: 10px;
}

.progress-bar {
  height: 100%;
  width: 0%;
  background: #ff3366;
  border-radius: 3px;
  transition: width 0.25s linear;
}

#yes {
  color: white !important;
  background-color: green !important;
}

#no {
  color: white !important;
  background-color: red !important;
}

#undecided {
  color: black !important;
  background-color: yellow !important;
}


.progress-container {
  flex: 1;
  height: 6px;
  background: #444;
  border-radius: 3px;
  overflow: hidden;
  cursor: pointer;
}

/* End of audio stuff */

@keyframes fadein {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

@keyframes slideright {
  0% {
    transform: translateX(-100%);
  }

  100% {
    transform: translateX(0%);
  }
}

#menutogglebuttonimg {
  height: 100%;
}

#launcher {
  position: absolute;
  z-index: 999999;
  bottom: 40px;
  width: 20vw;
  height: calc(40vh);
  background-color: #3d3d3d;
  border: #4d4d4d outset 3px;
  display: none;
  padding: 5px;
  color: white;
}

#searchBar {
  width: 100%;
  color: black;
  padding: 5px;
}

.desktopTasks {
  overflow: auto;
}

#emailsLeft div {
  padding: 10px;
  cursor: pointer;
}

#emailsLeft div:hover {
  opacity: 0.75;
}

#emailsLeft div:active {
  opacity: 0.5;
}

#emailsLeft div:nth-child(2n) {
  background: darkgray;
}

#launcherToggle,
.menubuttonminimized,
.header button {
  height: calc(100% - 6px);
  background: #4d4d4d;
  border: #5d5d5d outset 3px;
  color: white;
  margin: 3px;
  margin-right: 0;
  padding: 5px;
  font-size: 17px;
  cursor: pointer;
}

.header button:active {
  border: #4d4d4d inset 3px;
}

.menubuttonminimized {
  display: none;
}

.effect {
  background: linear-gradient(to top, #00000040, #00000040, #33333340, #33333340);
  background-size: cover;
  background-size: 100% 1px;
  width: 100vw;
  height: 100dvh;
  position: absolute;
  pointer-events: none;
  z-index: 999999999;
  box-shadow: inset 0px 0px 10px 5px rgba(0, 0, 0, 0.25);
  top: 0;
}

canvas {
  box-shadow: inset 0px 0px 200px 75px rgba(0, 0, 0, 0.75);
}

.header button {
  height: 25px;
  float: right;
  aspect-ratio: 1/1;
  font-size: 12px;
  margin-right: 3px;
  margin-left: 0;
}

#launcherToggle img {
  margin-right: 5px;
  height: 100%;
  float: left;
  display: inline-block;
}

#launcherToggle:hover,
#desktops button:hover {
  background-color: #9d9d9d20;
  transition: all 250ms ease;
}

#activeDesktop {
  background-color: #9d9d9d20 !important;
  transition: all 250ms ease;
}

#launcherToggle:active,
#desktops button:active {
  background-color: #6d6d6d66;
  transition: all 250ms ease;
}

#section {
  height: calc(100vh - 40px);
  width: 100vw;
  position: absolute;
  background-image: url("wallpaper.png");
  background-position: center center;
  background-size: cover;
}

#versionString {
  position: absolute;
  z-index: 999999;
  bottom: 0;
  right: 0;
  color: rgba(255, 255, 255, 0.75);
  text-align: right;
  pointer-events: none;
  padding-bottom: 45px;
  padding-right: 10px;
  text-shadow: black 0px 0px 10px;
}

#weather,
#time {
  color: white;
  font-size: 17px;
  display: inline-block;
  margin: 5px;
  margin-bottom: 4px;
}

.tray {
  right: 1px;
  position: absolute;
  height: 100%;
  display: flex;
  align-items: center;
  border: #4d4d4d inset 3px;
}

.menubuttonminimized img {
  height: 100%;
  aspect-ratio: 1/1;
  margin-right: 5px;
}

.titlebar {
  display: inline-flex;
  height: 100%;
  align-items: center;
}

.titlebar img {
  margin: 5px;
  height: 21px;
  aspect-ratio: 1/1;
}

.desktopIcon {
  position: relative;
  width: 100px;
  height: fit-content;
  background: none;
  border: none;
  padding: 20px;
  color: white;
  text-shadow: black 1px 1px 0px;
  font-size: 16px;
  cursor: pointer;
}

.desktopIcon img {
  width: 100%;
}

.desktopIcon:focus span {
  background-color: blue;
}

.left {
  display: flex;
  flex-direction: column;
  width: 25%;
  height: 100%;
  background-color: lightgray;
  flex-shrink: 0;
  overflow: auto;
}

.right {
  display: inline-block;
  height: 100%;
  width: 75%;
  padding: 10px;
  overflow: auto;
}

#emailReader {
  padding: 10px;
}

.notification {
  position: absolute;
  right: 15vw;
  top: 0;
  color: white;
  margin: 10px;
  padding: 5px;
  background-color: #3d3d3d;
  border: #4d4d4d outset 3px;
}

#outro {
  position: absolute;
  z-index: 999999;
  width: 100vw;
  height: 100vh;
  background-color: black;
  display: flex;
  justify-content: center;
  place-items: center;
  text-align: center;
  color: white;
  display: none;
}

.topic {
  padding: 5px;
  color: white;
}

.progressbar {
  display: inline-block;
  background: white;
  height: 10px;
  width: 150px;
  border: white solid 1px;
  margin-bottom: 7px;
  margin-left: 10px;
}

.progressbar div {
  background: green;
  height: 100%;
  transition: all 0.5s ease;
}

#outro .left,
#outro .right {
  height: fit-content;
  width: fit-content;
  min-width: unset;
  min-height: unset;
  background: none;
  text-align: right;
  padding: unset;
  display: inline-block;
}

#outro .left {
  border-right: white solid 1px;
  padding-right: 5px;
}

a {
  color: white;
}

#main-menu p,
#boot p {
  color: white;
  font-family: 'ra-inet';
  font-size: 1.5rem;
  padding-inline: 15px;
}

.menu-item {
  white-space: pre;
  padding-left: 20px;
}

.selected::before {
  content: "> ";
}

.selected {
  background: white;
  color: black !important;
}

#loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 3;
}

#loader img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 7rem;
  font-family: 'ra-inet';
  z-index: 2;
  text-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
}

#boot {
  height: 100dvh;
  overflow: auto;
  display: flex;
  flex-direction: column-reverse;
  overflow: hidden;
}

@keyframes rotate {
  from {
    transform: rotate(0deg) scale(1);
  }

  to {
    transform: rotate(180deg) scale(5);
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes fade-out {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
  }
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: lightgray;
}

::-webkit-scrollbar-thumb {
  background: #4d4d4d;
  border: #5d5d5d outset 3px;
}

::-webkit-scrollbar-thumb:active {
  background: #4d4d4d;
  border: #5d5d5d inset 3px;
}

.crosshair {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 99999999;
  pointer-events: none;
  width: 5px;
  height: 5px;
  background: white;
  box-shadow: 0px 0px 20px 5px rgba(0, 0, 0, 0.25);
}

.crosshair span {
  color: white;
  text-align: center;
  transform: translate(-45%, 100px);
  display: block;
  position: absolute;
}

#computer {
  background: black;
  height: 100dvh;
}

.ui-icon,
.ui-widget-content .ui-icon {
  background-image: none !important;
}