@import 'https://fonts.googleapis.com/css?family=Inconsolata';

html {
  min-height: 100%;
}

body {
  display: flex; /* Enable Flexbox layout */
  justify-content: space-between; /* Space out the terminal and image */
  align-items: center; /* Vertically center items */
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background-color: #000000;
  background-image: radial-gradient(#11581E, #041607), url("media/giphy.gif");
  background-repeat: no-repeat;
  background-size: cover;
  font-family: "Inconsolata", Helvetica, sans-serif;
  font-size: 1.5rem;
  color: rgba(128, 255, 128, 0.8);
  text-shadow: 0 0 1ex #33ff33, 0 0 2px rgba(255, 255, 255, 0.8);
}

.terminal {
  flex: 1; /* Allow the terminal to take up remaining space */
  max-width: 50%; /* Prevent it from getting too wide */
  padding: 4rem;
  text-transform: uppercase;
  z-index: 2; /* Ensure it appears above noise/overlay */
}

.image-container {
  display: flex; /* Center content inside this container */
  flex-direction: column; /* Stack the image and button vertically */
  align-items: center; /* Horizontally center */
  justify-content: center; /* Vertically center */
  flex: 0 0 auto; /* Prevent resizing */
  margin-left: 2rem; /* Add spacing between the terminal and image */
  z-index: 2; /* Ensure it appears above noise/overlay */
}

.image-container img {
  max-width: 1000px; /* Adjust image size */
  height: auto; /* Keep aspect ratio */
  border-radius: 8px; /* Optional for rounded corners */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5); /* Optional shadow effect */
}

.button-container {
  margin-top: 20px; /* Space between the image and button */
}

.button-container a img {
  border-radius: 4px; /* Optional for button styling */
}

.noise {
  pointer-events: none;
  position: absolute;
  width: 100%;
  height: 100%;
  background-image: url("media/giphy.gif");
  background-repeat: no-repeat;
  background-size: cover;
  z-index: -1;
  opacity: 0.02;
}

.overlay {
  pointer-events: none;
  position: absolute;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(180deg, rgba(0, 0, 0, 0) 0, rgba(0, 0, 0, 0.3) 50%, rgba(0, 0, 0, 0) 100%);
  background-size: auto 4px;
  z-index: 1;
}

.overlay::before {
  content: "";
  pointer-events: none;
  position: absolute;
  display: block;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(0deg, transparent 0%, rgba(32, 128, 32, 0.2) 2%, rgba(32, 128, 32, 0.8) 3%, rgba(32, 128, 32, 0.2) 3%, transparent 100%);
  background-repeat: no-repeat;
  -webkit-animation: scan 7.5s linear 0s infinite;
          animation: scan 7.5s linear 0s infinite;
}

@-webkit-keyframes scan {
  0% {
    background-position: 0 -100vh;
  }
  35%, 100% {
    background-position: 0 100vh;
  }
}

@keyframes scan {
  0% {
    background-position: 0 -100vh;
  }
  35%, 100% {
    background-position: 0 100vh;
  }
}

.output {
  color: rgba(128, 255, 128, 0.8);
  text-shadow: 0 0 1px rgba(51, 255, 51, 0.4), 0 0 2px rgba(255, 255, 255, 0.8);
}

.output::before {
  content: "> ";
}

a {
  color: #fff;
  text-decoration: none;
}

a::before {
  content: "[";
}

a::after {
  content: "]";
}

.errorcode {
  color: white;
}
