*, *::before, *::after {
  box-sizing: border-box;
}

body {
	font-family: 'DM Sans', Arial, sans-serif;
	background-color: #f4f4f4;
	margin: 0 auto;
	padding: 0;
	color: #333;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	min-height: 100vh;
}

.wrapper {
	margin: 40px auto;
	text-align: center;
}

header {
	text-align: center;
}

footer {
	text-align: center;
}

.quiz-container {
	background-color: white;
	margin: 0 auto;
	padding: 30px 30px 40px 30px;
	border-radius: 12px;
	box-shadow: 0 6px 20px -5px rgba(0, 0, 0, 0.1);
	min-width: 400px;
	max-width: 400px;
	width: 100%;
	text-align: left;
}

h1 {
	margin-bottom: 30px;
	margin-top: 0;
	padding: 0;
	font-size: 20px;
	font-weight: 400;
	color: #b3ba65;
	letter-spacing: 3px;
	text-transform: uppercase;
}

h2,
h2.quiz-question {
	margin-bottom: 30px;
	margin-top: 0;
	padding: 0;
	color: #333;
	font-size: 22px;
}

h3 {
	margin-bottom: 10px;
	margin-top: 0;
	padding: 0;
	color: #333;
	font-size: 20px;
	font-weight: 700;
}

p a, p a:active, p a:link, p a:visited {
	font-size: 16px;
	color: #333;
	text-decoration: none;
	border-bottom: 1px solid #333;
	transition: color 0.3s ease;
}

p a:hover {
	color: #b3ba65;
	border-bottom: 1px solid transparent;
}

.green {
	color: #b3ba65;
}

hr {
	height: 1px;
	margin: 30px auto;
	background-color: #ccc;
	border: 0;
}

.quiz-answers {
	margin-top: 20px;
}

.answer-option {
	background-color: #f0f0f0;
	padding: 10px;
	margin-bottom: 10px;
	border-radius: 5px;
	font-size: 20px;
	transition: background-color 0.3s;
	display: flex;
	align-items: center;
}

.answer-option:hover {
	background-color: #e0e0e0;
	cursor: pointer;
}

.answer-text {
	font-size: 18px;
}

.answer-correct {
	font-size: 20px;
}

.answer-info {
	display: flex;
	align-items: center;
	font-size: 20px;
	color: #333;
	text-decoration: none;
}

.answer-info .info {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 28px;
	min-width: 28px;
	background-color: #4070f4;
	color: #fff;
	font-size: 18px;
	border-radius: 50%;
	margin-right: 10px;
}

input[type="radio"] {
	margin-right: 10px;
}

.submit-button,
.button {
	background-color: #b3ba65;
	color: white;
	padding: 15px 20px;
	border: none;
	border-radius: 5px;
	cursor: pointer;
	width: 100%;
	font-size: 18px;
	font-weight: 400;
	letter-spacing: 1px;
	text-transform: uppercase;
	text-decoration: none;
	margin-top: 10px;
	transition: color 0.3s ease;
}

.submit-button:hover,
.button:hover {
	background-color: #333333;
}

.solution-word {
	text-align: center;
	padding: 10px;
}

@keyframes highlightAnimation {
  from {
	width: 0;
  }
  to {
	width: 100%;
  }
}

.highlighted-word {
  position: relative;
  display: inline-block; /* Um sicherzustellen, dass das Pseudo-Element korrekt positioniert wird */
}

.highlighted-word::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 3px; /* oder die gewünschte Dicke der Unterstreichung */
  background-color: #b3ba65; /* Farbe der 'Marker'-Unterstreichung */
  animation: highlightAnimation 0.5s forwards; /* Verwenden Sie die definierte Animation */
  animation-delay: 1s;
}

.letter {
	display: inline-block;
	font-size: 20px;
	font-weight: 700;
	margin-right: 5px;
	opacity: 0; /* Startet unsichtbar */
	animation: flyIn 0.5s ease forwards;
}

.letter:last-child {
	margin-right: 0;
}

/* Definieren der keyframes für die Animation */
@keyframes flyIn {
	from {
		transform: translateY(20px);
		opacity: 0;
	}
	to {
		transform: translateY(0);
		opacity: 1;
	}
}

/* Staggered Animation für jeden Buchstaben */
.letter:nth-child(1) { animation-delay: 0.1s; }
.letter:nth-child(2) { animation-delay: 0.2s; }
.letter:nth-child(3) { animation-delay: 0.3s; }
.letter:nth-child(4) { animation-delay: 0.4s; }
.letter:nth-child(5) { animation-delay: 0.5s; }
.letter:nth-child(6) { animation-delay: 0.6s; }
.letter:nth-child(7) { animation-delay: 0.7s; }
.letter:nth-child(8) { animation-delay: 0.8s; }
.letter:nth-child(9) { animation-delay: 0.9s; }
.letter:nth-child(10) { animation-delay: 1s; }
.letter:nth-child(11) { animation-delay: 1.1s; }
.letter:nth-child(12) { animation-delay: 1.2s; }

.solution {
	margin-top: 40px;
	margin-bottom: 0;
	padding: 0;
	font-size: 18px;
	font-weight: 700;
	color: #b3ba65;
	text-align: center;
}

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

