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

body{
  background-color: #000;

}

   /* Set the position of the audio on/off button */
    #audio-button {
      position: fixed;
      top: 20px;
      right: 20px;
      z-index: 990;
       opacity: .5;
       cursor: pointer;
    }
    #audio-button:hover {
       opacity: .8;
    }

    #audio-button span {
      display: inline-block;
      width: 40px;
      height: 40px;
      background-image: url('../images/audio-off.png');
      background-size: cover;
     
    }
    #audio-button.playing span {
      background-image: url('../images/audio.png');

    }


#loader{
  background-color: #000;
/*  background-image: url('../images/loader.png');*/
  background-position: center center;
  background-repeat: no-repeat;
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
   z-index: 1000;
   text-align: center;

}

.loader-gif{
  margin-top:20%;
}

#particle-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  //z-index: 999;  /*Set a high z-index to ensure it overlays other content */
}

.parallax {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.layer {
  position: absolute;
  width: 100%;
  height: 100%;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.layer-1 {
  background-image: url('../images/background.jpg');
  z-index: -4;
}

.layer-2 {
  background-image: url('../images/midground.png');
  z-index: -3;
}

.layer-3 {
  
  background-image: url('../images/foreground.png');
  z-index: -2;
}

.layer-4 {
  
  background-image: url('../images/title.png');
  z-index: -1;
}

.legal{
  position: absolute;
  width: 100%;
  bottom: 10px;
  font-size: 10px;
  text-align: center;
  color: #fff;
  font-family:  Arial, Helvetica, sans-serif;;
}

/*lightning*/
 #lightning {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: -4;
        display: none;

  background-image: url('../images/lightning.png');
  background-size: cover;
  background-position: center;
  animation-duration: 0.2s;
  animation-name: lightning;
}

@keyframes lightning {
  0% {
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}


@media (max-width: 480px) {
  .parallax {
    height: 83vh;
  }
  .parallax .layer {
    transform: scale(1.01);
  }
}
