html,
body {
    height: 100%;
}

body.main, body.plain {
    font-size: 4.1026vw; /* 16px on 390 */
    background: center / cover #dcdcdc url(/img/bg-circles.webp) ;
    color: #000;
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
}

body.dark {
    background: #010101;
    color: #fff;
}

body > .page {
    min-height: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: stretch;
}

@media (min-device-width: 641px) {
    body > .page {
        font-size: 26.2566px;
        width: 640px;
        margin: 0 auto;
    }
}

.page-content {
    flex: 1;
    margin: 0 0.25em;
}

.hint-block {
    display: block;
    margin-top: 5px;
    color: #999;
}


.site-oidc-client {
    min-width: 400px;
}

.page-title {
    margin-bottom: 1em;
}

.btn {
    min-width: 8em;
}

.tools {
    display: block !important;
    position: absolute;
    right: 10px;
    top: 10px;
}

h1, .page-title {
    font-size: 2.5em;
    font-family: 'Bricolage Grotesque', serif;
}

h2 {
    font-size: 2em;
    font-family: 'Bricolage Grotesque', serif;
}

.logo {
    margin: 1em;
}

.download-app p {
    font-size: 0.571429em;
}

.site-agent-app canvas {
    border-radius: 10px;
    cursor: pointer;
}

.pair-link-wrap {
    margin: 2em;
}
.pair-link-wrap a {
    text-decoration: underline;
}

.site-oidc-client fieldset {
    margin-bottom: 3em;
}

.form-text.text-muted {
    color: #fff !important;
}

/* Bootstrap 4 compat */
.d-flex {
    display: flex;
}
.flex-column {
    flex-flow: column;
}
.flex-grow-0 {
    flex-grow: 0;
}
.flex-grow-1 {
    flex-grow: 1;
}
.align-items-center {
    align-items: center;
}
.justify-content-center {
    justify-content: center;
}

.site-privacy-policy {
    text-align: left;
}

.qr-code-hidden p {
    margin: 2em 0;
}

.btn-bottom, .btn-bottom:link, .btn-bottom:visited, .btn-bottom:hover, .btn-bottom:active, .btn-bottom:focus {
    margin: 0.25em;
    display: block;
    font-size: 1.125em;
    color: #fff;
    background-color: #000;
    text-align: center;
    border-radius: 0.25em;
    padding: 1em;
    text-decoration: none;
    box-sizing: border-box;
}

button.btn-bottom {
    width: calc(100% - 0.5em);
}

.btn-bottom:active {
    opacity: 0.8;
    text-decoration: none;
}

.btn-bottom > span {
    display: block;
    font-size: 0.777778em;
    opacity: 0.64;
}

.btn-bottom.light {
    background-color: #fff;
    color: #000;
}

.palm-index h1 {
    margin: 2.625em 1.25em;
}

.site-error {
    margin: 2.625em 1.25em;
}

#palmauth {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    flex-grow: 1;
}

#palmauth h2 {
    margin: 0.5em 0.5em 0.75em 0.5em;
}

#palmauth > div.loader {
    align-self: center;
}

.match-or-enroll {
    /* display: flex;
    flex-direction: column;
    align-items: space-around;
    margin: 0.5em 0.5em 0.75em 0.5em; */
}

.qrcode {
    text-align: center;
}

.loader {
    width: 3em;
    height: 3em;
    border: 0.3em solid #FFF;
    border-bottom-color: transparent;
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
}

@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}
