﻿html, body {
    height: 100%;
}

@media (min-width: 750px) {
    html, body {
        height: auto;
    }
}

.default-hidden, .sebankid .default-hidden {
    display: none;
}

form {
    margin: 0;
}

.centered {
    margin-left: auto;
    margin-right: auto;
}

.text-center {
    text-align: center;
}

.desktop-show {
    display: none;
}

@media (min-width: 750px) {
    .desktop-show, .sebankid .desktop-show {
        display: block;
    }

    span.desktop-show {
        display: inline;
    }
}

.is-android .is-android-show {
    display: inherit;
}

.is-android .is-android-hide {
    display: none;
}

.is-ios .is-ios-hide {
    display: none;
}

.is-not-ios .is-not-ios-show {
    display: block;
}

.has-error .has-error-hide, .has-error .is-android-show.has-error-hide {
    display: none;
}

.has-error .has-error-show {
    display: block;
}

.has-error span.has-error-show {
    display: inline;
}


.broker header, .broker #headline, .broker footer, .broker #description {
    font-weight: 300;
    font-size: 20px;
    line-height: 30px;
}

body.broker {
    margin: 0;
    padding: 0;
}

.broker p {
    margin-top: 0px;
}

.broker h1#headline {
    margin-top: 80px;
    margin-bottom: 30px;
    max-width: 400px;
    font-size: 34px;
}

@media (max-height: 812px) {
    .broker h1#headline {
        margin-top: 30px;
    }
}

h1.centered, a.centered {
    text-align: center;
}

.broker .frame {
    background-color: #FFF;
    box-sizing: border-box;
    min-height: 100%;
    width: 100%;
}

@media (min-width: 750px) {
    .broker .frame {
        max-width: 400px;
        width: auto;
        min-height: auto;
        overflow-y: auto;
    }
}

.broker .frame img {
    max-width: 100%;
}

.broker #description {
    max-width: 400px;
    padding: 30px 30px 0px 30px;
    box-sizing: border-box;
}

    .broker #description p {
        margin: 0px 0px 30px 0px;
    }

.broker #footer {
    margin: 50px 0px 50px 0px;
}

.broker .broker-dk-side-by-side {
    padding: 10px;
    height: 100%;
    box-sizing: border-box;
}
.broker .broker-dk-side-by-side-content {
    height: calc(100% - 54px);
    width: auto;
    margin-top: 10px;
    box-sizing: border-box;
    background-color: #fff;
    padding: 0px;
}

    .broker .broker-dk-side-by-side-content .frame {
        height: 100%;
    }

.broker.dknemid .broker-dk-side-by-side-content {
    padding: 0px;
}

.broker .broker-dk-side-by-side-tabs {
    display: flex;
    flex-flow: row;
    width: auto;
    height: 44px;
    box-sizing: border-box;
    border-bottom: 1px solid #cacaca;
}

    .broker .broker-dk-side-by-side-tabs .tab {
        display: block;
        width: 38%;
        height: 44px;
        text-decoration: none;
        padding: 0px;
        font-family: "Raleway";
        font-size: 16px;
        box-sizing: border-box;
        z-index: 1;
        white-space: nowrap;
        text-align: center;
        background-color: #e5e5e5;
        border: 1px solid transparent;
        border-bottom: 1px solid #cacaca;
        display: flex;
        justify-content: center;
        align-items: center;
    }

        .broker .broker-dk-side-by-side-tabs .tab img {
            height: 18px;
        }

        .broker .broker-dk-side-by-side-tabs .tab a {
            height: 100%;
            width: 100%;
            display: flex;
            justify-content: center;
            align-items: center;
        }

/* Active tab */
    .broker .broker-dk-side-by-side-tabs .tab.active {
        background-color: #FFF;
        border: 1px solid #cacaca;
        border-bottom: 1px solid #FFF;
    }

@media (min-width: 750px) {
    .broker .broker-dk-side-by-side {
        padding: 0px;
        height: auto;
    }
    .broker .broker-dk-side-by-side-content {
        width: 400px;
        box-sizing: content-box;
        padding: 50px;
        background-color: #F4F6F3;
        min-height: 588px; /* height required by mitid */
        margin: 0px auto 0px auto;
        border: 1px solid #cacaca;
    }


    .broker.dkmitid .broker-dk-side-by-side-content {
        background-color: #FFFFFF;
    }

    .broker.dknemid .broker-dk-side-by-side-content {
        padding: 50px;
        background-color: #FFFFFF;
    }

    .broker .broker-dk-side-by-side-tabs {
        width: 502px;
        margin: 0px auto -1px auto;
        border-bottom: 0;
    }

        .broker .broker-dk-side-by-side-tabs .tab.dknemid {
            margin-right: 16px;
        }

        .broker .broker-dk-side-by-side-tabs .tab img {
            margin-left: 2px;
            height: 16px;
        }
}

.broker.redirect-completion .frame {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 10px auto;
    font-family: sans-serif;
}

.is-pending .is-pending-show {
    display: block;
}
.is-pending .is-pending-hide {
    display: none;
}

.default-transparent {
    opacity: 0;
}

.opaque-after-3s, .default-transparent.opaque-after-3s {
    animation: opaque 3s linear both;
}
.opaque-after-2s, .default-transparent.opaque-after-2s {
    animation: opaque 2s linear both;
}
.opaque-after-1s, .default-transparent.opaque-after-1s {
    animation: opaque 1s linear both;
}

@keyframes opaque {
    0%, 80% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

