:root {
    --bg-color:#8FB3E0;
    --color-1:#0B966E;
    --color-2:#2455A4;
    --color-3:#EBE6DE;
    --color-4:#FFCA54;
}



.robox {
    position: absolute;
    direction: ltr;
    display: flex;
    flex-direction: column;
    align-items: center;
    filter: drop-shadow(3px 3px 8px #0006);
    transform: scale(.4);
    top: -20%;
}

.robox .head {
    position: relative;
    width: 130px;
    height: 90px;
    margin-bottom: 22px;
}

.robox .ear {
    position: absolute;
    left: 50%;
    top: 12px;
    width: 130%;
    height: 40px;
    background-color: var(--color-2);
    border-radius: 8px;
    transform: translateX(-50%);
}

.robox .rod {
    position: absolute;
    left: 50%;
    top: -60px;
    transform: translateX(-50%);
    width: 20px;
    height: 60px;
    background-color: var(--color-2);
}

.robox .rod::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -6px;
    width: 32px;
    height: 22px;
    background-color: var(--color-1);
    border-radius: 6px;
}

.robox .neck { 
    position: absolute;
    left: 50%;
    top: 100%;
    transform: translateX(-50%);
    width: 50%;
    height: 25px;
    background-color: var(--color-2);
}

.robox .face {
    position: absolute;
    inset: 0;
    background-color: var(--color-3);
    border-radius: 1.3rem;
}

.robox .face .eye {
    position: absolute;
    left: 1rem;
    top: 1.5rem;
    width: 34px;
    height: 34px;
    background-color: var(--color-1);
    border-radius: 50%;
    box-shadow: 3.8rem 0 0 var(--color-1) ;
}

.robox .body {
    position: relative;
    width: 200px;
    height: 180px;
    
}

.robox .body .chest {
    position: absolute;
    inset: 0;
    background-color: var(--color-4);
    border-radius: 35px;
}

.robox .body .chest .heart {
    position: absolute;
    top: 50px;
    right: 30px;
    width: 60px;
    height: 60px;
    display: flex;
    opacity: .95;
    transform: scale(.9);

}

.robox .body .chest:hover .heart {
    animation-name: heart-beat;
    animation-timing-function: linear;
    animation-duration: 1s;
    animation-iteration-count: infinite;
    animation-delay: .3s;
    opacity: 1;
}

@keyframes heart-beat {
    0%,30%,60%,100% {
        transform: scale(.9);
    }

    15%,45% {
        transform: scale(1.1);
    }
    
}
.robox .body .chest .heart::before,
.robox .body .chest .heart::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 70%;
    background-color: red;
    transform-origin: top ;
    transform: translateX(-3px) rotate(-44deg);
}

.robox .body .chest .heart::before {
    border-top-right-radius: 60px;
    border-bottom-right-radius: 60px;
}
.robox .body .chest .heart::after {
    transform: scale(-1) translateX(-10px) rotate(-137deg);
    border-top-left-radius: 60px;
    border-bottom-left-radius: 60px;
}


.robox .body .deltoid {
   position: absolute; 
   left: 50%;
   top: 20px;
   transform: translateX(-50%);
   width: 115%;
   height: 55px;
   background-color: var(--color-2);
   border-radius: 8px;
   
}

.robox .body .arm {
    position: absolute;
    width: 50px;
    height: 50px;
    top: 22px;
}

.robox .body .arm.right-arm {
    right: -55px;
    transform: rotate(-20deg);
    transition: 1s;

}

/*! ////////////////////animation selector  */


.active-robox:hover .robox .body .arm.right-arm {
    transform: rotate(-175deg);

    
}

.active-robox:hover .robox .body .arm.right-arm .bellow-elbow {
    animation: right-elbow 9s ease infinite; 
   animation-delay: .5s;
}




.robox .body .arm.left-arm {
    left: -55px;
    transform: rotate(20deg);
}

.robox .body .arm .shoulder {
    position: absolute;
    inset: 0;
    background-color: var(--color-4);
    border-radius: 50%;
}

.robox .body .arm .bone-1 {
    position: relative;
    width: 22px;
    height: 70px;
    left: 50%;
    top: 25px;
    transform: translateX(-50%);
    background-color: var(--color-2);
}

.robox .body .arm .elbow {
    position: relative;
    left: 50%;
    top: 15px;
    transform: translateX(-50%);
    width: 33px;
    height: 33px;
    background-color: var(--color-4);
    border-radius: 50%;
    z-index: 2;
}

.robox .body .arm .bone-2 {
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 40px;
    background-color: var(--color-2);
}

.robox .body .arm .hand {
    position: relative;
    left: 50%;
    top: -6px;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 6px solid #fff;
    border-bottom-color: transparent;
}

.robox .body .arm.right-arm  .bellow-elbow {
    transform-origin: top center;
    transform: rotate(20deg);
}

.robox .body .arm.left-arm  .bellow-elbow {
    transform-origin: top center;
    transform: rotate(-20deg);
}

.legs {
    width: 200px;
    position: relative;
}

.legs .leg {
    position: absolute;
    top: 0;
}

.legs .leg.left-leg {
    left: 20%;
}

.legs .leg.right-leg {
    right: 20px;
}

.legs .leg .bone-1{
    width: 25px;
    height: 100px;
    background-color: var(--color-2);
}

.legs .leg .elbow {
    position: absolute;
    left: -10px;
    top: 30px;
    width: 45px;
    height: 35px;
    border-radius: 35px;
    background-color: var(--color-3);
}

.legs .leg .shoe {
    position: relative;
    left: -14px;
    top: -12px;
    width: 55px;
    height: 40px;
    border-radius: 15px;
    background-image: linear-gradient(var(--color-3) 0 55%,var(--color-1) 60% 100%);
}



@keyframes right-arm {
    5%,15%,25%,35%,45%,55%,65%,75%,85%,95%{
        transform: rotate(-175deg);
    }

    10%,20%,30%,40%,50%,60%,70%,80%,90%,100% {
        transform: rotate(-173deg);
    }
    
}

@keyframes right-elbow {
    5%,15%,25%,35%,45%,55%,65%,75%,85%,95%{
        transform: rotate(-20deg);
    }

    10%,20%,30%,40%,50%,60%,70%,80%,90%,100% {
        transform: rotate(20deg);
    }

}
