body {
    background-color: #e0e0e0;
    font-family: 'Segoe UI', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    overflow: hidden; /* Elements screen se niche girenge */
}

.card {
    background: #ffffff;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 10px 10px 20px #bebebe, -10px -10px 20px #ffffff;
    text-align: center;
    width: 300px;
    transition: transform 0.2s;
}

h2 { color: #444; margin-bottom: 20px; }

.slider-container {
    position: relative;
    padding: 20px 0;
}

.slider {
    -webkit-appearance: none;
    width: 100%;
    height: 10px;
    border-radius: 5px;
    background: #ddd;
    outline: none;
    cursor: pointer;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: #4CAF50;
    cursor: pointer;
    box-shadow: 0 0 5px rgba(0,0,0,0.2);
}

.percentage {
    font-size: 24px;
    font-weight: bold;
    margin-top: 15px;
    color: #4CAF50;
}

/* Fall Animation */
.fall-down {
    animation: fallEffect 1s forwards cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none; /* Girne ke baad touch kaam nahi karega */
}

@keyframes fallEffect {
    0% { transform: translateY(0) rotate(0deg); }
    20% { transform: translateY(-10px) rotate(5deg); }
    100% { transform: translateY(100vh) rotate(45deg); opacity: 0; }
}

#warning-text {
    font-size: 12px;
    color: #888;
    margin-top: 10px;
}

/* Screen Shake */
.shake {
    animation: shakeScreen 0.1s infinite;
}

@keyframes shakeScreen {
    0% { transform: translate(1px, 1px); }
    50% { transform: translate(-1px, -2px); }
    100% { transform: translate(1px, 2px); }
}
