@charset "utf-8";

html {
  background: #efefef;
  color: #333333;	
  font-family: Arial;
}

body {
  margin: 0.1em auto;
  max-width: 56em;
}

h1, main, aside, main svg {
  padding: 0.1em;
  margin: 0.1em;
}

h1 {
	text-align: center;
    color: #666666;
	animation: textwelle 10s;
	font-size: 2.2em;
    text-align: left;
}

h2, h3, h4, h5 {
  color: hsl(10,10%,20%);
  background: linear-gradient(to left, hsl(57, 8%, 60%), transparent 100%);
  font-family: Audiowide;
}

article { 
  text-align: justify; 
  order: 2; 
}

aside {
  text-align: justify; 
  flex: 1 auto;
  order: 4;
}
   
article img {
  width: 12%;
  float: left;
  margin-left: 0.1em;
  padding: 0.5em;  
}

section {
  text-align: justify;
  border-color: dimgrey ;
  flex: 1;
}

figure {
  display: inline-block;
  width: 30%;
  margin: 0.2em;
}
figure img {
  width: 100%;
}
figure figcaption {
  font-style: italic;
}

#styleswitcher  ul {
  list-style-type: none;
  margin-left: 0;
  padding-left: 0;
}

#styleswitcher button {
  width: 9em;
  margin-bottom: 0.2em;
  background: radial-gradient(hsl(10,20%,20%), transparent 80%);
  color: dimgray ;
  border: 0;
}

#styleswitcher  button:hover, #styleswitcher  button:focus {
  background: radial-gradient(hsl(2,90%,100%), transparent );
}

nav a {
  background: radial-gradient(hsl(2,100%,100%), transparent 80%);
  color: dimgrey;
}

nav a:hover, nav a:focus {
  background: radial-gradient(hsl(40,30%,90%), transparent 80%);
}

nav a[aria-current=page] {
	color:wheat ;
	border-color: black;
}

a {
  color: #333333 ;
}

a:hover,
a:focus {
  background: papayawhip ;
}

body {
  display: flex;
  flex-flow: row wrap;
}

header, nav, nav a, article, section, aside, footer {
  padding: 0.2em;
  margin: 0.2em;
  flex: 1 100%;
}

header {
  display: flex;
  flex-flow: row wrap;
}

header * {
  flex: 1 1 0%;
}

header img {
  flex: 0 0 150px;
  margin-right: 10px;
}

header nav {
  flex: 1 1 100%;
}

nav, nav ul, nav li{
  margin: 0;
  padding: 0;
  border: none;
}

nav ul {
  display: flex;
  flex-direction: column;
}

nav li {
  list-style-type: none;
  margin: 1.3em 0;
  flex: 1 1 100%;
}

nav a {
  display: inline-block;
  width: 95%;
  margin: 0;
  text-decoration: none;
  text-align: center;
}

header nav {
	text-align: center;
	animation: textwelle 10s;
	font-size: 1.1em;
}

@keyframes textwelle {
	0% {
		transform: scale(0.1);
		opacity: 0;
	}
	70% {
		transform: scale(1.25);
		opacity: 1;
	}
	100% {
		transform: scale(1);
		opacity: 1;
	}
}

footer {
  display: flex;
  flex-flow: row wrap;
}
footer * {
  flex: 1 1 0%;
  justify-content: space-between;
}
footer p {
  text-align: right;
}

@media all and (min-width: 35em) {
header img {
  margin-right: 10px;
}
nav ul {
  flex-direction: row;
}
nav li {
  margin: 0 1em;
  flex: 1 1 0%;
}
    
ul,
li {
	margin: 0.1em;
	padding: 0.1em;
}

li {
	display: inline-block;
	list-style-type: none;
	width: 45%;
}

img {
	padding: 0;
	margin: 0;
}

button {
	padding: 0.1em;
}

@media all and (min-width: 35em) {
	li {
		width: 10em;
	}
	button {
		padding: 0.1em;
		width: 10em;
		height: 13em;
		position: relative;
	}
	button img {
		border: 0;
		position: absolute;
		left: 0%;
		top: 0%;
		z-index: 1;
		box-shadow: 0;
		width: 9.2em;
		transition: all 1s;
	}
	button:focus img,
	button:hover img {
		border: 2em solid #eee;
		border-radius: 1em;
		position: absolute;
		left: -60%;
		top: -4%;
		width: 150%;
		z-index: 5;
		box-shadow: 1px 1px 5px #333;
		transition: all 1s;
	}
 
footer {
  order: 5;
}
}

@media all and (min-width: 50em) {
 article {

  order: 3;
  flex: 3 1 0%;
}
aside {
  flex: 1 1 0%;
}
#news {
  flex: 1 1 0%;	
  order: 2;
  align-self: center;
  height: 12em;
}
}

@keyframes ants { to { background-position: 100% 100% } }

table, th, td { 
  width: 100%;
  border: 1px solid; 
  border-collapse: collapse; 
  color: hsl(20,20%,30%);
}

th, td {
	padding: .5em;
}

th {
	background: hsl(10,10%,55%);
	color: #444444 ;
}

caption {
	caption-side: bottom;
	padding-top: 2em;
	font-style: italic;
}