/*! HTML5 Boilerplate v4.3.0 | MIT License | http://h5bp.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,
button,
input,
select,
textarea { color: #565757; }

html {
    position: relative;
    top: 0;
    bottom: 0;
    font-size: 1em;
    overflow: hidden;
    overflow-y: scroll;
    width: 100%;
    min-width: 100%;
    height: 100%;
    -webkit-user-select: none;
    }

#content-wrapper {
    left: 0px;
    position: relative;
    -webkit-backface-visibility: hidden;
    }

#content-wrapper.animate-slide-selected {
    transition: left 1s;
    transition: transform 1s;
    -webkit-transition: left 1s;
    -webkit-transition: -webkit-transform 1s;
    }

body {
    width: 100%;
    min-width: 100%;
    height: 100%;
    min-height: 100%;
    position: relative;
    padding: 0;
    min-width: 320px;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    overflow: hidden;
    }

img { max-width: 100%; }
.fullscreen img { width: 100%; }
.content-img {
    margin-top: 45px;
    margin-bottom: 45px;
    }

.touch #content-wrapper { top: 0; }

/*
 * 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, videos, audio and canvas and the bottom of
 * their containers: h5bp.com/i/440
 */

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

/*
 * Remove default fieldset styles.
 */

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

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

textarea { resize: vertical; }

.cleanlist, .cleanlist li {
    margin: 0;
    padding: 0;
    list-style-type: none;
    }

/* ==========================================================================
   Browse Happy prompt
   ========================================================================== */

.browsehappy {
    margin: 0.2em 0;
    background: #ccc;
    color: #000;
    padding: 0.2em 0;
    position: absolute;
    z-index: 10;
    width: 50%;
    left: 25%;
    text-align: center;
    }

/* ==========================================================================
   Typography
   ========================================================================== */

body {
    font-family: "ff-tisa-web-pro", Georgia, serif;
    background: #ececec;
    line-height: 1.5em;
    font-size: 13px;
    }

h1, #masthead, .page-nav, header h2, .chap-intro h3, .chap-list li, 
.ideas h2, .ideas h3, .frontpage, .start, .accordion h2 {
    font-family: "refrigerator-deluxe", Calibri, tahoma, sans-serif;
    }

h2, h3 { text-transform: uppercase; }

h3 a:link, h3 a:visited { 
    color: #575757; 
    -webkit-transition: color .3s ease;
            transition: color .3s ease; 
    }

h3 a:hover { 
    text-decoration: underline; 
    color: #ff6361;
    -webkit-transition: color .3s ease;
            transition: color .3s ease; 
    }

a:link, a:visited {
    color: #ff6361;
    text-decoration: none;
    -webkit-transition: color .3s ease;
            transition: color .3s ease; 
    }

.indented { 
    margin-left: 6%; 
    color: rgb(17, 133, 72);
    }

p { 
    font-size: 1.1em; 
    line-height: 1.4em;
    }

.intro { 
    font-size: 1.3em; 
    line-height: 1.35em;
    margin-bottom: 43px;
    }

.large {
    line-height: 1.6em;
    font-size: 1.1em;
    font-weight: bold;
    color: #636969;
    }   

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

body {
    min-width: 320px;
    position: relative;
    }

/* SIZE HELPERS */
.gt-sml, .gt-mdm { display: none; }

    .no-js .page { display: block; }

    .page {
        float: left;
        vertical-align: top;
        white-space: normal;
        margin-top: 82px; /* add same margin to bottom .ideas */
        min-width: 320px;
        min-height: 100%;
        overflow: hidden;
        position: relative;
        -webkit-box-sizing: padding-box;
                box-sizing: padding-box;
        }

        .content-wrapper {
            position: relative;
            width: 90%;
            max-width: 1280px;
            margin-left: auto;
            margin-right: auto;
            display: block;
            padding-bottom: 150px;
            }

            .inner-content-wrapper {
                padding-left: 5%;
                width: 90%;
                padding-top: 38px;
                padding-bottom: 25px;
                }

                .page-title { 
                    text-transform: uppercase;
                    left: 20%;
                    }

                    .page-title .chap-numb { display: none; }

                    /*.main-image img { width: 100%; }*/



