/*
    Cast of Colours:

    Orange..............#ffa903
    Faux Black..........#1e1e1e
    Mild Beige..........#faf7f4
    Faux White..........#fffefe
    Cold Dark Brown.....#2c2422

    Starring in:

    ~ Mannerheim Museo ~

 */
body {
    background: #faf7f4;
    min-width: 320px;
    margin: 0px auto;
}

a {
    color: #1e1e1e;
}

a:hover {
    color: #ffa903;
}

li.current, li.section {
    font-weight: 700;
}

/* ~ HEADER ~ */
#header {
    background: #fffefe;
    border-top: 4px solid #ffa903;

}

#header .inner { /* wrapper for header and footer elements */
    padding: 15px 0px;
}

/* LOGO */
#brand { /* logo wrapper */
    background: url(../images/mannerheim-logo.png);
    width: 103px;
    height: 120px;
    margin: 10px auto;
}

#brand a {
    width: 100%;
    height: 100%;
    display: block;
}

/* MAIN MENU */
#nav-primary { /* main menu in header */

}

#nav-primary li {
    margin: 0px auto;
    text-align: center;
}

#nav-primary li a {
    color: #1e1e1e;
}

/* OPEN HOURS IN HEADER */
#open-hours {
    text-align: center;
    width: 200px;
    margin: 10px auto;
}

/* LANGUAGE MENU */
#nav-languages { /* language menu in header */
    background: #ffa903;
    border-radius: 0px 0px 8px 8px;
    margin: 0px auto;
    min-width: 30px;
    width: 130px;
    padding: 5px 10px;
}

#nav-languages ul {
    width: 95%;
    margin: 0px auto;
}

#nav-languages li {
    display: inline-block;
    text-align: center;
    color: #fffefe;
}

#nav-languages li a {
    color: #fffefe;
}

/*  ~ CONTENT ~  */
#wrapper {
    padding: 20px;
}

.HomePage #intro { /* special intro text with Mannerheim next to it */
    padding: 15px 5px;
}

#skitter.box_skitter { /* actual slideshow box */
    width: 100%;
    height: 451px;
    background: none;
}

#skitter.box_skitter .image img { /* images within slideshow */
    width: 100%;
}

#dimensa-3d-guide {
    max-width: 853px;
    width: 100%;
}

#article { /* CMS content wrapper */
    width: 100%;
    margin-top: 20px;
}

.no-sidebar #article { /* CMS content wrapper, sans sidebar */
    width: 100%;
}

.HomePage #article { /* article wrapper on homepage */
    width: 100%;
}

.HomePage #intro { /* homepage intro */
    background-color: #2c2422;
}

.HomePage .typography.content { /* override for frontpage intro */
    color: #fffefe;
    padding: 5px;
}

/* SIDEBAR */
#aside { /* sidebar wrapper */
    width: 100%;
}

.HomePage #aside { /* homepage sidebar wrapper */
    display: none;
}

#nav-secondary, #nav-albums { /* child pages in sidebar */
    margin-bottom: 30px;
}

#nav-secondary li, #nav-albums li, #nav-secondary h3, #nav-albums h3 { /* style elements within secondary menu */
    border-bottom: 1px solid #cacaca;
    line-height: 35px;
}

#nav-secondary li:before, #nav-albums li:before { /* single angled arrow head */
    content: "\203A";
}

/* ~ FOOTER ~ */
#footer {
    margin-top: 30px;
}

#footer .inner { /* wrapper within footer */
    border-top: 6px solid #ffa903;
    padding: 30px 5px;
}

#footer .inner .open-hours { /* override font for the open hours text in footer */
    font-family: 'Pt Sans', sans-serif;
}

#footer h3 { /* override for orange colour of h3 headline in footer */
    color: #1e1e1e;
}

#contact {
    width: 100%;
}

#contact .contact-table {
    margin-bottom: 10px;
    font-size: .9em;
}

#google-map { /* location map for the museum */
    height: 250px;
    width: 100%;
}

/* ~ ETC. ~ */
.UnderConstructionErrorPage #aside {
    background-image: url(../images/mannerheim-logo.png);
    background-repeat: no-repeat;
    background-size: contain;
    background-position: top center;
    height: 120px;
}

.gambit { /* "we made this" text about Gambit */
    font-size: .7em;
    text-align: center;
}

/* applied to several elements in theme */
.box { /* make sure the element is also floated */
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    clear: none;
}

.clear { /* helps resize parents with floated children */
    clear: both;
}

@media only screen and (min-width: 760px) {
    #wrapper, #footer { /* wrapper for article and aside / footer wrapper */
        padding: 30px;
    }

    #article { /* CMS content wrapper */
        float: right;
        width: 60%;
    }

    #aside { /* sidebar wrapper */
        float: left;
        width: 30%;
        margin-right: 5px;
    }

    .UnderConstructionErrorPage #article {
        width: 75%;
    }

    .UnderConstructionErrorPage #aside {
        width: 20%;
        background-position: top right;
    }

    #footer .inner {
        padding: 30px 0px;
    }

    .gambit {
        float: right;
    }
}

@media only screen and (min-width: 570px) and (max-width: 979px) {
    .group {
        float: left;
        display: inline-block;
        width: 33%;
    }
}

@media only screen and (min-width: 980px) {
    body {
        width: 980px;
    }

    #header {
        position: relative;
    }

    #brand {
        float: left;
        clear: none;
    }

    #brand {
        margin-left: 30px;
    }

    #nav-primary {
        width: 95%;
        margin: 160px auto 0px;
        text-align: center;
    }

    #nav-primary ul {
        display: inline-block;
    }

    #nav-primary li {
        display: inline-block;
        margin-right: 30px;
        font-size: 20px;
    }

    #nav-languages {
        float: right;
        position: absolute;
        right: 80px;
        top: 0px;
        width: 135px;
    }

    #open-hours {
        position: absolute;
        top: 45px;
        right: 55px;
    }

    #slideshow {
        display: block;
        margin-bottom: 30px;
    }

    .HomePage #intro {
        height: 300px;
        padding: 50px;
        background-image: url(../images/mannerheim-front-reversed.jpg);
        background-repeat: no-repeat;
        background-position: center left;
    }

    .HomePage .typography.content {
        width: 60%;
        float: right;
    }

    #contact { /* contact info wrapper in footer */
        width: 55%;
        float: left;
        clear: none;
    }

    #contact .contact-table {
        display: table;
        border-collapse: separate;
    }

    #contact .contact-table .group {
        display: table-row;
    }

    #contact .contact-table .group div {
        display: table-cell;
        padding: 5px 40px 5px 0px;
        vertical-align: middle;
    }

    #google-map { /* google map wrapper in footer */
        width: 45%;
        float: right;
        clear: none;
        margin-top: 0px;
    }
}

@media only screen and (max-width: 570px) {
    #skitter.box_skitter {
        height: 250px;
    }
}

.social-media .fab {
    padding: 12px;
    font-size: 100%;
    width: 16px;
    text-align: center;
    text-decoration: none;
    border-radius: 50%;
    margin-right: 3px;
}

.social-media .fab:hover {
    opacity: 0.7;
    cursor: pointer;
}

.social-media .fa-facebook-f {
    background: #3b5999;
    color: white;
}

.social-media .fa-instagram {
    background: #c23583;
    color: white;
}

.social-media .fa-tripadvisor {
    background: #00af87;
    color: white;
}
