body {
  background: #1e1e2e;
  background-image: url(./img/daniel-leone-v7daTKlZzaw-unsplash.jpg);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
  font-family: 'Source Code Pro', monospace;
  margin: 0;
  padding: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  --window-anim-speed: 0.5s;
}

.window {
  transition:
    top var(--window-anim-speed) ease,
    left var(--window-anim-speed) ease,
    width var(--window-anim-speed) ease,
    height var(--window-anim-speed) ease,
    border-radius var(--window-anim-speed) ease,
    transform 0.4s ease, opacity 0.4s ease;
  transform-origin: top left;
  opacity: 1;
  transform: translate(0, 0) scale(1);
}

.terminal-container {
  background: #0f0f0fcf;
  backdrop-filter: blur(8px);
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.6);
  position: fixed;
  left: calc(50vw - 400px);
  top: calc(50vh - 250px);
  width: 800px;
  /*max-width: 100vw;*/
  overflow: hidden;
  height: 500px;
  display: flex;
  flex-direction: column;
}


.window.minimized {
  opacity: 0;
  transform: translate(var(--minimize-dx, 0), var(--minimize-dy, 0)) scale(var(--minimize-scale, 0.1));
  pointer-events: none;
}



.window.dragging,
.window.dragging * {
  transition: none !important;
  animation: none !important;
}


.window .topbar {
  background: #1e1e1e;
  height: 40px !important;
  min-height: 40px !important;
  display: flex;
  align-items: center;
  padding: 0 15px;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  cursor: grab;
  transition: border-radius var(--window-anim-speed) ease;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  font-size: 14px;
}

.window-title {
  position: absolute;
  left: 0;
  right: 0;
  text-align: center;
  pointer-events: none;
  font-weight: 500;
  color: #c0caf5;
}

.buttons {
  display: flex;
  gap: 8px;
  margin-left: auto;
  align-items: center;
}

.fake-browser-container .buttons {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.btn {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #2e2e2e;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 11px;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  transition: filter 0.3s ease;
}


.btn:hover:not(.off) {
  filter: brightness(1.3);
}

.btn.off {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn svg {
  width: 20px;
}

.terminal {
  height: calc(100% - 40px);
  flex-grow: 1;
  overflow-y: auto;
  cursor: text;
  color: #c0caf5;
  padding: 4px;
  font-size: 14px;
  font-family: 'Source Code Pro', monospace;
  white-space: pre;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  outline: none;
  overflow: hidden;
}

.terminal-line {
  display: flex;
  flex-wrap: nowrap;
  line-height: 18px;
  height: 18px;
  font-size: 13px;
}

.terminal-char {
  width: 8px;
  height: 18px;
  white-space: pre;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

.prompt-char {
  color: #7dcfff;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

.input-char {
  color: #c0caf5;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

.cursor {
  position: relative;
  animation: cursorBlinkColor 1s steps(2, start) infinite;
}

.cursor::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #c0caf5;
  animation: blink 1s steps(10, start) infinite;
  pointer-events: none;
  z-index: -1;
}

@keyframes blink {

  0%,
  50% {
    opacity: 1;
  }

  51%,
  100% {
    opacity: 0;
  }
}

@keyframes cursorBlinkColor {

  0%,
  50% {
    color: black;
  }

  51%,
  100% {
    color: inherit;
  }
}


.dock-station {
  position: fixed;
  bottom: 0;
  left: 0;
  display: flex;
  gap: 10px;
  padding: 10px;
  z-index: 999;
}

.dock-item {
  background: rgb(30, 30, 30);
  color: #c0caf5;
  padding: 10px 14px;
  border-radius: 8px;
  font-family: 'Source Code Pro', monospace;
  font-size: 14px;
  cursor: pointer;
  opacity: 0;
  transform: translate(var(--dock-tx, 30px), var(--dock-ty, -30px));
  transition: opacity 0.3s ease, transform 0.3s ease;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

.dock-item.show {
  opacity: 1;
  transform: translate(20px, -20px);
}











.crt {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  overflow: hidden;
  pointer-events: none;
  font-family: 'Source Code Pro', monospace;
}



.crt #background {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background-color: black;
  z-index: 9999;
  opacity: 1;
  display: block;
  transition: all 2.5s ease;
}

.crt #line {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background-color: white;
  z-index: 9999;
  display: none;
}

.crt #background.off {
  display: block;
  transition: all 0.1s ease;
  pointer-events: all;
  cursor: none;
}

.crt #background.on {
  animation: turn-on 1.5s ease forwards;

}

.crt #line.off {
  display: block;
  animation: turn-off 0.55s cubic-bezier(0.230, 1.000, 0.320, 1.000);
  animation-fill-mode: forwards;
}

