/*
Theme Name: Brunnen Challenge
Author: Rolf Fleischmann
Description: Unstyled barebone base theme for further development
Version: 0.1.2
Tags: base
*/

@font-face {
  font-family: 'Univers-Web';
  src:  url('assets/fonts/UniversLTPro-55Roman.woff2') format('woff2'),
				url('assets/fonts/UniversLTPro-55Roman.woff') format('woff');
	font-weight: normal; font-style: normal; font-display: swap;
}

@font-face {
  font-family: 'Univers-Web';
  src:  url('assets/fonts/UniversLTPro-65Bold.woff2') format('woff2'),
				url('assets/fonts/UniversLTPro-65Bold.woff') format('woff');
	font-weight: bold; font-style: normal; font-display: swap;
}

@font-face {
  font-family: 'CircularB-Web';
  src:  url('assets/fonts/EuclidCircularB-Bold-WebS.woff2') format('woff2'),
				url('assets/fonts/EuclidCircularB-Bold-WebS.woff') format('woff');
	font-weight: normal; font-style: normal; font-display: swap;
}

:root {
	--spotcol-city: #009EC2;
	--spotcol-panorama: #45AA29;
}

body {
	font-family: 'Univers-Web',sans-serif;
	font-size: 17px;
	line-height: 1.4;
	background-color: #ABE6F0;
	background-image: url(assets/img/topo-bg.jpg);
	background-size: cover;
}

.viewContainer {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	min-height: 100%;
	overflow:hidden;
	padding: 64px 1em 1em 1em;
	color: #052346;
	background-color: #ABE6F0;
	box-shadow: 0px 0px 20px 10px rgba(0,0,0,0.2);
	max-height: 100%;
}

.viewContainer.slideMode {
	transform: translate(-110vw,0);
	transition: transform 0.6s ease;
}

.viewContainer.slideMode.open {
	transform: translate(0,0);
	max-height:none;
}

.viewContainer.fadeMode {
	opacity: 0;
	pointer-events:none;
	transition: opacity 0.6s ease;
}

.viewContainer.fadeMode.open {
	opacity: 1;
	pointer-events:auto;
}

.viewTitle {
	display:none;
}

.viewContainer h2,
.viewContainer h3 {
	font-weight: bold;
	margin: 1.5em 0 0 0;
}

.viewContainer a {
	color: inherit;
	border-bottom: 0.05em solid;
}

.contentButton:not(.hidden) {
	position: relative;
	font-family: 'CircularB-Web',sans-serif;
	font-size: 1em;
	letter-spacing: 0.04em;
	background-color: #F58200;
	box-shadow: 0px 5px 5px 2px rgba(16, 63, 70,0.4);
	padding: 0.5em 1.4em;
	margin: 0 auto 0 auto;
	display:block;
	opacity: 1;
	transition: opacity 0.5s ease;
	pointer-events: auto;
}


.contentButton[disabled] {
	opacity: 0.4;
	pointer-events:none;
}

/* overlayHeader */

.overlayHeader {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 64px;
	background-color: #00AAC3;
	z-index: 6;
	box-shadow: 0px 0px 10px 5px rgba(0,0,0,0.6);
}

.overlayTitle {
	font-size: 1.45em;
	line-height: 2.8;
	color: white;
	padding-left: 16px;
	margin: 0;
	max-height: 100%;
}


/* no-desktop-note */

.home-qr-code {
	width: 200px;
	height: 200px;
	margin: 2rem auto 1rem auto;
}


/* loading screen */

.loadingScreen {
	position: fixed;
	z-index: 200;
	background-image: url(assets/img/topo-bg.jpg);
	background-size: cover;
	padding: 0;
	transform: translate(0,-100vh);
	transition: transform 1s ease;
	transition-delay: 2s;
}

.loadingScreen.open {
	transform:translate(0,0);
}


.loadingScreen .logo-brunnen-challenge {
	position: absolute;
	width: 75%;
	left: 0;
	right: 0;
	margin: 0 auto;
	top: 22%;
	z-index: 2;
}

