@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap');

body {
  font-family: 'Poppins', sans-serif;
  background-color: #0e0e0e;
  color: #ffffff;
  text-align: center;
  padding: 2rem;
}
/* Floating space particles */
.particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
}

.particle {
  position: absolute;
  width: 8px;
  height: 8px;
  background-color: #ffffff80;
  border-radius: 50%;
  animation: floatAround 8s infinite ease-in-out;
  opacity: 0.3;
}

/* Assign different positions, speeds, and delays */
.particle:nth-child(1) { top: 10%; left: 20%; animation-delay: 0s; }
.particle:nth-child(2) { top: 50%; left: 40%; animation-delay: 1s; }
.particle:nth-child(3) { top: 30%; left: 70%; animation-delay: 2s; }
.particle:nth-child(4) { top: 80%; left: 30%; animation-delay: 3s; }
.particle:nth-child(5) { top: 20%; left: 80%; animation-delay: 1.5s; }
.particle:nth-child(6) { top: 60%; left: 10%; animation-delay: 2.5s; }
.particle:nth-child(7) { top: 15%; left: 55%; animation-delay: 1s; }
.particle:nth-child(8) { top: 75%; left: 25%; animation-delay: 0.7s; }
.particle:nth-child(9) { top: 40%; left: 90%; animation-delay: 2.3s; }
.particle:nth-child(10){ top: 65%; left: 60%; animation-delay: 0.2s; }
.particle:nth-child(11){ top: 35%; left: 15%; animation-delay: 3.2s; }
.particle:nth-child(12){ top: 85%; left: 75%; animation-delay: 1.8s; }
.particle:nth-child(13) { top: 25%; left: 73%; animation-delay: 2.6s; }
.particle:nth-child(14) { top: 82%; left: 38%; animation-delay: 0.3s; }
.particle:nth-child(15) { top: 17%; left: 92%; animation-delay: 1.4s; }
.particle:nth-child(16) { top: 48%; left: 6%;  animation-delay: 3.3s; }
.particle:nth-child(17) { top: 27%; left: 63%; animation-delay: 0.9s; }
.particle:nth-child(18) { top: 66%; left: 44%; animation-delay: 1.7s; }


@keyframes floatAround {
  0% {
    transform: translate(0, 0) rotate(0deg) scale(1);
    opacity: 0.3;
  }
  50% {
    transform: translate(60px, -60px) rotate(180deg) scale(1.2);
    opacity: 0.6;
  }
  100% {
    transform: translate(0, 0) rotate(360deg) scale(1);
    opacity: 0.3;
  }
}



h1 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: #f5f5f5;
}

input {
  width: 60%;
  padding: 0.75rem 1rem;
  font-size: 1.1rem;
  margin: 1rem 0;
  border: none;
  border-radius: 8px;
  background-color: #1e1e1e;
  color: #fff;
  box-shadow: 0 0 8px rgba(0, 255, 255, 0.1);
  outline: none;
  transition: box-shadow 0.3s ease;
}

input:focus {
  box-shadow: 0 0 12px rgba(0, 255, 255, 0.4);
}

button {
  margin: 0.5rem;
  padding: 0.6rem 1.2rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  border-radius: 8px;
  background: linear-gradient(135deg, #2196f3, #21cbf3);
  color: white;
  transition: transform 0.2s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgba(33, 203, 243, 0.2);
}

button:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(33, 203, 243, 0.4);
}

.output {
  margin-top: 2rem;
  font-size: 1.5rem;
  word-wrap: break-word;
  color: #e0e0e0;
}

.flashlight-container {
  margin-top: 2rem;
  z-index: 10;
  position: relative;
}

#flashlightCircle {
  width: 120px;
  height: 120px;
  margin: 0 auto;
  border-radius: 50%;
  background-color: #333;
  box-shadow: 0 0 30px #000;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

#flashlightCircle.active {
  background-color: #ffe600;
  box-shadow: 0 0 40px 10px #ffeb3b;
}

/* Responsive for mobile */
@media (max-width: 768px) {
  input {
    width: 90%;
  }

  button {
    width: 80%;
    margin: 0.4rem auto;
    display: block;
  }
}
