* {
  margin: 0;
  padding: 0;
  font-family: 'Poppins', sans-serif;
  box-sizing: border-box;
}

body {
  background: linear-gradient(to bottom, #0f1c2e, #000000);
  color: white;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 30px 15px;
  position: relative;
  overflow: hidden;
}

#particles-js {
  position: fixed;
  width: 100%;
  height: 100%;
  z-index: 0;
}

h1 {
  margin-bottom: 25px;
  color: #00ffff;
  font-size: 28px;
  text-align: center;
  z-index: 1;
}

.input-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
  max-width: 700px;
  background: #101d2c;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 20px;
  border: 1px solid #00ffff;
  z-index: 1;
}

#youtube-url {
  flex: 1 1 100%;
  padding: 15px;
  border: none;
  background: transparent;
  color: white;
  font-size: 16px;
}

.buttons {
  display: flex;
  width: 100%;
  justify-content: flex-end;
  padding: 10px;
  gap: 10px;
  background: #0c1727;
}

.buttons button {
  background: #00bcd4;
  border: none;
  padding: 12px 20px;
  color: white;
  cursor: pointer;
  transition: 0.3s;
  border-radius: 5px;
  font-size: 14px;
}

.buttons button:hover {
  background: #00ffff;
  color: #000;
}

.result-area {
  margin-top: 20px;
  text-align: center;
  z-index: 1;
}

.result-area button {
  margin: 10px 5px;
  padding: 10px 20px;
  background: #00bcd4;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.result-area button:hover {
  background: #00ffff;
  color: #000;
}

#loading {
  display: none;
  margin-top: 20px;
}

#loading span {
  display: inline-block;
  width: 10px;
  height: 10px;
  background: #00ffff;
  margin: 0 3px;
  border-radius: 50%;
  animation: bounce 0.6s infinite alternate;
}

#loading span:nth-child(2) {
  animation-delay: 0.2s;
}

#loading span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes bounce {
  to {
    transform: translateY(-10px);
  }
}

.tutorial {
  margin-top: 40px;
  max-width: 700px;
  font-size: 15px;
  color: #ccc;
  line-height: 1.6;
  background: rgba(15, 28, 46, 0.6);
  padding: 20px;
  border-radius: 10px;
  z-index: 1;
}

.tutorial h2 {
  font-size: 20px;
  margin-bottom: 10px;
  color: #00ffff;
}

@media (min-width: 600px) {
  .input-container {
    flex-direction: row;
    align-items: center;
  }

  #youtube-url {
    flex: 1;
  }

  .buttons {
    width: auto;
    padding: 0 10px 0 0;
  }
}