.loadingScreen .wellen {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	z-index: 1;
}

.loadingScreen .stern {
	position: absolute;
	top: 3%;
	right: 3%;
	width: 40%;
	z-index: 5;
}

.loadingScreen .challengeIcons {
	position: absolute;
	top: 43%;
	width: 100%;
	height: 20%;
}

.loadingScreen .challengeIcons img {
	width: 50%;
	position: absolute;
	top: 0;
	filter: drop-shadow(0px 6px 10px rgba(0, 0, 0, 0.7));
}

.loadingScreen .challengeIcons .icon-city {
	left: 5%;
}

.loadingScreen .challengeIcons .icon-panorama {
	left: 46%;
	top: 15%;

}


.loadingScreen .logo-sponsor {
	position: absolute;
	top: 76%;
	left: 0;
	right: 0;
	margin: 0 auto;
	width: 45%;
}

.loadingScreen .logo-sponsor.logo-sgsw {
	top: 82%;
	width: 37%;
}






/* spielanleitung */

.spielanleitung .levelmarker {
	text-align: left;
	margin-left: -0.8rem;
	margin-bottom: 1rem;
	margin-top: -0.5rem;
}

.spielanleitung .levelmarker img {
	width: 35%;
	display:inline-block;
	filter: drop-shadow(0px 4px 7px rgba(0, 0, 0, 0.8));
}

.spielanleitung .brunnenmarker {
	display:flex;
	flex-direction: column;
	justify-content:flex-start;
}

.spielanleitung .brunnenmarker .marker-wrapper {
	display:flex;
	flex-direction: row;
	justify-content: flex-start;
	align-items: center;
	margin-bottom: 4%;
}

.spielanleitung .brunnenmarker img {
	width: 17%;
	margin-right: 4%;
	transform: scale(0,0);
	transform-origin: bottom center;
	transition: transform 0.9s ease;
}

.spielanleitung.open .brunnenmarker img {
	transform: scale(1,1);
}

.spielanleitung .startGameButton {
	margin-top: 1.5em;
	margin-bottom: 2em;
}

.spielanleitung.open .startGameButton {
	animation: heartbeat 2s infinite;
}

.spielanleitung .startGameButton.hidden {
	display:none;
}



/* challenge auswahl */

.challengeAuswahl {
	display:flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	background-image: url(assets/img/topo-bg.jpg);
	background-size: cover;
}

.challengeAuswahl .challenges {
	display:flex;
	flex-direction: column;
	width: 100%;
	gap: 1em;
	color: white;
}

.challengeAuswahl .challengeButton.cols {
	display:flex;
	flex-direction: row;
	background-color: #052346;
	border-radius: 0.4em;
	align-items: center;
	padding: 0.5em 1em;
}

.challengeAuswahl .challengeButton .col-1 {
	flex-basis: 37%;
	padding-right: 0.5em;
}

.challengeAuswahl .challengeButton.disabled img,
.challengeAuswahl .challengeButton.disabled .challengeTitle,
.challengeAuswahl .challengeButton.disabled .challengeLabel {
	opacity: 0.5;
}

.challengeAuswahl .challengeButton img {
	display:block;
	filter: drop-shadow(0px 4px 7px rgba(0, 0, 0, 0.8));
}

.challengeAuswahl .challengeTitle {
	white-space: nowrap;
	font-weight: bold;
	margin-left: -0.55em;
}

.challengeAuswahl .challengeLabel,
.challengeAuswahl .challengeStatus {
	font-size: 0.8em;

}

.challengeAuswahl .challengeStatus {
	color: #45AA29;
	font-weight: bold;
}


/* map */

/*
.karte {
	position: fixed;
}
*/

.karte .map {
	position: absolute;
	top:0;
	left:0;
	width: 100%;
	height: 100%;
}


/* user score */

.userScore {
	position: absolute;
	width: 90px;
	height: 90px;
	font-family: 'CircularB-Web',sans-serif;
	color: white;
	text-align: center;
	letter-spacing: 0;
}

