/* Typography */
@import url('https://fonts.googleapis.com/css?family=Aref+Ruqaa');

* {box-sizing: border-box;}

html,body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  position: fixed;
  overflow: hidden;
}

body {
  margin: 0;
  font-family: 'Aref Ruqaa', serif;
  font-size: 18px;
  font-weight: bold;
  color: rgb(123, 83, 37);
}

h1 {
  font-size: 30px;
  line-height: 34px;
  padding: 5px 0 40px 0;
  margin: 0 0 30px 0;
  font-family: 'Aref Ruqaa', serif;
  position: relative;
  color: #b45a1a;
}

.timeline_message,
.paperbox h1 {
  font-size: 24px;
  padding: 20px 0;
  margin: 0 0 20px 0;
  text-align: center;
}

h2 {
  font-size: 24px;
  line-height: 30px;
  padding: 20px 0 0 0;
  color: #b45a1a;
  margin: 0;
  font-family: 'Aref Ruqaa', serif;
}

p {
  margin: 0 0 10px 0;
}

.ta-center {
  text-align: center;
  padding-top: 10px;
}

/* Grid */
.row {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  margin-right: -15px;
  margin-left: -15px;
  justify-content: center;
}

.col-6 {
  position: relative;
  width: 100%;
  min-height: 1px;
  padding-right: 15px;
  padding-left: 15px;
  -webkit-box-flex: 0;
  -ms-flex: 0 0 50%;
  flex: 0 0 50%;
  max-width: 50%;
}

@media (max-width: 480px) {
  .col-6 {
    -ms-flex: 0 0 100%;
    flex: 0 0 100%;
    max-width: 100%;
  }
}

.d-flex {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
}

.align-items-center {
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
}

.justify-content-center {
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
}

/* Pop Up */

* {box-sizing: border-box;}

.paperbox {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  max-height: 100%;
  height: 100%;
  width: 100%;
  padding: 20px;
  top: 0;
  margin: 0 auto;
  position: absolute;
  transform: scale(0);
  transition: transform 0.3s linear;
}
.paperbox.open{
  transform: scale(1);
}

.paperbox_inner {
  height: 100%;
  width: 100%;
  position: relative;
  background: url('/img/bg-repeat.jpg') repeat center center;
  display: flex;
}

.paperbox_inner_content {
  padding: 0px 10px;
  position: relative;
  z-index: 3;
  overflow-y: auto;
  overflow-x: hidden;
  flex: 1 1 100%;
  /* Inhalt immer zentrieren, und wenn nötig, scrollbar */
  align-self: center;
  max-height: 100%;

  /* Inhalt ausfaden & scrollbar auf das ganze Modal legen */
  margin-left: -10px;
  margin-right: -10px;
  padding: 20px;

  padding-top: 30px;
  padding-bottom: 30px;
  text-align: center;
}

@media (min-width: 768px) {
  .paperbox_inner_content {
    padding-left: 40px;
    padding-right: 40px;
  }
}
@media (min-width: 1024px) {
  .paperbox_inner_content {
    padding-left: 80px;
    padding-right: 80px;
  }
}
.paperbox_inner_content iframe {
  width: 100%;
  height: 100%;
}


/* Repeat Borders Left & Right */

.paperbox_inner:before,
.paperbox_inner:after {
  width: 70px;
  height: 100%;
  position: absolute;
  top: 0px;
  content: "";
  z-index: 2;
}
.paperbox_inner:before {
  left: -20px;
  background: url('/img/repeat-left.png') repeat-y top left;
}
.paperbox_inner:after {
  right: -20px;
  background: url('/img/repeat-right.png') repeat-y top left;
}

/* Repeat Borders Top & Bottom */

.paperbox_inner_top,
.paperbox_inner_bottom {
  width: 100%;
  height: 45px;
  position: absolute;
  left: 0px;
  z-index: 6;
}
.paperbox_inner_top {
  width: 100%;
  top: -20px;
  background: url('/img/repeat-top.png') repeat-x top left;
}
.paperbox_inner_bottom {
  bottom: -20px;
  background: url('/img/repeat-bottom.png') repeat-x top left;
}

/* Repeat Borders Corners */