.crt #line.on {
  display: block;
  opacity: 0;
}

@keyframes turn-on {
  0% {
    backdrop-filter: blur(15px) saturate(80%) contrast(120%) brightness(0%);
    background-color: rgba(0, 0, 0, 1);
  }

  100% {
    backdrop-filter: blur(0px) saturate(100%) contrast(100%) brightness(100%);
    background-color: rgba(0, 0, 0, 0);
  }
}

@keyframes turn-off {
  0% {
    transform: scale(1, 1.3) translate3d(0, 0, 0);
    -webkit-filter: brightness(1);
    filter: brightness(1);
    opacity: 1;
  }

  60% {
    transform: scale(1.3, 0.001) translate3d(0, 0, 0);
    -webkit-filter: brightness(10);
    filter: brightness(10);
  }

  100% {
    animation-timing-function: cubic-bezier(0.230, 1.000, 0.320, 1.000);
    transform: scale(0.000, 0.0001) translate3d(0, 0, 0);
    -webkit-filter: brightness(50);
    filter: brightness(50);
  }
}


#boot-loader {
  color: white;
  font-size: 13px;
  z-index: 10000;
  display: block;
  position: absolute;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

#boot-text {
  white-space: pre;
  /* Preserve spaces and line breaks */
  margin: 5px;
}

.blinking-cursor {
  animation: simple_blink 0.8s step-end infinite;
}

@keyframes simple_blink {
  50% {
    opacity: 0;
  }
}



.fake-browser {
  height: calc(100% - 40px);
}

.fake-browser-container {
  position: fixed;
  left: calc(50vw - 300px);
  top: calc(50vh - 400px);
  width: 600px;
  height: 800px;
  border-radius: 12px;
  overflow: hidden;
  font-family: sans-serif;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.6);
}

.fake-browser-container .address-bar {
  flex: 1 1 auto;
  min-width: 80px;
  max-width: 100%;
  flex-grow: 1;
  height: 28px;
  background: #3f3f3f;
  border-radius: 4px;
  padding: 2px 10px;
  font-size: 13px;
  line-height: 28px;
  color: #e3e3e3;
  border: none;
  outline: none;
  margin: 0 50px;
  box-sizing: border-box;
  caret-color: #fff;
  transition: text-shadow 0.5s ease, filter 0.5s ease;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  font-family: 'Source Code Pro', monospace;
}

@media (max-width: 600px) {
  .fake-browser-container .address-bar {
    margin: 0 10px;
  }
}

.glitch {
  animation: glitch 0.3s infinite, flicker 0.35s infinite;
  text-shadow:
    2px 0 rgba(255, 0, 0, 0.7),
    -2px 0 rgba(0, 0, 255, 0.7),
    0 2px rgba(0, 255, 0, 0.7);

  filter: brightness(1.2);
}

@keyframes glitch {
  0% {
    transform: translate(0, 0);
  }

  20% {
    transform: translate(-0.5px, 0.5px);
  }

  40% {
    transform: translate(0.5px, -0.5px);
  }

  60% {
    transform: translate(-0.5px, -0.5px);
  }

  80% {
    transform: translate(0.5px, 0.5px);
  }

  100% {
    transform: translate(0, 0);
  }
}

