/**
 * index.scss
 * - Add any styles want here!
 */
:root {
    --primary: #00297a;
    --secondary: #00aeef;
    --tertiary: #d1e8fa;
    --gray: #ccc;
    --lightgray: #efefef;
}

[v-cloak] {
    display: none;
}

body {
    background: #fcfcfc;
    margin: 0;
    margin-bottom: 2rem;
    padding: 0;
    font-family: "Roboto", sans-serif;
    font-weight: 300;
}

    body[data-branding=broker] {
        --primary: #0068fa;
    }

header.siteheader {
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
}

    header.siteheader h1 {
        margin-top: 2rem;
        margin-bottom: 0;
        text-align: left;
    }

        header.siteheader h1 small {
            font-family: "Roboto", sans-serif;
            font-size: 0.8rem;
            opacity: 0.7;
        }

    header.siteheader .logo {
        background-image: url(../assets/logo.svg);
        height: 60px;
        width: 116px;
        background-repeat: no-repeat;
        background-size: cover;
        background-position: top right;
        margin: 1rem;
    }

    header.siteheader .broker-logo {
        background-image: url(../assets/broker-logo.svg);
        height: 40px;
        width: 170px;
        background-repeat: no-repeat;
        background-size: contain;
        background-position: top right;
        margin: 1rem;
        margin-top: 2rem;
    }

