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

body {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  animation: myanimation 10s infinite;
}

@keyframes myanimation {
  0% {background-color: green;}
  25%{background-color:yellow;}
  50%{background-color:purple;}
  75%{background-color:orange;}
  100% {background-color: green;}
}

.face {
  position: relative;
  width: 300px;
  height: 300px;
  background-color: #0052FF;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.2s ease;
box-shadow: rgba(50, 50, 93, 0.25) 0px 50px 100px -20px, rgba(0, 0, 0, 0.3) 0px 30px 60px -30px;
}

.face::before {
  content: "";
  position: absolute;
  top: 180px;
  width: 150px;
  height: 70px;
  background: white;
  border-bottom-left-radius: 0px;
  border-bottom-right-radius: 0px;
  transition: 0.5s;
}

.face:hover {
  background: red;
}

.face:active {
  transform: scale(0.96);
  border-radius:50%;
}

.face:hover::before {
  top: 210px;
  width: 150px;
  height: 20px;
  background: white;
  border-bottom-left-radius: 0px;
  border-bottom-right-radius: 0px;
}

.eyes {
  position: relative;
  top: -40px;
  display: flex;
}

.eyes .eye {
  position: relative;
  width: 80px;
  height: 80px;
  display: block;
  background: #fff;
  margin: 0 15px;

}


.eyes .eye::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 25px;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  animation: myanimation 2s infinite;

}
