/*! HTML5 Boilerplate v6.1.0 | MIT License | https://html5boilerplate.com/ */

/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html {
    color: #222;
    font-size: 12px;
    line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * Vendor-prefixed and regular ::selection selectors cannot be combined:
 * https://stackoverflow.com/a/16982510/7133471
 *
 * Customize the background color to match your design.
 */

::-moz-selection {
    background: #b3d4fc;
    text-shadow: none;
}

::selection {
    background: #b3d4fc;
    text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
    vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
    resize: vertical;
}

/* ==========================================================================
   Browser Upgrade Prompt
   ========================================================================== */

.browserupgrade {
    margin: 1em 0;
    background: #ccc;
    color: #000;
    padding: 1em 0;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

html {
    background: #ffe000;
    font-family: 'Avenir Next', 'Nunito Sans', sans-serif;
    font-weight: 900;
    text-transform: uppercase;
    line-height: 1.1;
    color: #fff;
    
    /* Schaal van de website wordt op deze grootte gebaseerd: */
    font-size: 3.75vw;
    }
    
#desktop-content {
	display: none;
	}

h1, h2 {
    font-weight: 900;
    margin: 0;
    }

p {
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 300;
    }

a {
	color: inherit;
	}

a.btn {
    font-family: 'Avenir Next', 'Nunito Sans', sans-serif;
    font-weight: 900;
    display: inline-block;
    text-decoration: none;
    text-align: center;
    padding: 1em 0.75em;
    box-shadow: 0.3em 0.3em #000;
    line-height: 1em;
    }
    
a.btn.arrow:after { content: ' \2192'; }

.large-emoji {
    display: block;
    font-size: 3em;
    margin: 0.375em 0 0.125em;
    }

.blue { background-color: #0019ff; color: #fff; }
.red { background-color: #f90e0a; color: #fff; }
.pink { background-color: #ff31ff; color: #fff; }
.turq, .turqoise { background-color: #26e1d0; color: #fff; }
.yellow { background-color: #ffe000; color: #000; }
.white { background-color: #fff; color: #000; }
.green { background-color: #009d00; color: #fff; }

/* ======
   HEADER
   ====== */

header {
    background: #ff31ff;
    height: 4.75em;
    }

header a#logo {
    position: absolute;
    z-index: 999;
    right: 0.75em;
    top: 0.75em;
    }

header a#logo img {
    height: 7.5em;
    }

/* =========
   MENU
   ========= */

a#open-menu {
    position: absolute;
    top: 1.5em;
    left: 1.5em;
    color: #fff;
    }

a#open-menu .hamburger {
	display: inline-block;
	width: 2.25em;
	font-size: inherit;
	line-height: 1.75;
	background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" fill="rgb(255,255,255)"><rect y="0" width="100%" height="20%" rx="5%" ry="5%" /><rect y="40%" width="100%" height="20%" rx="5%" ry="5%" /><rect y="80%" width="100%" height="20%" rx="5%" ry="5%" /></svg>') center / 80% 80% no-repeat;
}
a#open-menu .hamburger:before {
	content: "\000A0";
}

ul#header-menu {
    display: none;
    position: absolute;
    top: 2.1em;
    }

ul#header-menu,
ul#footer-links {
    background: #ffe000;
    width: 100%;
    margin: 0;
    padding: 2em 0;
    font-size: 2.25em;
    color: #fff;
    list-style-type: none;
    z-index: 100;
    }

ul#header-menu li,
ul#footer-links li {
    color: #000;
    width: 100%;
    text-align: center;
    }

ul#header-menu a,
ul#footer-links a {
    color: inherit;
    text-decoration: none;
    }

/* =======
   CONTENT
   ======= */

section {
    background: #000;
    font-size: 1.5em;
    }

section.text {
    padding: 2em;
    text-align: center;
    }
    
section.text h1, section.text h2 {
    margin: 0.75em 0;
    }
    
section.text p {
    font-size: : 1.5em;
    line-height: 1.25em;
    }
    
section.text.large p {
	font-size: 1.25em;
	}

section:first-of-type {
    padding-top: 2.5em;
    }

/* ======
   SPLASH
   ====== */

section.full {
	position: relative;
    z-index: 0;
	padding: 0;
	margin: 0;
    height: 100vh;
    }
    
section.full .center {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
	}
    
section:first-of-type.full {
    height: calc(100vh - 3em);
	}

section#splash-text .center {
	text-align: center;
	padding: 0 2em;
    top: calc(50% - 1em);
	}

