body
{
    width: 80%;
    margin: auto;
    overflow: hidden;
    animation: backgroundColor ease-in-out 2s infinite alternate;
}
@keyframes backgroundColor
{
    from {background-color: red;}
    to {background-color: blue;}
}
.sway
{
    position: absolute;
    margin: auto;
    top:0;
    left:0;
    right:10px;
    bottom:0;
    transform-origin: bottom;
    animation: acid ease-in-out 2s infinite alternate;
}
@keyframes acid
{
    from{transform: rotate(-3deg); left: 200px;}
    to{transform:rotate(3deg); right: 200px;}
}
.piston 
{
    position: absolute;
    margin: auto;
    width: 55px;
    height: 400px;
    right: 360px;
    top:0;
    left:0;
    bottom:0;
    background-color: black;
    border: 5px solid white;
    animation: pistontwo ease-in-out 1s infinite alternate;
}
.pistontwo 
{
    position: absolute;
    margin: auto;
    width: 55px;
    height: 400px;
    left: 340px;
    top: 0px;
    right: 0px;
    border: 5px solid black;
    animation: piston ease-in-out 1s infinite alternate;
}
@keyframes piston
{
   from 
    {
        bottom: 320px; 
        transform: scale(1)skewY(-20deg); 
        background-color: white;
        border: 5px solid black;
    }
   to   
    {
        bottom: 400px; 
        transform: scale(1.3)skewY(50deg); 
        background-color: black;
        border: 5px solid white;
    }
}
@keyframes pistontwo
{
   from 
    {
        bottom: 280px; 
        transform: scale(1)skewY(60deg); 
        background-color: black;
        border: 5px solid white;
    }
   to   {
       bottom: 400px; 
       transform: scale(1.3) skewY(-20deg); 
       background-color: white;
       border: 5px solid black;
    }
}
.clockface
{
    border: 10px red solid;
    border-radius: 60px;
    background-color: white;
    width: 250px;
    height: 250px;
    bottom: 300px;
    animation: breath ease-in-out 1s infinite alternate;
}
.body
{
    width: 300px;
    height: 600px;
    top: 50px;
    border-radius: 20px;
    border: 5px solid black;
    animation: breath ease-in-out 1s infinite alternate;
}
.figure
{
    width: 150px;
    height: 100px;
    border-radius: 100px;
    bottom: 700px;
    border: 2px solid black;
    animation: rotating ease-in-out 4s infinite alternate;
}
.head
{
    width: 300px;
    height: 200px;
    border-radius: 100px;
    bottom: 650px;
    border: 10px solid black;
    animation: breath ease-in-out 1s infinite alternate;
}
.sheft
{
    width: 350px;
    top: 40px;
    animation: breath ease-in-out 1s infinite alternate;
}
@keyframes breath
{
    from {transform: scale(1);}
    to {transform: scale(1.1);}
}
.hourarm
{
    width: 80px;
    height: 210px;
    bottom: 300px;
    animation: hrotating 6s linear infinite;
}
@keyframes hrotating
{
    from
    { transform: rotate(0deg); }
    to{transform: rotate(360deg);}
}
.minutearm
{
    width: 210px;
    height: 100px;
    bottom: 300px;
    animation: mrotating 2s linear infinite;
}
@keyframes mrotating
{
    from {transform: rotate(0deg); }
    to{transform: rotate(360deg);}
}
@keyframes rotating
{
    from {transform: rotate(0deg); }
    to{transform: rotate(360deg);}
}
.weight
{
    position: absolute;
    margin: auto;
    top: 300px;
    left:0;
    right:10px;
    bottom:0;
    height: 200px;
    width: 40px;
    border: 10px groove black;
    border-radius: 60px;
    transform-origin: 50% 0%;
    animation: swing ease-in-out 2s infinite alternate;
}
.end
{
    width: 100px;
    height: 100px;
    top: 250px;
    left: -30px;
}
@keyframes swing
{
    from{transform: rotate(-20deg); background-color: red;}
    to{transform: rotate(20deg);}
}


h1
{
    text-align: center;
}
div img
{
    position: absolute;
    margin: auto;
    top:0;
    left:0;
    right:10px;
    bottom:0;
}
