@font-face {
font-family: 'Gloria Hallelujah';
src: url(GloriaHallelujah-Regular.ttf);
}
body::-webkit-scrollbar {
  display: none;
}

body{
  background-color: #fffaed;
  font-family: 'Gloria Hallelujah';
  height: 100vh;
  width: 100vw;
  overflow: hidden;
}

#back-button {
  background-color: #fffaed;
  border: none;
  color: solid black;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  margin: 0 auto;
  cursor: pointer;
  animation: fadeIn2 ease 8s;
}

:root {
  --webbprojekt: black;
overflow: hidden;
}

.header{
  border: #fffaed;
  position: relative;
}






li{
  list-style: none;
  position: relative;
  display: inline-flex;
  margin-left: 5%;
  margin-top: 0;
  left: -10%;
  animation: fadeIn2 ease 3.5s;
}

a{
    color: var(--webbprojekt);
    text-decoration: none;
    font-size: 25px;
    position: relative;
}

.biglogo{
  position: relative;
  width: auto;
  height: 50%;
  display: inline-block;
  animation: fadeIn2 ease 2s;
}

ul{
  padding-inline-start: 10%;
}


.hero {
  height: 100%;
  position: relative;
  max-width: 40%;
  display: flex;
  margin: 0 auto;
  border: #fffaed;
  white-space: nowrap;
  flex-direction: column;
  backface-visibility: hidden;
  animation: fadeIn2 ease-in-out 2s;
}

.frontimage, .backimage {
  position: absolute;
  top: 0;
  width: 100%;
  height: auto;
  margin: 0 auto;
  left: 50%;
  transform: translateX(-50%);
  transition: opacity 0.4s ease-in-out;
}

.backimage {
  bottom: 67.5%;
  z-index: -1;
  opacity: 0;
  transition-delay: 0.4s;
}

.frontimage:hover + .backimage,
.backimage:hover {
  z-index: 1;
  opacity: 1;
  transition-delay: 0s;
  will-change: transform, opacity;
}

.frontimage:hover {
  opacity: 0.5;
  transition-delay: 0s;
  will-change: transform, opacity;
}





.links1 {
    text-align: center;
    vertical-align: middle;
}

a{
  color: var(--webbprojekt);
  text-decoration: none;
  font-size: 25px;
  position: relative;
}

.logo {
    text-align: center;
    position: relative;
}

@keyframes fadeIn2 {
  0% {opacity:0;}
  100% {opacity:1;}
}

div{
  box-sizing:border-box;
}

.typewriter h1 {
  white-space:nowrap;
  max-width: 100%;
  position: relative;
  pointer-events: none;
  cursor: crosshair;
  z-index: 9;
  font-size: 25px;
  color: #ff1a1a;
  font-family: 'Gloria Hallelujah', cursive;
  overflow: hidden; /* Ensures the content is not revealed until the animation */
  margin: 0 auto; /* Gives that scrolling effect as the typing happens */
  letter-spacing: .15em; /* Adjust as needed */
  animation:
    typing 6s steps(30, end),
    blink-caret .25s step-end infinite;
    animation-duration: 4s;
}


.typewriter2{
  max-width: 50%;
}



@keyframes typing {
  from { width: 0 }
  to { width: 50% }
  0% {opacity:0;}
  25% {opacity:1;}
}



@media (max-width: 768px) {

.typewriter h1{
  font-size: 15px;
  animation-duration: 2s;
  animation-timing-function: steps(18),step-end;
}

.frontimage, .backimage{
  width: 120%;
}

.hero{
  width: 100%;
}


    }
