/*
.js-count-particles{
  font-size: 1.1em;
}

#stats,
.count-particles{
  -webkit-user-select: none;
  margin-top: 5px;
  margin-left: 5px;
}

#stats{
  border-radius: 3px 3px 0 0;
  overflow: hidden;
}

.count-particles{
  border-radius: 0 0 3px 3px;
}
*/

/* ---- particles.js container ---- */
a{
   text-decoration: none;
}

@import url(https://fonts.googleapis.com/css?family=Open+Sans:800);
#particles-js{
  width: 100%;
  height: 100%;
  background-color: black;
  background-repeat: repeat-y;
  position:relative;
  padding: 0;
  margin: 0;
  background-size: cover;
  overflow: auto;
  
}

@keyframes example {
  from {background-color: black;}
  to {background-color: white;}


 }
 @keyframes example2 {
  from {color: black;}
  to {color: white;}


 }



.hero {
  background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
	background-size: 400% 400%;
	animation: gradient 15s ease infinite;
	height: 100vh;
  background-color: #0040C1;
  position: relative;
  height: 100vh;
  overflow: hidden;
  font-family: 'Montserrat', sans-serif;
}

.hero__ {
  background-color: black;
  color: #fff;
  position: relative;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%);
          transform: translate(-50%, -50%);
  font-size: 50px;
  z-index: 1;
  font-family:  'Fredoka One';
}

.cube {
  position: absolute;
  top: 80vh;
  left: 45vw;
  width: 10px;
  height: 10px;
  border: solid 1px #003298;
  -webkit-transform-origin: top left;
          transform-origin: top left;
  -webkit-transform: scale(0) rotate(0deg) translate(-50%, -50%);
          transform: scale(0) rotate(0deg) translate(-50%, -50%);
  -webkit-animation: cube 12s ease-in forwards infinite;
          animation: cube 12s ease-in forwards infinite;
}
.cube:nth-child(2n) {
  border-color: #0051f4;
}
.cube:nth-child(2) {
  -webkit-animation-delay: 2s;
          animation-delay: 2s;
  left: 25vw;
  top: 40vh;
}
.cube:nth-child(3) {
  -webkit-animation-delay: 4s;
          animation-delay: 4s;
  left: 75vw;
  top: 50vh;
}
.cube:nth-child(4) {
  -webkit-animation-delay: 6s;
          animation-delay: 6s;
  left: 90vw;
  top: 10vh;
}
.cube:nth-child(5) {
  -webkit-animation-delay: 8s;
          animation-delay: 8s;
  left: 10vw;
  top: 85vh;
}
.cube:nth-child(6) {
  -webkit-animation-delay: 10s;
          animation-delay: 10s;
  left: 50vw;
  top: 10vh;
}
.card img{
  width: 100%; 
  display:block;
  position: absolute;
  z-index:-1;
  border-radius: 30px;
  height: 100%;
  animation: photo2 3s ease-in forwards;
  align-items: center;
  filter: grayscale(20%);
  
}
.card {
  /*animation: box 4s ease-in alternate infinite;*/
  max-width: 400px;
  margin: auto;
  text-align: center;
  font-family: arial;
  position: absolute;
  top: 20%;
  left: 0;
  right: 0;
  z-index: 2;
  border-radius: 30px;
  
  
}

.title {
  color: rgb(255, 255, 255);
  font-size: 38px;
  opacity: 0;
}

button {
  border: none;
  outline: 0;
  display: inline-block;
  padding: 8px;
  color: white;
  background-color: #000;
  text-align: center;
  cursor: pointer;
  width: 80%;
  font-size: 38px;
  border-radius: 30px;
  opacity: 0;
  
}

a {
  text-decoration: none;
  font-size: 44px;
  color: black;
  opacity: 0;
}
p{
  font-size: 20px;
  opacity: 0;
}
h1{
  opacity: 0;
}
.card:hover {
  animation: box 4s ease-in forwards;
  
}
.card:hover img{
  animation: photo1 0.4s ease-in forwards;
  

}


.card:hover>.title{
  animation: photo2 1s ease-in forwards;
  
}
.card:hover a{
  animation: photo2 1s ease-in forwards;
  
}
.card:hover P{
  animation: photo2 1s ease-in forwards;
}

.card:hover h1{
  animation: photo2 1s ease-in forwards;
}
button:hover, a:hover {
  opacity: 0.7;
}
.card:hover button {
  animation: show 2s linear forwards;
  opacity: 1;
}
@keyframes photo1{
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}
@keyframes photo2{
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes box{
  0% {
		opacity: 0;
	}
	50% {
		box-shadow: 0 4px 8px 4px rgb(0, 0, 0,0.6);
    opacity: 0.6;
	}
	100% {
		box-shadow: 0 4px 8px 4px rgb(0, 0, 0,0.6);
    opacity: 1;
	}
}

@keyframes show{
	0% {
		background-color: #000;
    width: 0%;
	}
	50% {
		background-color: #000;
    width: 50%;
	}
	100% {
		background-color: #000;
    width: 80%;
	}

}
@-webkit-keyframes cube {
  from {
    -webkit-transform: scale(0) rotate(0deg) translate(-50%, -50%);
            transform: scale(0) rotate(0deg) translate(-50%, -50%);
    opacity: 1;
  }
  to {
    -webkit-transform: scale(20) rotate(960deg) translate(-50%, -50%);
            transform: scale(20) rotate(960deg) translate(-50%, -50%);
    opacity: 0;
  }
}

@keyframes cube {
  from {
    -webkit-transform: scale(0) rotate(0deg) translate(-50%, -50%);
            transform: scale(0) rotate(0deg) translate(-50%, -50%);
    opacity: 1;
  }
  to {
    -webkit-transform: scale(20) rotate(960deg) translate(-50%, -50%);
            transform: scale(20) rotate(960deg) translate(-50%, -50%);
    opacity: 0;
  }
}

@keyframes gradient {
	0% {
		background-position: 0% 50%;
	}
	50% {
		background-position: 100% 50%;
	}
	100% {
		background-position: 0% 50%;
	}
}