@keyframes flicker {
  0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% {
    opacity: 1;
  }
  20%, 22%, 24%, 55% {
    opacity: 0.5;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

body, html {
  height: 100%;
  background-color: black;
  color: #00ff00;
  font-family: 'Courier New', Courier, monospace;
  user-select: none;
  margin: 0;
  text-shadow: 0 0 5px #00ff00;
}

#landing-screen {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: black;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 1000;
  transition: opacity 0.8s ease-in-out;
  flex-direction: column;
  padding: 0 10px;
  box-sizing: border-box;
}

#loading-text {
  font-size: 3em;
  color: white;
  user-select: none;
  margin-bottom: 20px;
  word-break: break-word;
}

#main-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100vh;
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  padding: 20px 15px;
  letter-spacing: 1.1px;
  line-height: 1.6;
  animation: fadeInUp 1s ease-in-out;
  box-sizing: border-box;
}

#main-content h1 {
  font-size: 2.2em;
  margin-bottom: 30px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: white;
  animation: flicker 4s infinite;
  word-break: break-word;
}

.info {
  white-space: nowrap;
  overflow: hidden;
  font-size: 1.3em;
  margin: 18px 0;
  color: #00ff00;
  animation: flicker 3s infinite;
  word-break: break-word;
}

#user-agent {
  white-space: normal;
  font-size: 1.2em;
  max-height: 300px;
  overflow-y: auto;
  margin: 18px 0;
  word-break: break-word;
  padding-right: 5px;
  box-sizing: content-box;
}

#user-agent::-webkit-scrollbar {
  width: 6px;
}

#user-agent::-webkit-scrollbar-thumb {
  background-color: #00ff00;
}

@media (max-width: 480px) {
  #loading-text {
    font-size: 2em;
  }

  #main-content {
    max-width: 100%;
    padding: 15px 10px;
    flex-direction: column;
    align-items: center;
  }

  #main-content h1 {
    font-size: 1.8em;
    word-break: break-word;
    padding: 0 10px;
  }

  .info {
    font-size: 1.2em;
    white-space: normal;
    width: 100%;
    text-align: center;
    padding: 5px 0;
    overflow-wrap: break-word;
  }

  #user-agent {
    font-size: 1em;
    max-height: 200px;
    width: 100%;
    padding: 5px 10px;
    box-sizing: border-box;
  }
}
