/* General Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  color: white;
  background: linear-gradient(270deg, #1c1c1c, #2a2a2a, #1c1c1c);
  background-size: 600% 600%;
  animation: waterflow 20s ease infinite;
  background-attachment: fixed;
  line-height: 1.6;
}

/* Mobile fix: disable fixed background to prevent white box */
@media (max-width: 768px) {
  body {
    background-attachment: scroll;
  }
}

/* Background animation */
@keyframes waterflow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.container {
  max-width: 900px;
  margin: auto;
  padding: 2rem;
}

/* Hero Section */
.hero {
  text-align: center;
  margin: 2rem 0;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.tagline {
  font-weight: 600;
  color: #ccc;
  margin-bottom: 1rem;
}

/* TTS Tool */
.tts-tool {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.tts-tool textarea {
  width: 100%;
  max-width: 700px;
  height: 150px;
  padding: 1rem;
  font-size: 1rem;
  border-radius: 10px;
  border: none;
  margin-bottom: 1rem;
  resize: none;
  background: rgba(255,255,255,0.05);
  color: white;
}

/* Generate Button: transparent white */
.tts-tool button {
  padding: 0.5rem 1rem;
  border-radius: 12px;
  font-size: 0.85rem;
  background: rgba(255, 255, 255, 0.05); /* transparent white */
  color: white;
  font-weight: bold;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.3s ease;
}
.tts-tool button:hover,
.tts-tool button:focus {
  border: 1px solid white;
  background: rgba(255, 255, 255, 0.1); /* slightly brighter on hover */
}

/* Audio player spacing */
.tts-tool audio {
  width: 100%;
  max-width: 700px;
  margin: 1rem 0 0.5rem 0; /* moved below button */
}

/* Download link: single underline */
.tts-tool a {
  color: #0078ff;
  text-decoration: underline; /* only one underline */
  font-weight: bold;
  margin-bottom: 1rem;
}
.tts-tool a:hover {
  color: #005fcc;
}

/* Footer with only one line */
.site-footer {
  text-align: center;
  margin-top: 2rem;
  padding: 1rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.2); /* single line */
  font-size: 0.9rem;
  color: #ccc;
}

/* Sidebar */
.sidebar {
  height: 100%;
  width: 0;
  position: fixed;
  top: 0; left: 0;
  background: rgba(17, 17, 17, 0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  overflow-x: hidden;
  transition: 0.3s;
  padding-top: 60px;
  z-index: 1000;
}

.sidebar a {
  padding: 12px 25px;
  text-decoration: none;
  font-size: 18px;
  color: #ccc;
  display: block;
  transition: 0.3s;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.sidebar a:hover {
  color: white;
  background: rgba(255, 255, 255, 0.05);
}

.sidebar.open {
  width: 250px;
}

/* Hamburger */
.hamburger {
  position: fixed;
  top: 20px;
  left: 20px;
  cursor: pointer;
  z-index: 1001;
}
.hamburger span {
  display: block;
  width: 30px;
  height: 3px;
  margin: 6px;
  background: white; /* changed to full white */
  transition: 0.3s;
}
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}