html {
  background: #14121d; 
  margin: 0; 
  font-family: "VT323", monospace;
  font-size: 18px;
}

body {
  margin: 0;
  width: 100%; 
  height: 100%; 
  overflow: hidden; 
  display: flex; 
  flex-direction: column;
  justify-content: center; 
  align-items: center;
}

#main {
  width: 580px;
  max-width: 100%;
  display: flex;
  flex-direction: row;
  align-items: start;
  justify-content: center;
  background: #14121d;
  color: #fdae01;
}

nav {
  padding-top: 120px;
  display: flex;
  flex-direction: column;
  font-size: 1.33rem;
   user-select: none;
   -moz-user-select: none;
   -webkit-user-drag: none;
   -webkit-user-select: none;
   -ms-user-select: none;
}
#nav a {
  margin-bottom: 8px;
}

a, a:visited, a:active, a:hover {
  color: #54d6db;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

#content {
  color: #fdae01;
  display: flex;
  width: 580px;
  max-width: 100%;
  justify-content: flex-start;
}
h1 {
  font-size: 2rem;
  margin: 0;
}
h1::after {
  content: "_"; /* Add the underscore */
  animation: blink 1s steps(2, start) infinite; /* Blinking effect */
}
.section {
  height: 128px;
  display: none;
  padding: 0 1rem;
}
.section.active {
  display: block;
}

#footer {
  text-align: center;
  text-wrap: none;
  position: absolute;
  bottom: 8px;
  color: #2e3542;
}

img {
  pointer-events: none;
   user-select: none;
   -moz-user-select: none;
   -webkit-user-drag: none;
   -webkit-user-select: none;
   -ms-user-select: none;
   width: auto;
   height: auto;
   max-width: 100%;
   max-height: 100%;
}

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

.scanlines {
  overflow: hidden;
  position: relative;
}
.scanlines:before,
.scanlines:after {
  display: block;
  pointer-events: none;
  content: "";
  position: absolute;
}
.scanlines:before {
  width: 100%;
  height: 2px;
  z-index: 2147483649;
  background: rgba(0, 0, 0, 0.3);
  opacity: 0.75;
  animation: scanline 6s linear infinite;
}
.scanlines:after {
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2147483648;
  background: linear-gradient(
      to bottom,
      transparent 50%,
      rgba(0, 0, 0, 0.3) 51%
  );
  background-size: 100% 4px;
  animation: scanlines 1s steps(60) infinite;
}

/* ANIMATE UNIQUE SCANLINE */
@keyframes scanline {
  0% {
      transform: translate3d(0, 200000%, 0);
  }
}
@keyframes scanlines {
  0% {
      background-position: 0 50%;
  }
}

@media only screen and (max-width: 768px) {
  #main {
    flex-direction: column;
    align-items: center;
  }

  nav {
    padding-top: 0;
    flex-direction: row;
    gap: 2rem;
    margin-bottom: 2rem;
  }
}