@import url(https://fonts.googleapis.com/css?family=Lato:300,700,300italic);
html, body {
  height: 100%;
}

.wrapper {
  align-items: center;
  background-image: linear-gradient(to right, #000000, #2c3e74, #360a4c, #24324c, #054f7d);
  background-size: 600%;
  background-position: 0 0;
  box-shadow: inset 0 0 5em rgba(0, 0, 0, 0.5);
  display: flex;
  font-family: 'Lato', Arial, sans-serif;
  height: 100%;
  justify-content: center;
  /* Animation */
  animation-duration: 20s;
  animation-iteration-count: infinite;
  animation-name: gradients;
}

h1 {
  color: white;
  font-size: 2.4em;
  text-align: center;
  text-transform: uppercase;
}

@media (max-width: 830px) {
  h1 {
    font-size: 2em;
  }
}
@keyframes gradients {
  0% {
    background-position: 0 0;
  }
  25% {
    background-position: 50% 0;
  }
  50% {
    background-position: 90% 0;
  }
  60% {
    background-position: 60%;
  }
  75% {
    background-position: 40%;
  }
  100% {
    background-position: 0 0;
  }
}



.Modal {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(0, 0, 0, 0);
  visibility: hidden;
  
  .content {
    position: absolute;
    left: 50%;
    top: 30%;
    width: 50%;
    padding: 50px;
    border-radius: 3px;
    background: #fff;
    transform: translate(-50%, -30%) scale(0);
  }
  
  .close {
    position: absolute;
    top: 8px;
    right: 8px;
    display: block;
    width: 18px;
    height: 18px;
    padding: 5px;
    line-height: 18px;
    border-radius: 50%;
    text-align: center;
    cursor: pointer;
    background: #A38CDC;
    color: #fff;
    &:before {
    	content: '\2715';
    }
  }
  
  &.is-visible {
    visibility: visible;
    background: rgba(0, 0, 0, 0.5);
    transition: background .35s;
    transition-delay: .1s; // just delay enough to make modal visible before transitiong bg

    .content {
      transform: translate(-50%, -30%) scale(1);
      transition: transform .35s;
    }
  }
}