/*  ====================
    MAIN IMAGE
    ==================== */

    .main-image {
        width: 100%;
        overflow: hidden;
        position: relative;
        z-index: 1;
        }

        .main-image img {
            position: relative;
            z-index: 1;
            width: 100%;
            }

        .main-image .overlay {
            position: absolute;
            z-index: 2;
            width: 70%;
            left: 16%;
            top: 28%;
            }

/*  ====================
    FORSIDE 
    ==================== */
    #Forside { background: #f3eede; }

        #Forside h1 {
            background: #fff;
            display: inline-block;
            z-index: 5;
            padding: 16px 14px 13px;
            margin-bottom: 26px;
            margin-top: 16%;
            font-size: 1em;
            line-height: 1.2em;
            font-weight: normal;
            color: #989999;
            box-shadow: 5px 6px 0 0px rgba(255, 99, 97, 1);
            position: relative;
            left: auto;
            }

            #Forside h1 span { 
                font-size: 2em;
                line-height: .8em;
                font-weight: bold;
                color: #ff6361;
                }

            #Forside .main-image {
                text-align: center;
                overflow: visible;
                }
            
            #Forside img {
                position: absolute;
                top: 0;
                left: 0;
                }

        #keynav { display: none; }

    .current-page #keynav {
        display: block;
        position: absolute;
        bottom: 0;
        right: 2%;
        width: 30%;
        max-width: 344px;
        height: 200px;
        overflow: hidden;
        z-index: 10;
        text-indent: -999em;
        background: url(../img/icon_key_nav.svg) top left no-repeat;
        }
    .touch #keynav { background: url(../img/icon_swipe_nav.svg) top left no-repeat; }

    .scrolldown {
        background-color: #fff;
        width: 70px;
        height:50px;
        position: fixed;
        left: 50%;
        bottom: 0;
        background-image: url(../img/arrow_down.svg);
        background-position: center center;
        background-repeat: no-repeat;
        background-size: 20px auto;
        overflow: hidden;
        text-indent: -999em;
        -webkit-animation: animateArrow 4s ease infinite;
           -mos-animation: animateArrow 4s ease infinite;
             -o-animation: animateArrow 4s ease infinite;
                animation: animateArrow 4s ease infinite;
        }

    .scrolldown:hover, .scrolldown:focus {
        bottom: -4px;
        cursor: pointer;
        }
   
        @-webkit-keyframes animateArrow {
            0% { background-position: center center; }
            49% { background-position: center center; }
            50% { background-position: center 10px; }
            55% { background-position: center 20px; }
            60% { background-position: center center; }
            100% { background-position: center center; }
            }

        @-mos-keyframes animateArrow {
            0% { background-position: center center; }
            49% { background-position: center center; }
            50% { background-position: center 10px; }
            55% { background-position: center 20px; }
            60% { background-position: center center; }
            100% { background-position: center center; }
            }

        @-o-keyframes animateArrow {
            0% { background-position: center center; }
            49% { background-position: center center; }
            50% { background-position: center 10px; }
            55% { background-position: center 20px; }
            60% { background-position: center center; }
            100% { background-position: center center; }
            }

        @keyframes animateArrow {
            0% { background-position: center center; }
            49% { background-position: center center; }
            50% { background-position: center 10px; }
            55% { background-position: center 20px; }
            60% { background-position: center center; }
            100% { background-position: center center; }
            }

