﻿div, footer {
    width: 100%;
}

p {
    margin-bottom: 0;
}

.content, .bot-content-wrapper {
    min-height: calc(100vh - 64px);
}

.disclaimer {
    height: 64px;
}

.header {
    height: 96px;
    background: rgb(255,255,255);
    width: 100%;
    position: relative;
    text-align: center;
}

    .header img {
        max-width: 224px;
        max-height: 96px;
        box-sizing: border-box;
        padding: 8px;
    }

    .header a {
        max-height: 100%;
    }

    .header:after {
        content: "";
        display: block;
        width: 100%;
        height: 1px;
        background: var(--primary-color-500);
        margin: 0;
        padding: 0;
        left: 0;
        bottom: 0;
        position: absolute;
        opacity: 0.1;
    }

.disclaimer {
    background: rgb(255,255,255);
    position: relative;
}

    .disclaimer:before {
        content: "";
        display: block;
        width: 100%;
        height: 1px;
        background: var(--primary-color-500);
        margin: 0;
        padding: 0;
        left: 0;
        top: 0;
        position: absolute;
        opacity: 0.1;
    }

.bot-content-wrapper {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
    font-size: 16px;
    font-weight: 400;
    overflow: hidden;
    width: 100%;
    position: relative;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

    .bot-content-wrapper .bot-content {
        -webkit-box-flex: 1;
        -webkit-flex-grow: 1;
        -ms-flex-positive: 1;
        flex-grow: 1;
    }

h2.error {
    text-align: center;
    font-size: 140px;
    line-height: 150px;
    font-weight: 800;
    margin-bottom: 0;
    text-shadow: 1px 2px 2px rgba(0,0,0,0.16);
}

.bot-message p {
    font-size: 2rem;
    line-height: 48px;
    font-weight: 500;
    margin-bottom: 0px;
}

.bot-human p, .bot-message p, .bot-message h1, h2.error, footer h3 {
    color: var(--primary-color-500);
}

.bot-human p, .bot-message p, .bot-message h1, footer, .copy-right, .powered-by {
    text-align: center;
}

.bot-human {
    padding: 2rem 0;
    display: flex;
    max-height: calc(100dvh - 248px);
    flex-flow: row wrap
}

    .bot-human > span {
        width: 100%;
        display: flex;
        align-content: center;
        align-items: center;
        justify-content: center;
        padding-top: 14vh;
    }

.bot-message h1 {
    font-size: 32px !important;
    color: var(--font-color-active);
}

footer {
    position: relative;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 1;
    max-height: initial;
    transform: translateY(0);
    transform-origin: bottom;
    opacity: 1;
}

    footer > * {
        z-index: 1;
    }

    footer:before {
        content: "";
        width: 100%;
        height: 100%;
        position: absolute;
        left: 0;
        top: 0;
        z-index: 0;
        background: var(--primary-color-500);
        opacity: 0.04;
    }

body.error footer h4 {
    font-size: 24px;
    line-height: 34px;
    margin-bottom: 16px;
}

footer:not(.active) {
    visibility: hidden;
    max-height: 0;
    transform: translateY(100%);
    opacity: 0;
}

.copy-right {
    width: 100%;
}

.powered-by {
    font-size: 9px;
    font-weight: 100;
}

    .powered-by a {
        text-decoration: underline;
    }

footer .mdl-mega-footer__link-list {
    list-style: none;
    margin: 8px 0;
    padding: 0;
}

    footer .mdl-mega-footer__link-list li {
        display: inline-block;
        text-align: left;
        padding: 4px;
    }

        footer .mdl-mega-footer__link-list li a {
            background: var(--primary-color-500);
            color: rgba(255,255,255,0.96);
            font-weight: 400;
            border-radius: 2px;
            border: 0;
            position: relative;
            height: 36px;
            margin: 0;
            min-width: 64px;
            padding: 0 16px;
            display: inline-block;
            font-size: 12px;
            font-weight: 500;
            line-height: 1;
            will-change: box-shadow;
            outline: 0;
            cursor: pointer;
            text-decoration: none;
            text-align: center;
            line-height: 36px;
            vertical-align: middle;
            -webkit-box-shadow: 0 2px 2px 0 rgba(0,0,0,0.08), 0 3px 1px -2px rgba(0,0,0,0.14), 0 1px 5px 0 rgba(0,0,0,0.06);
            box-shadow: 0 2px 2px 0 rgba(0,0,0,0.08), 0 3px 1px -2px rgba(0,0,0,0.14), 0 1px 5px 0 rgba(0,0,0,0.06);
        }

.bot-human svg {
    width: 24rem;
}

.copy-right {
    font-size: 1rem;
    line-height: 1;
    padding-top: 1rem;
}

@media only screen and (max-width:640px) {
    .bot-human svg {
        width: 16rem;
    }

    .copy-right {
        font-size: 0.9rem;
    }
}


body.bot.secondary {
    background: var(--secondary-color-500);
}

    body.bot.secondary .header, body.bot.secondary .disclaimer {
        background: var(--secondary-color-800);
    }

        body.bot.secondary .disclaimer p {
            color: rgba(255,255,255,0.66);
        }

        body.bot.secondary .disclaimer a {
            color: rgba(255,255,255,0.36);
        }

        body.bot.secondary .header:after, body.bot.secondary .disclaimer:before {
            display: none;
        }


body.bot.primary {
    background: var(--primary-color-500);
}

    body.bot.primary .header, body.bot.primary .disclaimer {
        background: var(--primary-color-800);
    }

        body.bot.primary .disclaimer p {
            color: rgba(255,255,255,0.66);
        }

        body.bot.primary .disclaimer a {
            color: rgba(255,255,255,0.36);
        }

        body.bot.primary .header:after, body.bot.primary .disclaimer:before {
            display: none;
        }

.bot-human p {
    font-size: 1.6rem;
    background: #fff;
    padding: 1.4rem 2rem 2.4rem 5.4rem;
    border: 2px solid var(--primary-color-300,var(--c-1,#000));
    border-radius: 0.4rem;
    position: relative;
    line-height: 1;
}

    .bot-human p:before {
        transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
        content: "";
        width: 3rem;
        height: 3rem;
        border: 3px solid rgba(0, 0, 0, 0.08);
        position: absolute;
        left: 1rem;
        top: 1rem;
        border-radius: 0.4rem;
        background: rgba(0, 0, 0, 0.02);
        box-shadow: 0 0 3px rgba(0, 0, 0, 0.08) inset;
        cursor: pointer;
    }

.bot-human strong {
    font-size: inherit;
    line-height: 1;
}

    .bot-human strong:before {
        content: "[Tick the checkbox to continue]";
        font-size: 0.8rem;
        font-weight: normal;
        position: absolute;
        padding-top: 1.8rem;
        opacity: 0.6;
    }

body.auto .bot-human strong:before {
    content: "[Auto verification in progress]";
}

body.auto .bot-human p:before {
    border: 4px solid var(--primary-color-900,var(--c-1,#000));
    box-shadow: none;
    border-bottom-color: transparent;
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
}

body.verified .bot-human p:after {
    opacity: 1;
    height: 2.2rem;
    width: 0.9rem;
    transform-origin: left top;
    border-right: 4px solid #5cb85c;
    border-top: 4px solid #5cb85c;
    content: "";
    left: 1.3rem;
    top: 2.9rem;
    position: absolute;
    animation-duration: 800ms;
    animation-timing-function: ease;
    animation-name: checkmark;
    transform: scaleX(-1) rotate(137deg);
}

body.verified .bot-human p:before {
    border: 4px solid #5cb85c;
    cursor: inherit;
    background: #DEF1DE;
    box-shadow: none;
    border-bottom-color: transparent;
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
    width: 3.6rem;
    height: 3.6rem;
    left: 0.9rem;
    top: 0.9rem;
}

body.verified .bot-human p {
    cursor: progress;
}

.bot-human > span > div {
    width: auto;
    text-align: center;
}

.bot-human > span > svg {
    max-width: 100%;
    max-height: 100%;
}


.bot-button {
    position: relative;
    padding: 0.8rem 2.4rem;
    font-size: 1rem;
    font-weight: 500;
    color: inherit;
    background: none;
    border: none;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.4s ease;
    border-radius: 4px;
}

    .bot-button:not([disabled]) {
        background: var(--primary-color-900);
        border: 1px solid var(--primary-color-500);
        color: var(--homesearchcolor,#fff);
        box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
    }

    .bot-button.scan div {
        position: absolute;
        inset: 0;
        background: linear-gradient( 180deg, rgba(255,255,255, 0) 0%, var(--primary-color-900) 50%, rgba(255,255,255, 0) 100% );
        opacity: 0;
        transition: 0.3s;
        opacity: 0.16;
        animation: rain 1s linear infinite;
        z-index: -1;
    }

    .bot-button[disabled] {
        color: var(--homesearchcolor,#fff);
    }

    .bot-button span {
        display: none;
    }

    .bot-button[disabled] span:first-child {
        display: block;
    }

    .bot-button:not([disabled]) span:not(:first-child) {
        display: block;
    }

    .bot-button span:first-child:before {
        content: "Auto verification";
    }

    .bot-button.active span:first-child:before {
        content: "In Progress";
    }

    .bot-button[disabled]::before {
        content: "";
        position: absolute;
        z-index: -1;
        top: 0;
        left: -100%;
        width: 300%;
        height: 100%;
        background: var(--primary-color-400) repeating-linear-gradient( 60deg, transparent, transparent 10px, var(--primary-color-500) 10px, var(--primary-color-500) 20px );
        animation: loading 1s infinite linear;
    }

.bot-issue {
    position: absolute;
    bottom: 0;
    margin: 0 auto;
    left: 0;
    right: 0;
    width: 360px;
    text-align: center;
}

    .bot-issue label {
        font-size: 0.8rem;
        font-style: normal;
        text-decoration: underline;
        padding: 8px;
        display: block;
        cursor: pointer;
    }



@keyframes rain {
    0% {
        transform: translateY(-100%);
    }

    100% {
        transform: translateY(100%);
    }
}

@keyframes loading {
    0% {
        transform: translateX(25px);
    }

    100% {
        transform: translateX(-20px);
    }
}

@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes checkmark {
    0% {
        height: 0;
        width: 0;
        opacity: 1;
    }

    20% {
        height: 0;
        width: 0.9rem;
        opacity: 1;
    }

    40% {
        height: 2.3rem;
        width: 0.9rem;
        opacity: 1;
    }

    100% {
        height: 2.3rem;
        width: 0.9rem;
        opacity: 1;
    }
}
