/* HTML5 Boilerplate
 * ==|== normalize.css ==========================================================
 */
article, aside, details, figcaption, figure, footer, header, hgroup, nav, section {
    display: block;
}

audio, canvas, video {
    display: inline-block;
    *display: inline;
    *zoom: 1;
}

    audio:not([controls]) {
        display: none;
    }

[hidden] {
    display: none;
}

html {
    font-size: 100%;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-size: 13px;
    line-height: 1.231;
}

body, button, input, select, textarea {
    font-family: sans-serif;
    color: #222;
}

::-moz-selection {
    background: #666;
    color: #fff;
    text-shadow: none;
}

::selection {
    background: #666;
    color: #fff;
    text-shadow: none;
}

a {
    color: #00e;
}

    a:visited {
        color: #551a8b;
    }

    a:hover {
        color: #06e;
    }

    a:focus {
        outline: thin dotted;
    }

    a:hover, a:active {
        outline: 0;
    }

abbr[title] {
    border-bottom: 1px dotted;
}

b, strong {
    font-weight: bold;
}

blockquote {
    margin: 1em 40px;
}

dfn {
    font-style: italic;
}

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}

ins {
    background: #ff9;
    color: #000;
    text-decoration: none;
}

mark {
    background: #ff0;
    color: #000;
    font-style: italic;
    font-weight: bold;
}

pre, code, kbd, samp {
    font-family: monospace, monospace;
    _font-family: 'courier new', monospace;
    font-size: 1em;
}

pre {
    white-space: pre;
    white-space: pre-wrap;
    word-wrap: break-word;
}

q {
    quotes: none;
}

    q:before, q:after {
        content: "";
        content: none;
    }

small {
    font-size: 85%;
}

sub, sup {
    font-size: 75%;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
}

h1, h2, h3, h4, h5, h6, p {
    margin: 0;
    padding: 0;
}

sup {
    top: -0.5em;
}

sub {
    bottom: -0.25em;
}

ul, ol {
    margin: 1em 0;
    padding: 0 0 0 40px;
}

dd {
    margin: 0 0 0 40px;
}

nav ul, nav ol {
    list-style: none;
    list-style-image: none;
    margin: 0;
    padding: 0;
}

img {
    border: 0;
    -ms-interpolation-mode: bicubic;
    vertical-align: middle;
}

svg:not(:root) {
    overflow: hidden;
}

figure {
    margin: 0;
}

form {
    margin: 0;
}

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

label {
    cursor: pointer;
}

legend {
    border: 0;
    *margin-left: -7px;
    padding: 0;
}

button, input, select, textarea {
    font-size: 100%;
    margin: 0;
    vertical-align: baseline;
    *vertical-align: middle;
}

button, input {
    line-height: normal;
    *overflow: visible;
}

table button, table input {
    *overflow: auto;
}

button, input[type="button"], input[type="reset"], input[type="submit"] {
    cursor: pointer;
    -webkit-appearance: button;
}

input[type="checkbox"], input[type="radio"] {
    box-sizing: border-box;
}

input[type="search"] {
    -webkit-appearance: textfield;
    -moz-box-sizing: content-box;
    -webkit-box-sizing: content-box;
    box-sizing: content-box;
}

    input[type="search"]::-webkit-search-decoration {
        -webkit-appearance: none;
    }

button::-moz-focus-inner, input::-moz-focus-inner {
    border: 0;
    padding: 0;
}

textarea {
    overflow: auto;
    vertical-align: top;
    resize: vertical;
}

    input:invalid, textarea:invalid {
        background-color: #f0dddd;
    }

table {
    border-collapse: collapse;
    border-spacing: 0;
}

td {
    vertical-align: top;
}

/* ==|== non-semantic helper classes ======================================== */
.ir {
    display: block;
    border: 0;
    text-indent: -999em;
    overflow: hidden;
    background-color: transparent;
    background-repeat: no-repeat;
    text-align: left;
    direction: ltr;
}

    .ir br {
        display: none;
    }

.hidden {
    display: none !important;
    visibility: hidden;
}

.visuallyhidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

    .visuallyhidden.focusable:active, .visuallyhidden.focusable:focus {
        clip: auto;
        height: auto;
        margin: 0;
        overflow: visible;
        position: static;
        width: auto;
    }

