body {
    font-family: 'Arial', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(to right, #6a11cb, #2575fc); /* Modern gradient background */
    color: #fff;
    margin: 0;
    overflow: hidden; /* Hide potential scrollbars */
}

.container {
    background-color: rgba(0, 0, 0, 0.4); /* Slightly transparent background for content */
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    text-align: center;
    width: 90%;
    max-width: 500px;
    backdrop-filter: blur(10px); /* Frosted glass effect */
    border: 1px solid rgba(255, 255, 255, 0.2);
}

h1 {
    margin-bottom: 30px;
    font-size: 2.5em;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.eight-ball-container {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.eight-ball {
    width: 250px;
    height: 250px;
    background-color: #000;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    box-shadow: inset 0 0 50px rgba(255, 255, 255, 0.3), /* Inner glow */
                0 0 20px rgba(0, 0, 0, 0.7); /* Outer shadow */
    border: 5px solid #333;
}

.eight-ball-inner {
    width: 150px;
    height: 150px;
    background-color: #007bff; /* Blue circle */
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 10px;
    box-sizing: border-box;
    box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.5);
}

.answer-text {
    font-size: 1.4em;
    font-weight: bold;
    color: #fff;
    opacity: 0; /* Hidden by default */
    transition: opacity 1s ease-in-out;
}

.answer-text.visible {
    opacity: 1;
}

.input-section {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

input[type="text"] {
    padding: 15px;
    border-radius: 8px;
    border: none;
    font-size: 1.1em;
    background-color: rgba(255, 255, 255, 0.9);
    color: #333;
    width: calc(100% - 30px); /* Adjust for padding */
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.2);
}

input[type="text"]::placeholder {
    color: #777;
}

button {
    padding: 15px 25px;
    background-color: #28a745; /* Green button */
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1.2em;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

button:hover {
    background-color: #218838;
    transform: translateY(-2px);
}

button:active {
    transform: translateY(0);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

/* Responsive adjustments */
@media (max-width: 600px) {
    h1 {
        font-size: 2em;
    }

    .eight-ball {
        width: 200px;
        height: 200px;
    }

    .eight-ball-inner {
        width: 120px;
        height: 120px;
    }

    .answer-text {
        font-size: 1.2em;
    }

    input[type="text"], button {
        font-size: 1em;
        padding: 12px;
    }
}