@import "../../images/sprites/build/sprites";
@import "../../fonts/MKBH/stylesheet";

.text-invisible {
    text-indent: 100%;
    white-space: nowrap;
    overflow: hidden;
}

.text-shadow (@string: 0 1px 3px rgba(0, 0, 0, 0.25)) {
    text-shadow: @string;
}

.box-shadow (@string) {
    -webkit-box-shadow: @string;
    -moz-box-shadow: @string;
    box-shadow: @string;
}

.drop-shadow (@x: 0, @y: 1px, @blur: 2px, @spread: 0, @alpha: 0.25) {
    -webkit-box-shadow: @x @y @blur @spread rgba(0, 0, 0, @alpha);
    -moz-box-shadow: @x @y @blur @spread rgba(0, 0, 0, @alpha);
    box-shadow: @x @y @blur @spread rgba(0, 0, 0, @alpha);
}

.inner-shadow (@x: 0, @y: 1px, @blur: 2px, @spread: 0, @alpha: 0.25) {
    -webkit-box-shadow: inset @x @y @blur @spread rgba(0, 0, 0, @alpha);
    -moz-box-shadow: inset @x @y @blur @spread rgba(0, 0, 0, @alpha);
    box-shadow: inset @x @y @blur @spread rgba(0, 0, 0, @alpha);
}

.box-sizing (@type: border-box) {
    -webkit-box-sizing: @type;
    -moz-box-sizing: @type;
    box-sizing: @type;
}

.border-radius (@radius: 5px) {
    -webkit-border-radius: @radius;
    -moz-border-radius: @radius;
    border-radius: @radius;
    -moz-background-clip: padding;
    -webkit-background-clip: padding-box;
    background-clip: padding-box;
}

.border-radiuses (@topright: 0, @bottomright: 0, @bottomleft: 0, @topleft: 0) {
    -webkit-border-top-right-radius: @topright;
    -webkit-border-bottom-right-radius: @bottomright;
    -webkit-border-bottom-left-radius: @bottomleft;
    -webkit-border-top-left-radius: @topleft;
    -moz-border-radius-topright: @topright;
    -moz-border-radius-bottomright: @bottomright;
    -moz-border-radius-bottomleft: @bottomleft;
    -moz-border-radius-topleft: @topleft;
    border-top-right-radius: @topright;
    border-bottom-right-radius: @bottomright;
    border-bottom-left-radius: @bottomleft;
    border-top-left-radius: @topleft;
    -moz-background-clip: padding;
    -webkit-background-clip: padding-box;
    background-clip: padding-box;
}

.opacity (@opacity: 0.5) {
    -webkit-opacity: @opacity;
    -moz-opacity: @opacity;
    opacity: @opacity;
}

.gradient (@startColor: #eee, @endColor: white) {
    background-color: @startColor;
    background: -webkit-gradient(linear, left top, left bottom, from(@startColor), to(@endColor));
    background: -webkit-linear-gradient(top, @startColor, @endColor);
    background: -moz-linear-gradient(top, @startColor, @endColor);
    background: -ms-linear-gradient(top, @startColor, @endColor);
    background: -o-linear-gradient(top, @startColor, @endColor);
}

.horizontal-gradient (@startColor: #eee, @endColor: white) {
    background-color: @startColor;
    background-image: -webkit-gradient(linear, left top, right top, from(@startColor), to(@endColor));
    background-image: -webkit-linear-gradient(left, @startColor, @endColor);
    background-image: -moz-linear-gradient(left, @startColor, @endColor);
    background-image: -ms-linear-gradient(left, @startColor, @endColor);
    background-image: -o-linear-gradient(left, @startColor, @endColor);
}

.animation (@name, @duration: 300ms, @delay: 0, @ease: ease) {
    -webkit-animation: @name @duration @delay @ease;
    -moz-animation: @name @duration @delay @ease;
    -ms-animation: @name @duration @delay @ease;
}

.transition (@transition) {
    -webkit-transition: @transition;
    -moz-transition: @transition;
    -ms-transition: @transition;
    -o-transition: @transition;
}

.transform(@string) {
    -webkit-transform: @string;
    -moz-transform: @string;
    -ms-transform: @string;
    -o-transform: @string;
}

.scale (@factor) {
    -webkit-transform: scale(@factor);
    -moz-transform: scale(@factor);
    -ms-transform: scale(@factor);
    -o-transform: scale(@factor);
}

