/* General Styles */
body {
    font-family: "Comic Sans MS", sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #3f1e65, #AE4169, #f3c3d6, #f0ebf1);
    background-size: 400% 400%;
    animation: backgroundShift 10s infinite;
    color: #ffffff;
    text-align: center;
}

/* Glowing Heading */
.quiz-title {
    font-size: 3rem;
    color: #f3c3d6;
    text-shadow: 0 0 10px #f3c3d6, 0 0 20px #23613e, 0 0 30px #60b384;
    animation: glow 2s infinite;
    margin-bottom: 30px;
}

/* Question Container */
#question-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-top: 50px;
}

/* Question Text */
.question h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #f3c3d6;
}

/* Question Buttons */
.answer {
    padding: 15px 30px;
    margin: 10px;
    border-radius: 15px;
    background: linear-gradient(135deg, #f3c3d6, #F6BBD5);
    box-shadow: 0 0 15px #f3c3d6, 0 0 30px #f0ebf1;
    text-decoration: none;
    color: #ffffff;
    font-weight: bold;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.answer:hover {
    transform: scale(1.1);
    box-shadow: 0 0 20px #ffffff, 0 0 40px #67A87F;
}

/* Background Animation */
@keyframes backgroundShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Heading Glow Animation */
@keyframes glow {
    0% {
        text-shadow: 0 0 10px #f3c3d6, 0 0 20px #98d9c8, 0 0 30px #98d9c8;
    }
    50% {
        text-shadow: 0 0 20px #f0ebf1, 0 0 30px #3f1e65, 0 0 40px #AE4169;
    }
    100% {
        text-shadow: 0 0 10px #f3c3d6, 0 0 20px #98d9c8, 0 0 30px #98d9c8;
    }
}

/* Result Section */
#result-container {
    margin-top: 40px;
    padding: 20px;
    background: linear-gradient(135deg, #3f1e65, #AE4169);
    border-radius: 10px;
    box-shadow: 0 0 15px #5c9bed, 0 0 30px #98d9c8;
    display: none;
}

#result-text {
    font-size: 1.5rem;
    color: #ffffff;
    margin-top: 20px;
}

/* Back to Home Link */
.back-home {
    margin-top: 30px;
    display: inline-block;
    padding: 10px 20px;
    background-color: #AE4169;
    color: white;
    border-radius: 10px;
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.back-home:hover {
    background-color: #692257;
    box-shadow: 0 0 10px #F3C3D6, 0 0 20px #3f1e65;
}

/* Footer */
footer {
    margin-top: 50px;
    font-size: 1rem;
    color: #f0ebf1;
}

/* Optional: Dropdown Styling */
#zodiac-sign {
    font-family: "Comic Sans MS", sans-serif;
    font-size: 16px;
    color: #3f1e65;
    background-color: #f3c3d6;
    border: 2px solid #AE4169;
    border-radius: 10px;
    padding: 5px;
    box-shadow: 0 0 5px #AE4169;
    cursor: pointer;
}

/* Sparkle Cursor Effect */
.sparkle {
    position: absolute;
    background: rgba(255, 255, 255, 0.8); /* Soft, glowing white */
    clip-path: polygon(
        50% 0%, 61% 35%, 98% 35%, 
        68% 57%, 79% 91%, 50% 70%, 
        21% 91%, 32% 57%, 2% 35%, 
        39% 35%
    ); /* Star shape */
    pointer-events: none;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.8)); /* Glow effect */
    z-index: 9999; /* Keep it on top */
    transform: scale(0); /* Start with small scale */
    animation: sparkle-animation 1s ease-out forwards;
}

@keyframes sparkle-animation {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    50% {
        transform: scale(1.5); /* Slightly enlarge the sparkle */
        opacity: 0.7;
    }
    100% {
        transform: scale(0);
        opacity: 0;
    }
}

