* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  font-family: 'Poppins', sans-serif;
  overflow: hidden;
}

#bg-video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

#overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  color: white;
  font-size: 1.5vw;
  cursor: pointer;
  transition: opacity 1s ease;
}

#enter-text {
  padding: 10px;
  background-color: rgba(255, 255, 255, 0.1);
  border: 2px solid white;
  border-radius: 10px;
  animation: pulse 2s infinite;
  font-size: 1vw;
}

.content {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
  color: white;
}

.profile-box {
  border: 2px solid white;
  background-color: rgba(28, 28, 28, 0.6);
  padding: 10px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: myAnim 2s ease-out forwards;
  transform: translateY(20px);
  opacity: 1;
  max-width: 60vw;
  font-size: 1.2vw;
}

@keyframes myAnim {
  0% {
    transform: scale(0);
  }
  100% {
    transform: scale(1);
  }
}

#profile-pic {
  border-radius: 50%;
  border: 2px solid white;
  width: 10vw;
  height: 10vw;
  margin-bottom: 5px;
  transition: transform 0.5s ease;
}

#username {
  font-size: 2vw;
  background: linear-gradient(45deg, red, green, blue, pink);
  background-size: 400%;
  -webkit-background-clip: text;
  color: transparent;
  animation: rainbow 3s linear infinite;
}

@keyframes rainbow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.link {
  text-decoration: none;
  color: white;
  font-size: 1vw;
  padding: 5px 10px;
  border: 2px solid white;
  border-radius: 5px;
  transition: background-color 0.3s, border-color 0.3s, transform 0.3s;
  margin-bottom: 10px;
}

.link:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: scale(1.05);
}

#volume-control {
  margin-top: 10px;
  width: 20vw;
  -webkit-appearance: none;
  background: gray;
  height: 10px;
  outline: none;
}

#volume-control::-webkit-slider-thumb,
#volume-control::-moz-range-thumb {
  width: 10px;
  height: 10px;
  background: white;
  cursor: pointer;
  border-radius: 50%;
}

.volume-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.volume-label {
  color: white;
  margin-top: 5px;
  font-size: 1vw;
}

@media (max-width: 768px) {
  #overlay {
    font-size: 3vw;
  }

  #enter-text {
    font-size: 2.5vw;
  }

  .profile-box {
    font-size: 2.5vw;
  }

  #profile-pic {
    width: 20vw;
    height: 20vw;
  }

  #username {
    font-size: 4vw;
  }

  .link {
    font-size: 2vw;
  }

  #volume-control {
    width: 30vw;
  }
}
