* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: black;
  color: white;
  font-family: 'Courier New', monospace;
  min-height: 100vh;
  min-width: 100vw;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

#container {
  position: relative;
  top: unset;
  left: unset;
  transform: none;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  padding: 1rem;
  box-sizing: border-box;
  margin-top: 0.5vh;
}

#hangingGirl {
  max-width: 100%;
  height: auto;
  max-height: 40vh;
  margin-top: -50vh;
  animation: swing 3s ease-in-out infinite;
  transform-origin: top center; 
}

@keyframes swing {
  0%   { transform: rotate(-4deg); }
  50%  { transform: rotate(4deg); }
  100% { transform: rotate(-4deg); }
}

#text {
  margin-top: 15px;
}

#text p {
  margin: -3px 0;
  font-size: 2.5vw;
  max-font-size: 16px;
  min-font-size: 10px;
  transition: color 0.3s ease;
  cursor: pointer;
}

#text p:hover {
  color: crimson;
}

@keyframes float {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(10px);
  }
}

#stars {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

@media (max-width: 600px) {
  #container {
    max-width: 95vw;
    padding: 0.5rem;
    margin-top: 0;
  }
  #hangingGirl {
    max-height: 14vh;
    margin-top: -3vh;
  }
  #text p {
    font-size: 4vw;
    max-font-size: 12px;
    min-font-size: 8px;
  }
}
