body{
	font-family:Arial, Calibri;
}

.typewriter{
	border:1px solid black;	
	max-width:700px;
	width:700px;
	margin:0 auto;
	margin-top:100px;
}

.typewriter h1 {
  overflow: hidden; /* Ensures the content is not revealed until the animation */
  border-right: .15em solid orange; /* The typwriter cursor */
  white-space: nowrap; /* Keeps the content on a single line */
  margin: 0 auto; /* Gives that scrolling effect as the typing happens */
  letter-spacing: .1em; /* Adjust as needed */
  font-size:24px;
  animation: 
    typing 3.5s steps(40, end),
    blink-caret .75s step-end infinite;
}


.letter-changer::after {
	-webkit-animation: changeLetter 10s linear infinite alternate;
	animation: changeLetter 10s linear infinite alternate;
	-webkit-animation-delay: -18s; /* Chrome, Safari, Opera */
	animation-delay: -18s;
}

@keyframes changeLetter {
  0% {
    content: "Website";
    color:black;
  }
  15%{
  	color:white;
  }
  30% {
    content: "Webshop";
    color:black;
  }
  45%{
  	color:white;
  }
  60% {
    content: "Online Marketing";
    color:black;
  }
  80%{
  	color:white;
  }
  100% {
  	content: "Bedrijf";
  	color:black;
  }
}


/* The typing effect */
@keyframes typing {
  from { width: 0 }
  to { width: 100% }
}


@keyframes back{
	from{ width:100%; }
	to { width:80%; }
}


/* The typewriter cursor effect */
@keyframes blink-caret {
  from, to { border-color: transparent }
  50% { border-color: orange; }
}

