@keyframes pastelBackground {
    0% { background-color: #ffd1dc; }
    25% { background-color: #ffdfba; }
    50% { background-color: #fff4e6; }
    75% { background-color: #d4f4fa; }
    100% { background-color: #ffd1dc; }
}

@keyframes flash {
    from { opacity: 1; }
    to { opacity: 0.2; }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes shootingStar {
    0% {
        transform: translateX(0) translateY(0);
        opacity: 1;
    }
    100% {
        transform: translateX(100vw) translateY(-100vh);
        opacity: 0;
    }
}

html, body {
    font-family: Arial, sans-serif;
    text-align: center;
    background-color: #000;
    color: #fff;
    position: relative;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* Prevent horizontal scrolling */
}

.star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: white;
    animation: flash 1.5s infinite alternate;
}

.shooting-star {
    position: absolute;
    width: 3px;
    height: 3px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 0 10px 5px white;
    animation: shootingStar 2s infinite;
    opacity: 0;
}

.container {
    margin-top: 50px;
    padding-bottom: 50px; /* Ensure there's some space at the bottom */
}

.crystal-ball {
    margin: 20px auto;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, #5a5af2, #000);
    position: relative;
    cursor: pointer;
}

.crystal-ball-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: rgba(90, 90, 242, 0.5);
    filter: blur(15px);
    transform: translate(-50%, -50%);
}

.crystal-ball-inner {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    position: relative;
}

#answer {
    font-size: 1.5em;
    padding: 10px;
}

.instructions {
    margin: 20px;
}

.links {
    margin-top: 30px;
}

.links a {
    color: #61dafb;
    text-decoration: none;
    margin: 0 10px;
}

#question {
    width: 50%;
    padding: 10px;
    border: none;
    border-radius: 5px;
    font-size: 1em;
    animation: pastelBackground 5s infinite;
}

button {
    margin-top: 30px;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    background-color: #61dafb;
    color: #000;
    font-size: 1em;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

button:hover {
    background-color: #5a9bd4;
}

.crystal-ball.spin {
    animation: spin 2s linear;
}
