@import url("https://fonts.googleapis.com/css?family=Baloo+Paaji|Open+Sans:300,300i,400,400i,600,600i,700,700i");

.speakerCloseMed {
  position: absolute;
  width: 50px;
  height: 50px;
  background: url(../imgs/sclose.png) center center no-repeat;
  top: 20px;
  right: 20px;
  z-index: 5000000;
  cursor: pointer;
}


body,
html {
  margin: 0;
  height: 100%;
  width: 100%;
  overflow: hidden;
  position: relative;
  background: -webkit-radial-gradient(center, #000046 0%, #000 60%);
}
::after,
::before {
  content: " ";
  display: block;
}
::after,
::before,
.moon,
.sky,
.star,
.asteroid {
  position: absolute;
}
.moon {
  color: #ffd;
  background: radial-gradient(circle at -30% 50%, rgba(0, 0, 0, 0) 175px, currentColor 100%);
  z-index: 999;
  border-radius: 50%;
  height: 200px;
  width: 200px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 0 20px currentColor);
}
.sky {
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  animation: rotate 400s infinite linear;
}
.star {
  width: 3px;
  height: 3px;
  background-color: white;
  border-radius: 50%;
  animation: shine 800s infinite linear;
}
.star.scale1 {
  transform: scale(1);
}
.star.scale2 {
  transform: scale(0.5);
}
.star.scale3 {
  transform: scale(1.3);
}
.star.animate1 {
  animation-duration: 0.5s;
}
.star.animate2 {
  animation-duration: 1s;
}
.star.animate3 {
  animation-duration: 1.5s;
}
.star.animate4 {
  animation-duration: 2s;
}
.star.opacity1 {
  opacity: 1;
}
.star.opacity2 {
  opacity: 0.5;
}
.star.opacity3 {
  opacity: 0.2;
}
.asteroid {
  top: -200px;
  left: -200px;
  width: 200px;
  height: 200px;
  opacity: 0.8;
  animation-name: assteroid;
  animation-timing-function: linease-inear;
  animation-iteration-count: infinite;
  animation-duration: 7s;
  animation-delay: 2s;
}
.asteroid:before {
  width: 10px;
  height: 10px;
  background: #fff;
  -webkit-border-radius: 50%;
  -moz-border-radius: 50%;
  border-radius: 50%;
  -moz-background-clip: padding;
  -webkit-background-clip: padding-box;
  background-clip: padding-box;
  -webkit-box-shadow: 0px 0px 7px 2px #fff;
  -moz-box-shadow: 0px 0px 7px 2px #fff;
  box-shadow: 0px 0px 7px 2px #fff;
  bottom: 0;
  right: 0;
}
.asteroid:after {
  width: 0;
  height: 0;
  border-left: 3px solid transparent;
  border-bottom: 200px solid #fff;
  border-right: 3px solid transparent;
  bottom: -22px;
  right: 75px;
  -webkit-transform: rotate(-45deg);
  -moz-transform: rotate(-45deg);
  transform: rotate(-45deg);
  -o-transform: rotate(-45deg);
  filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=-1deg);
}
@keyframes shine {
  0% {
    box-shadow: 0 0 15px 0px rgba(255, 255, 255, 0.05);
  }
  50% {
    box-shadow: 0 0 15px 4px rgba(255, 255, 255, 0.4);
  }
  100% {
    box-shadow: 0 0 15px 0px rgba(255, 255, 255, 0.05);
  }
}
@-webkit-keyframes shine {
  0% {
    box-shadow: 0 0 15px 0px rgba(255, 255, 255, 0.05);
  }
  50% {
    box-shadow: 0 0 15px 4px rgba(255, 255, 255, 0.4);
  }
  100% {
    box-shadow: 0 0 15px 0px rgba(255, 255, 255, 0.05);
  }
}
@keyframes rotate {
  0% {
    -webkit-transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(360deg);
  }
}
@keyframes rotate {
  0% {
    -webkit-transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(360deg);
  }
}
@keyframes assteroid {
  0% {
    top: -200px;
    left: -200px;
    filter: alpha(opacity=80);
    opacity: 0.8;
  }
  10% {
    top: 200px;
    left: 200px;
    filter: alpha(opacity=0);
    opacity: 0;
  }
  100% {
    filter: alpha(opacity=0);
    opacity: 0;
  }
}
@-webkit-keyframes assteroid {
  0% {
    top: -200px;
    left: -200px;
    filter: alpha(opacity=80);
    opacity: 0.8;
  }
  10% {
    top: 200px;
    left: 200px;
    filter: alpha(opacity=0);
    opacity: 0;
  }
  100% {
    filter: alpha(opacity=0);
    opacity: 0;
  }
}


#wrapper {
  max-width: 500px;
 height: 400px;
 margin: 0 auto;
 position: absolute;
 top: calc(50vh - 186px);
 left: calc(50% - 150px);
 z-index: 9999;
}

.planet {
margin: 0 auto;
width: 300px;
height: 300px;
background-color: #ebf3fe;
display: block;
border-radius: 50%;
position: relative;
box-shadow: inset -40px 0px 0px #d8e8f7, inset 20px 0px 0px #ffffff, inset -50px 0px 0px 20px #e2eefa, 0px 0px 0px 20px  rgba(255, 255, 255, 0.05), 0px 0px 0px 40px  rgba(255, 255, 255, 0.025), 0px 0px 0px 60px  rgba(255, 255, 255, 0.0125);
border: solid 1px;
transition: all 0.2s ease-in;
}

