﻿body {
    padding-top: 80px; /*Endra av JP - tidlegare 50px*/
    padding-bottom: 20px;
    font-size: 15px;
}

/* Set padding to keep content from hitting the edges */
.body-content {
    padding-left: 15px;
    padding-right: 15px;
}

/* Override the default bootstrap behavior where horizontal description lists 
   will truncate terms that are too long to fit in the left column 
*/
/*De-override with setting below*/
/*.dl-horizontal dt {
    white-space: normal;
}*/

/* Set width on the form input elements since they're 100% wide by default */
input,
select,
textarea {
    max-width: 280px;
}

/*Set width on the form input elements for article since 280px is too small*/
.article-form .form-control {
    max-width: 610px;
}

/*Set width on the form input elements for commission*/
.commission-form .form-control {
    max-width: 300px;
}

/*Sets the read-only textbox beside browse to the same width as the other textboxes*/
.article-form .input-group {
    position: relative;
    display: table;
    border-collapse: separate;
    max-width: 610px;
}

/*Sets the read-only textbox beside browse to the same width as the other textboxes*/
.commission-form .input-group {
    position: relative;
    display: table;
    border-collapse: separate;
    max-width: 300px;
}

/*Custom size on intro and main-content*/
textarea.form-control.intro-content {
    width: 100%;
    height: 100px;
}

textarea.form-control.main-content {
    width: 100%;
    height: 300px;
}

/*Navbar*/
.navbar-inverse {
    background-color: #f8f8f9;
    border-color: #f8f8f9;
}

.navbar {
    /*overflow: hidden; Denne gjer at boks kjem bakom*/
    background-color: #f1f1f1;
}

@media (min-width: 768px) {
    .navbar-nav > li > a {
        /* (80px - line-height of 27px) / 2 = 26.5px */
        padding-top: 26.5px;
        padding-bottom: 26.5px;
        line-height: 27px;
    }
}

/*icon-bar*/
.navbar-toggle {
    border-color: black;
    background-color: white;
    margin-top: 20px;
}

.navbar-inverse .navbar-toggle .icon-bar {
    background-color: black;
}

.navbar-inverse .navbar-toggle:hover, .navbar-inverse .navbar-toggle:focus {
    background-color: white;
}

.navbar-inverse .navbar-nav > li > a {
    color: #000000;
    font-weight: bold;
    background-color: #f1f1f1;
}

.navbar-inverse .navbar-nav > .active > a {
    color: #000000;
    background-color: #f1f1f1; /*gray*/
}

.navbar-inverse .navbar-nav > li:hover > a:hover {
    color: #d42b1e;
    font-weight: bold;
    background-color: #f1f1f1;
}

.navbar li {
    float: left;
    display: block;
    border-bottom: 3px solid transparent;
}

    .navbar li.active {
        border-bottom: 3px solid #d42b1e; /*red*/
    }

/*CSS object-fit Property*/
.fill {
    object-fit: fill;
}

.contain {
    object-fit: contain;
}

.cover {
    object-fit: cover;
}

.scale-down {
    object-fit: scale-down;
}

.none {
    object-fit: none;
}

/*Set picture in top of page in a static size*/
.carousel-inner > .item > img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}
/*Typical iPhone X*/
@media (max-width: 375px) {
    .carousel-inner > .item > img {
        width: 100%;
        height: 200px;
        object-fit: cover;
    }
}

.carousel-caption {
    top: 0;
    bottom: auto;
}

/*Article image*/
.article-image-responsive {
    width: 100%;
    height: auto;
}

/*Dropdown*/
.dropdown-menu li {
    float: none;
    display: block;
    border-bottom: 3px solid transparent;
}

.navbar-inverse .navbar-nav > .open {
    color: #000000;
    background-color: #f1f1f1; /*gray*/
}

    .navbar-inverse .navbar-nav > .open > a, .navbar-inverse .navbar-nav > .open > a:hover, .navbar-inverse .navbar-nav > .open > a:focus {
        color: #000000;
        background-color: #f1f1f1; /*gray*/
    }

.navbar-inverse .navbar-nav > .active > a, .navbar-inverse .navbar-nav > .active > a:hover, .navbar-inverse .navbar-nav > .active > a:focus {
    color: #000000;
    background-color: #f1f1f1; /*gray*/
}

.navbar-inverse .navbar-nav > li > a:hover, .navbar-inverse .navbar-nav > li > a:focus {
    color: #000000;
    background-color: #f1f1f1; /*gray*/
}

/*Sets size of image on create, edit and delete*/
.image-preview {
    width: 100%;
    max-width: 610px;
}

/*Makes the content more readable with line-spacing etc.*/
.article-format {
    /*white-space: pre-line;*/
    line-height: 1.7;
}

.h1 {
    font-family: 'LFT Etica','Helvetica Neue',Arial,sans-serif;
    font-size: 60px;
}

.h2 {
    line-height: 1.7;
}

.h3 {
    line-height: 1.7;
}

.p {
    font-family: 'LFT Etica','Helvetica Neue',Arial,sans-serif;
    font-size: 14px;
    line-height: 1.7;
}

.dl-horizontal dt {
    white-space: pre-line;
}

@media (min-width: 768px) {
    .dl-horizontal dt {
        white-space: pre-line;
    }
}

.dl-horizontal dd {
    white-space: pre-line;
}

@media (min-width: 768px) {
    .dl-horizontal dd {
        white-space: pre-line;
    }
}

/*.article-format-image {
    white-space: normal;
}*/


/*Custom navbar collapse breakpoint*/
/*https://stackoverflow.com/questions/19827605/change-bootstrap-navbar-collapse-breakpoint-without-using-less*/
/*1200 Tidlegare før færre topppunkt
    940 iPad liggande
    720 iPad ståande
*/
@media (max-width: 940px) {  
    .navbar-header {
        float: none;
    }

    .navbar-left, .navbar-right {
        float: none !important;
    }

    .navbar-toggle {
        display: block;
    }

    .navbar-collapse {
        border-top: 1px solid transparent;
        box-shadow: inset 0 1px 0 rgba(255,255,255,0.1);
    }

    .navbar-fixed-top {
        top: 0;
        border-width: 0 0 1px;
    }

    .navbar-collapse.collapse {
        display: none !important;
    }

    .navbar-nav {
        float: none !important;
        margin-top: 7.5px;
    }

        .navbar-nav > li {
            float: none;
        }

            .navbar-nav > li > a {
                padding-top: 10px;
                padding-bottom: 10px;
            }

    .collapse.in {
        display: block !important;
    }
}
.glyphicon-ok {
    color: green;
}

.glyphicon-remove {
    color: darkred;
}
