/* birthcards.css */
/* Styling for Destiny Birth Card System */

/* ------------------------------------------------------------
   PAGE WRAPPER
------------------------------------------------------------ */
.birthcard-page {
    font-family: "Segoe UI", Roboto, sans-serif;
    background: #f7f7f7;
    margin: 0;
    padding: 0;
    color: #333;
    line-height: 1.6;
}

.birthcard-page header img {
    width: 100%;
    height: auto;
    display: block;
}

/* ------------------------------------------------------------
   CONTAINER
------------------------------------------------------------ */
.birthcard-container {
    max-width: 900px;
    margin: auto;
    padding: 20px;
    background: #fff;
}

/* ------------------------------------------------------------
   HEADINGS
------------------------------------------------------------ */
.birthcard-page h2 {
    text-align: center;
    color: #8a4fa3;
    margin-top: 40px;
    margin-bottom: 30px;
    letter-spacing: 0.1em;
}

.birthcard-page #resultCard {
    color: #7a8b4a;
    margin-top: 0;
    font-size: 1.6em;
}

/* ------------------------------------------------------------
   INPUTS
------------------------------------------------------------ */
.birthcard-page .input-row {
    text-align: center;
    margin-bottom: 30px;
}

.birthcard-page .input-row select,
.birthcard-page .input-row input {
    padding: 12px 15px;
    font-size: 1.1em;
    border: 2px solid #8a4fa3;
    border-radius: 6px;
    margin: 5px;
    width: 160px;
    background: #fff;
}

.birthcard-page .input-row input[type="number"] {
    width: 120px;
}

.birthcard-page .input-row button {
    padding: 12px 20px;
    background: #8a4fa3;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 1.1em;
    cursor: pointer;
    margin-left: 10px;
    transition: background 0.3s ease;
}

.birthcard-page .input-row button:hover {
    background: #6f3c85;
}

/* ------------------------------------------------------------
   RESULT PANEL
------------------------------------------------------------ */
.birthcard-page #resultPanel {
    display: none;
    background: #fafafa;
    padding: 25px;
    border-left: 5px solid #7a8b4a;
    border-radius: 4px;
    margin-top: 30px;

    opacity: 0;
    transform: scale(0.95);
    transition: all 0.6s ease;
}

.birthcard-page #resultPanel.show {
    opacity: 1;
    transform: scale(1);
}

/* ------------------------------------------------------------
   CARD IMAGE
------------------------------------------------------------ */
.birthcard-page .card-image-wrapper {
    text-align: center;
    margin-top: 20px;
}

.birthcard-page .birthcard-image {
    width: 140px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 0 12px rgba(0,0,0,0.15);
    transition: transform 0.4s ease;
}

.birthcard-page .birthcard-image:hover {
    transform: scale(1.05);
}

/* Stack neatly on mobile */
@media (max-width: 600px) {
  .birthcard-page .input-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .birthcard-page .input-row select,
  .birthcard-page .input-row input,
  .birthcard-page .input-row button {
    width: 90%;
    max-width: 320px;
  }
}

.birthcard-message {
  background: #8a4fa3;
  color: #fff;
  padding: 10px 15px;
  border-radius: 6px;
  margin-top: 12px;
  text-align: center;
  font-size: 1em;
  opacity: 0;
  transform: translateY(-6px);
  animation: fadeIn 0.4s ease forwards;
}

/* Fade-out animation */
.birthcard-message.fade-out {
  animation: fadeOut 0.4s ease forwards;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeOut {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(-6px); }
}

.birthcard-container .section {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.birthcard-container .section p {
  margin: 0 auto 1rem;
  line-height: 1.6;
}
