:root {
    --blue: #017DC5;
    --darkblue: #0b1a25;
    --gronn: #588a1e;
    --gul:#ffd8a9;
    --rod:#8D2121;
}

body{margin:0;padding: 0 0 10px 0;font-family: 'Raleway', sans-serif;}

logo svg#svgIBRALogo #IBRA {
    fill:var(--blue);
}
nav{
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.noselect {
  -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Safari */
     -khtml-user-select: none; /* Konqueror HTML */
       -moz-user-select: none; /* Old versions of Firefox */
        -ms-user-select: none; /* Internet Explorer/Edge */
            user-select: none; /* Non-prefixed version, currently
                                  supported by Chrome, Edge, Opera and Firefox */
}

/* ******************* GI-feltet ******************* */
gi{
    display: flex;
    align-items: center;
    justify-content: center;
    min-height:  550px;
    height:  550px;
    width: 100%;
}

gi_inner{
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: calc(100% - 20px);
    overflow: hidden;
    border-radius: 4px;
    background-image: url("../assets/img/hender.jpg");
    background-size: auto 140%;
    background-position: calc(50% - 180px) 100%;
    background-repeat: no-repeat;
    background-color: var(--darkblue);
    position: relative;
	transform-origin: center;
}

gi_felter{
    display: flex;
    align-items: center;
    position: absolute;
    height: 100%;
    width: 700px;
    top:0;
    margin-left: 50px;
}
gi_felt1 {
    position: absolute;
    color: white;
    display:  table;
    text-align: center;
    left: 0;
    padding-bottom: 120px;
}

gi_felt1 h1{ 
    color: white;
    margin:0;
    padding:0 0 10px 0;
}
gi_felt1 p{ 
    color: white;
    margin:0;
    padding:0;
}

gi_felt2 {
    border-radius: 12px;
    margin:0 10px;
    position: absolute;
    right: 0;
    color: white;
    display:  table;
    text-align: center;
    background-color: rgba(0,125,197,.28);
    padding: 50px;
    
}

gi_felt2 h1{ 
    color: var(--gul);
    margin:0;
    padding:0 0 10px 0;
}
gi_felt2 p{ 
    color: white;
    margin:0;
    padding:0;
}

gi_felt2 knapp1{
    display: block;width: 100%;
    background: var(--gronn);
    color: white;
    padding: 10px;
    border-radius: 100px;
    margin-top: 20px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    cursor: pointer;
    transition: all .2s;
    margin-left: -10px;
}

gi_felt2 knapp1:hover{
    color:var(--gul);
    box-shadow: 0px 0px 15px 0px rgba(230,223,165,0.20);
    z-index: 2;
}
gi_felt2 knapp2{
    display: block;width: 100%;
    background: var(--gul);
    color: black;
    padding: 10px;
    border-radius: 100px;
    margin-top: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    cursor: pointer;
    transition: all .2s;
    margin-left: -10px;
}

gi_felt2 knapp2:hover{
    color:var(--rod);
    box-shadow: 0px 0px 15px 0px rgba(230,223,165,0.20);
    z-index: 2;
}


@media only screen and (max-width: 850px) {
    gi {height: 550px;min-width: 300px;}
    gi_inner{
        height: 100%;
        width: calc(100% - 20px);
        background-size: auto 71%;
        background-position: calc(50% - 0px) -35%;
    }
    gi_inner::after {
        content: "";
        width: 100%;
        height: 70%;
        position: absolute;
        bottom:0;
        z-index: 0;
        background: linear-gradient(0deg, rgba(11,26,37,1) 0%, rgba(11,26,37,1) 50%, rgba(11,26,37,0) 100%);

    }
    gi_felter{
        margin-left: 0px;
        z-index: 1;

    }
    gi_felter{
        flex-flow: column;
        width: 100%
    }
    gi_felt1{
        position: relative;
        top:50px;
    }   
    gi_felt2{
        position: absolute;
        padding: 20px;
        width: calc(100% - 40px);
        max-width: 400px;
        margin: 100px 20px 20px 20px;
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
        align-items: center; 
        bottom: 0;
        right: unset;
    } 
    
    gi_felt2 knapp1{
        box-sizing: border-box;
        max-width: 250px;
        margin-left: 0px;
        position: relative;
    }
    gi_felt2 knapp2{
        box-sizing: border-box;
        max-width: 250px;
        margin-left: 0px;
        position: relative;
    }    
}

@media only screen and (max-width: 320px) {
        gi {width: 900%;left:-400%;position: relative;}
}



/* ******************* GI-feltet fot ******************* */

footer{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

footer gi {
    height: 300px;
    margin-top: 10px;
}
footer gi_inner {
    background-position:50% 100%;
    background-size: auto 200%;
}
footer gi_felter {
    flex-direction: column;
    margin: 0;
    width: 100%;
    position: relative;
}
footer gi_felt1 {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    position: relative;
    height: 50%;
}
footer gi_felt1 h1 {
    margin:auto;
}

footer gi_felt2 {
    background-color: transparent;
    flex-direction: row;
    width: 100%;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    right: auto;
    position: absolute;
    bottom: 40px;
    
}

footer gi_felt2 knapp1, footer gi_felt2 knapp2 {
    margin: 0 5px;
    width: 40%;
    display:block;
    box-sizing: border-box;
    display: inline;
    padding:12px 20px 10px 20px;
}

footer visjon {
    font-weight: 600;
    color: var(--darkblue);
    text-align: center;
    max-width: 70%;
    padding: 50px 50px 20px 50px;
}
footer ul {
     list-style: none;
    margin: 10px 0 20px 0;
    width: 250px;
    position: relative;
    padding: 0;
}
footer ul li {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    
}
footer ul li strong{

}
footer ul li span{

}

footer nortlf {
    color: gray;
    font-size: .7em;
}

footer a[href^="tel"]{
    color:inherit;
    text-decoration:none;
}

@media only screen and (max-width: 850px) {
    
    gi_inner::after {
        content: "";
        width: 100%;
        height: 50%;
        position: absolute;
        bottom:0;
        z-index: 0;
        background: linear-gradient(0deg, rgba(11,26,37,1) 0%, rgba(11,26,37,1) 50%, rgba(11,26,37,0) 100%);
    }  
    footer gi_felt1 {
        top: unset;
    }  
    footer gi_felt2 {
        flex-direction: column;
    }    
    footer gi_felt2 {
        flex-direction: column;
        width: 100vw;
        bottom: 20px;

    }  
    
    footer gi_felt2 knapp1, footer gi_felt2 knapp2 {
        display: block;
        width: 100%;
        margin-top: 5px;
    }
}

@media only screen and (max-width: 320px) {
        footer gi {display: none;}
        footer visjon {
            border-top: var(--darkblue) 1px solid;
            border-bottom: var(--darkblue) 1px solid;
            padding-top: 20px;
            margin-bottom: 30px;
    }
        footer {margin-top:30px }
        footer ul {
            width: 100%;
            box-sizing: border-box;
            padding: 0 20px;
    }
}


/* ******************* Nyheter forside ******************* */


            nyheterWrapp{
                display: flex;
                justify-content: center;
                align-items: center;
            }
            nyheter { 
                display: grid; 
                grid-template-columns: repeat(12, 1fr); 
                grid-template-rows: repeat(1, 1fr); 
                grid-column-gap: 30px;
                grid-row-gap: 30px; 
                margin: 30px 30px 20px 30px;
                width: 100%;
                max-width: 1000px;
            }
            a.nyhet {
                border-radius: 4px;
                display:flex;
                flex-direction: column;
                width: 100%;
                padding: 0px;
                background-color: rgba(232,236,238,1.00); 
                filter: brightness( 95%) grayscale( 15%) sepia( 0%) hue-rotate(  0deg);
                transition: filter 2s;

            }
            a.nyhet:hover {
                filter: brightness(105%) grayscale(100%) sepia(5%) hue-rotate(-20deg);
                cursor: pointer;
            }           
            
            a.nyhet text {
                padding: 25px;
                display: flex;
                flex-direction: column;
            }
            a.nyhet cto {
                background-color: rgba(2,125,197,1.00);
                color: white;
                padding: .3em 2em .2em 2em;
                border-radius:40px;
                position: absolute;
                opacity: 0;
                font-size: .7em;
                letter-spacing: .1em;
                text-transform: uppercase;
                margin-top: 20px;
                transform: scale(.6);
                font-weight: 700;
                transition: all 0.25s;
                bottom: -.7em;
                z-index: 1000;
            }
            a.nyhet:hover cto {
                opacity: 1;
                transform: scale(.7);
                letter-spacing: .1em;
            }
            
            a.nyhet hovedbilde {
                width: 100%;
                padding-bottom: 56.2%;
                position: relative;
                height: 0px;
                width: 100%;
                background-size: 100%;
                background-position: center;
                box-shadow: inset 0px 0px 50px -30px rgba(18,58,81,1);
                filter: grayscale(20%);
                display: flex;
                justify-content: center;
                align-items: center;
            }
            a.nyhet:hover hovedbilde {
                filter: grayscale(20%);
            }
            a.nyhet hovedbilde::before {
                background: linear-gradient(180deg, rgba(0,0,0,0)0%, rgba(232,236,238,1) 100%);
                width: 100%;
                height: 66%;
                position: absolute;
                z-index: 1000;
                bottom: 0;
                content: " ";
                transition: opacity .5s;
                opacity: 0;
            }  
            a.nyhet:hover hovedbilde::before {
                opacity: 1;
            }
            a.nyhet hovedbilde::after {
                background: linear-gradient(180deg, rgba(18,58,81,0)-100%, rgba(18,58,81,.2)-10%, rgba(232,236,238,1) 100%);
                
                width: 100%;
                height: 100%;
                position: absolute;
                z-index: 999;
                bottom: 0;
                content: " ";
                transition: opacity .5s;
                opacity: .2;
            }
            a.nyhet:hover hovedbilde::after {
                opacity: .5;

            }
            a.nyhet text vignett h5 {
                font-weight: 300;
                margin: 0 0 .5em 0;
                padding: 0;
                text-transform: uppercase;
                letter-spacing: 0.2em;
                color: rgba(18,58,81); 
            }
            a.nyhet text tittel h1 {
                font-weight: 700;
                color: rgba(18,58,81); 
                margin: 0;
                line-height: 1em;
            }
            a.nyhet text ingress h3 {
                font-weight: 300;
                color: rgba(18,58,81); 
                margin: .5em 0 0 0;
                line-height: 1.3em;
                font-size: 16px;
            }
            a.nyhet:nth-child(5n+1), 
            a.nyhet:nth-child(5n+2){
                font-weight: 300;
                overflow: hidden;
            }
            a.nyhet:nth-child(5n+3), 
            a.nyhet:nth-child(5n+4), 
            a.nyhet:nth-child(5n+5){
                background-color: rgba(0,0,0,0.00);
            } 
            a.nyhet:nth-child(5n+3) hovedbilde, 
            a.nyhet:nth-child(5n+4) hovedbilde, 
            a.nyhet:nth-child(5n+5) hovedbilde{
                border-radius: 4px;
            } 
            
            a.nyhet:nth-child(5n+3) text, 
            a.nyhet:nth-child(5n+4) text, 
            a.nyhet:nth-child(5n+5) text{
                padding: 15px 15px 0px 0px;
            } 
            a.nyhet::after { 
                position: absolute;
                display: block; 
                height: 100px;
                width: 100px;
                bottom: 0px;
                z-index: 200;
            }             
            a.nyhet:nth-child(5n+1){
                 grid-column: 1 / span 6;
            }
            a.nyhet:nth-child(5n+2){
                 grid-column: 7 / span 6;
            }
            a.nyhet:nth-child(5n+3){
                 grid-column: 1 / span 4;
            }  
            a.nyhet:nth-child(5n+4){
                 grid-column: 5 / span 4;
            }  
            a.nyhet:nth-child(5n+5){
                 grid-column: 9 / span 4;
            }  
            a.nyhet:nth-child(5n+4) {
                margin-left:-15px;
                margin-right:-15px;
                width: calc(100% + 0px);
                padding-left: 15px; 
                padding-right: 15px; 
                border-left: 1px dotted rgba(18,58,81,.2);
                border-right: 1px dotted rgba(18,58,81,.2);
                border-radius: 0;
            }
            nyheter a.nyhet {
                text-decoration: none;
            }

            @media only screen and (max-width: 700px) {
                a.nyhet:nth-child(5n+4) {
                    margin-left:0;
                    margin-right:0;
                    width: calc(100% + 0px);
                    padding-left: 0px; 
                    padding-right: 0px; 
                    border-left: 1px dotted rgba(18,58,81,0);
                    border-right: 1px dotted rgba(18,58,81,0);
                    border-radius: 0;
                }
                
                nyheter { 
                    display: grid; 
                    grid-template-columns: repeat(2, 1fr); 
                    grid-template-rows: repeat(1, 1fr); 
                    grid-column-gap: 30px;
                    grid-row-gap: 30px; 
                    margin: 30px 30px 20px 30px;
                    width: 100%;
                    max-width: 1000px;

                }
                a.nyhet:nth-child(3n+1){
                    grid-column: span 2;
                }
                a.nyhet:nth-child(3n+2), 
                a.nyhet:nth-child(3n+3) {
                    grid-column: span 1;
                    background-color: transparent;
                    
                }             
                a.nyhet:nth-child(3n+2) text, 
                a.nyhet:nth-child(3n+3) text {
                    padding: 15px 0px;
                }                
                a.nyhet:hover cto {
                    opacity: 1;
                    transform: scale(.8);
                    letter-spacing: .0em; 
                }                
            }
            @media only screen and (max-width: 450px) {


                                
                nyheter { 
                    display: grid; 
                    grid-template-columns: repeat(2, 1fr); 
                    grid-template-rows: repeat(1, 1fr); 
                    grid-column-gap: 30px;
                    grid-row-gap: 30px; 
                    margin: 30px 30px 20px 30px;
                    width: 100%;
                    max-width: 1000px;
                    
                }
                
                a.nyhet:nth-child(3n+1), 
                a.nyhet:nth-child(3n+2), 
                a.nyhet:nth-child(3n+3) {
                    grid-column: span 2;
                } 
                a.nyhet:nth-child(2n+1){
                    background-color: rgba(232,236,238,1.00);
                }
                a.nyhet:nth-child(2n+1) text{
                    padding: 25px;
                }
                a.nyhet:nth-child(2n+2){
                    
                }
                a.nyhet cto{
                    transition: all 3s;
                }
                a.nyhet.insideWindow cto{
                    opacity: 1;
                    transform: scale(.7);
                    letter-spacing: .1em;
                    transition: all 3s;
                    box-shadow: 0 0 20px black;
                }
                a.nyhet:nth-child(2n+1) {
                    transition: all 3s;
                    border-radius: 4px;
                    box-shadow: 0 0 0px 0px rgba(150,190,200,0);
                    filter: brightness(95%) grayscale(0%) sepia(5%) hue-rotate(0deg);
                }
                a.nyhet.insideWindow:nth-child(2n+1) {
                    box-shadow: 0 0 30px 0px rgba(150,190,200,1.00);
                    filter: brightness(105%) grayscale(100%) sepia(5%) hue-rotate(-20deg);
                }    
                a.nyhet.insideWindow:nth-child(2n+2) {
                    filter: brightness(105%) grayscale(100%) sepia(5%) hue-rotate(-20deg);
                }
                a.nyhet.insideWindow hovedbilde {
                    border-bottom-left-radius: 0;
                    border-bottom-right-radius: 0;
                    opacity: 1;
                }    

                
            }


/* ******************* nyhetsartikler standard ******************* */
nyhetsartikler{
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-bottom: 60px;
}
nyhetsartikler nyhetsartikler_indre{
    width: calc(100% - 50px);
    display: flex;
    flex-direction: column;
    max-width: 800px;
}
nyhetsartikkel hovedbilde{
    border-radius: 4px;
    width: 100%;
    padding-bottom: 56.2%;
    position: relative;
    height: 0px;
    background-size: 100%;
    background-position: center;
    box-shadow: inset 0px 0px 50px -30px rgba(18,58,81,1);
    filter: grayscale(20%);
    display: flex;
    justify-content: center;
    align-items: center;
}
nyhetsartikkel h1 {
    text-align: center;
    padding-top: 1em;
    font-size: 3em;
}
nyhetsartikkel h2 {
    text-align: center;
    font-weight: 300;
    line-height: 1.4em;
}
nyhetsartikkel p.byline {
    width: 100%;
    text-align: center;
    font-weight: 300;
    font-size: .7em;
    color: gray;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}
nyhetsartikkel p.byline.bylineTop:before {
    content:"Tekst: "
}
nyhetsartikkel img {
    width: 100%;
    display: block;
    float: right;
    margin-bottom: 5px;
}
artikkelbilde{
    display: block;
    margin-bottom: 10px;
}
artikkelbilde img{
    border-radius: 4px;
}
artikkelbilde.liteVenstre, artikkelbilde.liteHoyre {
    width: 45%;
    display: block;
}
artikkelbilde.frimerke {
    width: 150px;
    float: left;
    margin-right: 5%;
}
artikkelbilde.liteVenstre{float: left;margin-right:5%;}
artikkelbilde.liteHoyre{float: right;margin-left:5%;}
artikkelbilde bildetekst {
    font-size: .8em;
    padding: 10px 0px 10px 0px;
}
sitatblokk {
    width: 45%;
    float: left;
    margin-right: 5%;
    margin-bottom: 1em;
    margin-top: .2em;
    border-top: 1px solid rgba(227,233,237,1.00);
    border-bottom: 1px solid rgba(227,233,237,1.00);
    padding-top: .5em;
    padding-bottom: .5em;
}
sitatblokk opphav{
    margin-top: .5em;
    width: 100%;
    display: block;
}
bildetekst {
    width: 100%;
    display: block;
    position: relative;
    margin: 0px 0px 0px 0px;
    font-style: italic;
}

fotobyline {
    font-weight: 700;
    font-size: .8em;
    position: relative;
    right:0;
    margin: 0px 0px 0px .5em;
    font-style:normal;
}

fotobyline:before {
    content: attr(kategori);
}
ul.fakta:before {
    content: attr(faktatittel);
    font-weight: 700;
    text-transform: uppercase;
    padding: .3em .1em .1em 20px;
    display: block;
    width: 100%;
    letter-spacing: .05em;
    margin: 6px 0 6px -20px;
    text-align: left;
    box-sizing: border-box;
    font-size: 1.3em;
}
ul.fakta {
    padding: 10px 5% 10px 5%;
    margin: 5px 5% 1em 0;
    display: block;
    list-style:none;
    float: left;
    background-color:rgba(187,200,212,0.41); 
    font-size: .7em;
    border-radius: 4px;
    overflow: hidden;
    color: rgba(53,69,84,1.00);
}
ul.fakta li{
    margin-bottom: 4px;
}
ul.fakta li::before {
    content: "\2588";
    color: rgba(179,195,206,1.00);
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
    font-size: .7em;
    line-height: 0px;
    margin: .5em 0 0 -1.5em;
    position: absolute;
}
p {
    line-height: 1.4em;
}
sitatblokk {
    font-weight: bold;
    color:rgba(53,69,84,1.00);
    font-size: 1.5em;
}
opphav {
    font-weight: normal;
    font-size: 16px;
}
sitat:before {
    content: "«";
}
sitat:after {
    content: "»";
}
@media only screen and (max-width: 450px) {
    ul.fakta {
        width: calc(100% - 60px);
        padding: 10px 5% 10px calc(5% + 35px);
    }
    artikkelbilde.liteVenstre, artikkelbilde.liteHoyre {
        width: 100%;
    }
    sitatblokk {
        width: 100%;
    }

}