.invisible {
    visibility: hidden;
}

header {
    height: 54px;
}

    header .bar {
        background: #fff;
        height: 54px;
        font-weight: bold;
        position: relative;
        padding-left: 10px;
        padding-right: 10px;
        overflow: hidden;
        display: flex;
        align-items: center;
    }

        header .bar .title {
        }

    header .apollo-logo {
        display: block;
        width: 192px;
        height: 48px;
        background: url("/img/ApolloTyresLtd_zw-web.png") no-repeat left center;
        background-size: contain;
        position: relative;
        z-index: 1;
        float: left;
        max-width: 100%;
    }

    header .vredestein-logo {
        display: block;
        width: 249px;
        height: 48px;
        background: url("/img//Apollo_Vredestein_zw-web.png") no-repeat left center;
        background-size: contain;
        position: relative;
        z-index: 1;
        float: right;
    }

    header .bar .title-wrap {
        position: relative;
        width: 100%;
        height: 44px;
        line-height: 16px;
        padding-left: 15px;
        padding-right:15px;
        align-content: center;
    }

    header .rooster {
        border-top: 0;
    }

        header .rooster .column {
            height: -1px;
            background: #eee;
        }

footer {
    position: fixed;
    height: 60px;
    bottom: 0;
    left: 0;
    width: 100%;
    border-top: 1px solid #000;
    background: white;
    z-index: 99;
}

    footer ul.block-grid {
        margin-top: 5px;
    }

* {
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

html {
    font-size: 12px;
    color: black;
}

body {
    font-family: Arial, "Helvetica", sans-serif;
}

    /* Margin toevoegen wanneer de website standalone op ios draait, ivm bar */
    body.standalone {
        margin-top: 20px;
    }

        body.standalone footer {
            bottom: 20px;
        }

    /* Fix voor iPhone */
    body.iphone #container #main {
    }

    html, body, body > form {
        height: 100%;
        width: 100%;
    }

#container {
    height: 100%;
    position: relative;
}

    #container #main {
        position: absolute;
        top: 54px;
        bottom: 0px;
        width: 100%;
        overflow: auto;
        z-index: 80;
        padding-bottom: 60px;
    }

        #container #main > div {
            width: 100%;
        }


body.rooster header {
    height: 90px;
}

.rooster.header {
    float: left;
    -webkit-box-shadow: 0px 5px 5px 0px rgba(0, 0, 0, 0.25);
    -moz-box-shadow: 0px 5px 5px 0px rgba(0, 0, 0, 0.25);
    box-shadow: 0px 5px 5px 0px rgba(0, 0, 0, 0.25);
    position: relative;
    z-index: 100;
}

body.rooster header .rooster .column {
    height: 43px;
}

body.rooster #container #main {
    top: 98px;
}

body.no-footer footer {
    display: none;
}

body.no-footer #container #main {
    bottom: 0;
}

ul.block-grid {
    margin: 0;
    padding: 0;
    list-style: none;
    line-height: 1em;
}

ul.block-grid {
    *zoom: 1;
}

    ul.block-grid:before, ul.block-grid:after {
        content: "";
        display: table;
    }

    ul.block-grid:after {
        clear: both;
    }

    ul.block-grid li {
        float: left;
        padding: 0.1em 0.5em;
        width: 50%;
    }

.rooster {
    font-weight: bold;
    position: relative;
    width: 100%;
    -moz-box-sizing: content-box;
    -webkit-box-sizing: content-box;
    box-sizing: content-box;
    overflow: visible;
}

