body {
  background-color: #280F34;
  margin: 0;
}

.rect1 {
  position: relative;
  height: 15vw;
  width: 15vw;
  margin: 15vw;
  background-color: #BFF4ED;
  float: left;
    -webkit-transform: perspective(1px) translateZ(0);
  transform: perspective(1px) translateZ(0);
  box-shadow: 0 0 1px rgba(0, 0, 0, 0);
}

/*.rect1 div {
  height: 15vw;
  width: 15vw;
  margin: 15vw;
  background-color: #BFF4ED;
  float: left;
}*/

.rect2 {
  position: absolute;
}


/*.rect2 div {
  height: 10vw;
  width: 12vw;
  margin: 8vw 24vw;
  background-color: #B30753ad;
  float: left;
}*/

@-webkit-keyframes hvr-buzz {
  50% {
    -webkit-transform: translateX(3px) rotate(2deg);
    transform: translateX(3px) rotate(2deg);
  }
  100% {
    -webkit-transform: translateX(-3px) rotate(-2deg);
    transform: translateX(-3px) rotate(-2deg);
  }
}
@keyframes hvr-buzz {
  50% {
    -webkit-transform: translateX(3px) rotate(2deg);
    transform: translateX(3px) rotate(2deg);
  }
  100% {
    -webkit-transform: translateX(-3px) rotate(-2deg);
    transform: translateX(-3px) rotate(-2deg);
  }
}
.hvr-buzz {
   height: 10vw;
  width: 12vw;
  margin: 8vw 24vw;
  background-color: #B30753ad;
  float: left;
  -webkit-transform: perspective(1px) translateZ(0);
  transform: perspective(1px) translateZ(0);
  box-shadow: 10px 11px 0px 0px rgb(24, 31, 56);
}



.hvr-buzz:hover, .hvr-buzz:focus, .hvr-buzz:active {
  -webkit-animation-name: hvr-buzz;
  animation-name: hvr-buzz;
  -webkit-animation-duration: 0.15s;
  animation-duration: 0.15s;
  -webkit-animation-timing-function: linear;
  animation-timing-function: linear;
  -webkit-animation-iteration-count: infinite;
  animation-iteration-count: infinite;
}
.layer {
  position: fixed;
  pointer-events: none;
}

.line_h {
  position: relative;
  float: left;
  margin: 20vw 15vw;
}

.line_h div {
  position: relative;
  width: 12vw;
  height: 1vh;
  border-bottom: 1.5px solid #FFFEE6;
}

.line_v {
  position: relative;
  float: left;
  margin: 20vw 15vw;
}

.line_v div{
  margin-top: 3vw;
  position: relative;
  float: left;
  width: 1.5vw;
  height: 12vw;
  border-right: 1.5px solid #FFFEE6;
}

.cross {
  position: fixed;
}
.cross div:after{
  display: inline-block;
  content: "\00d7"; /* This will render the 'X' */
  color: #FFFEE6;
  transform: scale(10);
  float: left;
  margin: 15vw;
  margin-top: 10vw;
  animation-name: stretch1;
    animation-duration: 3s; 
  animation-timing-function: cubic-bezier(0, 0, 0.1, 0.82);
  animation-delay: 0;
  animation-direction: alternate;
  animation-iteration-count: infinite;
  animation-fill-mode: none;
  animation-play-state: running;
}
@keyframes stretch1{
  0% {
    transform: rotate(0deg) scale(5);
 
  }
  /* 70% {
    background-color: rgb(255, 187, 0);
  } */
  100% {
    transform: rotate(360deg) scale(15);
    
  }
}

.rect1:hover, .rect1:focus, .rect1:active {
  -webkit-animation-name: hvr-buzz;
  animation-name: hvr-buzz;
  -webkit-animation-duration: 0.15s;
  animation-duration: 0.15s;
  -webkit-animation-timing-function: linear;
  animation-timing-function: linear;
  -webkit-animation-iteration-count: infinite;
  animation-iteration-count: infinite;
}




@keyframes turned {
  0% {
    background-color: #ffeb60;
  }
  100% {

  }
}

body {
  animation-name: turned;
  animation-duration: 1s;
  animation-iteration-count: infinite;
  animation-direction: alternate;
  animation-fill-mode: backwards;
  animation-play-state: paused;
}


body:hover {
  animation-fill-mode: forwards;
  animation-play-state: running;
}
/*
.rect1  + div:hover {
  animation-name: gradient;
  animation-duration: 1s;
}
@keyframes gradient {
    from {background-color: red;}
    to {background-color: yellow;}
}
