@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&display=swap');

header {
  align-items: center;
  display: flex;
  font-size: 28px;
  height: 100vh;
  justify-content: center;
  overflow: hidden;
  position: relative;
  text-align: left;
  transform-style: preserve-3d;
  perspective: 100px;
  font-family: 'Bebas Neue', cursive;
  color: white;
}

header:before {
  animation: fade-slide-down 2s .5s cubic-bezier(0, 0.5, 0, 1) forwards;
  background: linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,.5)),
  url(../images/hero_m.jpg) no-repeat bottom;
  background-size: cover;
  content: "";
  opacity: 0;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: -1;
}

header:after {
  animation: rotate-up .5s .5s cubic-bezier(0, 0.5, 0, 1) forwards;
  background: #F7DF70;
  //background: #9BC7E5;
  content: "";
  height: 40rem;
  left: -5%;
  position: absolute;
  right: -5%;
  top: 93%;
  transform-origin: 0 0;
  z-index: 0;
}

.header-title {
  animation-delay: .8s;
  font-size: 50px;
}

.header-subtitle {
  animation-delay: 1s;
  margin-bottom: 1rem;
}


/* Animations */
@keyframes fade-slide-down {
  0% {
	opacity: 0;
	transform: translateY(-4rem);
  }
  100% {
	opacity: 1;
	transform: none;
  }
}

@keyframes rotate-up {
  100% {
	transform: rotateZ(-2deg);
  }
}

@media screen and (min-width: 780px) {

  header {
	align-items: center;
	display: flex;
	font-size: 65px;
	height: 100vh;
	justify-content: center;
	overflow: hidden;
	position: relative;
	text-align: left;
	transform-style: preserve-3d;
	perspective: 100px;
	font-family: 'Bebas Neue', cursive;
  }
  
  
  
  header:before {
    animation: fade-slide-down 2s .5s cubic-bezier(0, 0.5, 0, 1) forwards;
    background: linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,.5)),
    url(../images/hero.jpg) no-repeat bottom;
    background-size: cover;
    content: "";
    opacity: 0;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: -1;
  }
  
  header:after {
    animation: rotate-up .5s .5s cubic-bezier(0, 0.5, 0, 1) forwards;
    background: #F7DF70;
    //background: #9BC7E5;
    content: "";
    height: 40rem;
    left: -5%;
    position: absolute;
    right: -5%;
    top: 93%;
    transform-origin: 0 0;
    z-index: 0;
  }
  
  
  
  .header-title {
    animation-delay: .8s;
    font-size: 60px;
  }

  .header-subtitle {
	  animation-delay: 1s;
    margin-bottom: 1rem;
    font-size: 30px;
  }

}