/* ********** import external fonts ********** */

@import url('https://fonts.googleapis.com/css2?family=Roboto+Slab&family=Roboto:wght@300');

/* ********** background ********** */

body{
	font-family: "Roboto Slab", serif;
	background: url(../img/bg.jpg) no-repeat center center fixed;
	background-size: cover;
	padding-bottom: 1cm;
}

/* ********** header and logo ********** */

header{
	background: #0097A7;
	max-width: 26cm;
	margin: 0 auto;
	padding: 5mm 0;
	cursor: default;
}

header a#logo {
	font-family: "Roboto", sans-serif;
	color: #FFF;
	font-weight: 300;
	font-size: 26pt;
	text-align: center;
	display: block;
	text-align: center;
	padding: 4mm;
}

@media (min-aspect-ratio: 4/5) and (max-width: 26cm){
	footer {
		position: inherit !important;
	}
	body {
		padding-bottom: 0 !important;
	}
}

@media (max-width: 26cm){
	nav, article, footer {
		border-radius: 0 !important;
	}
}

@media (max-width: 14cm){
	header a#logo {
		font-size: 7.2vw;
		padding: 0;
	}
	.left {
		float: none !important;
		margin: 0 !important;
	}
	
	article {
		padding: 5mm !important;
	}
	
}

/* ********** navigation bar ********** */

nav {
	height: 1.4cm;
	top: 0;
	position: -webkit-sticky;
	position: sticky;
	background: rgba(178, 235, 242, 0.7);
	box-shadow: 0 5px 5px rgba(0,0,0,0.4);
	max-width: 26cm;
	margin: 0 auto;
	backdrop-filter: blur(6px);
	border-bottom-left-radius: 2mm;
	border-bottom-right-radius: 2mm;
	z-index: 1;
}


nav a{
	font-family: "Roboto", sans-serif;
	text-transform: uppercase;
	text-decoration: none;
	float: left;
	color: #0097A7;
	display: block;
	padding: 5mm;
	transition: transform 350ms;

}

nav a#crumb{
	padding: 5mm 0 0 0;
	margin: 0 -2.5mm 0 -2.5mm;
}

nav a:first-child {
	margin-left: 2em;
}

nav a#active, nav a#crumb {
	font-weight: bold;
}

nav a:hover {
	transform: scale(1.1);
}

/* ********** content format ********** */



article {
	padding: 10mm;
	margin: 3mm auto;
	box-sizing: border-box;
	box-shadow: 0 0 5px rgba(0,0,0,0.4);
	background: #FFF;
	max-width: 26cm;
	line-height: 1.6;
	border-radius: 1mm;
	position: relative;
}

h1{
	font-family: "Roboto", sans-serif;
	font-size: 20pt;
	font-weight: 300;
	color: #0097A7;
	margin-bottom: 5mm;
}

h2{
	font-size: 16pt;
	color: #0097A7;
	margin-bottom: 2mm;
	margin-top: 6mm;
}

time {
	font-size: 10pt;
	font-style: italic;
	color: #555;
	position: absolute;
	bottom: 2mm;
	right: 5mm;
	
}

a.link {
	color: #0097A7;
	text-decoration: none;
	border-bottom: 1mm dashed #B2EBF2;
}

a.link:hover {
	border-bottom: 1mm dashed #0097A7;
}

pre {
	font-family: monospace;
	font-size: 10pt;
	color: #444;
	border: 1mm dashed #0097A7;
	line-height: 1.6;
    overflow: auto;
}

p, ul{
	font-size: 12pt;
	color: #555;
}

article p {
	padding: 5mm 0 5mm 0;
}

b{
	font-weight: bold;
}

i {
	font-style: italic;
	color: #777;
}


ul {
	list-style-type: disc;
	padding: 0 0 0cm 5mm;
}

ul li {
	padding-top: 5mm;
}

table tr td{
	padding: 4mm 0 0 10mm;
	color: #444;
}

.cont {
	max-width:15cm;
	
}


