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

body {
  height: 100vh;
  background: #0f2027; 
  background: linear-gradient(to right, #2c5364, #203a43, #0f2027);
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  position: relative;
}

.stars {
  position: absolute;
  width: 100%;
  height: 100%;
  background: url('https://i.imgur.com/M9aRbDX.png') repeat;
  animation: starScroll 60s linear infinite;
  z-index: 0;
}

@keyframes starScroll {
  from { background-position: 0 0; }
  to { background-position: -10000px 5000px; }
}

.glass-container {
  position: relative;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  backdrop-filter: blur(20px);
  padding: 40px;
  width: 90%;
  max-width: 600px;
  text-align: center;
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.1);
  z-index: 1;
  animation: floatIn 1.5s ease;
}

@keyframes floatIn {
  from {
    opacity: 0;
    transform: translateY(-30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

h1 {
  font-size: 32px;
  color: #ffffff;
  margin-bottom: 25px;
  text-shadow: 0 0 5px #6fffe9, 0 0 15px #6fffe9;
}

.quote-box {
  color: #f1f1f1;
  background-color: rgba(255, 255, 255, 0.05);
  padding: 20px;
  border-radius: 15px;
  font-size: 18px;
  min-height: 80px;
  margin-bottom: 25px;
  border-left: 3px solid #6fffe9;
  overflow: hidden;
  white-space: nowrap;
  animation: typing 3.5s steps(40, end) forwards, fadeIn 2s ease;
}

@keyframes typing {
  from { width: 0; }
  to { width: 100%; }
}

@keyframes fadeIn {
  0% { opacity: 0 }
  100% { opacity: 1 }
}

#generate-quote {
  background: transparent;
  color: #6fffe9;
  border: 2px solid #6fffe9;
  padding: 12px 30px;
  font-size: 16px;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
}

#generate-quote:hover {
  background-color: #6fffe9;
  color: #111;
  box-shadow: 0 0 20px #6fffe9, 0 0 30px #6fffe9 inset;
  transform: scale(1.05);
}

@media (max-width: 460px) {
  .glass-container {
    padding: 25px 15px;
  }

  h1 {
    font-size: 7vw;
    margin-bottom: 20px;
  }

  .quote-box {
    font-size: 0.95rem;
    min-height: 60px;
    padding: 15px;
    margin-bottom: 20px;
    border-left: 3px solid #6fffe9;
    white-space: normal; 
  }

  #generate-quote {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
}
