* { box-sizing: border-box; }
body {
  font-family: 'Inter', sans-serif;
  background-image: url('https://ecom.c2l.asia/images/background.avif');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: #ffffff;
  margin: 0;
  perspective: 100px;
}
#interactiveCanvas { position: fixed; top: 0; left: 0; }
.overlay { position: relative; z-index: 1; background-color: rgba(0, 0, 0, 0.1); height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 1rem; }
#main-container { max-width: 720px; display: flex; justify-content: center; align-items: center; flex-direction: column; gap: 1rem; }
#main-container #main-logo { background-color:#fff; width: 92px; border-radius: 50%; transition: all 0.3s ease-in-out; }
#main-container #main-logo:hover { transform: scale(1.25); }
#main-container .content { backdrop-filter: blur(22px); border:3px solid rgba(255 255 255 / 20%); border-radius: 14px; padding: 0 16px 16px 16px; }
#main-container .title { font-size: 42px; text-align: center; }
/* #main-container .title { font-size: clamp(12px, 5vw, 42px); text-align: center; } */
#main-container .subtitle { font-size: 14px; text-align: center; color: #fff; }
#main-container input[type=range] {
  position: relative;
  display: block;
  margin: 22px 0;
  appearance: none;
  width: 200px;
  height: 25px;
  background: #d3d3d3;
  opacity: 1;
  transition: opacity .2s;
  border-radius: 14px;
  padding: 15px 4px;
}
#main-container input[type=range]:hover { opacity: 1; }
#main-container input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 25px;
  height: 25px;
  background: #04AA6D;
  border-radius: 50%;
  cursor: pointer;
}
#main-container input[type=range]::-webkit-range-thumb {
  width: 25px;
  height: 25px;
  background: #04AA6D;
  cursor: pointer;
}

#main-container input[type=range]::before { position: absolute; top: 0; transform: translateY(-100%); color: aliceblue; }
#main-container #size_max::before { content: "Size";  }
#main-container #count::before { content: "Count";  }
#main-container #life::before { content: "Life";  }
#main-container #speed::before { content: "Speed";  }

/* Custom animation for elegant fade-in */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-fade-in-1 { animation: fadeIn 1.2s ease-out forwards; }
.animate-fade-in-2 { animation: fadeIn 1.2s ease-out forwards 0.4s; opacity: 0; /* Initially hidden to enable delay */ }
.animate-fade-in-3 { animation: fadeIn 1.2s ease-out forwards 0.8s; opacity: 0; /* Initially hidden to enable delay */ }

#toast.hide {
  opacity: 0;
  transform: translateX(-50%) translateY(-100px) rotateY(720deg);
}
#toast {
  transform-style: preserve-3d;
  transition: all 0.7s ease-in-out;
  opacity: 1;
  display: block;
  position: fixed;
  z-index: 1;
  width: 132px;
  text-align: center;
  top: 40%;
  left: 50%;
  background-color: #000;
  font-size: 32px;
  padding: 16px;
  transform: translateX(-50%) translateY(0) rotateY(0deg);
  border-radius: 42px;
  box-shadow: 0 0 12px 0 rgba(0, 0, 0, 0.6);
}