@import url('https://fonts.googleapis.com/css?family=Indie+Flower|Poiret+One|Exo+2|Bungee');

body {
	display: flex;
	flex-direction: column;
	height: 100vh;
	
	margin: 0;
	font-family: Arial, Verdana, sans-serif;
}

h1, h2, h3, h4, h5, h6 {
	margin: 0;
}

input {
	-webkit-appearance: none;
}

header {
	padding: 1em;
	background-color: white;
}

header > img {
	float: left;
	height: 3em;
	margin-right: 1em;
}

header > h1 {
	font-family: "Indie Flower", cursive;
	font-size: 3em;
	line-height: 1em;
	text-align: center;
	color: #DD3939;
}

header > h1 > span {
	text-transform: uppercase;
}

header + div {
	flex-grow: 1;
	display: flex;
	flex-direction: row;
}

aside {
	background-color: #EEE;
	min-width: 12em;
}

aside > nav > ul {
	list-style-type: none;
	padding: 0;
	margin: 0;
}

aside > nav #active {
	color: #DD3939;
}

aside > nav a {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: space-between;
	
	text-decoration: none;
	font-size: 1.1em;
	font-weight: bold;
	line-height: 1.2em;
	padding: 0.7em;
	color: black;
	border-top: solid 0.05em grey;
}

aside > nav li:last-of-type > a {
	border-bottom: solid 0.05em grey;
}

aside > nav a:hover {
	background-color: #BBB;
}

aside > nav a:hover > img {
	background-color: white;
}

aside > nav a > img {
	height: 1em;
	margin-left: 0.7em;
	border-radius: 0.1em;
}

aside + div {
	flex-grow: 1;
	display: flex;
	flex-direction: column;
	
	background-image: url("../bg.jpg");
	background-repeat: no-repeat;
	background-position: center;
    background-attachment: fixed;
	background-size: cover;
	
	overflow: auto;
	-webkit-overflow-scrolling: touch;
}

main {
	position: relative;
	flex-grow: 1;
	padding: 8.5vw;
}

.info {
    position: fixed;
    bottom: 1em;
    right: 1em;
    width: 20vw;
    padding: 0.7em;
    background-color: rgba(255, 255, 255, 0.9);
    border: solid 0.3em rgba(38, 190, 198, 0.9);
    border-radius: 0.3em;
    font-weight: bold;
    animation: foi 10s forwards;
}

.info.nl::before {
    content: "";
    display: block;
    width: 1.5em;
    height: 1.5em;
    background-color: white;
    background-image: url("../ico/newsletter.png");
    background-size: 1em;
    background-position: center;
    background-repeat: no-repeat;
    border: solid 0.3em #EBBA44;
    border-top-left-radius: 0.3em;
    border-bottom-left-radius: 0.3em;
    box-shadow: -0.1em -0.1em 0.5em grey;
    position: absolute;
    top: -0.3em;
    left: -2.1em;
    cursor: pointer;
}

.info.nl {
    bottom: 25vh;
    right: -21.7vw;
    background-color: white;
    border-color: #EBBA44;
    box-shadow: 0.3em 0.3em 0.5em grey, -0.1em 0.3em 0.5em grey, -0.1em -0.1em 0.5em grey, 0.3em -0.1em 0.5em grey;
    animation: none;
    transition: right 1s;
}

.info.nl.first {
    animation: nl 3s;
}

@keyframes nl {
    0% {
        right: 1em
    }
    66% {
        right: 1em;
    }
    100% {
        right: -21.7vw;
    }
}

.info.nl:hover, .info.nl:focus {
    right: 1em;
}

.info.nl:focus-within {
    right: 1em;
}

.info.nl h2 {
    margin-bottom: 0.4em;
}

.info.nl input {
    width: 100%;
    box-sizing: border-box;
    border: solid 0.1em black;
    outline: none;
    padding: 0.3em;
    margin-top: 0.4em;
    font-size: 0.8em;
}

.info.nl input[type=submit] {
    background-color: #EBBA44;
    border: none;
    margin-top: 0.6em;
    cursor: pointer;
}

@keyframes foi {
    90% {
        right: 1em;
        opacity: 1;
        transform: scale(1);
    }
    100% {
        right: -21.7vw;
        opacity: 0;
        transform: scale(0.8);
    }
}

footer {
	background-color: rgba(221, 57, 57, 0.9);
	padding: 2em;
}

footer > address {
	display: flex;
	flex-direction: row;
	justify-content: space-around;
	font-family: "Exo 2", cursive;
}

footer > address > span {
	text-align: center;
	color: #AAA;
	transition: color 0.3s;
}

footer > address > span:nth-of-type(2) {
	margin: 0 0.3em;
}

footer > address > span:hover {
	color: white;
}

footer > address a {
	display: block;
	color: white;
	text-decoration: none;
	border-top: solid 0.1em #AAA;
	padding: 0.2em;
}

footer > p {
	margin: 0;
	margin-top: 0.2em
}

footer > p > a {
	color: black;
	font-size: 0.7em;
	font-weight: bold;
	text-decoration: none;
}

footer > p > a:hover {
	text-decoration: underline;
}