.paperbox_inner_top:before,
.paperbox_inner_bottom:before,
.paperbox_inner_bottom:after {
  width: 91px;
  height: 101px;
  position: absolute;
  content: "";
  z-index: 3;
}

/* Repeat Borders Corners Top */

.paperbox_inner_top:before {
  top: 0px;
  left: -25px;
  background: url('/img/corner-top-left.png') no-repeat top left;
}

/* Repeat Borders Corners Bottom */

.paperbox_inner_bottom:before {
  bottom: 0px;
  left: -25px;
  background: url('/img/corner-bottom-left.png') no-repeat top left;
}
.paperbox_inner_bottom:after {
  bottom: 0px;
  right: -25px;
  background: url('/img/corner-bottom-right.png') no-repeat top left;
}

/* Close Corner */

.paperbox_inner_close {
  width: 135px;
  height: 115px;
  position: absolute;
  top: -22px;
  right: -29px;
  z-index: 15;
  background: url('/img/close-bg.png') no-repeat top left;
  pointer-events: none;
}

.paperbox_inner_close_button {
  float: right;
  height: 60px;
  width: 70px;
  pointer-events: all;
  cursor: pointer;
}

/* Helper */

.m-top {
  margin-top: 30px;
}
.m-bot {
  margin-bottom: 30px;
}

@media (min-width: 481px) {
  .m-top-min {
    margin-top: 30px;
  }
}

/* Form */

.input-wrap {
  border: 1px solid rgba(206,138,59,1);
  padding: 2px;
  border-radius: 2px;
}
.comment{
  width: 90%;
}

label {
  display: flex;
  font-family: 'Aref Ruqaa', serif;
  font-size: 16px;
  color: #b45a1a;
  margin: 5px 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 10px;
  min-width: 85px;
}

input {
  width: 100%;
  padding: 10px;
  border: 2px solid rgba(206,138,59,0.5);
  border-radius: 2px;
  background: rgba(235,204,152,0.5);
  font-family: 'Aref Ruqaa', serif;
  font-size: 16px;
  color: #1e140c;
  transition: background-color .3s;
}
input[type="radio"], input[type="checkbox"]{
  width: auto;
}

input:hover,
input:focus,
input:active {
  background: rgba(206,138,59,0.4);
}

.submit-wrap {
  width: 100%;
  margin-top: -15px;
  position: relative;
  z-index: 5;
}

/* splashscreen */

.splashscreen {
  width: 100%;
  min-height: 100vh;
  height: auto;
  background: url('/img/bg.jpg') center center repeat;
  position: relative;
  overflow: hidden;
  overflow-y: scroll;
}

.splashscreen_inner {
  padding-top: 140px;
  padding-bottom: 140px;
  width: 100%;
  min-height: 100%;
  height: auto;
  position: relative;
}

.container {
  max-width: 650px;
  padding: 0 30px;
  margin: 0 auto;
}

.splashbox {
  border: 2px solid rgba(206,138,59,1);
  padding: 1px;
  background: url('/img/bg.jpg') center center repeat;
  position: relative;
}

.splashbox_inner {
  border: 1px solid rgba(206,138,59,1);
  padding: 50px 30px 60px 30px;
  text-align: center;
}

@media (min-width: 501px){
  .splashbox_inner {
    padding-top: 70px;
  }
}

.paperbox h1,
.splashbox_inner_headline {
  position: relative;
}

.paperbox h1:before,
.paperbox h1:after,
.splashbox_inner_headline:before,
.splashbox_inner_headline:after {
    width: 100px;
    height: 1px;
    position: absolute;
    left: 50%;
    bottom: 0px;
    margin-left: -50px;
    content: "";
    border-bottom: 1px solid rgba(206,138,59,1);
}

.paperbox h1:after,
.splashbox_inner_headline:after {
  bottom: -2px;
}

.splash-start {
  position: absolute;
  bottom: -44px;
  left: 50%;
  margin-left: -82px;
  text-decoration: none;
}

.submit {
  display: inline-block;
  width: 165px;
  height: 85px;
  padding-bottom: 8px;
  border: none;
  outline: none;
  background: url('/img/submitbutton.png') no-repeat top left;
  font-family: 'Aref Ruqaa', serif;
  font-size: 20px;
  font-weight: bold;
  color: #b45a1a;
  cursor: pointer;
  line-height: 75px;
  text-align: center;
  text-decoration: none;
}

