/* Header */
.large-header {
	position: relative;
	width: 100%;
	background: #333;
	overflow: hidden;
	background-size: cover;
	background-position: center center;
	z-index: 1;
}

#large-header {
	background-image: url('../images/background/bg_5.jpg');
}

.main-title { 
	position: absolute;
	margin: 0;
	padding: 0;
	color:  #f9f1e9;
	text-align: center;
	top: 50%; 
	left: 50%;
	-webkit-transform: translate3d(-50%, -50%, 0);
	transform: translate3d(-50%, -50%, 0);
}

.main-title, .main-text{
	text-transform: uppercase;
	font-size: 4.2em;
	letter-spacing: 0.1em;
}

.main-title .thin {
	font-weight: 200;
}

.main-text{
	position: absolute;
	top: 55%;
	left: 50%;
	margin: 0;
	padding: 0;
	color:  #f9f1e9;
	text-align: center;
	font-size: 1.5rem;
	-webkit-transform: translate3d(-50%, -50%, 0);
	transform: translate3d(-50%, -50%, 0);
}

.main-title::before, .main-title::after, .main-text::before, .main-text::after {
  content: '';
  display: block;
  width: 102%;
  height: 100%;
  background-color: #f5f6fa;
  position: absolute;
  clip-path: inset(0 0 0 0);
  animation: showText 2s forwards linear;
}

.main-title::after, .main-text::after {
  background-color: transparent;
  top: 0;
  clip-path: inset(0 99% 0 0);
  animation: blink 1s infinite, write 2s linear;
}
.main-text::before {
  animation: showText 2s 2s forwards linear;
}

.main-text::after {
  animation: blink 1s 2s infinite, write 2s 2s forwards linear;
}

.btn-index-canvas{
  position: absolute;
  top: 60%;
  left: 50%;
  -webkit-transform: translate3d(-50%, 0, 0);
  transform: translate3d(-50%, 0, 0);
  display: inline-block;
  background-color: #f9f1e9;
  color: #232323;
  border: solid 2px transparent;
  border-radius: 50px;
  padding: 1rem 2.4rem;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  transition: all .3s ease;
}

.btn-index-canvas:hover,
.btn-index-canvas:focus{
  background-color: transparent;
  color: #f9f1e9;
  border-color: #f9f1e9;
  text-decoration: none;
  -webkit-transform: translate3d(-50%, -3px, 0);
  transform: translate3d(-50%, -3px, 0);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.3);
}

/* animations */
@keyframes blink {
  50% {
    opacity: 0;
  }
}

@keyframes write {
  0% {
    background-color: #f9f1e9;
    clip-path: inset(0 99% 0 0);
  }
  50% {
    background-color: #f9f1e9;
    clip-path: inset(0 0 0 99.3%);
  }
  100% {
    background-color: #f9f1e9;
    clip-path: inset(0 0 0 99.3%);
  }
}

@keyframes showText {
  0% {
    clip-path: inset(0 0 0 0);
  }
  50% {
    clip-path: inset(0 0 0 100%);
  }
  100% {
    clip-path: inset(0 0 0 100%);
  }
}

@media only screen and (max-width : 768px) {
	.main-text {
		top: 57%;
    width: 90%;
	}

  .btn-index-canvas {
    top: 64%;
    left: 50%;
    padding: 0.85rem 1.6rem;
    font-size: 13px;
  }
}