.footer {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

    .footer button:not(:last-child) {
        margin-bottom: 1rem;
    }

iframe {
    width: 100%;
    max-width: 500px;
    height: 400px;
    border: none;
}

ul.progress {
    display: flex;
    justify-content: center;
    font-size: 0.9rem;
    padding: 0;
    font-style: normal;
    position: relative;
}

    ul.progress:after {
        content: " ";
        border-bottom: var(--gray) 1px solid;
        width: 100%;
        position: absolute;
        bottom: 3rem;
        left: 0;
        z-index: 0;
    }

    ul.progress li {
        display: flex;
        margin: 2rem 3rem;
        text-transform: uppercase;
        display: flex;
        flex-direction: column;
        align-items: center;
        z-index: 1;
    }

        ul.progress li.done .number {
            background-color: var(--tertiary);
            border-color: var(--tertiary);
        }

        ul.progress li.active .number {
            color: white;
            background-color: var(--primary);
            border-color: var(--primary);
        }

        ul.progress li .number {
            border: 1px solid var(--gray);
            background-color: var(--lightgray);
            margin-top: 0.5rem;
            width: 2rem;
            height: 2rem;
            border-radius: 2rem;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 700;
            font-size: 0.8rem;
            color: #424242;
        }

ul.selectoptions {
    padding: 0;
    list-style: none;
}

    ul.selectoptions li {
        margin-bottom: 2rem;
        display: flex;
        cursor: pointer;
    }

        ul.selectoptions li .description {
            display: flex;
            flex: 1;
            flex-direction: column;
        }

            ul.selectoptions li .description h3 {
                text-align: left;
                margin-top: 0;
                margin-bottom: 0;
            }

            ul.selectoptions li .description input {
                margin-top: 1rem;
            }

    ul.selectoptions figure.select-indicator {
        width: 1.5rem;
        height: 1.5rem;
        border-radius: 2rem;
        border: 1px solid var(--gray);
        margin: 0;
        margin-right: 1rem;
    }

        ul.selectoptions figure.select-indicator.active {
            background: radial-gradient(#00aeef 0%, #00aeef 47%, transparent 55%, transparent);
            border-color: #00aeef;
            border-width: 2px;
        }

.page {
    display: flex;
    justify-content: center;
}

    .page h2 {
        max-width: 600px;
    }

        .page h2 small {
            display: block;
            line-height: 1.5rem;
            margin-top: 1rem;
        }

.device-info {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.container {
    width: 800px;
    max-width: 800px;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
}

.icon {
    background-position: center center;
    background-repeat: no-repeat;
    background-size: contain;
}

    .icon.icon-phonenotification {
        background-image: url(../assets/phonenotification.svg);
    }

    .icon.icon-swipe {
        background-image: url(../assets/swipe.svg);
    }

    .icon.icon-mitid {
        background-image: url(../assets/mitid-logo-black.svg);
    }

    .icon.icon-mitid-color {
        background-image: url(../assets/mitid-logo.svg);
    }

    .icon.icon-biometric {
        background-image: url(../assets/biometric.svg);
    }

    .icon.icon-flash {
        background-image: url(../assets/flash.svg);
    }

    .icon.icon-controlboard {
        background-image: url(../assets/controlboard.svg);
    }

    .icon.icon-popup {
        background-image: url(../assets/popup.svg);
    }

    .icon.icon-redirect {
        background-image: url(../assets/redirect.svg);
    }

    .icon.icon-flag-dk {
        background-image: url(../assets/flag-dk.svg);
        background-repeat: no-repeat;
        width: 24px;
        height: 18px;
        margin-right: 16px;
    }

    .icon.icon-flag-gb {
        background-image: url(../assets/flag-gb.svg);
        background-repeat: no-repeat;
        width: 24px;
        height: 18px;
        margin-right: 16px;
    }

    .icon.icon-flag-gl {
        background-image: url(../assets/flag-gl.svg);
        background-repeat: no-repeat;
        width: 24px;
        height: 18px;
        margin-right: 16px;
    }

button.flowbox {
    padding: 0;
}

.flowbox {
    transition: transform 0.3s ease 0s;
    border-radius: 1rem;
    border: 1px solid var(--gray);
    background: #fff;
    max-width: 600px;
    margin-bottom: 2rem;
    width: 100%;
    display: flex;
    overflow: hidden;
    cursor: pointer;
}

    .flowbox:last-of-type {
        margin-bottom: 0;
    }

    .flowbox .gfx {
        background: var(--lightgray);
        width: 160px;
        padding: 2rem;
        box-sizing: border-box;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: background 0.8s ease 0s;
        border-right: 1px solid var(--gray);
        height: 100%;
    }

        .flowbox .gfx .icon {
            width: 50px;
            height: 50px;
            transition: transform 0.4s ease 0s;
        }

    .flowbox .arrow {
        width: 60px;
        background-image: url(../assets/arrow.svg);
        background-position: 0px 30px;
        background-repeat: no-repeat;
        transition: background-position 0.3s ease 0s;
        height: 100%;
    }

    .flowbox .text {
        padding: 2rem;
        flex: 1;
    }

        .flowbox .text h3 {
            text-align: left;
            margin-top: 0;
        }

        .flowbox .text p {
            text-align: left;
            margin-bottom: 0;
        }

    .flowbox:hover {
        box-shadow: 0px 10px 22px rgba(46, 158, 229, 0.4);
        transform: translatex(5px);
    }

        .flowbox:hover .gfx {
            background: white;
        }

            .flowbox:hover .gfx .icon {
                transform: scale(1.1);
            }

        .flowbox:hover .arrow {
            background-position: 10px 30px;
        }

.customform h5 {
    text-align: left;
    font-size: 1rem;
    margin-bottom: 1rem;
    margin-top: 3rem;
}

.customform .input-group {
    display: flex;
    width: 100%;
    min-height: 90px;
    margin-bottom: 24px;
}

.customform .checkbox-select {
    display: flex;
    align-items: center;
}

    .customform .checkbox-select input[type=checkbox] {
        height: 20px;
        width: 20px;
        margin-right: 0.5rem;
    }

.customform button[type=submit] {
    margin-top: 2rem;
}

.customform input[type=text] {
    box-sizing: border-box;
}

.customform .radio-select input[type=radio]:checked + .radio-control,
.customform .radio-select input[type=radio]:hover + .radio-control {
    box-shadow: 0px 2px 16px rgba(46, 158, 229, 0.4);
    border: var(--secondary) 1px solid;
}

.customform .radio-select {
    flex: 1;
    margin-right: 1rem;
}

    .customform .radio-select input {
        display: none;
    }

    .customform .radio-select .radio-control {
        border: 1px solid var(--gray);
        display: inline-flex;
        padding: 1.5rem;
        border-radius: 0.5rem;
        width: 100%;
        height: 100%;
        box-sizing: border-box;
        align-items: center;
        transition: background-color 0.2s;
        cursor: pointer;
    }

        .customform .radio-select .radio-control .icon {
            height: 30px;
            width: 30px;
            margin-right: 1rem;
        }

            .customform .radio-select .radio-control .icon.icon-mitid-color {
                height: 15px;
                width: 65px;
                margin-bottom: 0.5rem;
                display: flex;
                background-position: left top;
            }

.box {
    border-radius: 1rem;
    border: 1px solid var(--gray);
    background: #fff;
    max-width: 600px;
    width: 100%;
}

    .box .content {
        padding: 2rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        border-bottom: 1px solid var(--gray);
    }

        .box .content h3 {
            text-align: center;
        }

        .box .content:last-child {
            border-bottom: none;
        }

    .box:first-of-type {
        z-index: 1;
        margin-top: 2rem;
    }

h1,
h2,
h3,
h4,
h5 {
    font-family: "Merriweather", serif;
    font-weight: 300;
    font-style: normal;
    text-align: center;
}

h1 {
    font-size: 1.2rem;
}

h2 {
    font-size: 2rem;
    text-align: center;
}

    h2 small {
        font-size: 1rem;
        opacity: 0.8;
    }

a {
    color: var(--primary);
    text-underline-offset: 6px;
    transition: text-underline-offset 0.2s;
}

    a:hover {
        color: var(--secondary);
        text-underline-offset: 2px;
    }

    a.btn {
        text-decoration: none;
    }

.button-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

    .button-group > * {
        margin-bottom: 2rem;
    }

.btn {
    text-transform: uppercase;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    border: none;
    font-size: 0.8rem;
    box-shadow: 0px 8px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease 0s;
    cursor: pointer;
}

    .btn[disabled] {
        background: var(--gray) !important;
        box-shadow: none;
        cursor: not-allowed;
    }

        .btn[disabled]:hover {
            transform: none !important;
            box-shadow: none !important;
        }

    .btn.btn-outline {
        color: var(--primary);
        border: 1px solid var(--primary);
        background: none;
        margin-bottom: 1rem;
    }

        .btn.btn-outline.btn-small {
            padding: 0.5rem 1rem;
        }

        .btn.btn-outline:hover {
            background-color: var(--primary);
            color: #fff;
        }

    .btn.btn-text {
        background: none;
        padding: 0;
        box-shadow: none;
        align-self: flex-start;
        color: gray;
        text-transform: initial;
    }

    .btn.btn-primary {
        background-color: var(--primary);
        color: rgba(255, 255, 255, 0.9);
    }

        .btn.btn-primary:hover {
            background-color: var(--secondary);
            box-shadow: 0px 10px 22px rgba(46, 158, 229, 0.4);
            color: #fff;
            transform: translateY(-4px);
        }

        .btn.btn-primary.btn-small {
            padding: 0.5rem 1rem;
        }

        .btn.btn-primary.btn-notransform:hover {
            transform: translateY(0);
        }

.animation.success {
    display: flex;
    justify-content: center;
}

    .animation.success .handshake {
        background-image: url(../assets/handshake.svg);
        background-repeat: no-repeat;
        width: 65px;
        height: 65px;
        background-size: contain;
    }

.animation.failed {
    display: flex;
    justify-content: center;
}

    .animation.failed .denied {
        background-image: url(../assets/denied.svg);
        background-repeat: no-repeat;
        width: 65px;
        height: 65px;
        background-size: contain;
    }

.animation.otp {
    display: flex;
    flex-direction: row;
    align-items: center;
    margin-bottom: 2rem;
    margin-top: 1rem;
    justify-content: center;
}

    .animation.otp .computer {
        background: url(../assets/computer.svg) center no-repeat;
        background-size: contain;
        height: 45px;
        width: 45px;
    }

    .animation.otp .sending {
        width: 200px;
        height: 2px;
        margin: 1rem;
        overflow: hidden;
        position: relative;
    }

        .animation.otp .sending:before {
            content: "";
            position: absolute;
            left: -50%;
            height: 2px;
            width: 10%;
            background-color: var(--secondary);
            animation: lineAnim 1.5s ease infinite;
        }

    .animation.otp .phone {
        background: url(../assets/phone-vibrate.svg) center no-repeat;
        background-size: contain;
        height: 45px;
        width: 45px;
    }

    .animation.otp .icon-mitid,
    .animation.otp .icon-mitid-color {
        background-size: contain;
        height: 45px;
        width: 75px;
    }

@keyframes lineAnim {
    0% {
        left: -40%;
    }

    50% {
        left: 20%;
        width: 80%;
    }

    100% {
        left: 100%;
        width: 100%;
    }
}

nav.tabs {
    border-bottom: 1px solid var(--gray);
}

    nav.tabs ul {
        list-style: none;
        padding: 0;
        margin: 1rem;
        margin-bottom: -1px;
    }

        nav.tabs ul button {
            background: none;
            border: none;
            padding: 0.5rem 0;
            margin: 0 0.5rem;
            font-weight: 700;
        }

            nav.tabs ul button:hover {
                cursor: pointer;
                color: var(--secondary);
            }

            nav.tabs ul button.active {
                color: var(--secondary);
                font-weight: 700;
                border-bottom: 2px solid var(--secondary);
            }

@media only screen and (max-width: 620px) {
    header.siteheader {
        flex-direction: column-reverse;
        align-items: center;
        margin-bottom: 0;
    }

        header.siteheader .logo {
            display: none;
        }

        header.siteheader h1 {
            margin-top: 0;
            text-align: center;
        }

    .box {
        border-radius: 0;
        border-right: 0;
        border-left: 0;
        border-bottom: 0;
    }

        .box .content {
            padding: 1rem;
        }

    ul.progress {
        display: none;
    }
}

table {
    display: flex;
    justify-content: center;
}

    table td {
        padding: 0.5rem;
    }

input[type=text] {
    padding: 1rem;
    border-radius: 0.5rem;
    border: 1px solid var(--gray);
    display: flex;
    width: 100%;
}

    input[type=text]:focus-visible {
        outline-color: white;
        outline-offset: 0px;
        box-shadow: var(--secondary) 0px 0px 10px;
    }

hr {
    border-top: none;
    border-bottom: 1px solid var(--gray);
}

.input-group {
    display: flex;
}

    .input-group input[type=text] {
        margin-right: 1rem;
    }

.alert {
    display: flex;
    background: #fff3cc;
    padding: 2rem 4rem;
    flex-direction: column;
    align-items: center;
    margin: 2rem;
    border-radius: 0.5rem;
    border: 1px solid #d3c980;
}

.iframe-container {
    position: relative;
    width: 100%;
    max-width: 500px;
    height: 400px;
    overflow: hidden;
}

    .iframe-container .skeleton-container {
        opacity: 0;
        transition: opacity 0.8s;
        transition-delay: 1s;
    }

        .iframe-container .skeleton-container.visible {
            opacity: 1;
        }

.skeleton-shine {
    width: 100%;
    height: 100%;
    position: absolute;
    z-index: 1;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0) 0px, rgba(255, 255, 255, 0.4) 24px, rgba(0, 0, 0, 0) 50px);
    animation: shine 1s infinite;
}

.iframe-skeleton {
    position: absolute;
    width: 100%;
    max-width: 500px;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    --skeleton: #e6e6e6;
}

    .iframe-skeleton .skeleton-header {
        background: var(--skeleton);
        width: 405px;
        height: 18px;
        margin-bottom: 20px;
    }

    .iframe-skeleton .skeleton-qr {
        border: 1px solid var(--skeleton);
        height: 200px;
        width: 200px;
        border-radius: 0.5rem;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .iframe-skeleton .skeleton-qr-code {
        width: 170px;
        height: 170px;
        background: var(--skeleton);
    }

.phone-content {
    border: 6px #ddd solid;
    border-top-width: 30px;
    border-radius: 1rem;
    width: 320px;
    height: 600px;
    display: flex;
    flex-direction: column;
    margin-bottom: 2rem;
}

    .phone-content .phone-skeleton {
        height: 200px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-end;
        margin-bottom: 1rem;
    }

        .phone-content .phone-skeleton .phone-skeleton-heading {
            background: var(--gray);
            height: 20px;
            width: 200px;
            margin-bottom: 1rem;
        }

        .phone-content .phone-skeleton .phone-skeleton-description {
            background: var(--gray);
            height: 12px;
            width: 240px;
            margin-bottom: 2rem;
        }

        .phone-content .phone-skeleton .phone-skeleton-button {
            border: 1px solid var(--gray);
            border-radius: 1rem;
            width: 200px;
            padding: 1rem;
            margin-bottom: 1rem;
        }

    .phone-content .phone-appid {
        flex: 1;
        display: flex;
        align-items: center;
        flex-direction: column;
        justify-content: center;
    }

        .phone-content .phone-appid .phone-appid-code {
            font-size: 2rem;
            color: var(--secondary);
            font-weight: bold;
            margin-top: 0;
        }

@keyframes shine {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}
