/* Vibe Oracle - Celestial Style Makeover */

body {
  background-image: url("images/background.png");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  font-family: 'Cormorant Garamond', serif;
  color: #fdf5ff;
  text-align: center;
  margin: 0;
  padding: 0;
}

h1, h2, h3 {
  color: #fbeaff;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
  margin-bottom: 0.5em;
}

h1 {
  font-size: 3rem;
  animation: pulse-glow 2.5s ease-in-out infinite;
  display: inline-block;
}

@keyframes pulse-glow {
  0%, 100% {
    text-shadow: 0 0 10px #fbeaff, 0 0 20px #c254ff, 0 0 30px #a179f2;
  }
  50% {
    text-shadow: 0 0 20px #ffd6f9, 0 0 30px #c254ff, 0 0 40px #a179f2;
  }
}

.container {
  max-width: 700px;
  margin: 3rem auto;
  padding: 2rem;
  background-color: rgba(0, 0, 0, 0.6);
  border-radius: 1rem;
  box-sizing: border-box;
}

select, input[type="text"], button {
  font-family: 'Quicksand', sans-serif;
  font-size: 1.2rem;
  padding: 0.6em 1em;
  margin: 0.5em;
  border-radius: 12px;
  border: none;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

button {
  background: linear-gradient(to right, #a179f2, #c254ff);
  color: white;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

button:hover {
  transform: scale(1.05);
  box-shadow: 0 0 12px #f0b7ff;
}

#response {
  width: calc(100% - 2rem);
  max-width: 800px;
  margin: 2em auto;
  padding: 2em 2em;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 20px;
  font-size: 1.5rem;
  line-height: 1.6;
  color: #fff6fc;
  box-shadow: 0 0 40px rgba(255, 255, 255, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-sizing: border-box;
  overflow-wrap: break-word;
}

.card {
  width: 90%;
  max-width: 700px;
  min-height: 450px;
  margin: 2em auto;
  position: relative;
  border-radius: 24px;
  background: linear-gradient(135deg, #4e3273, #36204b);
  padding: 2em;
  font-size: 1.2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-style: italic;
  letter-spacing: 0.5px;
  border: 1px solid #ddb8ff;
  box-shadow: 0 0 40px rgba(255, 255, 255, 0.3);
  overflow: hidden;
  box-sizing: border-box;
}

.card-art {
  max-width: 220px;
  height: auto;
  margin-bottom: 1.2rem;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.card-content {
  font-size: 1.2rem;
  font-family: 'Cormorant Garamond', serif;
  color: #fff6fc;
  text-align: center;
  padding: 0 1rem;
  line-height: 1.6;
  width: 100%;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.premium {
  font-size: 1rem;
  padding: 0.5em 1em;
  margin-top: 1em;
  background: linear-gradient(to right, #ffd6f9, #e0b3ff);
  color: #240029;
  border-radius: 20px;
  display: inline-block;
  box-shadow: 0 0 15px #ffc8f9;
  animation: glowBadge 2s ease-in-out infinite;
}

@keyframes glowBadge {
  0%, 100% {
    box-shadow: 0 0 8px #ffc8f9, 0 0 16px #ffa9f2;
  }
  50% {
    box-shadow: 0 0 12px #fff, 0 0 24px #ff85f2;
  }
}

.bonus-card {
  margin-top: 2em;
  background: linear-gradient(145deg, #3e2b5f, #29173e);
  border: 2px solid #ffd6f9;
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.4);
  animation: shimmer 3s infinite alternate;
}

@keyframes shimmer {
  from {
    transform: scale(1);
    opacity: 0.95;
  }
  to {
    transform: scale(1.03);
    opacity: 1;
  }
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 5, 20, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal.hidden {
  display: none;
}

.modal-content {
  background: #2e1a49;
  border: 2px solid #f9c7ff;
  padding: 2.5em;
  border-radius: 20px;
  color: #fff6fc;
  text-align: center;
  box-shadow: 0 0 40px rgba(255, 255, 255, 0.2);
  max-width: 90%;
  width: 380px;
  font-family: 'Cormorant Garamond', serif;
}

.modal-content h2 {
  font-size: 1.8rem;
  color: #ffd6ff;
  margin-bottom: 1em;
}

.modal-content p {
  font-size: 1.1rem;
  line-height: 1.5;
  color: #fce7ff;
  margin-bottom: 1em;
}

.modal-content .support-button {
  background: linear-gradient(to right, #ff70a6, #ffb6c1);
  padding: 0.8em 1.6em;
  color: #fff;
  font-weight: bold;
  font-size: 1rem;
  text-decoration: none;
  border-radius: 12px;
  display: inline-block;
  box-shadow: 0 0 12px rgba(255, 182, 193, 0.5);
  transition: transform 0.2s ease;
}

.modal-content .support-button:hover {
  transform: scale(1.05);
  background: linear-gradient(to right, #ff96c5, #ffaedb);
}

.modal-content button {
  background: transparent;
  border: 1px solid #f0b7ff;
  padding: 0.6em 1.2em;
  color: #fceeff;
  border-radius: 10px;
  font-size: 1rem;
  margin-top: 1em;
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
}

.modal-content button:hover {
  background: #fceaff;
  color: #2e1a49;
}

.modal-fine-print {
  font-size: 0.99rem;
  color: #aaa;
  margin-top: 1em;
}

.support-button {
  font-size: 1.3rem;
  margin-top: 3em;
  color: #ffd6f9;
  text-decoration: none;
  display: inline-block;
  transition: color 0.3s;
}

.support-button:hover {
  color: #ffe5fc;
}

.hidden {
  display: none;
}

footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1em;
  margin-top: 3em;
  padding-bottom: 2em;
}

footer a {
  text-decoration: none;
  font-size: 1rem;
  color: #ffd6f9;
  border: 1px solid transparent;
  padding: 0.6em 1.2em;
  border-radius: 12px;
  transition: all 0.3s ease;
}

footer a:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #ffd6f9;
  color: #ffe5fc;
}

@media (min-width: 600px) {
  footer {
    flex-direction: row;
  }
}

@media (max-width: 600px) {
  #response, .card {
    width: 90% !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box;
    padding: 1.5rem 1rem;
  }

  .card-content {
    padding: 0 0.5rem;
    width: 100%;
    max-width: 100%;
    text-align: center;
  }

  #response {
    padding: 1.5rem 1rem;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    max-width: 90vw;
    box-sizing: border-box;
  }

  .container {
    padding: 1.5rem 1rem;
  }
}