section#splash-text h2 {
	display: inline-block;
	text-align: center;
	margin: 0 0 1em;
	font-size: 1.75em;
	}
	
section#splash-text h2 span.highlight {
	color: #ff31ff;
	}
	
section#splash-text .spin {
	padding: 1px 0 3px;
	text-align: center;
	position: absolute;
	left: 10%;

	-webkit-animation-name: spin;
	-webkit-animation-duration: 2000ms;
	-webkit-animation-iteration-count: infinite;
	-webkit-animation-timing-function: linear;
	-moz-animation-name: spin;
	-moz-animation-duration: 2000ms;
	-moz-animation-iteration-count: infinite;
	-moz-animation-timing-function: linear;
	-ms-animation-name: spin;
	-ms-animation-duration: 2000ms;
	-ms-animation-iteration-count: infinite;
	-ms-animation-timing-function: linear;
	-o-transition: rotate(3600deg);
	}

section#splash-text .spin .large-emoji {
	font-size: 5em;
	}

@-moz-keyframes spin {
    from { -moz-transform: rotate(0deg); }
    to { -moz-transform: rotate(360deg); }
	}

@-webkit-keyframes spin {
    from { -webkit-transform: rotate(0deg); }
    to { -webkit-transform: rotate(360deg); }
	}
	
@keyframes spin {
    from {transform:rotate(0deg);}
    to {transform:rotate(360deg);}
	}

section#splash-image {
	text-align: center;
	}
    
section#splash-image img,
section#splash-image video {
	display: inline-block;
    max-width: 50%;
    margin: 3em 0
	}
    
/* ==========
   EVENT LIST
   ========== */

section#events {
    font-size: 2em;
    padding: 0;
    }

section#events ul {
    list-style-type: none;
    padding: 0; margin: 0;
    }

section#events ul li {
    display: inline-block;
    margin: 0; padding: 0;
    position: relative;
    width: 100%;
    height: 7.5em;
    margin-bottom: -0.25em;
    }

section#events ul li a {
    display: block;
    position: relative;
    height: 100%;
    text-decoration: none;
    text-align: center;
    }

section#events ul li a div {
    position: absolute;
    width: 100%;
    top: 50%;
    transform: translateY(-50%);
    }

section#events ul li a span {
    display: block;
    padding: 0 22.5%;
    }

section#events ul li a span.event-date,
section#events ul li a span.event-soon {
    margin-bottom: 0.25em;
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 300;
    }

section#events ul li:nth-child(3n+1) { background: #0019ff; }
section#events ul li:nth-child(3n+2) { background: #f90e0a; }
section#events ul li:nth-child(3n+3) { background: #ff31ff; }

section#events ul li.unreleased .line {
	margin: 0; padding: 0;
	position: absolute;
    top: 50%;
    left: 50%;
    width: 6em;
    height: 1px;
    margin-left: -2.825em;
	-webkit-transform: rotate(27deg);
    border-bottom: 4px solid #fff;
/* 
	margin-left: -4.25em;
 */
	}
    
/* =====
   EVENT
   ===== */
   
section.event-header {
	text-align: center;
	padding: 2.5em 1em 1em;
	}
	
section.event-header span.event-date,
section.event-header span.event-soon {
	display: block;
    margin: 0.75em 0 0.125em;
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 300;
    font-size: 1.5em;
	}
	
section.event-header h1.event-name {
	margin: 0 0 1em;
	}
	
section.maps ul.maps {
	display: block;
	margin: 0; padding: 0;
	list-style-type: none;
	width: 100%;
	}
	
section.maps ul.maps li {
	margin: 0; padding: 0;
	display: inline-block;
	width: 50%;
	float: left;
	}
	
section.maps ul.maps li img.map {
	margin: 0;
	width: 100%;
	}
	
section.maps ul.maps li:last-of-type:after {
	clear: left;
	}

/* ====
   TIPS
   ==== */

section.tips {
    text-align: center;
    font-size: 2.25em;
    padding-left: 1.25em;
    padding-right: 1.25em;
    padding-bottom: 1em;
    }

section.tips p {
    font-family: 'Avenir Next', 'Nunito Sans', sans-serif;
    font-weight: 900;
    margin: 0;
    }

section.tips span.action {
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 300;
    display: inline-block;
    background: #303030;
    color: #fff;
    padding: 0.375em;
    border-radius: 0.5em;
    vertical-align: -0.5em;
    margin-bottom: 0.5em;
    position: relative;
    }

