﻿body {
    background: linear-gradient(to bottom, #e0f7fa, #b2ebf2);
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.scene {
    position: relative;
    width: 200px;
    height: 300px;
    border-bottom: 4px solid #009688;
    overflow: hidden;
}

.ball {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 60px;
    height: 60px;
    background: radial-gradient(circle at 30% 30%, #ff8a65, #e64a19);
    border-radius: 50%;
    transform: translateX(-50%);
    animation: bounce 2s cubic-bezier(0.28, 0.84, 0.42, 1) infinite;
}

.ball::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    width: 40px;
    height: 10px;
    background: rgba(0,0,0,0.2);
    border-radius: 50%;
    transform: translateX(-50%);
    animation: shadow 2s cubic-bezier(0.28, 0.84, 0.42, 1) infinite;
}

@keyframes shadow {

    0%, 100% {
        width: 40px;
        opacity:0.3;
    }
    30% {
        width: 80px;
        opacity:0.1;
    }

}

@keyframes bounce {
    0% {
        transform: translate(-50%, 0) scaleY(1);
    }

    10% {
        transform: translate(-50%, 0) scaleY(0.8) scaleX(1.1);
    }

    30% {
        transform: translate(-50%, -220px) scaleY(1.1) scaleX(0.9);
    }

    50% {
        transform: translate(-50%, 0) scaleY(0.8) scaleX();
    }

    70% {
        transform: translate(-50%, -120px) scaleY(1) scaleX(1);
    }

    90% {
        transform: translate(-50%, 0) scaleY(0.9) scaleX(1.05);
    }

    100% {
        transform: translate(-50%, 0) scaleY(1) scaleX(1);
    }

}