html {
    height: 100%;
}

body {
    background-color: map-get($grey, 50);
    color: #212121;
    font-size: 13px;
    font-family: 'Roboto', 'Arial', sans-serif;
    height: 100%;
    line-height: 24px;
    min-height: 100%;
    transition: margin-right .2s linear;

    &.admin-bar {
        padding-top: 32px;

        @media screen and (max-width: 782px) {
            padding-top: 46px;
        }
    }

    &.has-sidenav {
        margin-right: 240px;
    }
}

iframe.map {
    background-color: #fff;
    border: 1px solid map-get($grey, 100);
    height: 340px;
    margin: 0 0 30px 0;
    padding: 10px;
    width: 100%;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: normal;

    .action {
        color: map-get($color-secondary, 500);
        font-size: 12px;
        font-weight: 500;
        float: right;
        margin-top: 6px;
        text-transform: uppercase;

        &:hover {
            text-decoration: none;
        }
    }
}

article {
    color: map-get($grey, 700);
}

h1 {
    font-size: 24px;
    margin-bottom: 20px;
}

h2 {
    font-size: 20px;
    margin-bottom: 20px;
}

h3 {
    font-size: 18px;
    margin-bottom: 15px;
}

h4 {
    font-size: 16px;
    margin-bottom: 15px;
}

h5 {
    font-size: 14px;
    margin-bottom: 10px;
}

h6 {
    font-size: 12px;
    margin-bottom: 10px;
}

h1.page-header {
    border-bottom: 1px solid rgba(black, .12);
    color: rgba(black, .7);
    font-size: 28px;
    line-height: 60px;
    margin: 0 0 30px 0;
    padding: 0;

    .btn-lg {
        margin: 10px 0 0 0 !important;
    }

    .page-header-actions {
        font-size: 18px;
        float: right;

        .action-link {
            color: map-get($grey, 400);
            cursor: pointer;
            display: inline-block;
            padding-left: 15px;
            position: relative;

            &:hover {
                color: map-get($color-secondary, 400);
            }

            ul {
                background-color: #fff;
                bottom: 42px;
                box-shadow: 0 2px 4px rgba(0, 0, 0, .08);
                display: block;
                font-size: 12px;
                height: 0;
                list-style: none;
                overflow: hidden;
                position: absolute;
                right: 0;
                width: 0;
                z-index: 999;

                li {
                    display: block;
                    margin: 0;
                }

                a {
                    color: map-get($grey, 700);
                    display: block;
                    line-height: 28px;
                    padding: 8px 22px;
                    transition: background-color .15s linear;
                    white-space: nowrap;

                    i {
                        font-size: 16px;
                        margin: 0 8px 0 0;
                        vertical-align: middle;
                    }

                    span {
                        vertical-align: middle;
                    }

                    &:hover {
                        background-color: rgba(black, .05);
                    }
                }
            }
        }
    }
}

a {
    color: map-get($color-secondary, 400);

    &:hover {
        color: map-get($color-secondary, 600);
        text-decoration: none;
    }
}

hr {
    border-top: 1px solid rgba(black, .06);
}

blockquote {
    background-color: #fff;
    border: 1px solid map-get($grey, 100);
    color: map-get($grey, 800);
    font-style: italic;
    font-size: 22px;
    font-weight: 300;
    line-height: 30px;
    padding: 16px 16px 16px 80px;
    position: relative;

    &:before {
        color: map-get($color-secondary, 400);
        content: '\f10e';
        display: block;
        font-family: 'FontAwesome';
        font-size: 45px;
        left: 16px;
        position: absolute;
        top: 25px;
    }
}

ol {
    color: map-get($grey, 700);
    list-style-position: inside;
    padding: 0;

    li {
        margin-bottom: 10px;
    }
}

ul {
    color: map-get($grey, 700);
    list-style-position: inside;
    padding: 0;

    li {
        margin-bottom: 10px;
    }
}

#map-contact {
    height: 300px;
}

.page-wrapper {
    background-color: map-get($grey, 50);
    display: table;
    height: 100%;
    overflow: hidden;
    table-layout: fixed;
    width: 100%;
}

.main {
    display: table-row;

    a {
        transition: color .15s linear;
    }
}

.custom-space {
    background-color: map-get($color-secondary, 500);
    color: #fff;
    margin-bottom: 30px;
}

.custom-space-caption {
    background-color: map-get($color-secondary, 600);
    font-size: 12px;
    padding: 2px 16px;
}

.custom-space-inner {
    margin: 0 0 30px 0;
    padding: 16px;

    h1 {
        margin: 0 0 10px 0;
        font-size: 34px;
    }

    p {
        font-size: 13px;
        font-weight: 500;
        margin: 0;
    }
}

.recaptcha {
    margin-bottom: 30px;
    max-width: 100%;
}

.contact {
    th {
        padding: 0 12px 8px 0;
        vertical-align: top;
        white-space: nowrap;
    }

    td {
        padding: 0 0 8px 12px;
        vertical-align: top;
    }

    .fa {
        font-size: 16px;
        margin: 0 15px 0 0;
        opacity: .8;
        vertical-align: 0;
    }
}

.header-image {
    background-position: center center;
    background-size: cover;
    height: 250px;
    margin-left: -750px;
    margin-right: -750px;
    padding-left: 750px;
    padding-right: 750px;

    h1 {
        background-color: map-get($color-secondary, 600);
        clear: both;
        color: #fff;
        float: left;
        font-size: 26px;
        margin: 55px 0 0 0;
        padding: 18px;
    }

    h2, h3 {
        background-color: rgba(255,255,255,0.87);
        clear: both;
        color: map-get($color-secondary, 400);
        float: left;
        font-size: 20px;
        margin: 0;
        padding: 12px 18px;
    }

    h2 {
        color: map-get($grey, 500);
    }
}
