/* --- Page Styling --- */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    text-align: center;
    min-height: 100vh;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1f2833, #0a0e13); /* Dark, stylish background */
    color: white;
}
h1 {
    font-size: 1.8em;
    color: #66fcf1; /* Light cyan color for a tech/magic feel */
    margin-bottom: 40px;
}

/* --- 8-Ball Component Styling --- */
#ball-container {
    position: relative;
    width: 300px;
    height: 300px;
    cursor: pointer; /* Change mouse pointer to indicate clickability */
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.8);
    border-radius: 50%; /* Make it a perfect circle */
}
#ball {
    width: 100%;
    height: 100%;
    background: #111; /* Almost black for the ball body */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: transform 0.1s ease; /* For a slight shake effect on click */
}
/* Slight hover effect to enhance clickability */
#ball:hover {
    transform: scale(1.02);
}

/* --- Inner Response Window (NOW A CIRCLE) --- */
#window-container {
    width: 150px;
    height: 150px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    /* CHANGED: Removed clip-path and set border-radius to 50% for a circle */
    border-radius: 50%; 
    background-color: #0077b6; /* Deep blue for the background */
    display: flex;
    align-items: center;
    justify-content: center;
}

#response {
    /* CHANGED: Adjusted dimensions and font for better fit */
    position: relative; /* Changed from absolute to relative to stay within flex container */
    color: #e0f7fa; 
    font-size: 13px; /* Slightly reduced font size */
    font-weight: bold;
    text-transform: uppercase;
    text-align: center;
    line-height: 1.4;
    padding: 15px;
    width: 80%; /* Increased width for text wrapping */
}
