body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #1a1a2e;
    color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow: hidden;
}

.container {
    text-align: center;
    max-width: 600px;
    width: 90%;
}

h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: #a2a2d0;
}

.ball-container {
    position: relative;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 40px;
}

.ball {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle at 100px 100px, #333, #000);
    border-radius: 50%;
    position: relative;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5), inset -10px -10px 50px rgba(0,0,0,0.8);
    cursor: pointer;
    transition: transform 0.1s;
    user-select: none;
}

.ball-inner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 140px;
    height: 140px;
    background: #0a0a0a;
    border-radius: 50%;
    border: 8px solid #222;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: inset 0 0 20px rgba(0,0,0,1);
}

.window {
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, #1a1a40 0%, #000 100%);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 15px;
    box-sizing: border-box;
    transition: opacity 0.5s ease;
}

#answer-text {
    color: #4fc3f7;
    font-weight: bold;
    font-size: 0.9rem;
    text-transform: uppercase;
    opacity: 0;
    transition: opacity 0.5s ease;
    text-shadow: 0 0 5px #4fc3f7;
}

.input-area {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

#question-input {
    width: 300px;
    padding: 12px 20px;
    border-radius: 25px;
    border: none;
    background: #252545;
    color: white;
    font-size: 1rem;
    outline: none;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

#shake-button {
    padding: 12px 30px;
    border-radius: 25px;
    border: none;
    background: #4fc3f7;
    color: #1a1a2e;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    box-shadow: 0 4px 15px rgba(79, 195, 247, 0.4);
}

#shake-button:hover {
    background: #81d4fa;
    transform: scale(1.05);
}

#shake-button:active {
    transform: scale(0.95);
}

/* Shake Animation */
@keyframes shake {
    0% { transform: translate(1px, 1px) rotate(0deg); }
    10% { transform: translate(-1px, -2px) rotate(-1deg); }
    20% { transform: translate(-3px, 0px) rotate(1deg); }
    30% { transform: translate(3px, 2px) rotate(0deg); }
    40% { transform: translate(1px, -1px) rotate(1deg); }
    50% { transform: translate(-1px, 2px) rotate(-1deg); }
    60% { transform: translate(-3px, 1px) rotate(0deg); }
    70% { transform: translate(3px, 1px) rotate(-1deg); }
    80% { transform: translate(-1px, -1px) rotate(1deg); }
    90% { transform: translate(1px, 2px) rotate(0deg); }
    100% { transform: translate(1px, -2px) rotate(-1deg); }
}

.shaking {
    animation: shake 0.5s;
    animation-iteration-count: infinite;
}