.userScore .scoreIcon {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	z-index: 1;
}

.userScore .scoreNumber {
	position: absolute;
	font-size: 1.2em;
	z-index: 2;
	top: 25px;
	left: 0;
	width: 100%;
	
}

.userScore .scoreLabel {
	position: absolute;
	font-size: 0.65em;
	z-index: 2;
	top: 48px;
	left: 0;
	width: 100%;
}

.karte .userScore {
	top: 80px;
	right: 16px;
}





/* challenge progress */

.karte .challengeProgress {
	position: absolute;
	top: 80px;
	left: 20px;
	width: 80px;
	height: 66px;
	background-color: #052346;
	border: 2px solid #3CB900;
	border-radius: 4px;
	overflow:hidden;
}

.karte .challengeProgress .challengeLabel {
	font-family: 'CircularB-Web',sans-serif;
	color: white;
	text-align: center;
	font-size: 0.65em;
	position: absolute;
	top: 2px;
	left: 0;
	width: 100%;
}

.karte .challengeProgress .challenges {
	display:flex;
	align-items:center;
	justify-content:center;
	margin: 20px auto 0 auto;
}

.karte .challengeProgress .challenges img {
	width: 38px;
	opacity: 0.3;
}

.karte .challengeProgress .challenges img.active {
	opacity: 1;
}


/* brunnen Counter */

.karte .brunnenCounter {
	position: absolute;
	top: 80px;
	left: 110px;
	width: 66px;
	height: 66px;
	background-color: #052346;
	border: 2px solid #00AAC3;
	border-radius: 4px;
	color: white;
	font-family: 'CircularB-Web',sans-serif;
	color: white;
	text-align: center;
	
}

.karte .brunnenCounter .label {
	padding-top: 2px;
	font-size: 0.65em;
	display:block;
}

.karte .brunnenCounter .nummer {
	font-size: 1.8em;
	line-height: 1.3;
	color: #00AAC3;
	display:block;
}




/* challenge done section */

.challengeDoneSelection .badges,
.submitFormOverlay .badges {
	display:flex;
	align-items: center;
	justify-content: space-evenly;
	margin: 0 auto;
	width: 240px;
}

.challengeDoneSelection .userScore,
.submitFormOverlay .userScore {
	position: relative;
}

.submitFormOverlay.open .userScore {
	animation: heartbeat 2s;
	animation-iteration-count: 3;
	animation-delay: 1s;
	width: 105px;
	height: 105px;
}

.submitFormOverlay .userScore .scoreNumber {
	top: 29px;
}

.submitFormOverlay .userScore .scoreLabel {
	top: 54px;
}

.challengeDoneSelection .badges img,
.submitFormOverlay .badges img {
	width: 120px;
}

.challengeDoneSelection.open .scoreIcon {
	animation: rotation 8s;
	animation-delay: 1s;
}

.challengeDoneSelection .text>span {
	display:block;
}

.challengeDoneSelection .challengeName {
	font-size: 1.4em;
}

.challengeDoneSelection.open .nextChallenge {
	animation: heartbeat 2s infinite;
	animation-delay: 6s;
}

.challengeDoneSelection .nextChallenge img {
	margin-top: 1em;
	width: 90px;
}

.challengeDoneSelection .endGameButton {
	margin-top: 0.5em;
	margin-bottom: 0.5em;
}

.challengeDoneSelection .startChallengeButton {
	margin-bottom: 1.5em;
	margin-top: 0;
}

.cityChallengeDoneSelection .challengeName {
	color: var(--spotcol-city);
}

.panoramaChallengeDoneSelection .challengeName {
	color: var(--spotcol-panorama);
}

.challengeDoneSelection .endGame {
	margin-top: 2em;
}



/* submitForm overlay */

.submitFormOverlay.open .panel {
	transition-delay: 0s;
}

.submitFormOverlay .text {
	margin-top: 1.5em;
	margin-bottom: 1em;
}

.submitFormOverlay .submitForm {
	position: relative;
}

.submitFormOverlay .emailFormField {
	width: 100%;
	margin-bottom: 0;
}

