body {
    display: block; /* Changes from flex to block for vertical stacking */
    padding: 20px;
    background-image: url('Gemini_Generated_Image_sfxcfmsfxcfmsfxc.png'); 
    background-size: cover;     
    background-position: center;  
    background-repeat: no-repeat;
    background-attachment: fixed; 
    min-height: 100vh;
    margin: 0;
}
h1{
    color: #f2f3f4;
}
.subtitle{
    color: #f2f3f4;
}
label {
  font-size: 1rem;
  color: #f2f3f4; 
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

.central-card {
  background: #1c1c1e;
  /* ... keep your existing properties ... */
  margin: 50px auto; /* This centers the card and adds top/bottom spacing */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
}
.zodiac-link {
  position: absolute;
  top: 20px;
  right: 20px;
  color: #a1a1a6;
  font-size: 0.8rem;
  text-decoration: none;
}

.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: #1c1c1e;
  padding: 20px;
  border-radius: 25px;
  width: 100%;
  max-width: 400px;
  color: #f2f3f4;
  position: relative;
  text-align: left;
  margin-top: 0px;
}

.modal-content h3 {
  font-size: 2rem;          
  letter-spacing: 2px;     
  margin-bottom: 10px;
  margin-top: 10px;
}

.modal-content ul {
  font-size: 1.1rem;        
  letter-spacing: 0.3px; 
  line-height: 1.8;          
  list-style: none;
  padding: 0;
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  cursor: pointer;
  font-size: 1.5rem;
}

h3{
  font-size: 2.2rem;
}

.modal-content ul {
  font-size: 1.2rem;
  list-style: none;
  padding: 0;
}
.central-card {
    background: #1c1c1e;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 24px;
    padding: 50px; 
    width: 90%;          /* Uses 90% of width instead of forced 100% */
    max-width: 1000px;
    margin: 50px auto;   /* 'auto' centers the card horizontally */
    min-height: 500px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    text-align: center;
    display: flex;       /* Keep flex here to arrange items INSIDE the card */
    flex-direction: column;
    align-items: center;
}

.central-card h1 {
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 2.2rem;
}

.subtitle {
  margin-bottom: 24px;
}

.input-grid{
    border-radius: 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;                  
    width: 100%;
    margin-bottom: 20px;
}

select:hover {
  background-color: #333333; 
  color: #f2f3f4;         
  border-color: #7e6969;       
  cursor: pointer;
}

option {
  background-color: #f2f3f4; 
  color: #1c1c1e;
  max-width: 10px;          
}

@media (min-width: 768px) {
  .central-card {
    padding: auto;
  }
  .central-card h1 {
    font-size: 3.2rem;
  }
  .subtitle {
    font-size: 1rem;
    margin-bottom: 32px;
  }
  .input-grid {
    gap: 20px;
    margin-bottom: 28px;
    color: #f2f3f4;
  }
  select {
    border-radius: 10px;
    padding: 14px;
    font-size: 1rem;
    color: #1c1c1e;
  }
  .action-btn {
    padding: 16px;
    font-size: 1.1rem;
    color: #f2f3f4;
  }
}

@media (max-width: 600px) {
  .input-grid {
    grid-template-columns: 1fr;
  }
  .action-btn {
    padding: 16px;
    font-size: 1.1rem;
    color: #f2f3f4;
  }
  select {
    padding: 6px;
    font-size: 1rem;
    color: #1c1c1e;
  }
}

#resultPanel {
  width: 100%;
  margin-top: 24px;
  padding: 30px;
  background: #2c2c2e;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

#scoreDisplay {
  font-size: 3rem;
  font-weight: 800;
  color: #f2f3f4;
  margin-bottom: 8px;
  text-align: center;
 
}


#headlineDisplay {
  font-size: 1.2rem;
  font-weight: 600;
  color: #a1a1a6;
  margin-bottom: 12px;
}

#descDisplay {
  font-size: 0.95rem;
  color: #d1d1d6;
  line-height: 1.5;
}

.loader-container {
  display: none; 
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: 24px;
  gap: 12px;
  color: #f2f3f4;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(255, 255, 255, 0.1);
  border-top: 4px solid #f2f3f4; 
  border-radius: 50%;
  animation: spin 1s linear infinite;
}


@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

#shareContainer {
    display: none;
    margin-top: 30px;
    gap: 15px;
    justify-content: center;
    width: 100%;
}

.share-btn {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 12px 24px;
    margin-bottom: 10px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    backdrop-filter: blur(10px);
}

.share-btn.fb {
    background: linear-gradient(135deg, #4267B2, #2d4886);
    color:#f2f3f4;
}

.share-btn.ig {
    background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045);
    color:#f2f3f4;
}

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    filter: brightness(1.1);
}

.ad-break-container {
    display: block;
    width: 90%;             /* Use a percentage to remain responsive */
    max-width: 600px;       /* Hard cap on width */
    margin: 20px auto;      /* Center it */
    overflow: hidden;       /* This forces the container to clip content that spills out */
    border-radius: 16px;    /* Optional: rounds the edges to match your card */
}

/* This targets the specific ad container if the script allows */
#container-4a0d544eba0ff8336ca108222d8203a2 {
    max-width: 50%;
    margin: 0 auto;
}