body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 85vh;
    background-color: #f0f0f0;
    font-family: Arial, sans-serif;
    margin: 0;
    padding-top: 100px; /* Space for the fixed header */
}

header {
    width: 100%;
    background-color: #f0f0f0;
    text-align: center;
    padding: 30px 0;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1;
}

header img {
    position: absolute;
    left: 30px;
}

.container {
    text-align: center;
}

.magic8ball {
    position: relative;
    width: 200px;
    height: 200px;
    background-color: black;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    margin-bottom: 20px;
}

.ball {
    width: 100%;
    height: 100%;
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
}

.response {
    color: white;
    font-size: 20px;
    text-align: center;
    display: none;
    background-color: rgba(173, 216, 230, 0.8); /* Pale blue background */
    border-radius: 5px; /* Rounded corners */
    padding: 10px; /* Some padding for better look */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5); /* Shadow for depth */
}

input[type="text"] {
    padding: 10px;
    font-size: 16px;
    margin-bottom: 10px;
    width: 200px;
    border: 2px solid #ccc;
    border-radius: 5px;
}

button {
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
}

@keyframes shake {
    0% { transform: translate(0); }
    25% { transform: translate(-20px); }
    50% { transform: translate(20px); }
    75% { transform: translate(-20px); }
    100% { transform: translate(0); }
}

.shake {
    animation: shake .5s;
    animation-iteration-count: infinite;
}