.rooster {
    *zoom: 1;
}

    .rooster:before, .rooster:after {
        content: "";
        display: table;
    }

    .rooster:after {
        clear: both;
    }

    .rooster .column {
        position: relative;
        width: 12.5%;
        float: left;
        text-align: center;
        height: 3em;
        text-shadow: 0px 1px 1px white;
    }

        .rooster .column .inner {
            line-height: 3em;
        }

        .rooster .column span.dienst {
            margin-top: 18px;
            display: inline-block;
            line-height: 16px;
            z-index: 6;
            position: relative;
        }

    .rooster .header .column {
        text-shadow: 0px 1px 1px rgba(0, 0, 0, 0.7);
    }

    .rooster .column * {
        z-index: 5;
    }

    .rooster .column .inner {
        border-bottom: 1px solid #ddd;
        border-left: 1px solid #ddd;
        width: 100%;
        height: 100%;
        background: white;
    }

    .rooster .column .date {
        color: #000;
        position: absolute;
        font-size: 10px;
        top: 0.5em;
        right: 0.5em;
        line-height: 1em;
        text-shadow: none;
        z-index: 6;
    }

    .rooster .column .dienst.dienst-N {
        color: red;
    }

    .rooster .column .uitzondering-type {
        position: absolute;
        top: 0;
        left: 1px;
        bottom: 1px;
        right: 0;
        z-index: 0;
    }

    .rooster .column .uitzonderingen {
        position: absolute;
        bottom: 0.25em;
        right: 0.25em;
        text-align: right;
        line-height: 1em;
    }

        .rooster .column .uitzonderingen img {
            cursor: pointer;
            padding: 12px 11px 3px 12px;
        }

    .rooster .column.week {
        background: #eee;
    }

        .rooster .column.week.current {
            background: #73C04F;
        }

            .rooster .column.week.current .inner {
                background: #96A5D6;
            }

        .rooster .column.week .inner {
            background: #ced0d3;
        }

            .rooster .column.week .inner .year {
                position: absolute;
                bottom: 0.5em;
                right: 0.5em;
                font-size: 80%;
                line-height: 10px;
            }

    .rooster .overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=0);
        opacity: 0;
        display: none;
        z-index: 10;
    }

        .rooster .overlay .bg {
            background: #000;
            filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=60);
            opacity: 0.6;
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
        }

        .rooster .overlay .fg {
            position: relative;
            z-index: 2;
            width: 50%;
            margin: auto;
            background: #fff;
            padding: 1em;
            margin-top: 2em;
            min-width: 300px;
        }

            .rooster .overlay .fg h2 {
                margin: 0 0 0.5em 0;
            }

            .rooster .overlay .fg .close {
                cursor: pointer;
                position: absolute;
                right: 4px;
                top: 9px;
            }

#main .rooster {
}

.rooster .header .inner {
    background: #515151;
    color: white;
    border-top: 1px solid #000;
}

ul.legenda li span {
    display: inline-block;
    width: 1em;
    height: 1em;
    border: 1px solid #000;
}

/* Algemene styling ==========================================================
 */

body {
}

h2 {
    display: block;
    background: #666766 url(/img/gradientheader.png) left top repeat-x;
    color: white;
    height: 30px;
    font: bold 15px/30px Arial, "Helvetica Neue", Helvetica, sans-serif;
    text-transform: uppercase;
    border-top: 1px solid #595a5a;
    border-bottom: 1px solid #373737;
    text-shadow: 0px -1px 1px rgba(0, 0, 0, 0.4);
    padding-left: 17px;
}

#main p a {
    display: block;
    height: 39px;
    color: #000;
    font: bold 15px/40px Arial, "Helvetica Neue", Helvetica, sans-serif;
    background: #fff;
    text-shadow: 0px 1px 1px rgba(255, 255, 255, 0.9);
    text-decoration: none;
    text-transform: uppercase;
    padding-left: 17px;
    border-bottom: 1px solid #ddd;
}

#main p.ploeg a {
    color: #521972;
}

.homeheader {
    height: 171px;
    background: url(/img/auto.jpg) left top no-repeat;
    width: 100%;
    position: relative;
}

h1 {
    display: inline-block;
    height: 27px;
    color: white;
    background: url(/img/titel.png) right top no-repeat;
    padding-right: 50px;
    font: bold 15px/28px Arial, "Helvetica Neue", Helvetica, sans-serif;
    text-shadow: 0px -1px 1px rgba(0, 0, 0, 0.4);
    padding-left: 17px;
}

.homeheader h1 {
    position: absolute;
    bottom: 0;
}

.vervolgheader h1 {
}

@media screen and (orientation: portrait) {
}

@media screen and (orientation: landscape) {

    ul.block-grid.legenda li {
        width: 33%;
    }

    #container #main {
        bottom: 0px;
    }

    footer {
        height: 50px;
    }
}
