@import url("https://www.nerdfonts.com/assets/css/webfont.css");

:root {
  --color-background: #000000;
  --color-foreground: #919191;
  --color-0: #303030;
  --color-0-light: #5e5e5e;
  --color-1: #a13a38;
  --color-1-light: #ffa59a;
  --color-2: #00715d;
  --color-2-light: #24dfc4;
  --color-3: #006f32;
  --color-3-light: #73db95;
  --color-4: #a43261;
  --color-4-light: #ff9fc9;
  --color-5: #913e88;
  --color-5-light: #ffa7f6;
  --color-6: #007086;
  --color-6-light: #00ddf4;
  --color-7: #c6c6c6;
  --color-7-light: #ffffff;
  --border-radius: 5px;
  --font-family: "JetBrains Mono", monospace;
}

* {
  font-family: var(--font-family);
}

* {
  box-sizing: border-box;
}

html, body {
  width: 100%;
  overflow-x: hidden; /* Prevent horizontal scroll */
}
.page-container {
  position: relative;
  min-height: 100vh;
  min-width: 100vw;
  justify-content: center;
}

a {
  font-weight: bold;
  color: var(--color-6-light);
}

.header {
  text-align: center;
  padding: 20px;
  position: relative;
  z-index: 3;
  color: var(--color-2);
  padding-top: 100px;
  font-size: 11px;
}

.header-decoration {
  color: var(--color-6);
  opacity: 0.5;
  transition: opacity;
  animation: 3s ease-in 1s infinite glow;
  font-size: 8px;
  z-index: 1;
}

.computer {
  display: inline-block;
  transform: rotate(30deg);
  position: absolute;
  animation: 10s ease-in infinite computer;
}

@keyframes computer {
  0%, 100%{
    transform: rotate(30deg) translateY(0px);
  }
  25% {
    transform: rotate(45deg) translateY(50px);
  }
  50% {
    transform: rotate(60deg) translateY(55px);
  }
  75% {
    transform: rotate(45deg) translateY(50px);
  }
}

.tower {
  display: inline-block;
  position: absolute;
  right: 0%;
  animation: 10s linear infinite tower;
}

@keyframes tower {
  0%, 100% {
    transform: rotate(0deg) translateY(0px) translateZ(0px);
  }
  25% {
    transform: rotate(3deg) translateY(10px) translateZ(5px);
  }
  50% {
    transform: rotate(5deg) translateY(15px) translateZ(10px);
  }
  75% {
    transform: rotate(3deg) translateY(10px) translate(5px);
  }
}

.cd {
  display: none;
  position: absolute;
  max-width: 40px;
  font-size: 10px;
  animation: 
    randomMove 25s linear infinite alternate,
    rotate 2s linear infinite;
}

/* Main movement animation - random bouncing */
@keyframes randomMove {
  0% {
    top: 0%;
    left: 0%;
  }
  10% {
    top: 15%;
    left: 80%;
  }
  20% {
    top: 65%;
    left: 20%;
  }
  30% {
    top: 25%;
    left: 90%;
  }
  40% {
    top: 85%;
    left: 10%;
  }
  50% {
    top: 5%;
    left: 70%;
  }
  60% {
    top: 95%;
    left: 30%;
  }
  70% {
    top: 35%;
    left: 5%;
  }
  80% {
    top: 75%;
    left: 95%;
  }
  90% {
    top: 45%;
    left: 50%;
  }
  100% {
    top: 100%;
    left: 100%;
  }
}

/* Continuous rotation (separate from movement) */
@keyframes rotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes glow {
0% {
    opacity: 0.5;
  }
  50% {
    opacity: 0.8;
  }
  100% {
    opacity: 0.5;
  }
}

.background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  color: var(--color-6);
  font-size: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-background);
}

.house {
  font-size: 15px;
  color: var(--color-6);
  opacity: 0.05;
  position: absolute;
  display: inline-block;
  top: -10%;
  transform: translate(-50%);
  animation: glow-house 2s ease-in infinite;
}

@keyframes glow-house {
0% {
    opacity: 0.05;
  }
  20% {
    opacity: 0.1;
  }
  25% {
    opacity: 0.03;
  }
  35% {
    opacity: 0.1;
  }
  50% {
    opacity: 0.03;
  }
  100% {
    opacity: 0.05;
  }
}

.layout {
  position: relative;
  z-index: 4;
  display: flex;
  gap: 20px;
  justify-content: center;
  max-width: 80vw;
  margin: 0 auto 30px auto;
  font-size: 12px;
}

.block {
  border-radius: 5px;
  border: 3px solid var(--color-2);
  margin-top: 20px;
  background-color: var(--color-background);
  color: var(--color-6);
}

.block-title {
  color: var(--color-2);
  font-weight: bold;
  font-size: 16.38px;
}

.navigation {
  flex: 1.5;
}

.navigation-main,
.navigation-stuff {
  color: var(--color-6);
  font-size: 14px;
  padding-top: 5px;
}

.navigation-stuff li a::before,
.navigation-main li a::before {
    content: "├─ ";
}

.navigation-stuff li:last-child a::before,
.navigation-main li:last-child a::before {
    content: "└─ ";
}

.navigation-stuff h3,
.navigation-main h3 {
  margin-bottom: 0px;
  color: var(--color-6-light);
}

.navigation-stuff li,
.navigation-main li {
  color: var(--color-6);
  font-size: 14px;
  list-style: none;
}

.nf {
  display: inline;
}

#musicToggle {
  width: 110px;
  position: fixed;
  bottom: 1%;
  left: 10%;
  z-index: 5;
}

#musicToggle span {
  cursor: pointer;
  color: var(--color-6);
  font-size: 14px;
}

.navigation-stuff a,
.navigation-main a {
  color: var(--color-6);
  font-size: 14px;
  text-decoration: none;
}

.navigation-stuff li a,
.navigation-main li a {
  transition: color, padding-left, 0.3s;
}

.navigation-stuff li a:hover,
.navigation-main li a:hover {
  color: var(--color-6-light);
  padding-left: 3px;
  font-weight: bold;
}

.main-content {
  flex: 5;
}

.main-text {
  margin-left: 10px;
  margin-right: 10px;
  font-size: 14px;
  line-height: 1.6;
}

.main-text-header {
  margin-left: 10px;
  margin-right: 10px;
  font-size: 24px;
  font-weight: bold;
  color: var(--color-1);
}

.right-part {
  flex: 2;
}

details summary {
  color: var(--color-3-light);
  margin-left: 12px;
  padding-bottom: 10px;
  cursor: pointer;
  opacity: 50%;
}
