h1 {
    color: #333;
    font-family:monospace;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-30px);
    }
    60% {
        transform: translateY(-15px);
    }
}

@keyframes rotateAndFadeIn {
    0% {
        opacity: 0;
        transform: rotate(360deg);
    }
    100% {
        opacity: 1;
        transform: rotate(0deg);
    }
}


#answer {
    font-size: 24px;
    text-align: center;
    font-family: monospace;
    display: none;
    opacity: 0; 
}


.fade-in {
    animation: rotateAndFadeIn 0.5s forwards;
    display: block; 
}


.magic-8-ball {
    background-color: #000000;
    border-radius: 50%;
    width: 400px;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    margin: 20px auto;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
    animation: spin 1s linear infinite, bounce 3s infinite; 
    font-family: monospace;
}

.magic-8-ball:hover {
    transform: rotate(360deg);
}


input[type="text"] {
    padding: 10px;
    font-size: 16px;
    width: 250px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: monospace;
}

button {
    padding: 10px 20px;
    font-size: 16px;
    color: white;
    background-color: #333;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
    font-family: monospace;
}

button:hover {
    background-color: #555;
}
