/*
 * HTML5 Boilerplate
 *
 * 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,
button,
input,
select,
textarea {
    color: #222;
}

body {
    font-size: 1em;
    line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight: h5bp.com/i
 * These selection rule sets have to be separate.
 * 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 images and the bottom of their containers: h5bp.com/i/440
 */

img { vertical-align: middle;}

/*
 * Remove default fieldset styles.
 */

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

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

textarea { resize: vertical;}

/* ==========================================================================
   Chrome Frame prompt
   ========================================================================== */

.chromeframe {
    margin: 0.2em 0;
    background: #ccc;
    color: #000;
    padding: 0.2em 0;
}

/* ==========================================================================
   Custom styles
   ========================================================================== */

@font-face { font-family: 'lato'; src: url('../fonts/lato-lig-webfont.eot'); src: url('../fonts/lato-lig-webfont.eot?#iefix') format('embedded-opentype'), url('../fonts/lato-lig-webfont.woff') format('woff'), url('../fonts/lato-lig-webfont.ttf') format('truetype'), url('../fonts/lato-lig-webfont.svg#latolight') format('svg'); font-weight: lighter; font-style: normal;}
@font-face { font-family: 'lato'; src: url('../fonts/lato-reg-webfont.eot'); src: url('../fonts/lato-reg-webfont.eot?#iefix') format('embedded-opentype'), url('../fonts/lato-reg-webfont.woff') format('woff'), url('../fonts/lato-reg-webfont.ttf') format('truetype'), url('../fonts/lato-reg-webfont.svg#latoregular') format('svg'); font-weight: normal; font-style: normal;}
@font-face { font-family: 'lato'; src: url('../fonts/lato-bol-webfont.eot'); src: url('../fonts/lato-bol-webfont.eot?#iefix') format('embedded-opentype'), url('../fonts/lato-bol-webfont.woff') format('woff'), url('../fonts/lato-bol-webfont.ttf') format('truetype'), url('../fonts/lato-bol-webfont.svg#latobold') format('svg'); font-weight: bold; font-style: normal;}
@font-face { font-family: 'barkentina'; src: url('../fonts/barkentina_1-webfont.eot'); src: url('../fonts/barkentina_1-webfont.eot?#iefix') format('embedded-opentype'), url('../fonts/barkentina_1-webfont.woff') format('woff'), url('../fonts/barkentina_1-webfont.ttf') format('truetype'), url('../fonts/barkentina_1-webfont.svg#barkentina_1regular') format('svg'); font-weight: normal; font-style: normal;}   
   
*, *:before, *:after { -moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box; -webkit-transition: all 0.15s linear; -moz-transition: all 0.15s linear; -ms-transition: all 0.15s linear; -o-transition: all 0.15s linear; transition: all 0.15s linear;}

html{ background: url("../img/bg.jpg") no-repeat fixed center center / cover; background-color:rgb(0,51,0);}
html, body{
	height: 100%;
	width: 100%;
	margin: 0;
	padding: 0;
	-webkit-text-size-adjust: none;
    -ms-text-size-adjust: none;
    font-family: 'lato', Helvetica, Arial, "Lucida Grande", sans-serif;
	color: #ffffff;
}

#logo {
	background: url("../img/hoerwald_logo.svg") 0 100%;
    width: 210px;
    height: 96px;
	text-indent: -9999px;
	background-repeat: no-repeat;
	background-size: 210px auto;
	display: block;
	margin: 0 auto;
}
#logo path{ fill: #ffffff; transition-property: fill; transition-duration: 0.3s;}
#logo:hover path{ fill: #00cccc;}

nav {
	/*height: 51px;
	border-top: 1px solid rgba(225,225,225,.15);*/
	width: 100%;
	position: absolute;
	bottom: 0;
	font-size: 0.75em;
}
nav ul{ margin: 0; padding: 0;}
nav li{ width: 50% /*42.5%*/; display: inline-block; float: left; padding: 12px 36px 15px; border-top: 1px solid rgba(225,225,225,.15);}
nav li:first-child, nav li:nth-child(3){ border-right: 1px solid rgba(225,225,225,.15);}
nav li:first-child { padding: 12px 36px 15px 32px;}
nav a {white-space: nowrap; text-decoration: none; color: #ffffff; height: 22px; display: inline-block;}

nav ul li a:before {
    color: #00cccc;
    content: "";
    margin: 0 6px 0 0;
    transition: color 0.3s linear 0s;
    vertical-align: middle;
	width: 24px;
	height: 24px;
	display: inline-block;
	margin-bottom: 2px;
}
nav ul li a.switch:before,
nav ul li a.switchback:before  { width: 30px;}
.web {background: url(../img/icon_website.svg) no-repeat; background-size: 24px auto;}
.qrcode {background: url(../img/icon_qrcode.svg) no-repeat;}
.switch  {background: url(../img/icon_switchback.svg) no-repeat; background-size: 30px auto;}
.switchback  {background: url(../img/icon_switch.svg) no-repeat; background-size: 30px auto;}
.language {background: url(../img/icon_language.svg) no-repeat; background-size: 24px auto;}
.dataprivacy { background: url(../img/icon_dataprivacy.svg) no-repeat; background-size: 24px auto; }

.kids .switchback  {background: url(../img/icon_switch_2.svg) no-repeat; background-size: 30px auto;}
.kids .web {background: url(../img/icon_website_2.svg) no-repeat; background-size: 24px auto;}
.kids .language {background: url(../img/icon_language_2.svg) no-repeat; background-size: 24px auto;}
.kids .dataprivacy { background: url(../img/icon_dataprivacy_2.svg) no-repeat; background-size: 24px auto;}

#desktop { max-width: 1680px; width: 100%;	padding: 5% 10% 10%; margin: 0 auto;}

h1 {
	font-family: 'barkentina', Helvetica, Arial, "Lucida Grande", sans-serif;
	font-size: 3.75em;
	line-height: 1.063em;
    color: #00cccc;    
	font-weight: normal;
}

p{
    font-size: 1em;
	line-height: 1.5em;
	font-weight: lighter;
}
p:last-child{margin-bottom: 0;}

#desktop a {
    text-decoration: none;
	color: #ffffff;
	border-bottom: 1px solid #ffffff;
	padding: 0;
}

