@import url('https://fonts.googleapis.com/css?family=Pacifico|Roboto+Slab');
body{
  margin: 0;
  padding: 0;
  background: #111111;
  overflow: hidden;
}
html{
  width: 100%;
  height: 100%;
  position: fixed;
}
.loader{
  width: 100px;
  height: 100px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  transition: all 2s;
}
.loader div{
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 50%;
  display: inline-block;
  z-index: 99;
}
.loader div:hover{
  width: 25px;
  height: 25px;
  background: #fff;
  cursor: pointer;
}
.loader div:nth-child(1){
  background: #2ecc71;
}
.loader div:nth-child(2){
  animation-delay: 0.2s;
  background: #f39c12;
}
.loader div:nth-child(3){
  animation-delay: 0.3s;
  background: #e74c3c;
}
.loader div:nth-child(4){
  animation-delay: 0.4s;
  background: #3498db;
}

.active{
  width: 25px;
  height: 25px;
}

.loading{
  animation: loading 1.5s infinite;
}

@keyframes loading {
  50%{
    transform: translateY(-40px);
  }
}

.refresh{
  animation: refresh 2s forwards;
}

@keyframes refresh {
  20%{
    opacity: 0;
  }
  100%{
    opacity: 1;
  }
}

.fadeIn{
  animation: fadeIn 2s forwards;
}

@keyframes fadeIn {
  from{
    opacity: 0;
    tansform: translate(-50%,-70%);
  }
  to{
    opacity: 1;
    transform: translate(-50%,-50%);
  }
}

.fadeOut{
  animation: fadeOut 1s forwards;
}

@keyframes fadeOut {
  to{
    opacity: 0;
    transform:translate(-50%,-60%);
  }
}
.logo{
  position: absolute;
  width: 300px;
  height: 100px;
  top: 40px;
  left: 50%;
  transform: translate(-50%,-50%);
  text-align: center;
}

.logo h1{
  font-size: 30px;
  color: rgba(255,255,255,.85);
  font-family: 'Pacifico', cursive;
}

.page1{
  position: absolute;
  top: 45%;
  left: 60%;
  transform: translate(-50%,-50%);
  text-align: left;
  transition: all 5s;
  opacity: 0;
}

.page1 h1{
  font-size: 50px;
  color: #fff;
  font-family: 'Roboto Slab', serif;
  text-shadow: 2px 2px 2px gray;
}
.page1 h1 span{
  color: rgba(230, 126, 34,0.7);
  z-index: 2;
}
.page1 h1 span:before{
  content: '';
  position: absolute;
  border-bottom: 14px solid rgba(230, 126, 34,0.4);
  top: 80px;
  left: 105px;
  transition: 0.7s all;
  width: 260px;
  z-index: 0;
}

.page1 ul{
  list-style: none;
  width: 380px;
}

.page1 ul li{
  display: inline-block;
  font-size: 30px;
  margin: 20px 15px;
  transition: all 0.5s;
  box-sizing: border-box;
  padding-top: 10px;
  width: 60px;
  height: 60px;
  text-align: center;
  border: 2px solid transparent;
}

.page1 ul li:hover{
  color: #e74c3c;
  border: 2px solid #e74c3c;
}

.page1 ul li a{
  color: white;
  text-decoration: none;
}

#writeme{
  text-align: center;
  text-decoration: none;
  position: relative;
  color: rgba(241, 86, 70,0.8);
  font-size: 15px;
  font-weight: 700;
  font-family: sans-serif;
  display: block;
  overflow: hidden;
  transition: 0.7s all;
  padding: 14px 30px;
}
#writeme:before{
  content: '';
  width: 20px;
  position: absolute;
  border-bottom: 4px solid rgba(241, 86, 70,0.8);
  top: 0;
  left: 160px;
  transition: 0.7s all;
}
#writeme:hover:before{
  left: 155px;
  width: 170px;
}

#writeme:after{
  content: '';
  width: 20px;
  position: absolute;
  border-bottom: 4px solid rgba(241, 86, 70,0.8);
  bottom: 0;
  right: 150px;
  transition: 0.7s all;
}
#writeme:hover:after{
  right: 150px;
  width: 170px;
}



#canvas{
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0px;
  left: 0px;
  z-index: -1;
}

