/*@import url('https://fonts.googleapis.com/css2?family=DM+Sans&display=swap');*/

html, body { margin: 0; padding: 0; width: 100%; height: 100%; }

html * { box-sizing: border-box; }

html {
}

body {
	font-family: 'DM Sans', sans-serif;
	font-size: 16px;
	background: #92a8b2;
	background: color(display-p3 0.596 0.658 0.698);
	overflow: hidden;
}

h1 { margin: 0; }

a { color: inherit; }

strong { font-weight: 700; }
.small { font-size: 13px; }

#info { display: none; }
#impressum { display: none; }

.fullscreen {
	position: absolute;
	width: 100%;
	height: 100%;
}

.video-container { position: absolute; left: 0; top: 0;  width: 100%; height: 100%; }
.video-container video { position: absolute; left: 0; top: 0; width: 100%; height: 100%; object-fit: contain; }

@media screen and (max-width: 600px)
{
	.video-container video { object-fit: cover; }
}

/* This used to work for the parent element of button divs */
/* But it does not work with newer browsers, the below doesn't hide the play button parent div */

*::-webkit-media-controls-panel {
  display: none!important;
  -webkit-appearance: none;
}

/* Old shadow dom for play button */

*::-webkit-media-controls-play-button {
  display: none!important;
  -webkit-appearance: none;
}

/* New shadow dom for play button */

/* This one works! */

*::-webkit-media-controls-start-playback-button {
  display: none!important;
  -webkit-appearance: none;
}

.video-container .buttons {
	position: absolute;
	left: 0;
	bottom: 0;
	width: 100%;
	padding: 0 20px 30px 0;
	display: flex;
	align-items: flex-start;
	justify-content: flex-end;
	z-index: 30;
}
.video-container .buttons * { flex: 0 1 auto; }
.video-container .buttons button {
	margin-inline: 10px;
	padding: 0.2em 1em;
	font-size: 12px;
	font-family: 'DM Sans', sans-serif;
	color: black;
	background: transparent;
	border: 1px solid black;
	border-radius: 20px;
	cursor: pointer;
	transition: background 0.2s ease;
}
.video-container .buttons button:hover { background-color: rgba(0, 0, 0, 0.15); }


.content-container {
	position: absolute; 
	left: 0;
	top: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	z-index: 35;
	background: rgba(0, 0, 0, 0.7);
	background-image: url(images/icon_close_white.svg);
	background-repeat: no-repeat;
	background-position: 95% 5%;
	background-size: 20px 20px;
}

.content-container .infobox {
	width: 100%;
	max-width: 800px;
	padding: 20px;
	font-size: 18px;
	color: white;
	/*background: rgba(0, 0, 0, 0.7);*/
	/*border-radius: 20px;*/
}



/* Video Controls */

.player-controls {
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(177, 197, 206, 0.8);
	z-index: 20;
}

.player-controls.hide { display: none; }

.loading { display: block; }

.spinner {
	width: 80px;
	height: 80px;
	border: 6px solid;
	border-color: black transparent black transparent;
	border-radius: 50%;
	animation: spin 1.2s linear infinite;
	opacity: 0.95;
}

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

.playpause {
	display: none;
	width: 80px;
	height: 80px;
	background: url(images/icon_play_black.svg) no-repeat center center;
	background-size: contain;
	cursor: pointer;
	border-radius: 50px;
	opacity: 0.95;
	cursor: pointer;
}

.playpause.playing { background: url(images/icon_pause_black.svg) no-repeat center center; background-size: contain; }

.timeline {
	position: absolute;
	left: 0;
	bottom: 0;
	width: 100%;
	height: 6px;
	background-color: transparent;
}

.progress {
	position: absolute;
	left: 0;
	width: 0%;
	height: 100%;
	background-color: black;
	opacity: 0.95;
}

