@font-face {
    font-family: Consolas;
    src: url(fonts/Consolas.ttf);
  }

body{
  margin: 0;
}

#content{
  padding: 8px;
}

#textInput{
  z-index: 500;
  height: 2em;
  bottom: 0;
  position: fixed;
  margin: 1em auto;
  width: 100%;
  max-width: calc(100% - 2em); /* Ensures it remains centered */
  display: block; /* Ensures auto margins work */
  background: rgba(20, 20, 20, 0.9);
  font-family: monospace;
  font-size: 1.2em;
  border: 1px solid rgb(183, 0, 255); /* Neon green border */
}

#textInput:focus {
  background: rgba(20, 20, 20, 0.95);
  box-shadow: 0px 0px 4px rgba(183, 0, 255, 0.8); /* Glow effect */
  outline-color: rgb(183, 0, 255);
  border: 1px solid rgb(183, 0, 255); /* Neon green border */
  
}

#consoleLine24, #consoleLine26, .notice{
  font-weight: bold;
  color:#ff0000;
}
#consoleLine25, .distorted{
    animation: distort-subtle 5s infinite;
    color:#ff0000;
}

*{
    color: #dedede;
}

p{
    line-height: 1.25;
    margin: 0 5px;
    font-family: Consolas;
}


.ominous {
    animation: distort-subtle 5s infinite;
  }

@keyframes distort-subtle {
    25% {
      text-shadow: none;
    }
    26% {
      text-shadow: 2px -1px #ff0000, -2px 3px #00ffff;
    }
    27% {
      text-shadow: -2px -3px #ff0000, 2px 1px #00ffff;
    }
    28% {
      text-shadow: 2px 1px #ff0000, -4px 1px #00ffff;
    }
    29% {
      text-shadow: -4px 1px #ff0000, -2px -1px #00ffff;
    }
    30% {
      text-shadow: none;
    }
    75% {
      text-shadow: none;
    }
    76% {
      text-shadow: -4px 1px #ff0000, -2px -1px #00ffff;
    }
    77% {
      text-shadow: -2px -3px #ff0000, 2px 1px #00ffff;
    }
    78% {
      text-shadow: 2px -1px #ff0000, -2px 3px #00ffff;
    }
    79% {
      text-shadow: 2px 1px #ff0000, -4px 1px #00ffff;
    }
    80% {
      text-shadow: none;
    }
  }

  .fade {
    animation: appear 0.75s ease-out forwards;
  }

  @keyframes appear {
    0%{
      visibility: visible;
      opacity: 0%;
      transform: translateY(4em);
    }

    100%{
      opacity: 100%;
      transform: translateY(0em);
      visibility: visible;
    }
  }


  /* The Modal (background) */
/* Modal Background */
.modal {
  display: none; /* Hidden by default */
  position: fixed;
  z-index: 1000; /* Ensure it sits on top */
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6); /* Dark transparent background */
  backdrop-filter: blur(5px); /* Optional: Adds a blurred effect */
}

/* Modal Content */
.modal-content {
  background-color: #222; /* Dark theme */
  color: #fff;
  margin: 10% auto;
  padding: 0;
  border-radius: 8px;
  width: 65%;
  max-width: 1000px;
  box-shadow: 0 4px 15px rgb(94, 16, 124); /* Subtle purple glow */
  overflow: hidden; /* Ensures header/footer are fixed */
  border: 2px solid rgb(183, 0, 255);
}

/* Header */
.modal-header {
  padding: 10px 15px;
  background: rgb(94, 16, 124); /* Purple header */
  color: black;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.2em;
  font-weight: bold;
  clip-path: polygon(calc(100% + 1px) 0,calc(100% + 1px) calc(100% - 30px),calc(100% - 30px) 100%,0 100%,0 0);
}

.modal-header .close {
  font-size: 24px;
  cursor: pointer;
}

.modal-header .close:hover {
  color: red;
}

/* Body (Scrollable Content) */
.modal-body {
  padding: 10px;
  max-height: 300px; /* Limits height */
  overflow-y: auto; /* Enables scrolling */
}

/* Footer */
.modal-footer {
  padding: 10px 15px;
  background: rgb(94, 16, 124); /* Purple footer */
  color: black;
  text-align: right;
}

.modal-image{
  display: block;
  width: 80%;
  margin: 8px auto;
  object-fit: contain;
}

/* For Webkit Browsers (Chrome, Edge, Safari) */
::-webkit-scrollbar {
  width: 8px; /* Thin scrollbar */
}

::-webkit-scrollbar-track {
  background: transparent; /* No background */
}

::-webkit-scrollbar-thumb {
  background: #444; /* Dark grey thumb */
  border-radius: 4px; /* Slightly rounded */
  transition: background 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

::-webkit-scrollbar-thumb:hover {
  background: #666; /* Slightly lighter grey */
  box-shadow: 0 0 8px rgba(183, 0, 255, 0.7); /* Soft purple glow */
}

#overlay > *{
  pointer-events: none;
  height: 100vh; 
  width: 100vw; 
  position: absolute;
  z-index: 1001; 
}

#cracks{
  transform: rotate(180deg);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  mix-blend-mode: lighten;
  /* filter: invert(1); */
  opacity: 50%;
  background-image: url(../assets/scratches.jpg);
}

#crt{
  background-size: 10% 10%;
  mix-blend-mode: multiply;
  background-repeat: repeat-y;
  opacity: 35%;
  background-image: url(../assets/screen.jpg);
  background-repeat: repeat-y;
  background-position: center top;
  background-size: cover;
  animation: scroll 100s linear infinite;
}

@keyframes scroll {
  from {background-position: center calc(100% - 100vh);}
  to {background-position: center 0;}
}

ul {
  margin:8px 0;
}