.bg-left {
  width: 384px;
  height: 506px;
  position: absolute;
  left: 0px;
  top: 0px;
  background: url('/img/bg-left.png') no-repeat top left;
}
@media (max-width: 500px) {
  .bg-left {
    top: -30px;
    left: -10px;
  }
}

@media (min-width: 501px) {
  .bg-right {
    width: 176px;
    height: 289px;
    position: absolute;
    right: 0px;
    top: 0px;
    background: url('/img/bg-right.png') no-repeat top left;
  }
}

.bg-bottom-right {
  width: 512px;
  height: 251px;
  position: absolute;
  right: 0px;
  bottom: 0px;
  background: url('/img/bg-bottom-right.png') no-repeat top left;
}

.big-banner {
  width: 864px;
  height: 176px;
  position: absolute;
  left: 50%;
  top: -100px;
  margin-left: -432px;
  background: url('/img/bigbanner.png') no-repeat center center;
  background-size: contain;
}

@media (max-width: 500px) {
  .big-banner {
    width: 600px;
    height: 122px;
    position: absolute;
    left: 50%;
    top: -60px;
    margin-left: -300px;
    background: url('/img/bigbanner.png') no-repeat center center;
    background-size: contain;
  }
}

video{
  max-width: 100%;
}

.splash{
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background: url('/textures/back.jpg') no-repeat center center;
  background-size: cover;
}

.resetBtn{
  position: absolute;
  width: 50px;
  height: 50px;
  background: url('/img/bin.png') no-repeat center center;
  cursor: pointer;
  bottom: 0;
  right: 0;
}

/* Vincent */

:root {
  --timeline-image: 25px;
  --timeline-container-top: 15px;
  --timeline-container-bottom: 10px;
}

@media(min-width: 768px) {
  :root {
    --timeline-image: 50px;
    --timeline-container-top: 20px;
    --timeline-container-bottom: 15px;
  }
}

:root {
  --timeline-handler: calc(var(--timeline-image) + var(--timeline-container-top) + var(--timeline-container-bottom));
}

@keyframes correct {
  from {
    box-shadow: 0 0 0 0 #bf9e23;
  }
  50% {
    box-shadow: 0 0 20px 20px #bf9e23;
  }
  to {
    box-shadow: 0 0 0 0 #bf9e23;
  }
}
@keyframes wrong {
  from {
    box-shadow: 0 0 0 0 #8f1703;
  }
  50% {
    box-shadow: 0 0 20px 20px #8f1703;
  }
  to {
    box-shadow: 0 0 0 0 #8f1703;
  }
}

.timeline_zeitstrahl {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}
.timeline_zeitstrahl .timeline_container {
  flex: 0 0 30%;
  position: relative;
  text-align: center;
  margin-bottom: 10px;
}

@media(min-width: 768px) {
  .timeline_zeitstrahl .timeline_container {
    flex-basis: 23%;
  }
}

.timeline_zeitstrahl .timeline_container.highlight {
  font-weight: bold;
}

.timeline_zeitstrahl .timeline_container:drop {
  font-weight: bold;
}

.timeline_zeitstrahl .timeline_name {
  color: #491104;
  padding: 0px 10px 5px;
}

@media(min-width: 768px) {
  .timeline_zeitstrahl .timeline_name {
    padding: 10px;
  }
}
.timeline_zeitstrahl .timeline_cross {
  display: inline-block;
  position: relative;
  /* Flex um die linie davor / danach mittig zu positionieren */
  display: flex;
  align-items: center;
}

.timeline_zeitstrahl .timeline_cross:before,
.timeline_zeitstrahl  .timeline_cross:after {
  content: '';
  margin-top: 5px;
  background-color: #D7A96B;
  height: 1px;
  width: 100%;
  display: block;
  z-index: -1;
}

.timeline_zeitstrahl .timeline_handler {
  bottom: 0;
  z-index: 1;
}

.timeline_handler.wrong {
  animation: wrong .3s forwards;
}


.timeline_zeitstrahl .timeline_image_container {
  position: relative;
}
.timeline_zeitstrahl .timeline_image_container:before,
.timeline_zeitstrahl .timeline_image_container:after {
  content: '';
  margin-left: 50%;
  background-color: #D7A96B;
  width: 1px;
  display: block;
  z-index: -1;
  margin-top: cacl(var(--timeline-container-top) - var(--timeline-container-bottom));
}

