@import 'https://fonts.googleapis.com/css?family=Roboto+Mono';
@import 'https://fonts.googleapis.com/css?family=Titillium+Web';

/**
 * Main styling
 */

body {
    background-color: #FDFDFD;
	color: #111;
	font: 20px 'Titillium Web';
	margin: 0;
    overflow-x: hidden;
}

main::before {
	background: url('img/logo-full-white.png') no-repeat center 60%, url('photo/banneri.jpeg') no-repeat center 60%;
	background-size: 50vh, cover;
	content: "";
	display: block;
	height: 50%;
	width: 100%;
}

@media screen and (min-width: 800px) {
	main::before {
		left: -50vw;
		height: 50vh;
		margin-left: 400px; /* Half of main's width */
		position: absolute;
		top: -50vh;
		width: 100vw;
	}

	main {
		margin: 50vh auto 0 auto;
		position: relative;
		width: 800px;
	}
}

footer {
	background-color: #111;
	color: #999;
	font: 16px 'Roboto Mono';
	margin-top: 10vh;
	padding: 1em;
	text-align: center;
}

footer a {
    color: inherit;
}

nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1;
}

nav::before {
    background-color: #111;
    content: "\2630"; /* Hamburger */
    color: #3CA;
    font-size: 180%;
    height: .8em;
    line-height: .8em;
    padding: .25em .3em .25em .2em;
    position: fixed;
    right: .5em;
    text-align: center;
    top: .5em;
    transition: color .1s ease;
    width: .8em;
    z-index: 2;
}

nav:hover::before, nav.open::before {
    color: #FFF;
    cursor: pointer;
}

nav a {
    background-color: #111;
    color: #FFF;
    display: none;
    padding: .5em .4em .5em 2em;
    text-decoration: none;
}

nav a:first-child {
    padding-top: 1em;
}

nav a:last-child {
    padding-bottom: 1em;
}

nav a:hover {
    color: #3CA;
    cursor: pointer;
}

@media screen and (min-width: 800px) {
    nav {
        margin-left: 50%;
        max-width: 810px;
        position: absolute;
        text-align: center;
        top: 0;
		transform: translateX(-50%);
        z-index: 1;
        width: 100%;
    }

    nav a, nav a:first-child, nav a:last-child {
        background-color: rgba(0, 0, 0, 0.2);
        color: #FFF;
        display: inline-block;
        padding: .4em .9em;
        transition: border-color .2s ease;
    }

    nav a:hover {
        background-color: rgba(51, 204, 170, 0.2); /* #3CA plus alpha */
        color: #FFF; /* Same as usual */
    }

    nav:hover a {
        display: inline-block;
    }

    nav::before {
        display: none;
    }
}

section {
	margin: .5em 0;
}

/**
 * Images
 */

img {
    margin: .5em 0;
    width: 100%;
}

/**
 * Headers
 */

h1, h2, h3, h4, h5, h6 {
	font-family: 'Roboto Mono';
	font-weight: 500;
	margin: .5em;
}

h1 {
	background-color: #111;
	color: #FFF;
	display: block;
	font-size: 150%;
	margin: 0;
	padding: .25em 1em;
	position: relative;
	text-align: center;
    top: -1em; /* To raise the element halfway on top of the main::before */
}

h2 {
	background-color: #111;
	color: #FFF;
	display: inline-block;
	font-size: 125%;
	padding: .25em .5em;
}

h1 + h2 {
	background-color: transparent;
	color: #111;
	display: block;
	font-size: 100%;
	font-style: italic;
    margin-bottom: 0;
    margin-top: 0;
    position: relative;
	text-align: center;
    top: -1em;
}

h3 {
	border-left: .5em #111 solid;
	font-size: 100%;
	padding-left: .5em;
}

h4 {
    margin: 1.5em .5em .5em .5em;
}

p + h2,
p + h3,
h2 + h3,
h2:first-child,
h3:first-child {
	margin-top: 1.5em;
}

/**
 * Tables
 */

table {
    border-spacing: 0;
    font-size: inherit;
    margin: 1em auto;
    min-width: 200px;
    position: relative;
    width: 50%;
}

td {
    padding: .25em 1em;
    width: 50%;
}

tr td:first-child {
    text-align: right;
}

tr:nth-child(odd) {
    background-color: #E7E7E7;
}

th {
    display: none;
}

/**
 * Paragraph-level styles
 */

a {
    color: #3A8;
    text-decoration: underline;
    transition: color .1s ease;
}

a:hover {
    text-decoration: none;
}

li {
	list-style-type: square;
}

p {
	margin: .5em;
}

ul {
    margin-bottom: .5em;
    margin-top: .5em;
}

/**
 * Magic by JS
 */

.accordion-trigger {
    border-color: #3CA;
    transition: color .1s ease;
}

.accordion-trigger:hover {
    color: #AAA;
    cursor: pointer;
}

/**
 * Embedded Google Maps
 */

.google-maps {
    margin: 1em .5em;
    height: 0;
    overflow: hidden;
    padding-bottom: 75%;
    position: relative;
}

.google-maps iframe {
    height: 100% !important;
    left: 0;
    position: absolute;
    top: 0;
    width: 100% !important;
}
