/* General layout */
body {
  margin: 0;
  padding: 0;
  font-family: monospace;
  background: linear-gradient(to bottom right, #000000, #1a1a1a, #3a3a3a);
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-size: cover;
  color: #48bb78;
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: env(safe-area-inset-top);
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

/* .dots-bg { */
/*   position: fixed; */
/*   top: 0; */
/*   left: 0; */
/*   width: 100%; */
/*   height: 100%; */
/*   background-image: radial-gradient(circle, rgba(0, 255, 0, 0.15) 1px, transparent 1px); */
/*   background-size: 30px 30px; */
/*   pointer-events: none; */
/*   z-index: 0; */
/*   transition: transform 0.1s ease-out; */
/* } */

.dots-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.dot {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(72, 187, 120, 0.6); /* soft green */
  box-shadow: 0 0 6px rgba(72, 187, 120, 0.7);
  transition: transform 0.12s ease-out;
}

main {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 800px;
  padding: 20px;
  margin-top: 5rem;
}

main h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

main p {
  font-size: 1.2rem;
  color: #a3e4c1;
}

/* Toggle button */
.toggle-wrapper {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 20;
}

.toggle-ios {
  width: 36px;
  height: 20px;
  background-color: #2d3748;
  border-radius: 9999px;
  position: relative;
  cursor: pointer;
  transition: background-color 0.2s;
}

.toggle-ios.enabled {
  background-color: #48bb78;
}

.toggle-ios-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  background-color: white;
  border-radius: 9999px;
  transition: transform 0.2s;
}

.toggle-ios.enabled .toggle-ios-thumb {
  transform: translateX(16px);
}

.footer-text {
  position: fixed;
  bottom: 10px;
  left: 10px;
  font-size: 0.75rem;
  color: #48bb78;
  z-index: 999;
}

@media (max-width: 600px) {
  main h1 {
    font-size: 1.8rem;
  }

  main p {
    font-size: 1rem;
  }

  body {
    position: relative;
    overflow-x: hidden;
    overflow-y: auto;
    padding-top: env(safe-area-inset-top);
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
  }

  .toggle-wrapper {
    display: none;
  }
}
