body{
  background: rgb(98, 150, 19);
}

.parentsbox{
  position: relative;
  height: 600px;
  width: 600px;
  margin: auto;
  margin-top: 20px;
  margin-bottom: 20px;
  border-radius: 100px;
  background-color: yellow;
}

.parentsbox::before {
  content: "Willy Cahyadi";
  right : 185px;
  top: 40px;
  position: absolute;
  font-size: 40px;
}

.parentsbox:hover{
  background-color: aqua;
}

.pigear {
  position: absolute;
  width: 70px;
  height: 70px;
  background: gray;
  border-radius: 50%;
  border: 20px solid black;
  top: 150px;
  z-index: 1;
}

.parentsbox:hover .pigear {
  animation-name: gerakKuping;
  animation-duration: 2s;
  animation-iteration-count: infinite;
}

.pigear.ear1 {
  left: 370px;
}

.pigear.ear2 {
  right: 370px;
}

@keyframes gerakKuping {
  0% {top: 150px}
  50% {top: 170px}
  100% {top:150px}
}

.pighead {
  position: absolute;
  top: 160px;
  left: 50%;
  transform: translateX(-50%);
  width: 350px;
  height: 300px;
  background: white;
  border-radius: 50% 50% 37% 37%;
  z-index: 2;
}

.pignose {
  position: absolute;
  height: 30px;
  width: 50px;
  border-radius: 50%;
  background: black;
  left: 50%;
  transform: translateX(-50%);
  top: 300px;
  z-index: 3;
}

.pignose::before {
  content: '';
  position: absolute;
  width: 15px;
  height: 7px;
  border-radius: 50%;
  background: white;
  top: 5px;
  left: 12px;
  transform: rotate(-10deg);
}

.pigsmile {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  background: black;
  width: 130px;
  height: 50px;
  bottom: 190px;
  clip-path: circle(50% at 50% 0);
  z-index: 3;
}

.pigsmile::before {
  content: '';
  position: absolute;
  width: 90px;
  height: 50px;
  border-radius: 50%;
  background: red;
  left: 50%;
  transform: translateX(-50%);
  bottom: -20px;
}

.parentsbox:hover .pigsmile::before {
  animation-name: lidahGerak;
  animation-duration: 2s;
  animation-iteration-count: infinite;
}

.parentsbox:hover .pigsmile {
  animation-name: mulutGerak;
  animation-duration: 2s;
  animation-iteration-count: infinite;

}

@keyframes lidahGerak {
  0% {bottom: -20px}
  50% {bottom: -30px}
  100% {bottom: -20px}
}

@keyframes mulutGerak {
   0% {clip-path: circle(50% at 50% 0)}
   50% {clip-path: circle(50% at 50%)}
   100% {clip-path: circle(50% at 50% 0)}
}

.pigeye {
  position: absolute;
  top: 220px;
  width: 60px;
  height: 60px;
  background: black;
  border: 10px solid white;
  border-radius: 50%;
  z-index: 3;
}

.pigeye::before {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: white;
  left: 12px;
  top: 8px;
}

.parentsbox:hover .pigeye::before {
  animation-name: matakeKanan;
  animation-duration: 2s;
  animation-iteration-count: infinite;
}

@keyframes matakeKanan {
   0% {left:12px}
   50% {left:28px}
   100% {left:12px}
}

.pigeye::after {
  content: '';
  position: absolute;
  width: 10px;
  height: 10px;
  background: white;
  border-radius: 50%;
  bottom: 5px;
  left: 50%;
  transform: translateX(-10%);
}

.pigeye.eye1 {
  left: 330px;
}

.pigeye.eye2 {
  right: 330px;
}

div.pignose p {
  color: white;
}
