* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

/* Background */
body {
  background: linear-gradient(135deg, #2E3192, #1BFFFF);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 20px;
  -webkit-tap-highlight-color: transparent;
}

/* Main Container */
.hero {
  width: 100%;
  max-width: 650px;
  background: rgba(255, 255, 255, 0.20);
  border-radius: 25px;
  padding: 25px;
  text-align: center;
  backdrop-filter: blur(10px);
  overflow: visible; /* ⭐ REQUIRED FOR MOBILE DROPDOWN */
}

/* Heading */
.hero h1 {
  font-size: 28px;
  margin-bottom: 10px;
}
.hero h1 span {
  color: #FF4081;
}

/* Tagline */
.tagline {
  font-size: 14px;
  margin-bottom: 20px;
  opacity: 0.9;
}

/* Text area */
textarea {
  width: 100%;
  height: 150px;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  font-size: 15px;
  border: 0;
  border-radius: 12px;
  padding: 15px;
  outline: none;
  resize: none;
  margin-bottom: 22px;
}

/* Labels */
label {
  display: block;
  text-align: left;
  margin-bottom: 6px;
  font-size: 15px;
  font-weight: 500;
}

/* Dropdown FIXED */
select {
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  border: 2px solid #fff;
  background: #ffffff !important;   /* ⭐ FIX */
  color: #000 !important;           /* ⭐ FIX */
  font-size: 15px;
  font-weight: 500;
  position: relative;
  z-index: 9999;                    /* ⭐ VERY IMPORTANT */
  outline: none;
}

/* IOS/Android dropdown touch fix */
select:focus {
  border: 2px solid #FF4081;
  background: #fff;
  color: #000;
}

/* Sliders */
input[type="range"] {
  width: 100%;
  margin-top: 10px;
}

/* Buttons layout */
.buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}

/* Buttons style */
button {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 30px;
  font-size: 16px;
  color: #fff;
  cursor: pointer;
  transition: 0.25s;
}

/* Speak */
#speakBtn {
  background: linear-gradient(45deg, #ff4b8f, #ff77a9);
}

/* Stop */
#stopBtn {
  background: linear-gradient(45deg, #ff8a00, #ffb300);
}

/* Pause */
#pauseBtn {
  background: linear-gradient(45deg, #fb8c00, #ffa726);
}

/* Resume */
#resumeBtn {
  background: linear-gradient(45deg, #66bb6a, #4caf50);
}

/* Hover */
button:hover {
  transform: scale(1.03);
}

/* Mobile responsive adjustments */
@media (max-width: 480px) {
  .hero {
    padding: 20px;
  }
  textarea {
    height: 140px;
  }
  button {
    padding: 16px;
  }
}