.timeline_zeitstrahl .timeline_image_container:before{
  top: var(--timeline-container-top) * -1;
  height: var(--timeline-container-top);
}

.timeline_zeitstrahl .timeline_image_container:after {
  height: var(--timeline-container-bottom);
}

.has_item .timeline_image_container:before,
.has_item .timeline_image_container:after{
  display: none;
}

.timeline_zeitstrahl .timeline_image {
  width: var(--timeline-image);
  height: var(--timeline-image);
  border: 1px solid #D7A96B;
  border-radius: 50%;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}

.has_item .timeline_image {
  width: var(--timeline-handler);
  height: var(--timeline-handler);
  animation: correct .5s forwards;
}

.timeline_suggesion {
  border: 1px solid #D7A96B;
  padding: 2px;
}
.timeline_suggestion_entry {
  text-align: center;
  border: 1px solid #D7A96B;
}

.timeline_suggestion_title {
  color: #7B5226;
  padding: 10px;
}

@media (min-width: 768px) {
  .timeline_suggestion_title {
    padding: 10px 10px 20px 10px !important;
  }
}

.timeline_hint,
.timeline_suggestion_title {
  line-height: 20px;
}

/* Mobile immer platz für 2 Zeilen, damit das bild nciht wackelt */
@media (max-width: 767px) {
  .timeline_suggestion_title {
    height: calc(44px + 20px);
  }
}

.timeline_suggestion_title,
.timeline_suggesion {
  margin-top: calc(var(--timeline-handler) / 2);
}

.timeline_handler {
  position: absolute;
  width: var(--timeline-handler);
  height: var(--timeline-handler);
  left: calc(50% - var(--timeline-handler) / 2);
  margin-top: calc(var(--timeline-handler) / -2);

  border-radius: 50%;
  border: 2px solid #D6AA6B;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  box-shadow: 0 0 10px rgba(0, 0, 0, .2);
}

.timeline_hint {
  background-color: rgba(215, 168, 107, 1);
  text-align: center;
  padding: 10px;
  position: relative;
}

@media (min-width: 768px) {
  .timeline_hint {
    padding: 20px 10px !important;
  }
}

.timeline .timeline_hint:before {
  content: '';
  position: absolute;
  top: -20px;
  left: calc(50% - 10px);
  width: 0;
  height: 0;
  border: 10px solid transparent;
  border-bottom-color: rgba(215, 168, 107, 1);
}

.timeline_message .submit {
  margin-top: 20px;
  margin-right: auto;
  margin-left: auto;
}


.timeline_message {
  position: absolute;
  top: 20px;
  right: 20px;
  /* bottom: 20px; */
  left: 20px;
  /*background-color: rgba(215, 168, 107, .75);*/
  z-index: 2;
  transition: opacity .5s;

  display: flex;
  justify-content: center;
  align-items: center;
}

.timeline:not(.timeline_show_message) .timeline_message {
  opacity: 0;
  pointer-events: none;

}

.timeline > *:not(.timeline_message) {
  opacity: 1;
  transition: opacity .5s;
}

.timeline_show_message > *:not(.timeline_message) {
  opacity: 0;
}
.timeline_show_message .timeline_message {
  opacity: 1;
  pointer-events: all;
}

.progress{
  position: absolute;
  height: 40px;
  width: 300px;
  top: 15px;
  left: 50%;
  margin-left: -150px;
  display: flex;
  justify-content: space-between;
  display: none;
}
.progress .point{
  width: 40px;
  height: 40px;
  border-radius: 20px;
  border: 2px solid #ce8a3b;
  display: flex;
  justify-content: center;
  align-items: center;
}
.progress .point .coin{
  width: 30px;
  height: 30px;
  border-radius: 15px;
  background-color: #bf9e23;
  display: none;
}
li{
  text-align: left;
}

.popup{
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  position: absolute;
  font-size: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #b45a1a;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  pointer-events: none;
  padding: 50px;
  transform: scale(0);
  transition: transform 0.3s linear;
}
.popup.open{
  transform: scale(1);
}