.planet:after {
content: "";
width: 50px;
height: 50px;
border-radius: 50%;
background-color: #d8e8f7;
position: absolute;
top: 20%;
left: 20%;
box-shadow: 40px -20px 0px -10px #d8e8f7, 40px 10px 0px -15px #d8e8f7;
}

.face {
position: absolute;
width: 100px;
top: 50%;
left: 40%;
}

.zzz1, .zzz2, .zzz3{
color:white;
position:absolute;
top:0;
right:10%;
font-size:50px;
opacity:0;
font-family: 'Shadows Into Light', cursive;
   animation-name: zzz-sleep;
animation-duration: 5s;
animation-iteration-count: infinite;
animation-timing-function: ease-in-out;
font-family: "Baloo Paaji";
}

.zzz1:after, .zzz2:after, .zzz3:after {
content:"z";
}

.zzz1 {
animation-delay: 0s;

}

.zzz2 {
animation-delay: 1.2s;
right:15%;
top:3%;
}

.zzz3 {
animation-delay: 2.4s;
right:10%;
top:6%;
}



.day .mouth {
margin-top: 15px;
height: 15px;
width: 15px;
diplay: block;
border-radius: 0px 0px 50% 50%;
background-color: transparent;
float: left;
border: 6px solid #151843;
border-top: 0;
margin-right: 10px;
position: relative;
margin-left:0px;
animation-name: none;
}

.mouth {
margin-top: 15px;
height: 25px;
width: 25px;
diplay: block;
border-radius: 50%;
background-color: #151843;
float: left;
border: none;
border-top: 0;
margin-right: 10px;
margin-left:2px;
position: relative;

 animation-name: mouth-sleep;
animation-duration: 5s;
animation-iteration-count: infinite;
animation-timing-function: ease-out;
}

.day .mouth:after {
content: "";
width: 6px;
height: 6px;
position: absolute;
display: block;
top: -3px;
left: -6px;
background-color: #151843;
border-radius: 50%;
}

.day .mouth:before {
content: "";
width: 6px;
height: 6px;
position: absolute;
display: block;
top: -3px;
left: 15px;
background-color: #151843;
border-radius: 50%
}

.day .eye {
width: 20px;
height: 20px;
display: block;
float: left;
margin-right: 10px;
animation-name: eye-blink;
animation-duration: 10s;
animation-iteration-count: infinite;
animation-timing-function: ease-out;
position: relative;
overflow: hidden
}

.eye {
width: 20px;
height: 20px;
display: block;
float: left;
margin-right: 8px;
position: relative;

}

.day .eye-in {
content: "";
width: 20px;
height: 20px;
background-color: #151843;
display: block;
position: absolute;
top: 0px;
left: 0px;
border-radius: 50%;
transform: scale(1, 1) !important;
border:none;
}


.eye-in {
width: 15px;
height: 8px;
display: block;
position: absolute;
top: 5px;
left: -1px;
 border-bottom-left-radius: 15px;
 border-bottom-right-radius: 15px;
 border: 5px solid #151843;
 border-top: 0;
}


@keyframes star1 {
0% {
 transform: scale(1, 2) rotate(45deg);
}
50% {
 transform: scale(1, 1) rotate(45deg);
}
100% {
 transform: scale(1, 2) rotate(45deg);
}
}

@keyframes star2 {
0% {
 transform: scale(2, 1) rotate(45deg);
}
50% {
 transform: scale(1, 1) rotate(45deg);
}
100% {
 transform: scale(2, 1) rotate(45deg);
}
}

@keyframes star3 {
0% {
 transform: rotate(0deg);
}
100% {
 transform: rotate(360deg);
}
}

@keyframes eye-blink {
0% {
 transform: scale(1, 1)
}
2% {
 transform: scale(1, 0)
}
4% {
 transform: scale(1, 1)
}
}

@keyframes mouth-sleep {
0% {
 transform: scale(1, 1)
}
35% {
 transform: scale(0.7, 0.7)
}
40% {
 transform: scale(0.7, 0.7)
}
75% {
 transform: scale(1, 1)
}
}

@keyframes wiggle {
0% {
 transform: translate(0px, 0px)
}
50% {
 transform: translate(50px, 0px)
}
100% {
 transform: translate(0px, 0px)
}
}

@keyframes zzz-sleep {
0% {
 transform: translate(0px, 0px) scale(1, 1);
 opacity:0;

}
25% {
 transform: translate(-5px, -10px) scale(1.1, 1.1);
}
50% {
 transform: translate(8px, -20px) scale(0.9, 0.9);
 opacity:1;
}
75% {
 transform: translate(-15px, -30px) scale(1.1, 1.1);
}
100% {
 transform: translate(15px, -40px) scale(0.9, 0.9);
 opacity:0;
}
}


@keyframes zzz-awake {
0% {
 transform: translate(0px, 0px) scale(1, 1) rotate(0deg);

}

100% {
 transform: translate(-15px, -30px) scale(2, 2) rotate(10deg);
      opacity:0;
}

}





.soundButton
{
  position: absolute;
  width: 50px;
  height: 50px;
  top: 22px;
  left: 20px;
  z-index: 500000;
  cursor: pointer;
  border-top-left-radius: 16px;
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 16px;
  background: url(../imgs/sonoffs.png) center center no-repeat;
  border: 0;
  display: block;
}
@media (max-width: 990px) {

  .soundButton
  {
    display: block;
  }

}