* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background-color: #f5f5f5;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow: hidden;
}

.container {
    text-align: center;
    max-width: 500px;
    padding: 20px;
}

h1 {
    color: #333;
    margin-bottom: 20px;
}

.question-container {
    margin-bottom: 30px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-size: 18px;
    color: #333;
}

input[type="text"] {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    border: 2px solid #ddd;
    border-radius: 6px;
    margin-bottom: 20px;
}

.ball-container {
    position: relative;
    height: 300px;
    width: 300px;
    margin: 0 auto 30px;
}

.magic-ball {
    position: absolute;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle at 30% 30%, #333 0%, #000 70%);
    border-radius: 50%;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    cursor: pointer;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
    transform-style: preserve-3d;
    transition: transform 0.2s;
    z-index: 2;
}

.ball-number {
    position: absolute;
    width: 80px;
    height: 80px;
    background-color: white;
    border-radius: 50%;
    top: 15%;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 45px;
    font-weight: bold;
    color: black;
    z-index: 3;
}

.ball-shadow {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 220px;
    height: 30px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 50%;
    filter: blur(10px);
    z-index: 1;
    transition: all 0.3s;
}

.ball-window {
    position: absolute;
    width: 100px;
    height: 100px;
    background-color: #1e3799;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.triangle {
    position: absolute;
    width: 0;
    height: 0;
    border-left: 25px solid transparent;
    border-right: 25px solid transparent;
    border-bottom: 45px solid rgba(30, 55, 153, 0.8);
    top: -15px;
}

.answer {
    position: relative;
    color: white;
    font-size: 16px;
    font-weight: bold;
    text-transform: uppercase;
    text-align: center;
    width: 80px;
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
}

.instructions {
    color: #666;
    font-size: 16px;
    margin-top: 20px;
}

.shake {
    animation: shake 0.5s cubic-bezier(.36,.07,.19,.97) both;
}

@keyframes shake {
    10%, 90% {
        transform: translateX(-52%) rotate(-2deg);
    }
    
    20%, 80% {
        transform: translateX(-48%) rotate(4deg);
    }
    
    30%, 50%, 70% {
        transform: translateX(-53%) rotate(-6deg);
    }
    
    40%, 60% {
        transform: translateX(-47%) rotate(6deg);
    }
}