.submitForm label {
	font-size: 0.8em;
	margin-top: 1em;
	margin-bottom: 0.3em;
}


.submitFormOverlay .submitFormButton {
	margin-top: 2em;
	margin-bottom: 1.5em;
}

.submitFormOverlay .submissionInProgress {
	opacity: 0;
	position: absolute;
	width: 100%;
	margin-top: -3.4em;
	pointer-events:none;
}

.submitFormOverlay.submitting .submissionInProgress {
	opacity: 1;
}

.submitFormOverlay.submitting .submitFormButton {
	opacity: 0;
}







/* end game screen */

.endGameOverlay .panel {
	padding-top: 3em;
	padding-bottom: 2.5em;
}

.endGameOverlay .logo {
	margin-bottom: 1em;
}

.endGameOverlay .text {
	margin-bottom: 1.5em;
}

.endGameOverlay .absender {
	display:flex;
	flex-direction: row;
	align-items: center;
	justify-content: space-evenly;
	margin-top: 3em;
	gap: 1em;
}

.endGameOverlay .homeButton {
	margin-top: 2em;
}

.endGameOverlay .absender img {
	width: 44%;
}

.endGameOverlay .absender span {
	font-size: 0.65em;
	display:block;
}


.endGameOverlay .logo-sponsor {
	width: 42%;
}

.endGameOverlay .logo-sponsor.logo-sgsw {
	width: 38%;
}





/* brunnen */

.brunnen {
	padding-top: 0;
	background-color: white;
}

.brunnen .closeButton {
	position: absolute;
	top: 0;
	right: 0;
	width: 64px;
	height: 64px;
	border-radius: 0;
	background-color: #052346;
	padding: 0;
	z-index: 2;
}

.brunnen .closeButton span {
	display:block;
	width: 24px;
	height: 2px;
	background-color: white;
	transform: rotate(45deg);
	transform-origin: 13px;
	margin-left: 20px;
}

.brunnen .closeButton span:first-child {
	transform: rotate(-45deg);
}

.brunnenFoto {
	position: relative;
	display:block;
	height: 0;
	padding-bottom: 72%;
	overflow:hidden;
	margin-left: -17px;
	margin-right: -17px;
}

.brunnenFoto[data-ar="1.3"] {
	padding-bottom: 81%;
}

.brunnenFoto img {
	width: 100%;
	object-fit: cover;
}

.brunnenTitel {
	display:flex;
	align-items:center;
	margin-top: 0.2em;
}

.brunnenTitel img {
	width: 50px;
	margin-left: -3%;
	margin-bottom: 5%;
	margin-right: 2%;
	margin-top: 2%;
}

.bonus .brunnenTitel img,
.badebrunnen .brunnenTitel img {
	margin-top: 2%;
	margin-right: 4%;
}

.brunnenTitel h2 {
	font-size: 1.8em;
	font-weight: bold;
	line-height: 1.1;
	margin: 0;
}

.brunnenTitel h2.longTitle {
	font-size: 1.5em;
}

.brunnen .fragen {
	position: relative;
	background-color: #ABE6F0;
	margin: 1.5em -17px 1.5em -17px;
	padding: 20px 17px;
}

.brunnen .frage {
	font-weight: bold;
}

.brunnen .antworten {
	margin: 1em 0 1em 0;
	line-height: 2;
}

.brunnen .raetsel-text .antworten li span {
	display:inline-block;
	width: 16px;
	height: 16px;
	border: 2px solid #052346;
	border-radius: 15px;
	margin-right: 0.5em;
	vertical-align: -2px;
}

.brunnen .raetsel-text .antworten li.selected span,
.brunnen .raetsel-text .antworten li.correct span {
	background-color: #052346;
}

.brunnen .raetsel-text .antworten li.disabled {
	opacity: 0.4;
}

.brunnen .frageBeantwortet {
	position: relative;
	display:block;
	text-align: left;
}


.brunnen .sendAnswerButton {
	padding-left: 2em;
	padding-right: 2em;
}