#desktop a:hover { color: #00cccc; border-bottom: 1px solid #00cccc;}

#player { display: none; }

/* Tablet Hochformat */

@media handheld, only screen and (max-width: 767px) and (orientation:portrait) {

#logo { width: 156px; height: 54px; background-size: 156px auto; margin: 0 auto;}
#player { display: block;}
#desktop { display: none;}
#track-info-container, #time-info-container, .slider_wrapper {padding: 0 36px;}
	
}

/* Smartphone Querformat */

@media handheld, only screen and (max-width: 767px) and (orientation:landscape) {

#logo { width: 156px; height: 54px; background-size: 156px auto; margin: 0 auto;}
#player { display: block; height: 73%}
#desktop { display: none;}
#track-info-container, #time-info-container, .slider_wrapper {padding: 0 36px;}
#amplitude-play-pause { float: left; margin: 0 -12px 0 36px; width: 156px; height: 156px;}
.amplitude-paused, .amplitude-playing { background-size: 156px auto;}
}

/* Smartphone Hochformat */

@media handheld, only screen and (max-width: 420px) {

#track-info-container, #time-info-container, .slider_wrapper {padding: 0 18px;}
nav li {padding: 12px 12px 15px 15px; }
nav li:last-child{ padding: 12px 12px 15px;}
}

/* altes Smartphone Hochformat */

@media handheld, only screen and (max-width: 420px) and (max-height: 540px) {

#track-info-container, #time-info-container, .slider_wrapper {padding: 0 12px;}
#amplitude-play-pause { width:90px; height: 90px;}
.amplitude-paused, .amplitude-playing { background-size: 90px auto;}
#amplitude-now-playing-artist{ font-size: 1.25em; line-height: 1.125em; margin-top: -15px;}
#amplitude-now-playing-title{ font-size: 4.5em; line-height: 1.125em; margin-top: -12px;}
#amplitude-song-slider{ margin-top: 12px;}
nav a { height: 18px; }
nav li {padding: 13px 6px 14px 12px; }
nav li:first-child{ padding: 13px 6px 14px 8px;}
nav ul li a:before { width: 18px; height: 18px; margin: 0 6px 2px 0;}
nav ul li a.switch:before,
nav ul li a.switchback:before  { width: 22px;}
.web, .language, .dataprivacy, .qrcode, .kids .web, .kids .language, .kids .dataprivacy {background-size: 18px auto;}
.switch, .kids .switchback {background-size: 22px auto;}
    
}

/* altes Smartphone Querformat */

@media handheld, only screen and (max-width: 480px) and (orientation:landscape) {

#player { display: block; height: 71%}
#desktop { display: none;}
#track-info-container, #time-info-container, .slider_wrapper {padding: 0 24px;}
nav li {padding: 12px 24px 16px; }
#amplitude-play-pause { float: left; margin: 0 -12px 0 24px; width: 96px; height: 96px;}
.amplitude-paused, .amplitude-playing { background-size: 96px auto;}
#amplitude-now-playing-artist{ font-size: 1.125em; line-height: 1.125em; margin-top: -10px;}
#amplitude-now-playing-title{ font-size: 3.5em; line-height: 1.125em; margin-top: -10px;}
#amplitude-song-slider{ margin-top: 12px;}
#amplitude-song-slider{ height: 8px; border-radius: 4px; margin-top: 9px;}
#amplitude-track-progress{ height: 8px; border-radius: 4px;}
#time-info-container{ margin-top: 5px;}

}


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

/*
 * Image replacement
 */

.ir {
    background-color: transparent;
    border: 0;
    overflow: hidden;
    /* IE 6/7 fallback */
    *text-indent: -9999px;
}

.ir:before {
    content: "";
    display: block;
    width: 0;
    height: 150%;
}

/*
 * Hide from both screenreaders and browsers: h5bp.com/u
 */

.hidden {
    display: none !important;
    visibility: hidden;
}

/*
 * Hide only visually, but have it available for screenreaders: h5bp.com/v
 */

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

/*
 * Extends the .visuallyhidden class to allow the element to be focusable
 * when navigated to via the keyboard: h5bp.com/p
 */

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

/*
 * Hide visually and from screenreaders, 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;
}

/*
 * For IE 6/7 only
 * Include this rule to trigger hasLayout and contain floats.
 */

.clearfix {
    *zoom: 1;
}

/* ==========================================================================
   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,
       (-o-min-device-pixel-ratio: 5/4),
       (-webkit-min-device-pixel-ratio: 1.25),
       (min-resolution: 120dpi) {
    /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid required HTTP connection: h5bp.com/r
   ========================================================================== */

@media print {
    * {
        background: transparent !important;
        color: #000 !important; /* Black prints faster: h5bp.com/s */
        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 for images, or javascript/internal links
     */

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

    pre,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    thead {
        display: table-header-group; /* h5bp.com/t */
    }

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

    img {
        max-width: 100% !important;
    }

    @page {
        margin: 0.5cm;
    }

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

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