body {
    background: linear-gradient(135deg, #3A86FF, #00A86B);
    color: #ffffff;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    text-align: center;
    padding: 20px;
}

.logo {
    width: 150px;
    height: auto;
    margin-bottom: 10px;
    transition: transform 0.3s ease;
    animation: wiggle 2s infinite ease-in-out;
    animation-delay: 1s;
}

h1 {
    color: #ffffff;
    font-size: 2.5em;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.6);
}

input, select {
    padding: 12px;
    width: 80%;
    max-width: 400px;
    margin: 10px;
    border: 1px solid #00ffcc;
    border-radius: 5px;
    background-color: #001f3f;
    color: white;
    font-size: 1em;
}

button {
    background-color: #00A86B;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #007A5E;
}

#output {
    margin-top: 20px;
    font-size: 1.2em;
}

audio {
    margin-top: 10px;
}

.download-button {
    margin-left: 15px;
    background-color: #ffcc00;
    color: #000;
    padding: 8px 16px;
    font-weight: bold;
}

.download-button:hover {
    background-color: #e6b800;

}
@media (max-width: 600px) {
  input, select, button {
    width: 90%;
    font-size: 0.9em;
  }

  #speechBubble {
    font-size: 0.9rem;
    max-width: 90vw;
  }

  #mascot {
    height: 80px;
  }
}


/* Fun fade-in animation for witty response */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

#output p {
    animation: fadeIn 0.5s ease-in-out;
    color: #fff;
    font-style: italic;
    margin-bottom: 10px;
}

/* Button bounce on hover */
button:hover, .download-button:hover {
    transform: scale(1.05);
    transition: transform 0.2s ease;
}

/* Witty logo wiggle animation */
@keyframes wiggle {
    0% { transform: rotate(0deg); }
    25% { transform: rotate(3deg); }
    50% { transform: rotate(-3deg); }
    75% { transform: rotate(2deg); }
    100% { transform: rotate(0deg); }
}

/* === Mascot Styling === */
#mascotContainer {
  position: fixed;
  bottom: 0;
  left: 20px;
  display: flex;
  align-items: flex-end;
  z-index: 1000;
  animation: popUp 1s ease forwards;
}

#mascot {
  height: 120px;
  margin-right: 10px;
  animation: bounceIn 1s ease, float 3s ease-in-out infinite, glow 2.5s ease-in-out infinite, blink 6s infinite alternate;
  transition: filter 0.3s ease;
}

/* Floating Animation */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* Glow Animation */
@keyframes glow {
  0% {
    filter: drop-shadow(0 0 5px #00f0ff);
  }
  50% {
    filter: drop-shadow(0 0 20px #00f0ff);
  }
  100% {
    filter: drop-shadow(0 0 5px #00f0ff);
  }
}

/* Blink Animation */
@keyframes blink {
  0%, 100% { opacity: 1; }
  49% { opacity: 1; }
  50% { opacity: 0.4; }
  51% { opacity: 1; }
}

#speechBubble {
  background: #fff;
  color: #000;
  padding: 10px 15px;
  border-radius: 20px;
  max-width: 300px;
  font-size: 1rem;
  position: relative;
  font-family: 'Comic Sans MS', cursive;
  box-shadow: 0 0 10px #00000055;
  animation: fadeIn 1s ease;
}

#speechBubble::after {
  content: '';
  position: absolute;
  bottom: 10px;
  left: -15px;
  width: 0;
  height: 0;
  border: 10px solid transparent;
  border-right-color: white;
}

@keyframes popUp {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes bounceIn {
  0% { transform: scale(0.5); opacity: 0; }
  70% { transform: scale(1.1); opacity: 1; }
  100% { transform: scale(1); }
}
/* === NEW: Consistent Textarea Styling === */
textarea {
    padding: 12px;
    width: 80%;
    max-width: 400px;
    margin: 10px;
    border: 1px solid #00ffcc;
    border-radius: 5px;
    background-color: #001f3f;
    color: white;
    font-size: 1em;
}

/* === NEW: Center the form container === */
.container {
    max-width: 600px;
    margin: auto;
    padding-top: 40px;
}

/* === NEW: Output Text Styling === */
#remixText {
    margin-top: 20px;
    font-size: 1.2em;
    color: #ffffff;
    animation: fadeIn 0.5s ease-in-out;
}

