html,
body {
  font-family: "Roboto", Helvetica, Arial, sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

header {
  padding: 20px;
}

footer {
  text-align: center;
  padding: 20px;
  padding-bottom: 80px;
}

a {
  color: #917236;
  text-decoration: none;
  -webkit-transition: color 0.2sease-in-out 0s;
  -moz-transition: color 0.2s ease-in-out 0s;
  -o-transition: color 0.2s ease-in-out 0s;
  -ms-transition: color 0.2s ease-in-out 0s;
  transition: color 0.2sease-in-out 0s;
}

h1,
h2,
h3,
h4,
.headline {
  font-family: "Optima", Helvetica, Arial, sans-serif;
  color: #555;
  margin-top: 2rem;
  margin-bottom: 2rem;
  font-size: 24px;
}

.content {
  font-size: 15px;
  line-height: 24px;
  margin-bottom: 2rem;
  color: #787878;
}

.button-group {
  display: flex;
  max-width: 100%;
  gap: 5px;
}

.button {
  font-family: "Optima", Helvetica, Arial, sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 21px;
  width: auto;
  margin: 0 0 10px;
  padding: 14px 40px;
  color: #555;
  background: 0 0;
  border: 1px solid #555;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
  display: inline-block;
  align-self: flex-start;
  letter-spacing: 1px;
  cursor: pointer;
}

.button--small {
  padding: 14px 18px;
  border: 1px solid #917236;
  color: #917236 !important;
}

.button--small:hover {
  color: #fff !important;
}

.button--full {
  margin-top: 20px;
  width: 100%;
}

.button:hover,
.button:focus {
  color: #fff;
  border: 1px solid #917236;
}

.button::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #917236;
  z-index: -1;
  opacity: 0;
  transform: scale3d(0.5, 1, 1);
  transition: transform 0.4s, opacity 0.4s;
  transition-timing-function: cubic-bezier(0.2, 1, 0.3, 1);
}

.button:hover::before,
.button:focus::before {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  -moz-transform: translate3d(0, 0, 0) scale3d(1, 1.05, 1);
}

.tablist {
  display: flex;
  justify-content: space-around;
  border: 2px solid #917236;
  margin-bottom: 20px;
  overflow: hidden;
}

.tablist .tab {
  padding: 10px 20px;
  cursor: pointer;
  font-size: 1.5rem;
  color: #555;
  transition: color 0.3s ease-in-out, background-color 0.3s ease-in-out;
  flex: 1;
  text-align: center;
  background: transparent;
  border: none;
}

.tablist .tab:hover,
.tablist .tab:focus {
  color: #917236;
  background-color: rgba(145, 114, 54, 0.1);
}

.tablist .tab.selected {
  color: #fff;
  background-color: #917236;
}

.logo {
  width: auto;
  height: 50px;
  margin: 0 auto;
  display: block;
}

.page__wrapper {
  padding: 0 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.page__image {
  width: 100%;
  height: auto;
}

.menu {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 0;
  background: rgba(0, 0, 0, 0.8);
  overflow: hidden;
  transition: height 0.5s ease-in-out;
  z-index: 99;
}

.menu {
  font-family: "Optima", Helvetica, Arial, sans-serif;
  font-size: 1.5rem;
  color: white;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: height 0.5s ease-in-out, font-size 0.5s ease-in-out,
    color 0.5s ease-in-out;
}

.show {
  height: 100%;
}

.footer-links {
  display: flex;
  justify-content: space-between;
  padding: 20px;
}

.menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.menu ul li a {
  color: white;
  transition: all 0.3s ease-in-out;
}

.menu ul li a:hover,
.menu ul li a:focus {
  color: #917236;
}

#toggleNav {
  position: fixed;
  bottom: 0 !important;
  width: 100%;
  z-index: 100;
  background-color: #917236;
  color: white;
  margin-bottom: 0;
}

.loading h2 {
  text-align: center;
}

.loading__animation {
  display: flex;
  justify-content: center;
  align-items: center;
}

.spinner {
  border: 8px solid #f3f3f3;
  border-top: 8px solid #917236;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: spin 2s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.icon--win {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-height: max(20%, 32px);
  z-index: -1;
  opacity: 0;
}

.icon--win.active {
  z-index: 9;
  opacity: 1;
}

.icon--win .svg-elem-1 {
  fill: transparent;
  -webkit-transition: fill 0.7s cubic-bezier(0.47, 0, 0.745, 0.715) 0.8s;
  transition: fill 0.7s cubic-bezier(0.47, 0, 0.745, 0.715) 0.8s;
  transform-origin: center;
}

.icon--win.active .svg-elem-1 {
  fill: rgb(145, 114, 54);
}

@keyframes iconWinHeight {
  0%,
  100% {
    max-height: 30%;
    transform: translate(-50%, -50%) rotate(0deg);
  }
  50% {
    max-height: 35%;
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

.icon--win.active {
  animation: iconWinHeight 20s infinite ease-in-out;
}

#spiel1,
#spiel2,
#spiel3,
#spiel4,
#spiel5 {
  position: relative;
}

#spiel1::after,
#spiel2::after,
#spiel3::after,
#spiel4::after,
#spiel5::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: transparent;
  transition: all 0.7s ease;
  z-index: -1;
}

#spiel1.solved::after,
#spiel2.solved::after,
#spiel3.solved::after,
#spiel4.solved::after,
#spiel5.solved::after {
  background: rgba(0, 0, 0, 0.33);
  z-index: 10;
}

