/* Custom styles */
/* Tailwind CSS will be loaded via CDN */

:root {
  --color-zodilat-purple: #1a0b2e;
  --color-zodilat-button: #0A004F;
}

/* Fix for menu text color */
.text-zodilat-button {
  color: #0A004F !important;
}

.bg-zodilat-button {
  background-color: #0A004F !important;
}

@import url('https://fonts.googleapis.com/css2?family=Josefin+Sans:wght@300;400;700&family=Fraunces:opsz,wght@9..144,300&display=swap');

html, body {
    overflow-x: hidden;
    position: relative;
    width: 100%;
}

body {
    font-family: 'Josefin Sans', sans-serif;
    background: linear-gradient(360deg, #FFFFFF 0%, #8E80AB 0%, #2C1263 52.63157894736842%, #0C0C0C 100%);
    position: relative;
    z-index: 1;
}

input[type="time"], input[type="date"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    min-height: 48px;
}

/* Background wrapper */
.background-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
    width: 100%;
    max-width: 100vw;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* Typography */
.main-heading {
    font-family: 'Fraunces', serif;
    font-weight: 300;
    font-size: clamp(32px, 8vw, 120px);
    line-height: 1.1;
    color: white;
}

.body-text {
    font-size: clamp(20px, 1.5vw + 1rem, 28px);
    color: white;
}

.section-heading {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 300;
    font-size: clamp(24px, 1.5vw + 1rem, 36px);
    color: white;
}

/* Form styles */
.form-label {
    font-size: 16px;
}

.form-input {
    font-size: 16px;
    background-color: white;
    max-height: 46px;
    height: 46px;
    border-radius: 10px;
    width: 100%;
    padding: 0 16px;
    border: none;
    color: rgb(8, 4, 93);
}

.form-input:focus {
    outline: none;
    ring: 2px;
    ring-color: #FCD34D;
}

/* Places Autocomplete styles */
.places-wrapper {
    position: relative;
    width: 100%;
}

.places-dropdown {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background-color: white;
    border: 1px solid rgb(229 231 235);
    border-radius: 10px;
    margin-top: 4px;
    max-height: min(200px, 60vh);
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
}

.places-dropdown.hidden {
    display: none;
}

.place-item {
    padding: 12px 16px;
    color: rgb(8, 4, 93);
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.place-item:hover {
    background-color: rgb(243 244 246);
}

.place-item .main-text {
    color: rgb(8, 4, 93);
    display: block;
    font-size: 14px;
}

.place-item .secondary-text {
    color: rgb(107 114 128);
    font-size: 12px;
    display: block;
    margin-top: 2px;
}

/* Header and Footer text */
.header-text, .footer-text {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 300;
}

/* Footer text scaling */
footer p, 
footer li,
footer h3 {
    font-size: clamp(14px, 1vw + 0.5rem, 16px);
}

/* Background elements */
.celestial-bg {
    position: absolute;
    top: 240px;
    right: 48px;
    max-width: min(730px, 90vw);
    max-height: min(730px, 90vh);
    width: 100%;
    height: 100%;
    background-image: url('/images/celestial-bg.png');
    background-repeat: no-repeat;
    background-position: top right;
    background-size: contain;
    opacity: 0.5;
    transform-origin: center center;
    z-index: -1;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    will-change: transform;
}

/* Sign-specific backgrounds */

.horoscope-aries .celestial-bg {
    background-image: url('/images/signs/bg/aries.png');
}

.horoscope-taurus .celestial-bg {
    background-image: url('/images/signs/bg/taurus.png');
}

.horoscope-gemini .celestial-bg {
    background-image: url('/images/signs/bg/gemini.png');
}

.horoscope-cancer .celestial-bg {
    background-image: url('/images/signs/bg/cancer.png');
}

.horoscope-leo .celestial-bg {
    background-image: url('/images/signs/bg/leo.png');
}

.horoscope-virgo .celestial-bg {
    background-image: url('/images/signs/bg/virgo.png');
}

.horoscope-libra .celestial-bg {
    background-image: url('/images/signs/bg/libra.png');
}

.horoscope-scorpio .celestial-bg {
    background-image: url('/images/signs/bg/scorpio.png');
}

.horoscope-sagittarius .celestial-bg {
    background-image: url('/images/signs/bg/sagittarius.png');
}

.horoscope-capricorn .celestial-bg {
    background-image: url('/images/signs/bg/capricorn.png');
}

.horoscope-aquarius .celestial-bg {
    background-image: url('/images/signs/bg/aquarius.png');
}

.horoscope-pisces .celestial-bg {
    background-image: url('/images/signs/bg/pisces.png');
}
 

.small-cloud {
    position: fixed;
    top: 400px;
    right: 0;
    width: 40%;
    max-width: 600px;
    height: 300px;
    background-image: url('/images/small-cloud.webp');
    background-repeat: no-repeat;
    background-size: contain;
    background-position: right center;
    opacity: 0.6;
    z-index: -2;
    pointer-events: none;
    transform: translateX(0);
    transition: transform 0.3s ease-out;
}

.huge-cloud {
    position: fixed;
    bottom: -50%;
    right: -10%;
    width: 50%;
    height: 600px;
    background-image: url('/images/huge-cloud.png');
    background-repeat: no-repeat;
    background-size: contain;
    background-position: right center;
    opacity: 0.4;
    transition: transform 0.1s ease-out;
}

@media (max-width: 1024px) {
    .celestial-bg {
        top: 200px;
        right: 24px;
        max-width: min(500px, 90%);
    }
    .small-cloud {
        width: 50%;
        max-width: 500px;
    }
    .huge-cloud {
        width: 65%;
        height: 500px;
    }
}

@media (max-width: 768px) {
    .celestial-bg {
        top: 180px;
        right: 0;
        max-width: 90%;
        background-position: center right;
        transform-origin: 75% center;
    }
    .small-cloud {
        width: 60%;
        max-width: 300px;
        height: 200px;
        right: -10%;
    }
    .huge-cloud {
        width: 80%;
        height: 300px;
        right: -20%;
    }
    .places-dropdown {
        max-height: 40vh;
    }
    
    .place-item {
        padding: 10px 12px;
    }
    
    .place-item .main-text {
        font-size: 16px;
    }
    
    .place-item .secondary-text {
        font-size: 14px;
    }
}

/* Custom background with stars effect */
.bg-stars {
    background-image: 
        radial-gradient(circle at center, rgba(255,255,255,0.1) 0%, transparent 1px),
        radial-gradient(circle at 20% 80%, rgba(255,255,255,0.1) 0%, transparent 1px);
    background-size: 50px 50px, 30px 30px;
    background-position: 0 0, 15px 15px;
} 

/* Summary section */
.summary-section {
    width: 100%;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
    height: auto !important; 
    overflow: visible !important; 
}

.summary-section h1 {
    color: #FCD34D;
    font-family: 'Fraunces', serif;
    font-size: 32px;
    font-weight: 300;
    line-height: 1.3;
    text-align: center;
    margin: 0 0 20px 0;
}

.summary-section h2 {
    color: #FCD34D;
    font-family: 'Josefin Sans', sans-serif;
    font-size: 28px;
    font-weight: 400;
    line-height: 1.3;
    text-align: center;
    margin: 20px 0 15px 0;
}

.summary-section p {
    color: #FFFFFF;
    font-family: 'Josefin Sans', sans-serif;
    font-size: 18px;
    line-height: 1.8;
    margin: 0 0 20px 0;
    text-align: left;
}

.summary-section table,
.summary-section img {
    max-width: 100%;
    height: auto;
}

.summary-section .table-container {
    display: flex;
    justify-content: center; 
    align-items: center; 
    width: 100%;
    margin-top: 0;
    min-height: auto;
    box-sizing: border-box;
}

.summary-section table {
    width: 80%;
    max-width: 800px;
    border-collapse: collapse;
    font-size: 16px;
    margin: 20px auto;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #ddd; 
}

.summary-section th,
.summary-section td {
    padding: 8px;
    text-align: center;
    border: 1px solid #ddd; 
    color: white; 
    font-size: 10px;
    font-family: 'Josefin Sans', sans-serif;
}

.summary-section th {
    background-color: #1C3D7A;
}

.summary-section td {
    background-color: #4a90e2; 
}

.summary-section tr:nth-child(even) td {
    background-color: #357ABD; 
}

.summary-section img {
    width: 20px;
    height: 20px;
}

/* Additional synastry summary styles */
.summary-section h3 {
    color: #FCD34D;
    font-family: 'Josefin Sans', sans-serif;
    font-size: 24px;
    font-weight: 400;
    line-height: 1.3;
    margin: 15px 0 10px 0;
}

.summary-section ul,
.summary-section ol {
    color: #FFFFFF;
    font-family: 'Josefin Sans', sans-serif;
    font-size: 18px;
    line-height: 1.8;
    margin: 0 0 20px 20px;
}

.summary-section li {
    margin-bottom: 10px;
}

.summary-section strong {
    color: #FCD34D;
    font-weight: 600;
}

.summary-section em {
    font-style: italic;
    color: rgba(255, 255, 255, 0.95);
}

/* Form container */
.form-container {
    position: relative;
    min-height: 400px; /* Minimum height to prevent layout shifts during loading */
}

#chart-form {
    position: relative;
    z-index: 1;
}

/* Loading state */
#star-and-text {
    min-height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 2;
}

#star-and-text.pointer-events-none {
    z-index: 0;
}

#star-and-text img {
    width: 64px;
    height: 64px;
    margin-bottom: 1rem;
}

#star-and-text p {
    font-size: 1.125rem;
    color: #E5E7EB;
}

/* Summary section */
#summary {
    margin-top: 2rem; /* Reduced margin after form is removed */
} 