html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}
body{
    background-image: url('bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    min-height: 100vh;
    color: white;
    font-family: Arial,sans-serif;
    text-align: center;
    padding: 2em;
    margin: 0;
    overflow-x: hidden;
    backdrop-filter: brightness(0.8%);
}
h1 {
    font-family: "Jost", system-ui;
  font-weight: 700;
  font-style: normal;
    font-size: 5rem;
    margin-bottom: 1rem;
    text-shadow: 1px 1px 6px rgba(0,0,0,0.7);
}


#soundboard{
    
    
    padding: 2rem;
    border-radius: 12px;
    margin-top: 2rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 2em;
}
.muffle-btn {
  position: absolute;
  bottom: -50px;
  right: 63px;
  padding: 10px 10px;
  font-size: 13px;
  background-color: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 8px;
  color: white;
  cursor: pointer;
  transition: background-color 0.2s ease;
    width: 140px;           /* 🔒 lock width */
  text-align: center;     /* center label */
  overflow: hidden;       /* prevent overflow */
  white-space: nowrap;
}

.muffle-btn:hover {
  background-color: rgba(255, 255, 255, 0.2);
}
.sound{
    
    background-color: rgba(0,0,0,0.4);
    border-radius: 16px;
    padding: 20px;
    width: 220px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.4);
    backdrop-filter: blur(6px);
    transition: transform 0.3 ease, box shadow 0.2s ease;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s forwards;
    .sound {
  animation: fadeIn 0.8s ease both;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
}
.sound:nth-child(1){animation-delay:0.1s;}
.sound:nth-child(2){animation-delay:0.2s;}
.sound:nth-child(3){animation-delay:0.3s;}
.sound:nth-child(4){animation-delay:0.4s;}
.sound:hover{
    transform: scale(1.05);
}
.sound-icon{
    width: 64px;
    height: 64px;
    object-fit: contain;
    margin-bottom: 10px;
    filter: drop-shadow(0 0 6px #0005);
    transition: transform 0.3s;
}
.sound-icon:hover {
    transform:scale(1.1)rotate(2deg);
}
button{
    background-color:#ffffff20;
    border:none;
    color:white;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    margin-top: 10px;
    transition: background 0.3s;
}
button:hover{
    background-color: #ffffff40;
}
input[type="range"]{
    width:100%;
    margin-top: 10px;
    accent-color: #00c3ff;
    transition: background 0.3s ease, transform 0.2 ease;
}
input[type="range"]:hover{
    background: #00c3ff50;
    transform: scale(1.05);
}
@keyframes fadeInUp{
    to{
        opacity: 1;
        transform: translateY(0);}
    }
    .background {
  background-image: url('bg.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}
.tip {
  text-align: center;
  font-size: 0.9rem;
  color: #ffffff;
  opacity: 0.7;
  margin-top: -1.5rem;
}
.tea-button {
  position: fixed;
  margin-top: 1rem;
  align-items: center;
  display: inline-flex;
  padding: 1rem 1.5rem;
  font-size: 1.1rem;
  font-family: 'Noto Sans Malayalam', sans-serif;
  background-color: rgba(0, 0, 0, 0.3);
  color: white;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: background 0.2s ease;
  z-index: 999;
}
.tea-icon {
  height: 3.5rem;
  margin-right: 0.5rem;
  vertical-align: middle;
  filter: drop-shadow(0 2px 3px rgba(0,0,0,0.3));
}
@media (max-width: 768px) {
  .tea-button {
    bottom: 20px;
    right: 20px;
    padding: 0.7rem 1.2rem;
    font-size: 1rem;
  }

  .tea-icon {
    height: 1.2rem;
    margin-right: 0.4rem;
  }
}
.soundtea{
    
    background-color: rgba(0,0,0,0.4);
    border-radius: 16px;
    padding: 20px;
    width: 110px;
    height: 90px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.4);
    backdrop-filter: blur(6px);
    transition: transform 0.3 ease, box shadow 0.2s ease;
    opacity: 0;
    transform: translateY(20px);
    animation-name: fadeInUp;
    animation-duration: 0.6s;
    animation-delay: 0.5s;
    animation-fill-mode: forwards;
  }
    .soundtea.animate-delay {
  animation-name: fadeInUp;
  animation-duration: 0.6s;
  animation-delay: 0.5s;
  animation-fill-mode: forwards;
}