.rotate (@deg) {
    -webkit-transform: rotate(@deg);
    -moz-transform: rotate(@deg);
    -ms-transform: rotate(@deg);
    -o-transform: rotate(@deg);
}

.skew (@deg, @deg2) {
    -webkit-transform: skew(@deg, @deg2);
    -moz-transform: skew(@deg, @deg2);
    -ms-transform: skew(@deg, @deg2);
    -o-transform: skew(@deg, @deg2);
}

.translate (@x, @y:0) {
    -webkit-transform: translate(@x, @y);
    -moz-transform: translate(@x, @y);
    -ms-transform: translate(@x, @y);
    -o-transform: translate(@x, @y);
}

.translate3d (@x, @y: 0, @z: 0) {
    -webkit-transform: translate3d(@x, @y, @z);
    -moz-transform: translate3d(@x, @y, @z);
    -ms-transform: translate3d(@x, @y, @z);
    -o-transform: translate3d(@x, @y, @z);
}

.perspective (@value: 1000) {
    -webkit-perspective: @value;
    -moz-perspective: @value;
    -ms-perspective: @value;
    perspective: @value;
}

.transform-origin (@x:center, @y:center) {
    -webkit-transform-origin: @x @y;
    -moz-transform-origin: @x @y;
    -ms-transform-origin: @x @y;
    -o-transform-origin: @x @y;
}

