@font-face {
    font-family: 'montserrat-regular';
    src: url('../font/montserrat-regular.ttf');
}

@font-face {
    font-family: 'montserrat-light';
    src: url('../font/montserrat-light.ttf');
}

@font-face {
    font-family: 'Caveat-Regular';
    src: url('../font/Caveat-Regular.ttf');
}

@font-face {
    font-family: 'Caveat-Bold';
    src: url('../font/Caveat-Bold.ttf');
}

* {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

html {
    font-family: 'montserrat-regular', sans-serif;
}

html,
body,
main {
    height: 100%;
    background: black;
}


main {
    position: relative;
    overflow: hidden;
}

main dialog {
    display: block;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    border: none;
    background-image: url("../fotos/titelgrafik.jpg");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    color: #fff;
    z-index: 99;
    opacity: 1;
    -webkit-transform: scale(1, 1);
    transform: scale(1, 1);
    text-align: center;
    font: 300 14px 'montserrat-regular';
}





#rectangle3 {
  background: #135D75;
  opacity: 0.8;
  height: 100%
}

main dialog div a {
    color: #0078a0;
    text-decoration: none;
}

main dialog:nth-of-type(2) {
    display: none;
}



.imgplay {
  width: 25%;
  z-index: 99;
  margin-bottom: 40%;
}

.button {
  cursor: pointer;
  width: 15%;
  z-index: 98;
  margin-left: 30%;
  margin-bottom: 10%;
  margin-top: 8%
}

main dialog p {
}

#title {
  width: 60%;
  z-index: 97;
  margin-left: 13%;
  margin-top: 5%;
}

#titelFussBox{
  width: 50%;
  margin-left: 23%;
}

#text {
  font-size: 1.2em;
  z-index: 96;
  padding-left: 13%;
  padding-right: 5%;
}


.quelle{
  font-size: 12px;
  padding-left: 10%;

}

main video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
}

.btnText {
  font: 300 18px 'montserrat-light';
  height: 10em;
}


/*** Button der eingeblendet wird wenn Video nicht lädt ***/
#resolution {
    position: absolute;
    top: 0;
    right: 0;
    padding: 10px 20px;
    background: #ba3a3a;
    color: #fff;
    -webkit-transform: translateY(-100%);
    transform: translateY(-100%);
    -webkit-transition-duration: 0.3s;
    transition-duration: 0.3s;
}

#resolution:before {
    content: ' ';
    border-style: solid;
    border-width: 25px 25px 25px 25px;
    border-color: transparent transparent transparent #ba3a3a;
    position: absolute;
    left: -25px;
    top: -25px;
    -webkit-transform: rotate(-45deg);
    transform: rotate(-45deg);
}

#resolution.visible {
    -webkit-transform: translateY(0);
    transform: translateY(0);
}


}

#resolution a {
    color: #fff;
    text-decoration: none;
}

.clicker {
    box-sizing: content-box;
    position: absolute;
    bottom: 50%;
    width: 130px;
    height: 60%;
    padding-top: 100px;
    background: #135D75;
    /*box-shadow: 0 0 3px #003A4C;*/
    opacity: 0.7;
    z-index: 99;
    cursor: pointer;
}

.emoji {
  position: absolute;
  bottom: 30%;
  /*box-shadow: 0 0 3px #003A4C;*/
  opacity: 0.7;
  z-index: 99;
  cursor: pointer;
}

/*.clicker p {
    font: 300 18px 'montserrat-light';
    -webkit-transform: translateY(-50%);
    transform: translateY(-50%);
    color: rgb(256, 256, 256);
}*/

#btn_left {
    padding-right: 25px;
    padding-left: 25px;
    text-align: center;
    left: 160px;
    color: #fff;
    -webkit-transform: translateX(-70%) translateY(50%);
    transform: translateX(-70%) translateY(50%);
}

#btn_left:hover {
    -webkit-transform: translateX(-60%) translateY(50%);
    transform: translateX(-60%) translateY(50%);
}

#btn_left.out {
    left: -100px;
}

#btn_right {
    padding-right: 25px;
    padding-left: 25px;
    text-align: center;
    right: 160px;
    color: #fff;
    -webkit-transform: translateX(70%) translateY(50%);
    transform: translateX(70%) translateY(50%);
}

#emojileft {
  text-align: right;
  left: 130px;
  font-size: 50px;
  -webkit-transform: translateX(-70%) translateY(50%);
  transform: translateX(-70%) translateY(50%);
}

#emojileft.out {
    left: -100px;
}

#emojiright {
  text-align: right;
  right: 50px;
  font-size: 50px;
  -webkit-transform: translateX(-70%) translateY(50%);
  transform: translateX(-70%) translateY(50%);
}

#emojiright.out {
    right: -120px;
}

#btn_right:hover {
    -webkit-transform: translateX(60%) translateY(50%);
    transform: translateX(60%) translateY(50%);
}

#btn_right.out {
    right: -100px;
}

/*#text {
    box-sizing: border-box;
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    width: 90%;
    max-width: 600px;
    margin: 0 auto;
    padding: 15px 20px;
    /*abrunden*//*
    border-radius: 100px;
    background: #003A4C;
    box-shadow: 0 0 5px #003A4C;
    opacity: 0.8;
    text-align: center;
    color: rgb(256, 256, 256);
    font: 300 18px 'montserrat-regular';
} */

/* Zeitleiste*/
#loading {
    position: absolute;
    bottom: 20px;
    left: 50%;
    width: 90%;
    height: 2px;
    border-radius: 6px;
    background: #003A4C;
    box-shadow: 0 0 5px #003A4C;
    opacity: 0.8;
    -webkit-transform: translateX(-50%);
    transform: translateX(-50%);
}


/*** toggling classes ***/

.animateMotion {
    -webkit-transition-duration: 0.3s;
    transition-duration: 0.3s;
}

.pulse {
    -webkit-animation: pulse 2s infinite cubic-bezier(0.66, 0, 0, 1);
    animation: pulse 2s infinite cubic-bezier(0.66, 0, 0, 1);
}

.fade {
    opacity: 0;
    -webkit-transform: scale(0.7, 0.7);
    transform: scale(0.7, 0.7);
}

.hide {
    display: none;
}

.outrun {
    -webkit-animation: outrun 15s;
    animation: outrun 14s;
    -webkit-animation-timing-function: linear;
    animation-timing-function: linear;
    -webkit-animation-fill-mode: forwards;
    animation-fill-mode: forwards;
}

.paused {
    -webkit-animation-play-state: paused;
    animation-play-state: paused;
}


/*** animations ***/
/*animierter Schatten der Box*/
@-webkit-keyframes pulse {
    to {
        box-shadow: 0 0 30px rgba(232, 76, 61, 0);
    }
}

@keyframes pulse {
    to {
        box-shadow: 0 0 0 30px rgba(232, 76, 61, 0);
    }
}

/*Zeitleiste die zurückläuft*/
@-webkit-keyframes outrun {
    to {
        width: 0;
    }
}

@keyframes outrun {
    to {
        width: 0;
    }
}

@-webkit-keyframes rotate {
    from {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }
    to {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

@keyframes rotate {
    from {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }
    to {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}


/*** no-js ***/

.no-js main dialog:nth-of-type(2) {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
}
