body {
    font-family: Arial, sans-serif;
    text-align: center;
    background-color: #f0f0f0;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 400px;
    margin: 0 auto;
    padding: 20px;
}

.magic-8-ball {
    background-color: #333;
    color: #fff;
    border-radius: 50%;
    width: 200px;
    height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    transition: transform 0.3s ease;
}

/* Shake animation */
@keyframes shake {
    0%, 100% { transform: rotate(0deg); }
    20%, 60% { transform: rotate(-10deg); }
    40%, 80% { transform: rotate(10deg); }
}

.magic-8-ball.shaking {
    animation: shake 1s ease-in-out;
}

.message {
    font-size: 18px;
}

button {
    background-color: #1e90ff;
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 10px 20px;
    cursor: pointer;
    margin-top: 10px;
    user-select: none;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

button:hover,
button:focus {
    background-color: #187bcd;
    outline: none;
    box-shadow: 0 0 8px rgba(30, 144, 255, 0.7);
}

/* Responsive Styles */
@media (max-width: 992px) {
    .magic-8-ball {
        width: 150px;
        height: 150px;
    }

    .message {
        font-size: 16px;
    }

    button {
        padding: 8px 16px;
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    .magic-8-ball {
        width: 150px;
        height: 150px;
    }

    .message {
        font-size: 16px;
    }

    button {
        padding: 8px 16px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .magic-8-ball {
        width: 150px;
        height: 150px;
    }

    .message {
        font-size: 16px;
    }

    button {
        padding: 8px 16px;
        font-size: 14px;
    }
}
