/* Reise */

#reise-body {
  overflow: hidden;
  /* kein scroll wegen Confetti */
  padding: 0;
  margin: 0;
  height: 100vh;
  width: 100vw;
  color: #fff;
  position: absolute;
  font-family: 'Muli', sans-serif;
  display: grid;
  grid-template-columns: 1fr minmax(320px, 480px) minmax(320px, 480px) 1fr;
  grid-template-rows: auto 1fr;
  grid-template-areas: 'left mid mid right' 'left val1 val2 right';
  grid-column-gap: 15px;
  background-color: #8ad2d9;
  background-image: url('travel/travel-map-water.svg');
  background-position: left bottom;
  background-size: cover 160px;
  /* auto height */
  background-repeat: no-repeat;
}

#reise-bg {
  grid-column: 1 / 5;
  grid-row: 1 / 3;
  background-image: url('reise2024.jpg');
  background-position: center;
  background-repeat: no-repeat;
  display: initial;
}

/* Added Party Class */
#reise-bg-success {
  grid-column: 1 / 5;
  grid-row: 1 / 3;
  opacity: 0;
  display: none;
  background-image: url('travel/travel-map-vienna.svg'),
    url('travel/travel-map-island_v2.svg'), url('travel/travel-map-sun.svg');
  background-position: left bottom, right calc(100vh - 354px), right top;
  background-repeat: no-repeat, no-repeat, no-repeat;
  background-size: 424px auto, 510px auto, 232px auto;
  transition: background 2s linear, opacity 0.3s linear;
}

.reise-content {
  grid-area: mid;
  justify-self: center;
  align-self: start;
  text-align: center;
  width: 800px;
}

.reise-crit {
  grid-column: 1 / 5;
  grid-row: 1 / 3;
  justify-self: center;
  align-self: start;
  display: none;
  grid-row: 1 / 3;
  padding: 0 5vw;
}

.reise-val1 {
  align-self: start;
  justify-self: end;
  grid-area: val1;
}

.reise-val2 {
  align-self: start;
  justify-self: start;
  grid-area: val2;
}

.reise-others {
  grid-column: 2 / 4;
  grid-row: 2 / 3;
  align-self: end;
  justify-self: center;
  text-align: center;
  font-size: 20px;
  padding-bottom: 20px;
}

.reise-others strong {
  color: black;
}

.reise-content h1,
.reise-crit h1 {
  padding: 30px 0 20px 0;
  font-size: 40px;
  text-transform: uppercase;
  color: #77bc1f;
  font-weight: bold;
  text-shadow: none;
}

#reise-body {
  text-shadow: 1px 1px 1px #2fbfd1, -1px -1px 1px #2fbfd1, 1px -1px #2fbfd1,
    -1px 1px #2fbfd1;
}

#reise-close {
  font-size: 40px;
  font-weight: bold;
  grid-area: right;
  align-self: start;
  justify-self: right;
  padding-right: 20px;
  text-transform: uppercase;
  cursor: pointer;
}

.reise-content p {
  padding: 20px 0 20px 0;
  font-size: 20px;
}

.reise-crit p {
  padding: 10px 0;
  font-size: 16px;
}

.reise-content h2 {
  margin: 20px 0 10px 0;
}

.reise-val1,
.reise-val2 {
  padding: 10px;
  font-size: 18px;
  border: #fff solid 2px;
  border-radius: 10px;
  font-weight: bold;
  width: 100%;
  text-align: center;
}

#reise-plane {
  position: absolute;
  left: 0px;
  top: 40vh;
  opacity: 1;
  z-index: 100;
  transition: top 6s ease 1s, left 6s ease 1s, opacity 3s ease 6s;
}

/* Confetti */
@keyframes confettiRain {
  0% {
    opacity: 1;
    margin-top: -100vh;
    margin-left: -200px;
  }

  100% {
    opacity: 1;
    margin-top: 100vh;
    margin-left: 200px;
  }
}

.confetti {
  opacity: 0;
  position: absolute;
  width: 1rem;
  height: 1.5rem;
  animation: confettiRain 7s infinite;
}

.meter {
  height: 20px;
  /* Can be anything */
  position: relative;
  margin: 0 0 20px 0;
  /* Just for demo spacing */
  background: #2fbfd1;
  border-radius: 25px;
  padding: 4px;
  box-shadow: inset 0 -1px 1px rgba(255, 255, 255, 0.3);
}

.meter > span {
  transition: all 6s ease 1s;
  display: block;
  height: 100%;
  border-top-right-radius: 8px;
  border-bottom-right-radius: 8px;
  border-top-left-radius: 20px;
  border-bottom-left-radius: 20px;
  background-color: #4d9c2d;
  background-image: linear-gradient(center bottom, #4d9c2d 37%, #77bc1f 69%);
  box-shadow: inset 0 2px 9px rgba(255, 255, 255, 0.3),
    inset 0 -2px 6px rgba(0, 0, 0, 0.4);
  position: relative;
  overflow: hidden;
}

.meter > span:after,
.animate > span > span {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background-image: linear-gradient(
    -45deg,
    rgba(255, 255, 255, 0.2) 25%,
    transparent 25%,
    transparent 50%,
    rgba(255, 255, 255, 0.2) 50%,
    rgba(255, 255, 255, 0.2) 75%,
    transparent 75%,
    transparent
  );
  z-index: 1;
  background-size: 50px 50px;
  animation: reise_move 2s linear infinite;
  border-top-right-radius: 8px;
  border-bottom-right-radius: 8px;
  border-top-left-radius: 20px;
  border-bottom-left-radius: 20px;
  overflow: hidden;
}

.animate > span:after {
  display: none;
}

@keyframes reise_move {
  0% {
    background-position: 0 0;
  }

  100% {
    background-position: 50px 50px;
  }
}
