/*! HTML5 Boilerplate v5.2.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.
 */

/* * Fonts */
@font-face {
    font-display: swap;
    font-family: "Aller W01 Light";
    font-style: normal;
    font-weight: 300;
    src: url("../fonts/aller.light.woff2") format("woff2"); 
}
@font-face {
    font-display: swap;
    font-family: "Aller W01 Bold";
    font-style: normal;
    font-weight: 700;
    src: url("../fonts/aller.bold.woff2") format("woff2"); 
}
/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html {
    color: #222;
    font-size: 1em;
    line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * 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 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: 0.2em 0;
    background: #ccc;
    color: #000;
    padding: 0.2em 0;
}

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



   grey: 4d4a4a;
   blue: 5393a9;

   font-family:'Aller W01 Light';
    font-family:'Aller W01 Bold';

   ========================================================================== */

body {
    color: #4d4a4a;
    font-family: "Aller W01 Light" !important;
    line-height: 1.8em;
}
a,
h1,
h2 {
    color: #5393a9;
}
a:hover {
    text-decoration: none;
}
h1,
h2 {
    text-transform: uppercase;
}
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: normal;
}
h1 {
    font-size: 2.6em;
}
#main h1,
#main h2,
#main h3,
#main h4,
#main h5,
#main h6,
#main p,
#main blockquote,
#main ul,
#main ol,
#main hr {
    margin-top: 0;
}
nav ul,
nav li {
    margin: 0;
    padding: 0;
    list-style-type: none;
}
header a,
footer a,
header a:active,
footer a:active,
header a:focus,
footer a:focus {
    color: #fff;
    text-decoration: none;
}

nav .current > a,
nav .section > a,
strong {
    font-family: "Aller W01 Bold";
}
header nav a:hover {
    color: #ccc;
}

.container {
    width: 1000px;
    margin: 0 auto;
}

.backgrounds {
    position: fixed;
    z-index: -1;
    top: 200px;
    left: 0;
    width: 100%;
    height: 100%;
}
.backgrounds > div {
    width: 100%;
    height: 100%;
    background-position: center center;
    background-size: cover;
}

#logo {
    margin: 20px 0 10px;
    display: inline-block;
}
header {
    background: #4d4a4a;
    text-align: center;
}
header nav {
    width: 680px;
    margin: 20px auto 10px;
}
header li {
    display: inline-block;
    margin: 2px 10px;
}
header a,
header a:hover {
    text-transform: uppercase;
    color: #fff;
    letter-spacing: 0.15em;
}

#teaser img {
    width: 100%;
    height: auto !important;
    margin-bottom: 30px;
}

.slide {
    margin-bottom: 10px;
    display: inline-block;
    vertical-align: middle;
    height: 140px;
    overflow: hidden;
}
.slide a {
    vertical-align: middle;
    max-width: 100%;
    background: #f6f6f6;
    border: 1px solid #eee;
    display: inline-block;
    width: 100%;
}
.slide a:before {
    content: "";
    display: inline-block;
    height: 100%;
    vertical-align: middle;
}
.slide p {
    margin-bottom: 0;
}

#main .container img {
    max-width: 100%;
    height: auto !important;
}
#gallery p {
    line-height: 1.2em;
    padding-top: 5px;
}

footer {
    background: #4d4a4a;
    color: #fff;
    text-align: center;
}
footer li {
    display: inline-block;
    margin: 0 3px;
}
footer a {
    line-height: 40px;
    font-size: 11px;
}
footer a:hover {
    color: #ccc;
}

@media (max-width: 1023px) {
    .container {
        width: 96%;
        margin: 0 2%;
    }
}

@media (max-width: 767px) {
    .slide {
        height: 240px;
    }
}

@media (max-width: 700px) {
    header nav {
        width: 96%;
        margin: 20px 2%;
    }
}

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

/*
 * Hide visually and from screen readers:
 */

.hidden {
    display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * http://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 */

.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:
 * https://www.drupal.org/node/897638
 */

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

/*
 * 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 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:
   http://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
    *,
    *:before,
    *:after {
        background: transparent !important;
        color: #000 !important; /* Black prints faster:
                                   http://www.sanbeiji.com/archives/953 */
        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,
    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;
    }

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

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

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

#CybotCookiebotDialogBodyButtonAccept {
    line-height: 3 !important;
    font-size: 1.4em !important;
}
#CybotCookiebotDialogBodyButtonDecline {
    color: #000 !important;
    background-color: #fff !important;
    text-decoration: underline !important;
    width: auto !important;
    border: none !important;
}