.read-more-link-arrow-right-o {
    font-family: 'Montserrat', serif;
    font-weight: 300;
    font-size: 14px;
    display: inline-block;
    margin-top: 10px;
    letter-spacing: 1px;
    color: #c1041f;

    &:before {
        .mkbh-icon('f', 12px, #c1041f);
        margin-right: 5px;
        padding: 0 1px;
        position: relative;
        top: 1px;
    }

    &:active, &:active:before,
    &:focus, &:focus:before {
        text-decoration: none;
    }
}

.read-more-link-arrow-right-o-big {
    font-family: 'Montserrat', serif;
    font-size: 19px;
    display: inline-block;
    margin-top: 10px;
    letter-spacing: 0.03em;
    color: #c1041f;

    &:before {
        display: inline-block;
        content: '';
        background: url("../../images/sprites/build/sprites.png?v=1.001") @sprite-icon-arrow-right-o-big-offset-x @sprite-icon-arrow-right-o-big-offset-y no-repeat;
        width: @sprite-icon-arrow-right-o-big-width;
        height: @sprite-icon-arrow-right-o-big-height;
        vertical-align: middle;
        margin-right: 0;
        margin-top: -7px;
    }
}

.read-more-link-arrow-right-o-blue {
    font-family: 'Montserrat', serif;
    font-size: 15px;
    display: inline-block;
    margin-top: 10px;
    letter-spacing: 0.05em;
    color: #0071bc;

    &:before {
        display: inline-block;
        content: '';
        background: url("../../images/sprites/build/sprites.png?v=1.001") @sprite-icon-arrow-right-o-blue-offset-x @sprite-icon-arrow-right-o-blue-offset-y no-repeat;
        width: @sprite-icon-arrow-right-o-blue-width;
        height: @sprite-icon-arrow-right-o-blue-height;
        vertical-align: middle;
        margin-right: 7px;
        margin-top: -5px;
    }
}

.read-more-link-arrow-right-o-light-blue-info {
    font-family: 'Montserrat', serif;
    font-size: 15px;
    font-weight: 100;
    display: inline-block;
    margin-top: 10px;
    letter-spacing: 0.05em;
    color: #29abe2;

    &:before {
        display: inline-block;
        margin-right: 5px;
        font-family: 'FontAwesome', sans-serif;
        font-size: 14px;
        content: '\f05a';
        color: #29abe2;
    }
}

.mkbh-font-awesome-icon(@icon, @size, @color) {
    font-family: FontAwesome !important;
    font-size: @size;
    content: @icon;
    color: @color;
    font-style: normal !important;
    font-weight: normal !important;
    font-variant: normal !important;
    text-transform: none !important;
    speak: none;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.panetitle {
    &:before {
        position: absolute;
        display: block;
        content: '';
        height: 1px;
        background-color: #b3b3b3;
        top: 0;
        left: 0;
        right: 0;
    }
}

.flexgrid {

    .flex-column {
        padding: 0;
        border: none;
        margin: 0 10px;
        font-weight: 600;

        &:first-child {
            margin: 0 10px 0 0;
        }

        &:last-child {
            margin: 0 0 0 10px;
            border: 1px solid #b3b3b3 !important;
            background-color: transparent !important;

            div[id*=google_ads_iframe_] {
                position: absolute;
                top: 50%;
                margin-top: -125px;
            }
        }

        .view {
            font-family: 'Montserrat';
            padding: 9px 13px;

            .view-header {
                padding: 0 0 5px;

                p {
                    letter-spacing: 1.3px;
                    margin: 0;
                }
            }

            .view-content {

                .views-row {
                    padding: 0 0 0 28px;
                    line-height: 17px;
                    position: relative;
                    min-height: 45px;

                    .views-row-grid {
                        border-bottom: 1px solid;
                    }

                    &:last-child {
                        .views-field-title {
                            border-bottom: none;
                        }

                        .views-row-grid {
                            border: none;
                        }

                        .views-row-content {
                            border: none;

                            .article-title {
                                border: none;
                            }
                        }
                    }

                    .views-field-counter {
                        position: absolute;
                        font-family: 'Caecilia LT Std';
                        font-size: 30px;
                        left: 0;
                        top: 7px;
                        font-weight: normal;
                    }

                    .views-field-fb-comments {
                        position: absolute;
                        left: 3px;
                        top: 21px;
                        font-family: 'Caecilia LT Std';
                        font-weight: normal;

                        .field-content {
                            position: relative;

                            &:before {
                                position: absolute;
                                display: block;
                                content: '\f075';
                                font-family: 'FontAwesome';
                                font-size: 13px;
                                top: -15px;
                                left: -2px;
                            }
                        }
                    }

                    .views-field-nothing {
                        .views-field-fb-comments
                    }

                    .views-field-title {
                        padding: 5px 0;
                        min-height: 45px;

                        &:after {
                            position: absolute;
                            display: block;
                            content: '';
                            bottom: 0;
                            left: 28px;
                            right: 0;
                            height: 1px;
                        }

                        .field-content {
                            position: relative;
                        }
                    }
                }

                .views-row-last {

                    .views-field-title {

                        &:after {
                            display: none;
                        }
                    }
                }
            }
        }
    }
}

.textcenter {
    clear: both;
    text-align: left;

    .item-list {

        .pagination {
            margin: 0 0 15px;

            .pager-ellipsis.disabled.last {
                display: none;
            }

            li {

                span {
                    border: none;
                    padding: 0 0 0 0px;
                    letter-spacing: 1.1px;

                    &:hover {
                        background-color: transparent;
                    }

                    a {
                        font-family: 'Montserrat';
                        font-size: 14px;

                        &:before {
                            display: inline-block;
                            content: '';
                            background-image: url(/sites/all/themes/custom/mkbh/assets/images/sprites/src/icon_arrow_right_o.png);
                            width: 13px;
                            height: 14px;
                            vertical-align: middle;
                            margin-right: 7px;
                            margin-top: -5px;
                        }
                    }
                }
            }
        }
    }
}

.pseudo {
    position: absolute;
    display: block;
    font-family: 'FontAwesome';
}

.transition (@time) {
    transition: @time;
    -webkit-transition: @time;
    -moz-transition: @time;
    -o-transition: @time;
}

article.mkbh-node-article-display .node-content .node-title {
    position: static;

    &:hover {
        a:before {
            opacity: 0.3;
        }
    }

    a {
        &:before {
            position: absolute;
            display: block;
            content: '';
            top: 0;
            bottom: 0;
            left: 0;
            right: 0;
            z-index: 1;
            background-color: black;
            opacity: 0;
            .transition(0.3s);
        }
    }
}

article.mkbh-node-vision-display .node-content .node-title {
    &:hover {
        a:before {
            opacity: 0.3;
        }
    }

    a {
        &:before {
            position: absolute;
            display: block;
            content: '';
            top: 0;
            bottom: 0;
            left: 0;
            right: 0;
            z-index: 1;
            background-color: black;
            opacity: 0;
            .transition(0.3s);
        }
    }
}

.view-display-id-pane_front_page_opinion .views-field-title,
.view-display-id-pane_front_page_sponsored .views-field-title,
.view-display-id-pane_front_page_photo .views-field-title,
.view-display-id-pane_front_film .views-field-title,
.view-display-id-pane_front_scene .views-field-title,
.view-display-id-pane_related_film .views-field-title,
.view-display-id-pane_related_scene .views-field-title {
    &:hover {
        a:before {
            opacity: 0.3;
        }
    }

    a {
        &:before {
            position: absolute;
            display: block;
            content: '';
            top: 0;
            bottom: 0;
            left: 0;
            right: 0;
            z-index: 1;
            background-color: black;
            opacity: 0;
            .transition(0.3s);
        }
    }
}

.field-content {
    a {
        &:before {
            position: absolute;
            display: block;
            content: '';
            top: 0;
            bottom: 0;
            left: 0;
            right: 0;
            z-index: 1;
        }
    }
}

.views-row-first {
    .vision-popular-block {
        position: relative;

        &:before {
            position: absolute;
            display: block;
            content: '';
            top: 0;
            bottom: 0;
            left: 0;
            right: 0;
            z-index: 1;
            background-color: black;
            opacity: 0;
            .transition(0.3s);
        }

        &:hover {
            &:before {
                opacity: 0.3;
            }
        }

        .vp-title {
            a {
                &:before {
                    position: absolute;
                    display: block;
                    content: '';
                    top: 0;
                    bottom: 0;
                    left: 0;
                    right: 0;
                    z-index: 1;
                    .transition(0.3s);
                }
            }
        }
    }
}

.title {
    a {
        &:before {
            position: absolute;
            display: block;
            content: '';
            top: 0;
            bottom: 0;
            left: 0;
            right: 0;
            z-index: 1;
            background-color: black;
            opacity: 0;
            .transition(0.3s);
        }
    }
}

.mobile {
    .field-content a:before,
    .pseudo,
    .title a:before,
    article.mkbh-node-article-display .node-content .node-title a:before,
    article.mkbh-node-vision-display .node-content .node-title a:before,
    .view-display-id-pane_front_page_opinion .views-field-title a:before,
    .view-display-id-pane_front_page_sponsored .views-field-title a:before,
    .view-display-id-pane_front_page_photo .views-field-title a:before,
    .view-display-id-pane_front_film .views-field-title a:before,
    .view-display-id-pane_front_scene .views-field-title a:before,
    .view-display-id-pane_related_film .views-field-title a:before,
    .view-display-id-pane_related_scene .views-field-title a:before,
    &.page-byens-rum #page-wrapper .main-container article.mkbh-node-article-display .node-inner:after,
    &.not-front .main-container .page-content section[class*=most-read] .pane-content .view-content .views-row .views-field-nothing .field-content a:after,
    &.page-byens-liv article.mkbh-node-article-display .node-inner:after,
    &.page-opinion article.mkbh-node-article-display .node-content .node-title a:before,
    &.page-visioner .main-container .page-content div[class*=visioner_medium_region-inside] .redaktionens-udvalgte-block-pane .flex-content .redaktionens-udvalgte-block .redaktionens-udvalgte-content > a:first-child:before,
    &.page-map .main-container .row.overflow-hidden .region-left-carousel .carousel-wrapper .bx-wrapper .bx-viewport .vertical-carousel .single-item-info .item-text-info .item-title .title:before,
    &.page-kort .main-container .row.overflow-hidden .region-left-carousel .carousel-wrapper .bx-wrapper .bx-viewport .vertical-carousel .single-item-info .item-text-info .item-title .title:before,
    &.page-foto #page-wrapper .main-container .row section .page-content .pane-cover-c-main-content-panel-pane-1 .pane-content .view-content .views-row .views-field-title a:before {
        background-color: transparent !important;
    }

    &.page-anmeldelser #page-wrapper .page-content section[class*=g-main] .views-row:hover:before {
        background-color: #fafafa;
    }

    &.page-projekter .main-container .pane-region-inner .pane-mkbh-projekter-page .pane-content .row.overflow-hidden .region-left-projects #edit-projects .region-projects-cards .item-row .single-item {
        &:hover {
            .comment-count {
                color: #b3b3b3 !important;

                &:before {
                    color: #b3b3b3 !important;
                }
            }
        }
    }
}

@blue: #29abe2;
@light-grey: #fafafa; /*#FAFAFA;*/
@grey: #b3b3b3;
@light-blue: #d0e2f7;
@border-right: #b3b3b3;
