body{
    display:flex;
    flex-direction: column;
    justify-content:center;
    align-items: center;

}

p{
    color:blue;
}
.zsm{
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;

}

@keyframes hinundher-alt {
  from {background-color: red; left: 22%;}
  to {background-color: blue; left: 90%;}
}

@keyframes hinundher {
  0% { left: 22%; }
  25%   { left:  30%;   top:45%;}
  50% { left:  40%;   top:41%;}
  75%   { left:  60%;   top: 45%;}
  100% { left: 70%; }
}

.kreis{
    position:absolute;
    background-color: rgb(175, 28, 129);
    width: 100px;
    height: 100px;
    top: 65%;
    left: 22%;
    border-radius: 50%;
    
    animation: hinundher 2s;
    animation-iteration-count: infinite;
    animation-direction: alternate;
    animation-delay: 0.8s;
}

@keyframes drehen {
  0% {rotate: 0deg;}
  50% {rotate: 180deg;}
  100% {rotate: 360deg;}
}
#cool{
  padding: 5px;

}
#cool:hover{
  
  animation: drehen 4s linear;
  animation-iteration-count: infinite;
}
#fred{
  position: absolute;
  top: 5%;
  left:10%;
}
#steve{
  position: absolute;
  top: 5%;
  right:10%;
}
#freddie{
  position: absolute;
  bottom: 10%;
  left:15%;
}
#stevie{
  position: absolute;
  bottom: 10%;
  right:15%;
}

#fred .iris{
 left: 10px; 
}

#freddie .iris{
 left: 10px; 
}
.face{
    background-color: yellow;
    border-style: solid;
    border-width: 1px;
    border-color: black;
    width: 100px;
    height: 100px;
    top: 50%;
    border-radius: 50%;
}
.eyes{
  display: flex;
  position: relative;
  top:20%;
  left: 20%;
}
.eye{
  position: relative;
  background-color: white;
  padding: 5px;
  width: 20px;
  height: 25px;
  border-radius: 50%;
}
.iris{
  position: relative;
  background-color: black;
  width: 8px;
  height: 10px;
  top:50%;
  border-radius: 50%;
}
.mouth{
  position: relative;
  background-color: black;
  width: 30px;
  height: 5px;
  top: 35px;
  left: 35px;
}
.face:hover .mouth{
  position: relative;
  border-color: black;
  border-bottom: solid;
  border-bottom-width: 2px;
  border-right: solid;
  border-right-width: 2px;
  border-left: solid;
  border-left-width: 2px;
  width: 20px;
  height: 10px;
  top: 35px;
  left: 35px;
  border-radius: 0px 0px 20px 20px;

}
h1:hover{
  color:purple;
}
h1:hover ~ .zsm {
  color:green;
}

h1:hover ~ .face .mouth{
  position: relative;
  background-color: black;
  width: 20px;
  height: 20px;
  top: 30px;
  left: 40px;
  border-radius: 8px;
}

.mouth-neutral{
  position: relative;
  background-color: black;
  width: 30px;
  height: 5px;
  top: 35px;
  left: 30px;
}
@keyframes arme {
  0% {transform: rotate(var(--start-deg));}
  30% {transform: rotate(var(--end-deg));}
  50% {transform: rotate(var(--start-deg));}
}

.upperbody{
  position: relative;
  background-color: blue;
  left: 14px;
  height: 120px;
  width: 80px;
  border-top-right-radius: 40%;
  border-top-left-radius: 40%;
}
.upperbody:active .arm-left{
  --start-deg:45deg;
  --end-deg:145deg;
  animation: arme 1.5s forwards;
  animation-iteration-count: 1;
}
.upperbody:active .arm-right{
  --start-deg:-45deg;
  --end-deg:-145deg;
  animation: arme 1.5s forwards;
  animation-iteration-count: 1;
}

#fred:active .face .mouth{
  position: relative;
  background-color: black;
  width: 20px;
  height: 20px;
  top: 30px;
  left: 40px;
  border-radius: 8px;
}
#steve:active .face .mouth{
  position: relative;
  background-color: black;
  width: 20px;
  height: 20px;
  top: 30px;
  left: 40px;
  border-radius: 8px;
}


.arm-left{
  position: relative;
  background-color: blue;
  border-radius: 20%;
  height:90px;
  width: 15px;
  left:13px;
  top:15px;
  transform: rotate(45deg);
  transform-origin: 0% 0%;
}

.arm-right{
  position: relative;
  background-color: blue;
  border-radius: 20%;
  height:90px;
  width: 15px;
  left:63px;
  top:-60px;
  transform: rotate(-45deg);
  transform-origin: 0% 0%;
}

.hand{
  position: relative;
  background-color: yellow;
  border-style: solid;
  border-width: 1px;
  border-color: black;
  border-radius: 50%;
  width:15px;
  height:15px;
  top:90px;
  left:0px;
}

.hair{
  position: relative;
  top:5%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.single-hair{
  padding: 2px;
  margin-right: 4px;
  width: 2px;
  height: 15px;
  background-color: black;
  transform: rotate(30deg);
}

.hat{
  position: relative;
  top: -10px;
  left: 5px;
  width: 90px;
  height: 40px;
  border-top-left-radius: 20%;
  border-top-right-radius: 20%;
  background-color: black;
}

.hat-stripe{
  position: relative;
  top:100%;
  left: 0%;
  width: 90px;
  height: 10px;
  background-color: red;
}

.hat-bottom{
  position: relative;
  top:100%;
  left: -25%;
  width: 130px;
  height: 20px;
  border-bottom-left-radius: 20%;
  border-bottom-right-radius: 20%;
  background-color: black;
}

#freddie .mouth{
  position: relative;
  border-color: black;
  border-bottom: solid;
  border-bottom-width: 2px;
  border-right: solid;
  border-right-width: 2px;
  border-left: solid;
  border-left-width: 2px;
  width: 20px;
  height: 10px;
  top: 35px;
  left: 35px;
  border-radius: 0px 0px 20px 20px;

}

#freddie .upperbody{
  background-color: blueviolet;
}
#freddie .upperbody .arm-left{
  background-color: rgb(85, 27, 139);
  --start-deg:-35deg;
  --end-deg:-115deg;
  animation: arme 4s forwards;
  animation-iteration-count: infinite;
}
#freddie .upperbody .arm-right{
  background-color: rgb(85, 27, 139);
  --start-deg:-45deg;
  --end-deg:-125deg;
  animation: arme 4s forwards;
  animation-iteration-count: infinite;
}

#stevie .mouth{
  position: relative;
  border-color: black;
  border-bottom: solid;
  border-bottom-width: 2px;
  border-right: solid;
  border-right-width: 2px;
  border-left: solid;
  border-left-width: 2px;
  width: 20px;
  height: 10px;
  top: 35px;
  left: 35px;
  border-radius: 0px 0px 20px 20px;

}

#stevie .upperbody{
  background-color: rgb(0, 246, 139);
}
#stevie .upperbody .arm-left{
  background-color: rgb(4, 168, 97);
  --start-deg:35deg;
  --end-deg:115deg;
  animation: arme 4s forwards;
  animation-iteration-count: infinite;
  animation-delay: 2.4s;
}
#stevie .upperbody .arm-right{
  background-color: rgb(4, 168, 97);
  --start-deg:45deg;
  --end-deg:125deg;
  animation: arme 4s forwards;
  animation-iteration-count: infinite;
  animation-delay: 2.4s;
}
