@font-face {
  font-family: 'modenineregular';
  src: url('fonts/modenine-2opd-webfont.woff2') format('woff2'),
       url('fonts/modenine-2opd-webfont.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'modesevenregular';
  src: url('fonts/modeseven-l3n5-webfont.woff2') format('woff2'),
       url('fonts/modeseven-l3n5-webfont.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

body {
    margin: 0;
    background-color: #333
}

.jaymegg, #intro__text, #intro__text--hidden {
    text-align: center;
    color: #33ff00;
}

#intro__text {
    margin-bottom: 20px;
}

#intro__text--hidden {
    margin-top: 10px;
    margin-bottom: 10px
}

@media only screen and (max-width: 750px) {
    .jaymegg {
        display: none;
    }
    #intro__text {
        display: none;
    }
}

@media only screen and (min-width: 750px) {
    #intro__text--hidden {
        display: none;
    }
}

#container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

#terminal {
    width: 70vw;
    height: 30vh;
    box-shadow: 2px 4px 10px rgba(0, 0, 0, 0.5);
}

#terminal__body {
    background: #282828;
    font-family: "modesevenregular";
    height: 100%;
    padding-top: 2px;
    margin-top: -1px;
    position: relative; /* Ensure relative positioning for the overlay */
    overflow: hidden; /* Hide overflow to prevent scanline overflow */
    background-color: #282828; /* Update with the desired background color */
    color: #33ff00; /* Update with the desired text color */
}

#terminal__prompt {
    display: flex;
    color: #ffb000;
    display: flex;
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
}

#terminal__body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(to bottom, rgba(255, 255, 255, 0.1) 2%, transparent 10%);
    background-size: 100% 10px; /* Adjust the scanline height as needed */
    pointer-events: none; /* Allow click-through on the overlay */
    z-index: -1; /* Adjust the z-index to ensure the overlay is below the text */
    animation: scanline 20s linear infinite;
  }

#cursor {
    animation: blink .75s infinite;
    color: white;
  }
  
  @keyframes blink {
    0%, 100% {
      opacity: 0;
    }
    50% {
      opacity: 1;
    }
}

@media (max-width: 600px) {
    #terminal {
      max-height: 90%;
      width: 90%;
    }
}

/* Add flickering effect */
@keyframes flicker {
    0%, 19.999%, 22%, 62.999%, 64%, 64.999%, 70%, 100% {
      opacity: 1;
    }
    20%, 21.999%, 63%, 63.999%, 65%, 69.999% {
      opacity: 0.9;
    }
  }
  
  #terminal__body {
    animation: flicker 0.2s infinite;
  }

  /* Scrolling scanline animation */
@keyframes scanline {
    from {
      background-position: 0 0;
    }
    to {
      background-position: 0 100%;
    }
  }

  #loading-text {
    font-size: 40px;
  }