.station-text {
	color: #666;
}

.station-number {
	width: 32px;
	height: 32px;
	background-color: #f0f0f0;
	border-radius: 50%;
	margin-left: 10px;
	font-size: 16px;
	font-weight: 700;
	color: #666;
	display: flex;
	align-items: center;
	justify-content: center;
}

.nav-meta {
	margin: 20px auto 0 auto;
	padding: 0;
	text-align: center;
}

.nav-meta li {
	list-style: none;
	display: inline-block;
	font-size: 14px;
	color: #666;
	text-align: center;
	position: relative;
	padding-right: 17px;
}

.nav-meta li::after {
	content: '';
	width: 1px;
	height: 20px;
	background-color: #ddd;
	position: absolute;
	right: 8px;
	top: 50%;
	transform: translateY(-50%);
}

.nav-meta li:last-child::after {
	display: none;
}

.nav-meta li:last-child {
	padding-right: 0;
}

.nav-meta li a {
	font-size: 14px;
	color: #666;
	text-decoration: none;
	border-bottom: 1px solid #666;
	transition: color 0.3s ease;
}

.nav-meta li a:hover {
	color: #333;
	border-bottom: 1px solid transparent;
}

.overlay {
	position: fixed;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	display: none;
	align-items: center;
	justify-content: center;
	background-color: rgba(0, 0, 0, 0.5);
	transition: all 0.5s ease;
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
}

.overlay-content {
	max-width: 360px;
	border-radius: 12px;
	background-color: #fff;
	padding: 20px 35px 20px 25px;
	box-shadow: 0 6px 20px -5px rgba(0, 0, 0, 0.1);
	overflow: hidden;
	transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.35);
	display: flex;
	align-items: center;
}

.overlay-content .check {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 35px;
	min-width: 35px;
	background-color: #b3ba65;
	color: #fff;
	font-size: 20px;
	border-radius: 50%;
	margin-right: 20px;
}

.overlay-content .error {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 35px;
	min-width: 35px;
	background-color: #b61c1c;
	color: #fff;
	font-size: 20px;
	border-radius: 50%;
	margin-right: 20px;
}

.overlay-content p {
	margin: 0;
	padding: 0;
	font-size: 18px;
	font-weight: 400;
	color: #333;
}

.modal {
	position: fixed;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	display: none;
	align-items: center;
	justify-content: center;
	background-color: rgba(0, 0, 0, 0.5);
	transition: all 0.5s ease;
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	transition: opacity 0.5s ease, visibility 0.5s ease;
	opacity: 0;
	visibility: hidden;
}

.modal.active {
	opacity: 1;
	visibility: visible;
}

.modal-content {
	background-color: white;
	margin: 0 auto;
	padding: 30px 30px 40px 30px;
	border-radius: 15px;
	box-shadow: 0 6px 20px -5px rgba(0, 0, 0, 0.1);
	max-width: 400px;
	width: 100%;
	text-align: left;
	position: relative;
	transition: transform 0.5s ease;
	transform: scale(0.95);
}

.modal.active .modal-content {
	transform: scale(1);
}

.modal-content .close {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 35px;
	min-width: 35px;
	background-color: #b3ba65;
	color: #fff;
	font-size: 20px;
	border-radius: 50%;
}

.modal-content .close:hover {
	background-color: #333;
}

.close-button {
	position: fixed;
	top: 10px;
	right: 10px;
	cursor: pointer;
	font-size: 20px;
}

.modal-title {
	font-size: 24px;
	color: #333;
}

.modal-text {
	margin-top: 30px;
	margin-bottom: 0;
	padding: 0;
	font-size: 16px;
	color: #333;
	line-height: 1.5;
}

.modal-image {
	width: 100%;
	height: auto;
	display: block;
}

.modal-image-copyright {
	margin-top: 10px;
	margin-bottom: 0;
	padding: 0;
	font-size: 14px;
	color: #999;
	text-align: right;
}

.modal-image-copyright a {
	font-size: 14px !important;
}

#confetti-holder{
  position: fixed;
  height: 100vh;
  pointer-events: none;
  width: 100%;
  top: 0;
  z-index: 2;
  text-align: center;
  vertical-align:middle;
} 

#e0DQ82qcIov1 {
  height: 150vh;
  min-width: 600px;
  min-height: 600px;

}

.center {
  width: 100%;
  height: 100vh;
  display: flex;
  background-color: #FFF8F5;
	align-items: center;
  justify-content: center;
}

@media only screen and (max-width: 575px) {
	
	body {
		margin: 0 auto;
		display: inline;
	}
	
	.wrapper {
		margin: 40px auto;
	}
	
	.quiz-container,
	.modal-content,
	.overlay-content {
		width: 90%;
		max-width: 90%;
		min-width: 90%;
	}
	
	.modal-content {
		width: 90%; /* Verkleinern Sie die Breite des Modals */
		height: 100%; /* Optional, ermöglicht dynamische Höhe */
		max-height: 90%; /* Verhindert, dass das Modal zu hoch wird */
	}
	
	.modal-content-inner {
		height: calc(100% - 20px); /* 100% der Höhe des modal-content minus der Höhe des Close-Buttons */
		overflow-y: auto;
		padding-top: 20px;
	}
	
}