.brunnen .waitingForServer {
	position: absolute;
	top: 0;
	left: 0;
	height: 100%;
	width: 100%;
	background-color: rgba(171, 230, 240, 0.8);
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	pointer-events:none;
	opacity: 0;
	z-index: 7;
}

.brunnen .waitingForServer.active {
	opacity: 1;
	pointer-events: auto;
}

.brunnen .waitingForServer>div {
	background-color: #00aac3;
	color: white;
	padding: 0.5em 1em 0.35em 1em;
	border-radius: 4px;
	opacity: 0;
	transition: opacity 0.3s ease;
	transition-delay: 0.8s;
}

.brunnen .waitingForServer.active>div {
	opacity: 1;
}


/* textraetsel */




/* bild-raetsel / audio-raetsel */

.brunnen .raetsel-bild .antworten,
.brunnen .raetsel-audio .antworten {
	display:flex;
	flex-direction: row;
	justify-content: space-between;
}

.brunnen .raetsel-audio .antworten {
	justify-content: space-evenly;
}

.brunnen .raetsel-bild .antworten li,
.brunnen .raetsel-audio .antworten li {
	position: relative;
	width: 33%;
	aspect-ratio: 1/1;
	overflow:hidden;
	border-radius: 100%;
	filter: drop-shadow(0px 5px 4px rgba(0, 0, 0, 0.7));
	border: 7px solid transparent;
	transform: translateZ(0);
}

.brunnen .raetsel-audio .antworten li {
	width: 27%;
	border-width: 4px;
}

.brunnen .raetsel-bild .antworten li.selected,
.brunnen .raetsel-bild .antworten li.correct,
.brunnen .raetsel-audio .antworten li.selected,
.brunnen .raetsel-audio .antworten li.correct {
	border-color: var(--spotcol-city);
}

.brunnen .raetsel-bild .antworten li.disabled,
.brunnen .raetsel-audio .antworten li.disabled {
	opacity: 0.5;
}

.brunnen .raetsel-bild .antworten li img,
.brunnen .raetsel-audio .antworten li img{
	position: absolute;
	width: 100%;
	max-width: none;
	height: auto;
	top: 50%;
	left: 50%;
	transform: translate(-50%,-50%);
}

.brunnen .raetsel-bild .antworten li img.landscape {
	width: auto;
	height: 100%;
	max-width: none;
}

.brunnen .raetsel-audio .antworten .pause-button {
	display:none;
}

.brunnen .raetsel-bild .frageBeantwortet,
.brunnen .raetsel-audio .frageBeantwortet{
	padding-top: 0.5em;
	text-align: center;
}




/* raetsel zahlenrad */

.wheel-selector {
	font-family: sans-serif;
	font-weight: bold;
	position: relative;
	width: 100%;
	margin: 0 auto 1em auto;
}


.wheel-selector::before,
.wheel-selector::after {
	content: '';
	position: absolute;
	display:block;
	top: 0;
	left: 0;
	width: 100%;
	height: 2em;
	background: linear-gradient(rgba(171,230,240,1), 70%, rgba(171,230,240,0));
	z-index: 1;
	pointer-events: none;
}


.wheel-selector::after {
	top: unset;
	background: linear-gradient(rgba(171,230,240,0), 30%, rgba(171,230,240,1));
	bottom: 0;
}

.wheel-selector .splide-wrapper {
	display:flex;
	flex-direction: row;
	width: 100%;
	justify-content: space-evenly;
	align-items: center;
	padding: 0 0.6em;
}

.wheel-selector .splide-wrapper::after {
	content: '';
	position: absolute;
	top: calc(50% - 1em);
	z-index: 2;
	background-color: rgba(0,0,0,0.05);
	border-radius: 0.5em;
	width: 100%;
	height: 2em;
	pointer-events: none;
}

.wheel-selector-output {
	position: absolute;
	bottom: -2em;
}

.wheel-selector.one-slot .splide {
	flex-basis: 100%
}

.wheel-selector.eight-slots .splide {
	flex-basis: 12.5%;
}

