html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  color: white;
  overflow-y: auto;
  overflow-x: hidden;
  background: black;
  font-family: 'Segoe UI', sans-serif;
}

#starfield {
  z-index: 4;
  width: 100%;
  height: 100%;
  display: block;
  position: fixed;
  pointer-events: none;
  transition: opacity 2s ease;
}

.content {
  top: 50%;
  left: 50%;
  z-index: 5;
  text-align: center;
  position: absolute;
  transform: translate(-50%, -50%) scale(1);
  transition: transform 1.2s ease, opacity 1s ease;
}

.content.zoom-out {
  opacity: 0;
  transform: translate(-50%, -50%) scale(3);
}

.btn-outline-light {
  margin-top: 20px;
  font-weight: bold;
  border: 2px solid white;
}

.navbar {
  z-index: 6;
  border: none;
  position: relative;
  background-color: transparent !important;
}

.btn:active {
  transform: scale(0.95, 0.95);
}

#agents {
  z-index: 4;
  opacity: 0;
  position: relative;
  transition: all 2s ease;
  transform: translateY(40px);
}

#agents.show {
  opacity: 1;
  transform: translateY(0);
}

.agent-box {
  height: 100%;
  padding: 20px;
  border-radius: 12px;
  background-color: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

#space-gradient {
  top: 0;
  left: 0;
  z-index: 5;
  width: 100%;
  height: 100%;
  opacity: 0.2;
  position: fixed;
  pointer-events: none;
  animation: fadeInOut 2s ease-in-out infinite alternate;
  background: radial-gradient(ellipse at bottom right, #22254c, #000000 70%);
}

@keyframes fadeInOut {
  0% {
    opacity: 0.2;
  }
  100% {
    opacity: 0.7;
  }
}

@media (max-height: 500px) {
  .content {
    top: auto;
    left: auto;
    max-width: 90%;
    padding: 0 15px;
    transform: none;
    position: relative;
    text-align: center;
    margin: 80px auto 0;
    margin-bottom: 25px;
  }

  .content.zoom-out {
    opacity: 0;
    transform: scale(1.2);
  }
}

::selection {
  color: white;
  background: rgb(62, 64, 149);
}

::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-thumb {
  border-radius: 10px;
  background-color: rgb(57, 65, 136, 0.5);
}

::-webkit-scrollbar-thumb:hover {
  background-color: rgb(57, 65, 136, 0.7);
}