section.tips span.action:before {
    content: '\2588';
    -webkit-transform: rotate(45deg);
    -moz-transform: rotate(45deg);
    -o-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
    font-size: 0.75em;
    color: #303030;
    display: block;
    position: absolute;
    left: 50%;
    margin-top: 1.25em;
    margin-left: -0.5em;
    }

section.tips span.emoji {
	font-size: 1.75em;
	vertical-align: -0.5em;
	}
	
section#howto p.steps {
	margin: 2em 0;
	}
	
section#howto img.image {
	width: 12em;
	}
	
section#howto a.btn {
	margin-top: 2em;
	}
	
/* =========
   LANDSCAPE
   ========= */
@media only screen 
	and (min-device-width: 320px) 
	and (max-device-width: 812px)
	and (-webkit-min-device-pixel-ratio: 2)
	and (orientation: landscape) {
	
	html {
		font-size: 2vw;
		}

	section.full { position: relative; }	
	section.full .center { position: relative; }
	section:first-of-type.full { height: auto; }
	
	section#splash-text {
		padding: 8.5em 0 0;
		}

	section#splash-text .center {
		text-align: center;
		padding: 0 2em;
		}
	
}

/* =======
   DESKTOP
   ======= */
@media screen
/* 	and (min-device-width: 1280px) */
	and (min-width: 720px) {
	
    html {
        font-size: 1.35vh;

        /* The image used */
        background: #ffe000;
        /* background: url('../img/backdrops/camping.jpg') #111; */

        /* Full height */
        height: 100%;

        /* Center and scale the image nicely */
        background-position: center;
        background-repeat: no-repeat;
        background-size: cover;
        background-attachment: fixed;
        }
        
	#desktop-content {
		display: block;
		position: absolute !important;
		top: 10%;
		right: 10%;
		}
		
	#desktop-content img#logo-desktop {
		max-width: 12.5vw;
		}

    div#desktop-wrapper {
        position: absolute;
        background: #ffe000;
        width: calc(65vh * 0.56);
        height: 65vh;
        top: 50%;
        left: 50%;
        margin: -35vh 0 0 calc(-32.5vh * 0.56);
        overflow-y: scroll;
        }

	section.full { height: 100%; }
	section:first-of-type.full { height: calc(100% - 3em); }
	section#events ul li.unreleased .line { margin-left: -2.825em; }
	
}

/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers
 */

.hidden {
    display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * https://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 *
 * 1. For long content, line feeds are not interpreted as spaces and small width
 *    causes content to wrap 1 word per line:
 *    https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
 */

.visuallyhidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    white-space: nowrap; /* 1 */
}

/*
 * Extends the .visuallyhidden class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
    white-space: inherit;
}

/*
 * Hide visually and from screen readers, but maintain layout
 */

.invisible {
    visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *    `contenteditable` attribute is included anywhere else in the document.
 *    Otherwise it causes space to appear at the top and bottom of elements
 *    that receive the `clearfix` class.
 * 2. The use of `table` rather than `block` is only necessary if using
 *    `:before` to contain the top-margins of child elements.
 */

.clearfix:before,
.clearfix:after {
    content: " "; /* 1 */
    display: table; /* 2 */
}

.clearfix:after {
    clear: both;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 35em) {
    /* Style adjustments for viewports that meet the condition */
}

@media print,
       (-webkit-min-device-pixel-ratio: 1.25),
       (min-resolution: 1.25dppx),
       (min-resolution: 120dpi) {
    /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   https://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
    *,
    *:before,
    *:after {
        background: transparent !important;
        color: #000 !important; /* Black prints faster */
        -webkit-box-shadow: none !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }

    a,
    a:visited {
        text-decoration: underline;
    }

    a[href]:after {
        content: " (" attr(href) ")";
    }

    abbr[title]:after {
        content: " (" attr(title) ")";
    }

    /*
     * Don't show links that are fragment identifiers,
     * or use the `javascript:` pseudo protocol
     */

    a[href^="#"]:after,
    a[href^="javascript:"]:after {
        content: "";
    }

    pre {
        white-space: pre-wrap !important;
    }
    pre,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    /*
     * Printing Tables:
     * http://css-discuss.incutio.com/wiki/Printing_Tables
     */

    thead {
        display: table-header-group;
    }

    tr,
    img {
        page-break-inside: avoid;
    }

    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }

    h2,
    h3 {
        page-break-after: avoid;
    }
}