/*  ====================
    INDEX 
    ==================== */
    .frontpage, .accordion { box-shadow: inset -10px 0 7px -6px #a6a6a6; }

    .accordion-wrapper {
        float: left;
        height: 100%;
        width: 100%;
        -webkit-transition: width .5s ease;
                transition: width .5s ease;   
        }

        .accordion {
            outline: none;
            padding-top: 15%;
            width: 6.25%;
            background-color: #c9cbca;
            float: left;
            height: 85%;
            -webkit-transition: all .5s ease;
                    transition: all .5s ease;   
            }

        .accordion:hover { cursor: pointer; }

            .accordion h2, .accordion.open .content {  }

            .accordion h2 { 
                display: inline-block;
                float: left;
                text-align: center;
                color: #575757;
                height: 100%;
                font-size: 1.2em;
                margin-top: 0;
                text-transform: none;
                -webkit-transition: color .3s ease;
                        transition: color .3s ease; 
                }
                
                .accordion h2 span { border-bottom: 4px solid #575757; }

             .accordion:hover h2 span, .accordion:focus h2 span,
             .accordion h2:hover span, .accordion h2:focus span, .accordion.open h2 span  { 
                cursor: pointer;
                color: #fe6361;
                -webkit-transition: color .3s ease;
                        transition: color .3s ease; 
                }

                .accordion h2:hover span, .accordion h2:focus span, 
                .accordion.open h2 span { border-color: #fe6361; }
                
            .accordion .content { display: none; }

                .accordion h4 { 
                    margin-top: 0; 
                    margin-bottom: 13px;
                    line-height: 1.2em;
                    }

        .accordion.open {
            width: 40%;
            background-color: #ececec;
            -webkit-transition: all .5s ease;
                    transition: all .5s ease; 
            }

            .accordion.open .content { 
                display: block; 
                float: right;
                width: 66%;
                margin-right: 10%;
                }

        /* CHAPTER LIST */
        .chap-intro {}

            .chap-intro h3 { 
                margin-bottom: 0;
                margin-top: 0;
                font-size: 1.2em;
                line-height: 1.1em;
                }

            .chap-intro p { 
                font-style: italic; 
                line-height: 1.4em;
                }

        .chap-list, .chap-list li {
            margin: 0;
            padding: 0;
            list-style-type: disc;
            }

        .chap-list { margin-top: 10px; }

        .chap-list li {
            margin-bottom: 4px;
            font-size: .8em;
            line-height: 1.3em;
            margin-left: 17px;
            }

            .chap-list a { color: #565757; }
            .chap-list a:hover, .chap-list a:focus { 
                text-decoration: underline; 
                color: #ff6361;
                }

            .chap-title {
                text-transform: uppercase;
                font-weight: bold;
                }

    .frontpage {
        background-color: #f3eede;
        float: left;
        width: 10%;        
        text-transform: uppercase;
        min-height: 500px; /* FOR TESTING ONLY */
        }

        .frontpage a {
            display: block;
            text-decoration: none;
            font-size: 1.2em;
            color: #575757;
            font-weight: bold
            -webkit-transition: opacity .5s ease-out;
                    transition: opacity .5s ease-out;
            }

            .frontpage span {
                display: block;
                -webkit-transform: rotate(180deg);
                   -moz-transform: rotate(180deg);
                     -o-transform: rotate(180deg);
                        transform: rotate(180deg);
                     writing-mode: tb-rl;
                 text-align: center;
                }

            .frontpage a:hover, .frontpage a:focus {
                color: #fe6361;
                -webkit-transition: opacity .5s ease-out;
                        transition: opacity .5s ease-out;
                }

        /* IDEAS PANEL */
        .ideas { 
            margin-top: -100px; 
            margin-bottom: 82px; /* same as .page margin top */
            }

        .ideas h2 { 
            text-align: center; 
            font-size: 3em;
            line-height: 1.1em;
            margin-bottom: 14px;
            margin-top: 55px;
            }

        .ideas .purple { background-color: #b949bf; }
        .ideas .lightGreen { background-color: #3aca95; }
        .ideas .orange { background-color: #e2735d; }
        .ideas .blue { background-color: #02acd3; }
        .ideas .yellow { background-color: #faaa32; }
        .ideas .darkGreen { background-color: #30a072; }
        .ideas .darkOrange { background-color: #f46245; }
        .ideas .darkerOrange { background-color: #c44422; }
        .ideas .brightYellow { background-color: #efc100; }
        .ideas .lightBlue { background-color: #5ecbdd; }
        .ideas .brown { background-color: #a83f31; }
        .ideas .lightBrown { background-color: #e2735d; }      

        .ideas h3 {
            text-align: center;
            text-transform: uppercase;
            color: #fff;
            margin: 0;
            padding: 50px 0;
            font-size: 2.2em;
            line-height: 1em;
            opacity: 1;
            -webkit-transition: opacity .5s ease-out;
                    transition: opacity .5s ease-out;
            }
        .ideas h3:hover { 
            opacity: .6;
            cursor: pointer;
            outline: none;
            -webkit-transition: opacity .5s ease-out;
                    transition: opacity .5s ease-out;
            }

        .ideas h3:active, .ideas h3:focus { outline: none; }

        .ideas .content-wrapper { 
            width: 80%; 
            max-width: 100%;
            font-size: 1.2em;
            padding-left: 10%;
            padding-right: 10%;
            padding-bottom: 20px;
            border: 1px solid transparent;
            text-align: center;
            }

            .ideas .content-wrapper p { 
                max-width: 800px; 
                margin-left: auto;
                margin-right: auto;
                color: #fff;
                margin-top: 0;
                margin-bottom: 58px;
                }

/*  ====================
    CONTENT
    ==================== */
.page-nav {
    position: absolute; 
    right: 20px;
    top: 10%;
    z-index: 6;
    display: none;
    -webkit-transition: all 3s ease;
            transition: all 3s ease;
    }

.current-page .page-nav { 
    display: block;
    -webkit-transition: display 3s ease;
            transition: display 3s ease;
    -webkit-transition: top 1s ease;
            transition: top 1s ease;
    }

    .page-nav li {
        position: relative;
        margin-bottom: 15px;
        cursor: pointer;
        }

        .page-nav li a {
            content: "";
            background: #848686;
            border-radius: 100%;
            display: block;
            width: 10px;
            height: 10px;
            }

        .touch .page-nav li a {
            width: 20px;
            height: 20px;
            }

            .page-nav a span {
                position: absolute;
                right: 40px;
                background-color: #ff6361;
                color: #fff;
                text-transform: uppercase;
                padding: 8px 5px;
                top: -12px;
                white-space: nowrap;
                font-weight: bold;
                display: none;
                }

                .touch .page-nav a span { top: -6px; }

                .page-nav li:hover a span, .page-nav li:focus a span { 
                    display: block; 
                    cursor: pointer;
                    }

                .page-nav a span:after {
                    content: "";
                    position: absolute;
                    right: -20px;
                    top: 10px;
                    width: 0;
                    height: 0;
                    border-top: 7px solid transparent;
                    border-left: 10px solid #ff6361;
                    border-bottom: 7px solid transparent;
                    border-right: 10px solid transparent;
                    }

.pullout { 
    display: table; 
    padding-left: 5%;
    width: 87%;
    margin-top: 15px;
    }

.pullout.text-only { border-left: 5px solid #ff6361; }
.pullout.text-only p { margin: 0; }

.pullout.img-only p.large { font-size: 1em; }
.pullout.img-only { text-align: center; }

.pullout.img-only img { 
    float: none; 
    width: 50%;
    }

.sml-lft { float: left; }
.sml-rgt { float: right; }

img.sml-lft {
    width: 30%;
    margin-right: 5%
    }

p.sml-lft { width: 65%; }

#site-footer {
    position: absolute;
    left: 0;
    bottom: 50px;
    z-index: 5;
    background-color: #fff;
    height: 69px;
    padding: 10px 0;
    -webkit-transition: all .5s ease;
            transition: all .5s ease;
    }

    footer .inner {
        width: 90%;
        max-width: 1280px;
        margin-left: auto;
        margin-right: auto;
        }

        .col-right, .col-left { 
            float: left; 
            padding: 20px 0;
            }

        .col-right { width: 60%; }

            .col-right img { margin-left: 5%; }

        .col-left {
            border-right: 1px solid #cfcfcf;
            width: 30%;
            padding-right: 5%;
            text-transform: uppercase;
            text-align: right;
            font-weight: bold;
            }

            .col-left img { 
                width: 100%;
                max-width: 1293px;
                }

@media screen and (min-width: 768px) {

    body { font-size: 18px; }

    p { font-size: 1em; }

    /* FRONT PAGE */
    #Forside header {
        font-size: 1.6em;
        line-height: 2em;
        }

        #Forside h1 {
            padding: 25px 30px 16px;
            margin-bottom: 26px;
            font-size: 1.8em;
            line-height: 1.2em;
            box-shadow: 8px 9px 0 2px rgba(255, 99, 97, 1);
            }        

    .chap-intro h3 { 
        font-size: 2.2em;
        line-height: 1.1em;
        }

    .chap-list { margin-top: 0; }

    .chap-list li { 
        margin-bottom: 10px; 
        font-size: 1.2em;
        }

    .accordion h2, .frontpage a { font-size: 2em; }
    
    /* MAIN LAYOUT */
    .inner-content-wrapper {
        border-left: 1px solid #cfcfcf;
        float: right;
        width: 60%; 
        position: relative;
        }

        .inner-content-wrapper:after {
            position: absolute;
            bottom: -1px;
            left: -4px;
            background-color: #cfcfcf;
            content: "";
            width: 7px;
            height: 7px;
            }

    .main-image .overlay { 
        width: 50%; 
        left: 26%;
        top: 32%;
        }

    /* SIZE HELPERS */
    .gt-sml { display: inline-block; }

    /* CONTENT */
    .page { margin-top: 49px; }

    .pullout {
        margin-left: -67%;
        margin-top: 0;
        width: 47%;
        float: left;
        border-left: 0;
        }

        .pullout.img-only img { 
            float: left; 
            width: 75%;
            }

        img.sml-lft {
            width: 100%;
            margin-right: 0;
            }

        p.sml-lft { width: 100%; }

    /* INDEX */
    .frontpage a { 
        font-size: 3em; 
        line-height: 1.85em;
        font-weight: bold;
        }

    .accordion h2 { 
        font-size: 3em; 
        line-height: .95em;
        }

    .ideas { margin-bottom: 49px; /* same as .page margin top */ }

}

@media screen and (min-width: 1024px) {

    #forside header {
        font-size: 2em;
        line-height: 2em;
        }

        #Forside h1 {
            font-size: 2.5em;
            line-height: 1.2em;
            }   

    .gt-mdm { display: inline-block; }

}


/* ==========================================================================
   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; }


/* ==========================================================================
   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;
        overflow: visible!important;
        position: relative!important;
        top: auto!important;
        bottom: auto!important;
        left: auto!important;
        right: auto!important;
        font-family: "ff-tisa-web-pro", Georgia, serif!important;
        }

    body { margin: 45mm 15mm; }

    @page { margin: 2cm 0.5cm; }

    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; }

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

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

    #masthead, .page-nav, .pullout { display: none!important; }

    #content-wrapper {
        -webkit-transform: translateX(0)!important;
                transform: translateX(0)!important;
        }

    body, .page, footer, #content-wrapper, #Innholdsfortegnelse, #Forside,
    .accordion-wrapper, .accordion, .frontpage, .frontpage a {
        height: auto!important;
        min-height: 0!important;
        width: auto!important;
        min-width: 0!important;
        }

    .page {
        display: block;
        float: none;
        clear: both;
        page-break-after: always;
        margin-top: 0;
        }

        .content-wrapper { 
            padding-bottom: 0; 
            width: 100%;
            }

            .inner-content-wrapper {
                width: 100%;
                padding: 0;
                }

        .main-image, .current-page #keynav { display: none!important;}

        .page-title.hidden { 
            display: block!important; 
            visibility: visible!important;
            margin-top: 0;
            font-size: 2.8em;
            margin-top: 1cm;
            }

        #Forside h1 { 
            margin-top: 0; 
            padding: 0;
            text-align: center;
            margin-bottom: 30px;
            }
            #Forside h1 span { line-height: 1.4em; }

            #Forside .main-image { display: block!important; }
            #Forside .main-image h1 { display: none; }

        .accordion-wrapper { 
            width: 100%!important;
            clear: both;
            }

        .accordion, .frontpage {
            width: 100%!important;
            float: none;
            margin-top: 0;
            margin-bottom: 20px;
            padding-top: 0;
            clear: both;
            }

            .frontpage span { 
                display: none;
                -webkit-transform: rotate(0);
                   -moz-transform: rotate(0);
                     -o-transform: rotate(0);
                     writing-mode: horizontal-tb;
                 }
            
        .accordion h2 { 
            width: auto!important; 
            margin-right: 6px;
            }
        .accordion h2 span { border: 0; }
        .accordion .content { display: block; }

        .accordion.open .content {
            width: 100%;
            float: none;
            }

        .col-left { width: auto; }

        .ideas h2, .ideas h3, .ideas .content-wrapper { 
            text-align: left; 
            font-size: 1.4em;
            text-transform: none;
            }

        .ideas h3 { 
            padding: 0; 
            font-size: 1.2em;
            }

        .ideas .content-wrapper {
            width: 100%;
            font-size: 1em;
            display: block!important;
            margin-left: 0;
            padding-left: 0;
            }

        .ideas .content-wrapper p {
            max-width: 100%;
            margin-left: 0;
            margin-bottom: 20px;
            }
}