@keyframes flicker {

  0%,
  19%,
  21%,
  23%,
  25%,
  54%,
  56%,
  100% {
    opacity: 1;
  }

  20%,
  22%,
  24%,
  55% {
    opacity: 0.6;
  }
}

#markdown-render,
#special-render {
  display: block;
  top: 0px;
  padding: 0px;
  overflow-y: auto;
  height: 100%;
  width: 100%;
  background-color: white;
}


.hide-cursor * {
  cursor: none !important;
}

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #00000000;
}

::-webkit-scrollbar-thumb {
  width: 100%;
  background: rgb(46 46 46);
  cursor: pointer;
  position: absolute;
}

::-webkit-scrollbar-thumb:hover {}

.link {
  cursor: pointer;
  text-decoration: underline;
}


.terminal-wrapper {
  position: relative;
}

.scrollbar {
  position: absolute;
  right: 0;
  top: 40px;
  width: 8px;
  background: rgba(200, 200, 200, 0.2);
}

.scroll-thumb {
  width: 100%;
  background: rgb(46 46 46);
  cursor: pointer;
  position: absolute;
}


#desktop {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  color: white;
}


.icon {
  position: absolute;
  width: 90px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  user-select: none;
  font-size: 13px;
  font-family: 'Source Sans 3', monospace;
  white-space: normal;
  word-break: break-word;
  filter: drop-shadow(2px 2px 2px #00000050);
  padding: 5px;
}


.icon.selected {
  background-color: rgba(88, 166, 255, 0.15);
  outline: 1px solid #58a6ff;
  border-radius: 4px;
}

.icon:hover {
  background-color: rgba(0, 0, 0, 0.253);
  border-radius: 5px;
}

.icon.selected:hover {
  background-color: rgba(58, 111, 172, 0.527);
}


.icon span {
  /*overflow: hidden;*/
  text-overflow: ellipsis;
}

.icon img {
  width: 40pxx;
  height: 40px;
  margin-bottom: 5px;
  pointer-events: none;
}







.fake-text-viewer-container {
  position: fixed;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.6);
  width: 500px;
  height: 600px;
  border-radius: 12px;
  left: calc(-250px + 50vw);
  top: calc(-300px + 50vh);
  overflow: hidden;
}

.fake-text-viewer {
  height: calc(100% - 40px);
  background: #0f0f0fcf;
  backdrop-filter: blur(8px);
}

.text-viewer-content {
  padding-left: 10px;
  padding-right: 10px;
  height: calc(100% - 40px);
  padding-bottom: 20px;
  padding-top: 20px;
  cursor: text;
  color: #c0caf5;
  font-size: 13px;
  font-family: 'Source Code Pro', monospace;
  white-space: break-spaces;
  outline: none;
  overflow-y: scroll;
  overflow-x: hidden;
}

.text-viewer-content a {
  color: rgb(88, 166, 255);
  font-weight: bold;
}

.text-viewer-content::selection {
  background: rgba(100, 150, 255, 0.4);
}

.text-viewer-content::moz-selection {
  background: rgba(100, 150, 255, 0.4);
}

.selection-box {
  position: absolute;
  border: 1px solid #3390ff;
  border-radius: 3px;
  background-color: rgba(51, 144, 255, 0.2);
  pointer-events: none;
  z-index: 1;
  width: 0px;
  height: 0px;
}

#hidden-input {
  overflow-x: hidden;
  overflow-y: hidden;
}

@media (max-width: 600px) {
  html{
    height: 100vh;
  }
  body {
    height: 100vh;
    overflow-y: hidden;
  }
  #desktop {
    height: 100vh;
  }

  .window {
    max-width: 100%;
    max-height: 100%;
  }

  #boot-text {
    font-size: 11px;
  }
}