/* Base Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.97);
  font-family: 'Roboto Mono', monospace;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

/* Fixed Logo */
.logo-wrapper {
  position: absolute;
  top: 40px;
  left: 0;
  right: 0;
  text-align: center;
  z-index: 10;
}

.logo {
  width: 140px;
  height: auto;
  image-rendering: pixelated;
}


/* Main Content Container */
.centered {
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 90%;
  width: 100%;
  padding: 20px;
  margin-top: 120px;
  text-align: left;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

/* Typewriter Text Area */
.typewriter {
  font-size: 16px;
  line-height: 1.6;
  white-space: pre-wrap;          /* Keeps line breaks, allows wrapping */
  word-break: break-word;         /* Breaks long words (like ██████) */
  overflow-y: auto;
  overflow-x: hidden;
  max-height: 60vh;
  padding-right: 5px;
  image-rendering: pixelated;
  font-variant-ligatures: none;
  font-feature-settings: "liga" 0;
  scrollbar-width: thin;
  scrollbar-color: #ffffff transparent; /* Firefox */
}

/* Chrome, Edge, Safari Scrollbar Styling */
.typewriter::-webkit-scrollbar {
  width: 6px;
}

.typewriter::-webkit-scrollbar-track {
  background: transparent;
}

.typewriter::-webkit-scrollbar-thumb {
  background-color: #ffffff;
  border: 1px solid #ffffff;
}

/* Blinking Cursor Animation */
.cursor {
  display: inline-block;
  animation: blink 0.9s step-start infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

/* Mobile Optimization */
@media screen and (max-width: 600px) {
  .logo {
    width: 100px;
  }

  .typewriter {
    font-size: 13px;
    line-height: 1.4;
  }

  .logo-wrapper {
    top: 30px;
  }

  .centered {
    margin-top: 100px;
  }
}