.win__message {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -60%);
  transition: opacity 0.8s cubic-bezier(0.47, 0, 0.745, 0.715) 0.8s,
    transform 0.8s cubic-bezier(0.47, 0, 0.745, 0.715) 0.8s;
  opacity: 0;
  color: white;
  z-index: -1;
  font-size: 15px;
  line-height: 24px;
  margin-bottom: 2rem;
  text-align: center;
}

.win__message.active {
  opacity: 1;
  z-index: 11;
  transform: translate(-50%, -50%);
}

.burger-icon {
  display: inline-block;
  cursor: pointer;
  pointer-events: none;
}
.burger-icon__line {
  display: block;
  width: 25px;
  height: 3px;
  margin: 4px auto;
  background-color: white;
  transition: all 0.3s ease-in-out;
}
#toggleNav.active .burger-icon__line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
#toggleNav.active .burger-icon__line:nth-child(2) {
  opacity: 0;
}
#toggleNav.active .burger-icon__line:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.hint-container {
  position: relative;
  display: inline-block;
}
.hint-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: opacity 0.5s;
}
.hint-text {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 24px;
  letter-spacing: 2px;
}

.hints {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 20px;
}

canvas {
  background: linear-gradient(
    135deg,
    rgba(145, 114, 54, 0.1) 25%,
    transparent 25%,
    transparent 50%,
    rgba(145, 114, 54, 0.1) 50%,
    rgba(145, 114, 54, 0.1) 75%,
    transparent 75%,
    transparent
  );
  background-size: 56px 56px;
  animation: pan 10s linear infinite;
}

@keyframes pan {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 56px 0;
  }
}

#passphraseForm {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 20px;
}

#passphraseForm div {
  display: flex;
  justify-content: center;
  margin-bottom: 10px;
}

#passphraseForm input {
  width: 21px;
  height: 21px;
  text-align: center;
  font-size: 16px;
  margin: 0 1px;
  border: none;
  border-radius: 2px;
  text-transform: uppercase;
}

#passphraseForm button {
  padding: 10px 20px;
  font-size: 20px;
  border: none;
  border-radius: 2px;
  background-color: #917236;
  color: white;
  cursor: pointer;
}

.task {
  background-color: #ccb062;
  color: white;
  padding: 20px;
  margin-bottom: 20px;
}

.de,
.fr,
.en {
  display: none;
}

.german .de {
  display: block;
}

.french .fr {
  display: block;
}

.english .en {
  display: block;
}

#screen0 {
  margin-left: -20px;
  margin-right: -20px;
  background: radial-gradient(circle, #ff0000, #800000);
  animation: gradientAnimation 5s infinite alternate;
}

@keyframes gradientAnimation {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 100% 50%;
  }
}

.language-select-video {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.language-select-video--animation-wrapper {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  height: 80%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.language-select-video--animation-wrapper img {
  position: absolute;
  max-width: 100%;
  max-height: 100%;
  animation-direction: alternate-reverse;
  animation-iteration-count: infinite;
  animation-timing-function: ease-in-out;
  pointer-events: none;
  position: absolute;
  transition: all 0.2s ease-in-out;
}

.language-select-video--animation-wrapper img:nth-child(1) {
  animation-duration: 4s;
  animation-name: language_one;
  height: 40vh;
  left: -10px;
  top: 100px;
  transform: rotate(25deg) scale(1.2) translate3d(10px, 20px, 30px);
}

.language-select-video--animation-wrapper img:nth-child(2) {
  animation-duration: 5s;
  animation-name: language_two;
  height: 30vh;
  right: 0;
  top: 50px;
  transform: rotate(-20deg) scale(1) translate3d(10px, 20px, 30px);
}

.language-select-video--animation-wrapper img:nth-child(3) {
  animation-duration: 7s;
  animation-name: language_three;
  bottom: 70px;
  height: 50vh;
  right: -100px;
  transform: rotate(-105deg) scale(1.2) translate3d(10px, 20px, 30px);
}

@keyframes language_one {
  0% {
    transform: rotate(25deg) scale(1.2) translate3d(10px, 20px, 30px);
  }

  to {
    transform: rotate(20deg) scale(1) translateZ(0);
  }
}

@keyframes language_two {
  0% {
    transform: rotate(-20deg) scale(1) translate3d(10px, 20px, 30px);
  }

  to {
    transform: rotate(-15deg) scale(1.2) translateZ(0);
  }
}

@keyframes language_three {
  0% {
    transform: rotate(-105deg) scale(1.2) translate3d(10px, 20px, 30px);
  }

  to {
    transform: rotate(-125deg) scale(1) translateZ(0);
  }
}

.language-select-headline {
  font-size: 2em;
  color: #ccb062;
  margin-bottom: 20px;
  z-index: 1;
}

.language-select-flags {
  display: flex;
  justify-content: center;
  gap: 20px;
  position: relative;
  z-index: 1;
}

.language-select-flags img {
  width: 50px;
  height: auto;
  cursor: pointer;
  transition: transform 0.3s;
  box-shadow: 0px 0px 10px -5px black;
}

.language-select-flags img:hover {
  transform: scale(1.1);
}

.page__content img,
.page__content h1,
.page__content h2,
.page__content h3,
.page__content h4,
.page__content p {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.page__content img.fade-in,
.page__content h1.fade-in,
.page__content h2.fade-in,
.page__content h3.fade-in,
.page__content h4.fade-in,
.page__content p.fade-in {
  opacity: 1;
  transform: translateY(0);
}
