*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

html{
    scroll-behavior: smooth;
}

body{
    background-color: burlywood;
}

.section{
    display: grid;
    place-items: center;
    height: 100vh;
}

.cup{
    display: grid;
}

.cup__body{
    position: relative;
    width: 255px;
    height: 180px;
    background-image: url('../coffe.svg');
    background-repeat: repeat-x;
    background-position: 0 170px;
    background-size: cover;
    border: 6px solid burlywood;
    box-shadow: 0 0 0 12px #352a22;
    border-radius: 10px 10px 60px 75px;
    animation: coffe-come 3s linear infinite;
}

.cup__hand{
    position: absolute;
    top: 12px;
    right: -90px;
    width: 65px;
    height: 120px;
    border: 6px solid burlywood;
    border-radius: 10px 20px 50px 20px;
    box-shadow: 0 0 0 12px #352a22;
}

.cup__heats{
    position: relative;
    place-self: center;
    width: 150px;
    height: 120px;
    background-color: transparent;
}

.heat{
    position: absolute;
    width: 8px;
    border-radius: 10px 0 10px 0;
}

.heat:nth-child(1){
    height: 35px;
    left: 10%;
    top: 40%;
    background-color: #8e5a3433;
    animation: heat-come 2s linear infinite;
    animation-delay: .3;
}

.heat:nth-child(2){
    height: 50px;
    left: 45%;
    top: 0%;
    background-color: #8e5a3465;
    animation: heat-come 2s linear infinite;
    animation-delay: .2;
}

.heat:nth-child(3){
    height: 45px;
    left: 80%;
    top: 30%;
    background-color: #8e5a3445;
    animation: heat-come 2s linear infinite;
    animation-delay: .1;
}

/*=====  KEY FRAMES FOR THE CUP ====*/
@keyframes coffe-come {
    0%, 100%{
        background-position: 0 170px;
    }

    50%{
        background-position: 500px -70px;
    }
}

@keyframes heat-come {
    0%, 100%{
        opacity: 0;
        transform: translateY(10px);
    }
    50%{
        opacity: 1;
        transform: translateY(-10px);
    }
}