main {
    text-align: center;
    margin: 50px auto;
    padding: 20px;
    background-color: rgb(241, 241, 241);
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.215);
    width: 80%;
    max-width: 600px;
}

/* Question Input */
.question-container {
    margin-bottom: 20px;
}

input[type="text"] {
    width: 80%;
    padding: 10px;
    border: 2px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
}

/* Magic 8 Ball */
.ball-container {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

#magic-ball {
    width: 250px;
    height: 250px;
    background: black;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease-in-out;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
}

#magic-ball:hover {
    transform: scale(1.05);
}

.response {
    width: 110px;
    height: 110px;
    background: #fff;
    color: black;
    font-weight: bold;
    font-size: 18px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Shake Animation */
.shake {
    animation: shake 0.6s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-5px); }
    40%, 80% { transform: translateX(5px); }
}

/* Button Styling */
button {
    padding: 10px 20px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 20px;
}

button:hover {
    background-color: #45a049;
}

/* Question Display */
#question-display {
    font-style: italic;
    margin-top: 15px;
    color: #555;
}
