@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "poppins";
}

body{
    display: flex;
    justify-content: center;
    align-items: center;
    background: #25252b;
}

.gift-container{
    display: flex;
    justify-content: center;
    position: absolute;
    bottom: 20%;
}

.gift-container.active{
    animation: Vibration 1s ease forwards;
}

@keyframes Vibration{
    0%{
        transform: scale(1,1);
    }
    25%{
        transform: scale(.95,1.05);
    }
    50%{
        transform: scale(1.1,.9);
    }
    70%{
        transform: scale(.9,1.1);
    }
    100%{
        transform: scale(1,1);
    }
}

.gift-container .gift-box{
    position: absolute;
    height: 200px;
    width: 300px;
    background: #ec9c4a;
    animation: Bounce 4s ease infinite forwards;
}

@keyframes Bounce{
    0%{
        transform: translateY(-24px);
    }
    50%{
        transform: translateY(0px);
    }
    100%{
        transform: translateY(-24px);
    }
}

.gift-box.active{
    animation: none;
}

.gift-box::before{
    content: '';
    position: absolute;
    width: 50px;
    height: 200px;
    background: #e76f51;
    left: 124px;
}

.gift-box::after{
    content: '';
    position: absolute;
    box-shadow: inset 0 10px rgba(0, 0, 0, .3);
    width: 300px;
    height: 200px;
}

.click{
    position: absolute;
    background: #ec9c4a;
    width: 340px;
    height: 90px;
    top: -90px;
    left: -20px;
    cursor: pointer;
    z-index: 1;
    transition: .5s ease;
}

.click.active{
    transition-delay: 1s;
    transform: translateY(-240px);
}

.click::before{
    content: '';
    position: absolute;
    width: 50px;
    height: 90px;
    background: #e76f51;
    left: 144px;
    z-index: 2;
}
.click::after{
    content: '';
    position: absolute;
    width: 5px;
    height: 0;
    border-bottom: 60px solid #e76f51;
    border-top: 60px solid #e76f51;
    border-left: 0px solid transparent;
    border-right: 60px solid transparent;
    transform: rotate(-90deg);
    top: -93px;
    left: 136px;
    z-index: 3;
}

.gift-container .shadow{
    content: '';
    position: relative;
    width: 340px;
    height: 40px;
    background: rgba(0, 0, 0, .4);
    top: 180px;
    border-radius: 50%;
    left: -4px;
    animation: BounceOut 4s ease infinite forwards;
}

.gift-container .shadow .active {
    animation: none;
}

@keyframes BounceOut{
    0%{
        transform: translateY(24px);
        scale: .7;
    }
    50%{
        transform: translateY(0px);
        scale: 1;
    }
    100%{
        transform: translateY(24px);
        scale: .7;
    }
}

.text{
    position: absolute;
    top: 0;
    width: 200px;
    background-color: #ec9c4a;
    margin: 30px;
    padding: 15px;
    text-align: center;
    font-size: 20px;
    color: #e76f51;
    border-radius: 20px;
    z-index: -1;
    scale: 0;
    /*z-index: ;
    transform: translateY(-240px);*/
    transition: .5s ease;
    transition-delay: 1.2s;
}

.text.active{
    scale: 1;
    transform: translateY(-240px);
}

.text.active2{
    top: 0;
    transition-delay: .2s;
}