.teddy{
  position: absolute;
  top: 50%;
  left: 27.5%;
  transform: translate(-50%,-50%);
  transition: all 3s;
  opacity: 0;
}
.teddy img{
  width: 500px;
}

.page2{
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%,-50%);
  width: 500px;
  height: 450px;
  text-align: center;
  opacity: 0;
  z-index: -1;
}
.page2 h1{
  font-size: 40px;
  font-family: 'Roboto Slab', serif;
  text-align: left;
  margin-left: 50px;
  width: 400px;
  background: linear-gradient(to right, #ffeb07, #ff00eb,#f32170, #2196f3);
  -webkit-text-fill-color: transparent;
  -webkit-background-clip: text;
}

#think{
  background: #fff;
  color: white;
  width: 400px;
  height: 200px;
  border: 4px solid gray;
  border-radius: 20px;
  box-sizing: border-box;
  background: transparent;
  padding: 20px 20px;
  font-size: 20px;
  transition: all 0.5s ease-in;
}
#think:focus{
  border: 4px solid rgba(39, 174, 96,0.8);
  border-radius: 20px;
}


#submit{
  position: absolute;
  bottom: 0px;
  left: 50%;
  transform: translateX(-50%);
  padding: 10px 20px;
  background: transparent;
  border-radius: 15px;
  text-decoration: none;
  color: white;
  border: 3px solid white;
  box-sizing: border-box;
  transition: all 0.5s ease-out;
}
#submit:hover{
  color: black;
  background: white;
}

#back{
  color: rgba(255,255,255,.5);
  position: absolute;
  top: 0px;
  left: 20px;
  padding: 10px 30px;
  border-radius: 30px;
  transition: all 0.5s;
  font-size: 20px;
  cursor: pointer;
  text-transform: uppercase;
  font-family: arial;
  z-index: 99;
}
#back:hover{
  background: rgba(255,255,255,.2);
}

#forward{
  color: rgba(255,255,255,.5);
  position: absolute;
  top: 0px;
  right: 20px;
  padding: 10px 30px;
  border-radius: 30px;
  transition: all 0.5s;
  font-size: 20px;
  cursor: pointer;
  text-transform: uppercase;
  font-family: arial;
  z-index: 99;
}
#forward:hover{
  background: rgba(255,255,255,.2);
}

#copyright{
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.2);
  font-size: 14px;
  font-family: arial;
}

#txtimpressum{
  position: absolute;
  right: 20px;
  bottom: 15px;
  color: rgba(46, 204, 113,0.6);
  font-family: arial;
  text-decoration: underline;
  cursor: pointer;
  font-weight: 600;
}

.impressum{
  font-family: arial;
  color: #000;
  width: 300px;
  height: 100px;
  background:#fff;
  text-align: center;
  border-top-left-radius: 30px;
  border-bottom-left-radius: 30px;
  position: absolute;
  top: 0px;
  right: -300px;
}
.impressum p{
  padding-top: 5px;
}

.slideIn{
  animation: slideIn 0.5s forwards;
}

@keyframes slideIn {
  to{
    right: 0px;
  }
}

.slideOut{
  animation: slideOut 0.5s forwards;
}

@keyframes slideOut{
  to{
    right: -300px;
  }
}

@media screen and (max-width: 1400px) {
    .teddy{
      opacity: 0;
      z-index: -1;
      display: none;
    }
    .page1{
      left: 50%;
      top: 50%;
      transform: translate(-50%,-50%);
    }
    body,html{
      overflow: hidden;
    }
}

@media screen and (max-width: 800px){
  .page1 h1{
    text-align: center;
  }
}


@media only screen and (max-width: 420px){
  .page1 ul{
    width: 200px;
  }
  .page1{
    top: 50%;
  }
  .page1 h1{
    font-size: 10px;
    margin-bottom: -30px;
  }
  .page1 h1 span:before{
    display: none;
  }
  #maintext{
    font-size: 50px;
  }
}
@media screen and (max-width: 375), screen and (max-height: 700px){
  .page1{
    top: 50%;
  }
}

@media screen and (max-width: 500px){
  .page2 h1{
    text-align: center;
  }
  #think{
    width: 70vw;

  }
}
