@import url('https://fonts.googleapis.com/css?family=Creepster');
:root {
  --background: #0F2F3C;
  --skin: #8EC83E;
  --black: #10122B;
  --white: #fff;
  --brain: #fc76a3;
  --tooth: #FFF998;
  --slime: #DAE21C;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(225deg, var(--background) 15%, var(--background) 50%, var(--black) 60%, var(--slime) 100%);
 
}



.text {
  position: absolute;
  background: var(--white);
  top: -110px;
  left: -120px;
  padding: 20px 30px;
  border-radius: 20px;
  font-size: 45px;
  font-family: 'Creepster', cursive;
  color: var(--brain);
  letter-spacing: 5px;
  z-index: 5;
  animation: text 2s infinite;
  transition: opacity 300ms ease-in-out;
  opacity: 0;
  box-shadow: 0px 0px 5px 0px var(--black);
}
@keyframes text {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  0% { transform: scale(1); }
}
.head {
  background: var(--skin);
  height: 300px;
  width: 300px;
  border-radius: 50px;
  position: relative;
  box-shadow: 0px 0px 5px 0px var(--black);
}
.head:hover .text{
  opacity: 1;
}
.ear-left {
  position: absolute;
  top: 0;
  bottom: 0;
  left: -20px;
  margin: auto 0;
  width: 50px;
  height: 50px;
  background: var(--skin);
  opacity: 0.8;
  border-radius: 50%;
}
.ear-right {
  position: absolute;
  top: 0;
  bottom: 0;
  right: -20px;
  margin: auto 0;
  width: 50px;
  height: 50px;
  background: var(--skin);
  opacity: 0.8;
  border-radius: 50%;
}
.brain {
  content: '';
  position: absolute;
  height: 100px;
  width: 140px;
  top: -50px;
  right: -20px;
  background: var(--background);
  border-radius: 50%;
  overflow: hidden;
}
.head:hover .brain::before {
  animation: brain 1s infinite;
}
@keyframes brain {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  0% { transform: scale(1); }
}
.brain::before {
  content: '';
  height: 100px;
  width: 150px;
  position: absolute;
  background: var(--brain);
  bottom: -55px;
  left: -40px;
  border-radius: 30px;
  box-shadow: 0px 0px 5px 0px var(--black);
}
.eye-left {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: var(--black);
  position: absolute;
  top: 70px;
  left: 45px;
}
.eye-left::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  margin: auto;
  width: 25px;
  height: 25px;
  background: var(--white);
  border-radius: 50%;
}
.eye-right {
  width: 70px;
  height: 70px;
  position: absolute;
  top: 88px;
  right: 45px;
}
.eye-right::before {
  content: '';
  position: absolute;
  background: var(--black);
  height: 30px;
  width: 100%;
  border-radius: 40px;
  transform: rotate(45deg);
}
.eye-right::after {
  content: '';
  position: absolute;
  background: var(--black);
  height: 30px;
  width: 100%;
  border-radius: 40px;
  transform: rotate(-45deg);
}
.nose {
  width: 10%;
  height: 30px;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  margin: auto;
}
.nose::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 10px;
  height: 10px;
  background: var(--black);
  opacity: 0.7;
  border-radius: 50%;
}
.nose::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 10px;
  height: 10px;
  background: var(--black);
  opacity: 0.7;
  border-radius: 50%;
}
.mouth {
  position: absolute;
  height: 75px;
  width: 200px;
  border-radius: 35px;
  background: var(--black);
  bottom: 40px;
  left: 0;
  right: 0;
  margin: 0 auto;
}
.tooth-1 {
  position: absolute;
  bottom: 2px;
  left: 50px;
  height: 36px;
  width: 24px;
  background: var(--tooth);
  border-radius: 10px 10px 0 0;
}
.tooth-2{
  position: absolute;
  top: 2px;
  right: 80px;
  height: 30px;
  width: 20px;
  background: var(--tooth);
  border-radius: 0 0 10px 10px;
}
.tooth-3{
  position: absolute;
  bottom: 2px;
  right: 40px;
  height: 30px;
  width: 20px;
  background: var(--tooth);
  border-radius: 10px 10px 0 0;
}
.slime {
  background: var(--slime);
  position: absolute;
  bottom: -30px;
  width: 35px;
  height: 50px;
  left: 12px;
  border-radius: 10px 10px 0 0;
}
.slime-1 {
  background: var(--slime);
  position: absolute;
  bottom: -80px;
  width: 8px;
  height: 90px;
  left: 12px;
  border-radius: 10px;
  animation: slime-1 5s infinite;
}
.slime-2 {
  background: var(--slime);
  position: absolute;
  bottom: -100px;
  width: 8px;
  height: 100px;
  left: 26px;
  border-radius: 10px;
  animation: slime-2 5s infinite;
}
.slime-3 {
  background: var(--slime);
  position: absolute;
  bottom: -50px;
  width: 8px;
  height: 60px;
  left: 39px;
  border-radius: 10px;
  animation: slime-1 5s infinite;
}
@keyframes slime-1 {
  0% { transform: translateY(0); }
  25% { transform: translateY(15px); }
  50% { transform: translateY(0); }
  75% { transform: translateY(10px); }
  100% { transform: translateY(0); }
}
@keyframes slime-2 {
  0% { transform: translateY(0); }
  25% { transform: translateY(0); }
  50% { transform: translateY(15px); }
  75% { transform: translateY(0); }
  100% { transform: translateY(0); }
}
.detail-1 {
  position: absolute;
  top: 15px;
  left: 70px;
  height: 30px;
  width: 30px;
  border-radius: 50%;
  background: var(--tooth);
  opacity: 0.5
}
.detail-2 {
  position: absolute;
  bottom: 80px;
  right: 20px;
  height: 20px;
  width: 20px;
  border-radius: 50%;
  background: var(--tooth);
  opacity: 0.5
}
.detail-3 {
  position: absolute;
  top: 150px;
  left: 40px;
  height: 25px;
  width: 25px;
  border-radius: 50%;
  background: var(--tooth);
  opacity: 0.5
}
.detail-4 {
  position: absolute;
  top: 20px;
  right: 30px;
  height: 18px;
  width: 18px;
  border-radius: 50%;
  background: var(--tooth);
  opacity: 0.5;
  z-index: 3;
}
.detail-5 {
  position: absolute;
  top: 30px;
  right: 60px;
  height: 13px;
  width: 13px;
  border-radius: 50%;
  background: var(--tooth);
  opacity: 0.5;
  z-index: 3;
}

.box{
    color: #FF0000;
} 