
body {
    background-color: #f5f0e9;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;

    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.pds-c-logo {
    color: #d60d41;
}
.main-menu {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
    background-color: transparent;
}
.main-menu li a {
    color: #4a4a4a;
    padding: .4em 2em .4em 0;
    font-size: 16px;
    font-weight: 600;
    display: inline-block;
    position: relative;
    width: 100%;
    font-family: Fira Sans, sans-serif;
    line-height: 1.5;
    text-decoration: none;
    text-transform: none;
    cursor: pointer;
}

header {
    background-color: #fff;
    border-bottom: 2px solid #f5f0e9;
    -x-position: sticky;
    -x-top: 0;
    -x-z-index: 999;
}
header .header-bar {
    padding-right: 0;
    padding-left: 0;
}


header .header-bar .content {
    padding-left: 1rem;
    padding-right: 1rem;
    width: 100%;
    max-width: 1320px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}
    
    header .header-bar.header-topbar {
        position: relative;
        z-index: 1;
        height: 50px;
    }
            
    header .header-bar.header-topbar .content .pds-c-logo {
        flex-shrink: 0;
        width: 150px;
        height: 50px;
        position: relative;
        left: 1px;
    }
            
    header .header-bar.header-topbar .content .pds-c-logo svg {
        width: 100%;
        height: 100%;
    }
    header .header-bar.header-topbar .content h1 {
        display:none;
        font-family: "Bree Serif", sans-serif;
        font-weight: 400;
        padding-left: 1em;
        font-size: 16px;
        margin: 0 0 12px;
        line-height: 1em;
        align-self: flex-end;
    }

article {
    flex: 1;
    padding: 0;
}

article .content {
    padding: 1rem;
    background-color:white;
    min-height:100%;
    width: 100%;
    max-width: 1320px;
    margin-left: auto;
    margin-right: auto;
}

article .content h2 {
    margin:0 0 2rem;
}

article .content p {
    max-width:25rem;
}


article .content form {
    margin-top:1rem;
}


article .content form .pds-c-input-container.digits {
    display: flex;
    width: 100%;
    gap: 1em;
    margin-bottom:2rem;
}
article .content form .pds-c-input.digit {
    text-align: center;
    font-family: monospace;
    font-size: 1.5em;
    height: 4rem;
    letter-spacing: 0;
    padding: 0;
    min-width:0;
    text-transform: lowercase;
}
article .content form button {
    width:100%;
    margin-bottom:1rem;
}

#overlay {
    position: absolute;
    top: 0;
    left: 0;
    z-index:999;
    bottom:0;
    right:0;
    background-color: black;
    color: white;
}
#overlay .pds-c-icon.cross {
    position: absolute;
    right:0;
    top:0;
    cursor:pointer;
}
#overlay .content {
    text-align:center;
    padding-top: 3rem;
    padding-left: 1rem;
    padding-right: 1rem;
}
#overlay .content h2 {
    margin-top:-2rem; /* aligns with close button */
}
#overlay .content a {
    color:white;
    font-weight:bold;
    font-size:2em;
    text-decoration:none;
    word-break: break-all;
}
#overlay .content .qrcode {
    margin: 1rem auto;
    background-color: var(--pds-color-black-20);
    position: relative;
    width:75vh;
    max-width:100%;
}
#overlay .content .qrcode:before {
    content: "";
    display: block;
    padding-top: 100%;
}
#overlay .content .qrcode img {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    width: 100%;
}
#overlay .content .error h1 {
    color: var(--pds-color-red);
}

@media only screen and (min-width: 769px) {
    
    body {
        background-image: url("../vendor/prodemos/pds/packages/pds-compiled/assets/images/backgrounds/bgpattern-bison.svg");
        background-position: 100px 100px;
    }
    header .header-bar {
        padding-right: 3rem;
        padding-left: 3rem;
    }
    header .header-bar .content {
        height:100%;
        padding-left: 40px;
        padding-right: 40px;
    }
    header .header-bar.header-topbar {
        height: 50px;
    }
    header .header-bar.header-topbar .content h1 {
        display:block;
    }
    header .header-bar.header-bottombar {
        height: 50px;
        box-shadow: 0 1px #0000001a inset;
    }
    article {
        padding: 3rem;
    }
    article.dialog {
        margin: 0 auto;
        min-width: 50vw;
    }
    article .content {
        padding-top: 3rem;
        padding-right: 40px;
        padding-bottom: 3rem;
        padding-left: 40px;
    }
 
    article .content form .pds-c-input-container.digits {
        width: 25rem;
    }
    article .content form button {
        width:25rem;
    }
    #overlay .pds-c-icon.cross {
        right:1rem;
        top:1rem;
    }
    #overlay .content {
        padding-right: 40px;
        padding-bottom: 3rem;
        padding-left: 40px;
    }
    
}