.math {
	width: auto;
	padding: 5mm;
	display: run-in;
	color: #000;
	background: #0097A722;
	border-radius: 3mm;
}

.left {
	float: left;
	margin-right: 1cm;
}

div.endfloat {
	content: "";
	display: table;
	clear: both;

}

object.small {
	height: 6cm;
	width: 6cm;

}

#fail, #succ {
	text-align: center;
	padding: 5mm 0;
	margin-bottom: 5mm;
}

#succ {
	color: green;
	border: 1mm solid green;
}

#fail {
	color: red;
	border: 1mm solid red;
}

.button {
	font-size: 14pt;
	color: #FFF;
	background: #0097A7;
	border: none;
	padding: 2mm 5mm;
	border-radius: 1mm;
	transition: box-shadow 0.2s ease;

}

.button:hover {
	box-shadow: 0 1px 6px #555;
	cursor: pointer;
}

.field {
	border: 1mm solid #0097A7;
	background: #F5F5F5;
	padding: 2mm 2mm;
	margin-bottom: 5mm;
	width: 100%;
}

form {
	width: 90%;
}

.articleimg {
	margin: 0 auto;
	width: 90%;
}

.articleimg a {
	text-decoration: none;
	display: inline-block;
	width: 42%;
	margin: 4mm 4mm;
}

.articleimg img, .front img {
	width: 100%;
	border: 0.5mm solid #444;
	transition: opacity 0.2s ease;
}

.articleimg img:hover, .front img:hover {
	border: 0.5mm dashed #444;
	opacity: 0.9;
}

.front img {
	width: 25%;
}


.front p {
	width: 70%;
	float: left;
	padding-right: 5mm;
}

/* ********** DC motor animation ********** */

#anim, #anim:focus{
	background: none;
	border: none;	
	outline: none;
}


#motor {
	height: 10cm;
	width: 10cm;
	position: relative;
	margin: 4mm;
}

.motor_overlay {
	position: absolute;
	margin: auto;
}


#rotor {
	height: 4.2cm;
	width: 4.2cm;
	top: 3mm;
	left: 0;
	right: 0;
	bottom: 0;

	animation: rotation 8s linear infinite;
	animation-play-state: paused;
}

#an1 {
	height: 9.3cm;
	width: 9.3cm;
	top: 0;
	left: 0;
	right: 2mm;
	bottom: 0;
	
	animation: annotation1 8s linear infinite;
	animation-play-state: paused;
}

#an2 {
	height: 9.3cm;
	width: 9.3cm;
	top: 1mm;
	left: 0;
	right: 2mm;
	bottom: 0;

	animation: annotation2 8s linear infinite;
	animation-play-state: paused;
}

#fst {
	display: none;
	animation: annotation1 8s linear infinite;
	animation-play-state: paused;	
	
}

#snd {
	display: none;
	animation: annotation2 8s linear infinite;
	animation-play-state: paused;	
	
}

@keyframes rotation {
	
	0% {
		transform: rotate(0deg);
	}

	100% {
		transform: rotate(360deg);
		
	}
	
}

@keyframes annotation1 {
	
	0% {
		opacity: 1;
	}

	25% {
		opacity: 0;
		
	}
	
	75% {
		opacity: 0;
		
	}
	
}

@keyframes annotation2 {
	
	0% {
		opacity: 0;
		
	}
	30% {
		opacity: 1;
	}

	
	100% {
		opacity: 0;
		
	}
	
}

/* ********** am Fusse des Berges ********** */

footer {
	color: #0097A7;
	max-width: 26cm;
	position: fixed;
	padding: 2mm 0 2mm 0;
	left: 0;
	right: 0;
	bottom: 0;
	margin: 0 auto;
	background: rgba(178, 235, 242, 0.7);
	box-shadow: 0 -2px 3px rgba(0,0,0,0.16), 0 -2px 3px rgba(0,0,0,0.23);
	text-align: center;
	backdrop-filter: blur(6px);
	border-top-left-radius: 2mm;
	border-top-right-radius: 2mm;
	z-index: 1;
}