.wheel-selector .splide {
	border-right: 1px solid rgba(0,0,0,0.07);
}

.wheel-selector .splide:first-child {
	border-left: 1px solid rgba(0,0,0,0.07);
}



.wheel-selector .splide__slide {
	padding: 0;
	height: 1em;
	display:flex;
	justify-content: center;
	align-items: center;
	text-align: center;
}


.wheel-selector .splide::before,
.wheel-selector .splide::after {
	content: '';
	position: absolute;
	display:block;
	top: 0;
	left: 0;
	width: 100%;
	height: 4em;
	background-color: rgba(171,230,240,0.8);
	z-index: 1;
	pointer-events: none;
}


.wheel-selector .splide::after {
	top: unset;
	bottom: 0;
}

.wheel-answer {
	display:block;
	width: 95%;
	margin: 0 auto 1em auto;
	background-color: rgba(0,158,194,0.5);
	color: white;
	font-weight: bold;
	text-align: center;
	padding: 0.3em 1em 0.1em 1em;
	font-size: 1.2em;
	border-radius: 0.5em;
}

.raetsel-einfache-zahl .wheel-answer,
.raetsel-einfache-zahl .wheel-selector {
	width: 170px;
}

.wheel-selector .splide__slide:first-child::before {
	content: '';
	display:block;
	width: 1.2em;
	height: 1.2em;
	background-image:url('assets/img/arrows_updown.svg');
	background-repeat: no-repeat;
	background-size: 100%;
	position: absolute;
	top: -2em;
}

.raetsel-einfache-zahl .splide__slide:first-child::before {
	width: 1.5em;
	height: 1.5em;
}






/* brunnenliste */

.brunnenliste {
	padding-left: 0;
	padding-right: 0;
}

.brunnenliste ul {
	width: 100%;
	margin-top: 1em;
	margin-bottom: 2em;
}

.brunnenliste ul li {
	display:block;
	width: 100%;
}

.brunnenliste ul img {
	height: 38px;
	display:block;
	margin-top: -0.2em;
	margin-right: 0.2em;
	align-self: flex-start;
}

.brunnenliste ul li a {
	padding: 0.5em;
	display:flex;
	flex-direction:row;
	font-size: 1.2em;
	font-weight: bold;
	border:none;
	align-items: center;
}


/* info */


.info .resetApp {
	margin-top: 2em;
	background-color: #E6003C;
	margin-bottom: 2em;
}


/* other */

.page-404 {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: #052346;
	color: white;
	z-index: 50;
	display:flex;
	align-items: center;
	justify-content: center;
}

.page-404 .panel {
	position: relative;
	width: 80%;
	height: auto;
	text-align: center;
	font-family: 'CircularB-Web',sans-serif;
	letter-spacing: 0.04em;
}

.page-404 .panel h1 {
	font-size: 4em;
	line-height: 0;
}


/* anims */

@keyframes heartbeat {
	0% {
		transform: scale( 1 );
	}
	20% {
		transform: scale( 1.07 );
	}
	40% {
		transform: scale( 1 );
  }
	60% {
		transform: scale( 1.07 );
  }
	80% {
		transform: scale( 1 );
	}
	100% {
		transform: scale( 1 );
	}
}


@keyframes rotation {
	0% {
		transform: rotate(0deg);
	}
	100% {	
		transform: rotate(360deg);
	}
}


@keyframes numberjump {
	0% {
		transform: translateY(0) rotateY(360deg);
	}
	0.1% {
		transform: translateY(0);
	}
	20% {
		transform: translateY(0);
	}
	40% {
		transform: translateY(-30px) rotateY(360deg);
	}
	50% {
		transform: translateY(0) rotateY(360deg);
	}
	60% {
		transform: translateY(-15px) rotateY(360deg);
	}
	80% {
		transform: translateY(0)  rotateY(360deg);
	}
	100% {
		transform: translateY(0) rotateY(360deg);
	}
}

/* small phone */
@media only screen and (max-width: 320px) {
	body {
		font-size: 14px;
	}
}
