:root {
    /* --content-width: min(100%, 600px); */
    --content-width: 600px;
    --max-navbar-width: 300px;
    --max-ad-width: 300px;
    --feed-gap: 32px;

    --min-side-width: 250px;

    --body-overflow: scroll;
}

html {
    font-size: 18px;
}

body, * {
    margin: 0;
    -webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit */
    -moz-box-sizing: border-box;    /* Firefox, other Gecko */
    box-sizing: border-box;         /* Opera/IE 8+ */
}

body {
    overflow-x: hidden;

    background-color: #EFF6F8;

    width: 100%;
    min-height: 100vh;

    overflow-y: auto;
}

body > div.root {
    position: relative;

    display: flex;
    flex-direction: column;

    height: 100vh;
    overflow-y: hidden;
}

#container {
    display: block;
    width: 100%;

    flex: 1;

    overflow-x: hidden;
    display: flex;
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;

    padding: 32px;
    gap: 32px;
}

a, h1, h2, h3, h4, h5, h6, p, b, a, input, button {
    word-wrap: break-word;
    font-size: 1rem;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.333333rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.2rem; }
h6 { font-size: 1.166667rem; }

* {
    font-family: 'Open Sans', Arial, Helvetica, sans-serif;
    letter-spacing: 0.02rem;
    line-height: 1.3;
}

a {
    text-decoration: none;
    color: black;
}

a:not(.noline):not(.button) {
    text-decoration: underline;
}

a:not(.noline):not(.button):not(.item):not(.container):hover {
    text-decoration: underline;
    color: rgb(92, 129, 163);
}

/* a:not(.noline):not(.button)::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-bottom: solid 1px #0004;
} */

a:not(.noline):not(.button):hover::before {
    cursor: pointer;
    border-color: #000;
}

input[type="text"], input[type="date"], input[type="password"], input[type="email"], input[type="number"], input[type="datetime-local"], select, textarea {
    padding: 4px 8px;
    font-size: 18px;

    height: 36px;

    /* border-radius: 3px;
    border: solid 1px #ccc;
    background-color: white; */

    background-color: #fdfdfd;
    border: none;
    border: solid 1px #f0f0f0;
    border-bottom: solid 2px #ccc; 
}

.hoverable {
    position: relative;
}

.hoverable:not(.no-pointer) {
    cursor: pointer;
}

.hoverable:hover::before {
    opacity: 1;
}

.hoverable::before {
    content: '';
    position: absolute;
    top: 0;
    
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    box-shadow: 0 0 0 7px #88f2, 0 0 0 2px #44e6;
    opacity: 0;
    transition: ease-in-out 0.1s opacity;
}

input[type="text"]:active, input[type="text"]:focus, 
input[type="password"]:active, input[type="password"]:focus,
input[type="email"]:active, input[type="email"]:focus,
input[type="date"]:active, input[type="date"]:focus,
textarea:active, textarea:focus,
select:active, select:focus {
    outline: none;
    background-color: #88f1;
    border-bottom: solid 2px #44e6;
    /* box-shadow: 0 0 0 7px #88f2, 0 0 0 2px #44e6; */
}

input[type="text"]::placeholder, input[type="text"]::placeholder, textarea::placeholder {
    color: #aaa;
}


button, input[type="submit"]:not(.not-button), a.button, label.button {
    display: block;
    min-width: fit-content;
    height: 40px;
    line-height: 40px;
    background-color: #eee;
    padding: 0 24px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 700;
    text-align: center;
    border: none;
    color: #222;
}

button:hover, input[type="submit"]:not(.not-button):hover, a.button:hover, label.button:hover {
    background-color: #ddd;
    text-decoration: none;

    cursor: pointer;
    outline: none;
}

select:focus, select:active {
    outline: none;
}

input[type="submit"].as-link {
    border: none;
    outline: none;
    background-color: transparent;
    text-decoration: underline;
    cursor: pointer;

    padding: 0;
}

button.light,
input[type="submit"]:not(.not-button).light,
a.button.light {
    border: 1px solid #ccc;
    background-color: white;
    color: #000;
}

button.light:hover,
input[type="submit"]:not(.not-button).light:hover,
a.button.light:hover {
    /* border: 1px solid #f8f8f8; */
    background-color: #f8f8f8;
}


hr {
    outline: none;
    border: none;
    border-bottom: 1px solid #ddd;
    height: 0px;
    margin-block: auto;
}

.vert-sep {
    border-right: 1px solid #ddd;
}

.inline {
    display: inline;
}

.block {
    display: block;
}

.column {
    display: flex;
    flex-direction: column;
}

.line {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}

.row {
    display: flex;
    flex-direction: row;
}

.center {
    justify-content: center;
    align-items: center;
}

.center-main {
    justify-content: center;
}

.center-cross {
    align-items: center;
}

.space-main {
    justify-content: space-between;
}

.space-cross {
    align-items: self-end;
}

.grow {
    flex: 1;
}

.wrap {
    flex-wrap: wrap;
}

.dont-shrink {
    flex-shrink: 0;
}

.break {
    word-wrap: break-word;
    width: 100%;
}

.break {
    word-wrap: break-word;
    width: 100%;
}

.centered {
    text-align: center;
}

.text-right {
    text-align: right;
}

.g32 {
    gap: 32px;
}

.g16 {
    gap: 16px;
}

.g8 {
    gap: 8px;
}

.g4 {
    gap: 4px;
}

.page-border-pad,
.p64 {
    padding: 64px;
}

.p32 {
    padding: 32px;
}

.p16 {
    padding: 16px;
}

.p8 {
    padding: 8px;
}

.truncate {
    overflow: hidden; 
    white-space: nowrap; 
    text-overflow: ellipsis;
}

.width100 {
    width: 100%;
}

.mw0 {
    min-width: 0;
    flex-basis: 0;
}

#feed {
    width: 100%;
    max-width: 600px;

    display: flex;
    flex-direction: column;
}

@media only screen and (min-width: 901px) {
    #feed.max-space {
        flex: 1 1 0;
        min-width: 600px;
        max-width: unset;
    }
}

.page {
    width: 100%;
    padding: 32px;
    margin: 0 auto 32px auto;
    overflow: hidden;
    background-color: white;
    border: solid 1px #DDDDDD;
    border-radius: 8px;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.05);
}

.transparent-page {
    width: 100%;
    margin: 0 auto 32px auto;
    overflow: hidden;
}

@media only screen and (max-width: 600px) {

    .page-border-pad {
        padding: 32px;
    }

    .page,
    .transparent-page {
        border-radius: 0;
        border-left: none;
        border-right: none;
        box-shadow: none;
    }

    .transparent-page {
        padding-inline: 32px;
    }

    a.back-link {
        padding-left: 32px;
    }

    #container {
        padding-inline: 0;
    }
}

.page-cover {
    position: fixed; 
    width: calc((100% - var(--content-width)) / 2);
    height: 100%;
    top: 0;
    z-index: 2000;

    background-color: rgba(0, 0, 0, 0.05);
}

.page  .cover {
    margin: 0 -32px;
    padding: 32px;

    color: white;

    background: #4C93BB;
    /* background: radial-gradient(94.36% 2444.06% at -4.09% 19.95%, #80D3E6 0%, #38AFF1 100%); */
    background-size: cover;
    background-position: bottom right;
    /* background: -moz-linear-gradient(135deg, rgba(119,213,190,1) 0%, rgba(56,193,160,1) 50%, rgba(33,185,149,1) 100%);
    background: -webkit-linear-gradient(135deg, rgba(119,213,190,1) 0%, rgba(56,193,160,1) 50%, rgba(33,185,149,1) 100%);
    background: linear-gradient(135deg, rgba(119,213,190,1) 0%, rgba(56,193,160,1) 50%, rgba(33,185,149,1) 100%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#77d5be",endColorstr="#21b995",GradientType=1); */
}

.page  .cover a {
    color: white;
}

.page  .cover a:hover {
    color: #fff8 !important;
}

.page .cover .button {
    background-color: transparent;
    color: white;
    border: 1px solid #fff;
}

.page .cover .button:hover {
    color: white !important;
    background-color: #fff2;
}

#home.page {
    margin-block: 0;
    padding: 0;
}

body#home {
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
}

/* #home .page-cover {
    background-color: rgba(0, 0, 0, 0.3);
} */

#home > section {
    position: relative;

    width: 100%;
    height: calc(100vh - 64px);
}

#home > section > img {
    position: absolute;

    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    object-fit: cover;
    opacity: 0.65;
}

#home > section > div {
    position: absolute;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 32px;

    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

#home > section > div > .slogan {
    color: white;

    letter-spacing: 10%;
    font-weight: 800;
    text-align: center;
    font-size: 5vmin;
}

.errors {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.errors > .error {
    background-color: rgb(153, 92, 92);
    color: white;
    padding: 6px 12px;
    border-left: 4px solid rgb(190, 151, 151);
}

a.back-link {
    width: 100%;
    text-decoration: none !important;
    margin-bottom: 16px;
}

a.back-link * {
    color: #000;
    fill: #000;
    font-weight: 600;
}

a.back-link:hover * {
    color: #666;
    fill: #666;
}

.framecode-locations {
    width: 100%;
    height: max-content;
    object-fit: contain;
    object-position: center;
}

.action-option > a {
    font-size: 21px !important;
    width: fit-content;
    color: rgb(0, 0, 0) !important;
    text-decoration: underline !important;
    text-decoration-color: rgb(161, 161, 161) !important;
    text-decoration-style: dashed !important;
}

.action-option > svg > rect {
    fill: rgb(77, 77, 77);
}

.action-option:hover > a {
    color: rgb(138, 138, 138) !important;
}

.action-option:hover > svg > rect {
    fill: rgb(187, 187, 187);
}

.page .page-options > * {
    position: relative;
    padding-inline: 32px;
    padding-block: 12px;

    text-decoration: none !important;
}

.page .page-options > form > input.item {
    text-decoration: none !important;
    text-align: left;
    width: 100%;
}

.page .page-options > *:hover {
    background-color: #f8f8f8;
}

.page .page-options > *:not(:last-child) {
    border-bottom: solid 1px #ddd;
}

.page .page-options > *:after {
    content: url('data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2216%22%20height%3D%2216%22%20viewBox%3D%220%200%2060%2060%22%20fill%3D%22none%22%3E%3Crect%20x%3D%2217.1213%22%20y%3D%2215.571%22%20width%3D%2230%22%20height%3D%226%22%20rx%3D%223%22%20fill%3D%22black%22%2F%3E%3Crect%20x%3D%2241.1213%22%20y%3D%2215.571%22%20width%3D%226%22%20height%3D%2230%22%20rx%3D%223%22%20fill%3D%22black%22%2F%3E%3Crect%20x%3D%2240.1649%22%20y%3D%2218.2847%22%20width%3D%226%22%20height%3D%2238.5886%22%20rx%3D%223%22%20transform%3D%22rotate%2845%2040.1649%2018.2847%29%22%20fill%3D%22black%22%2F%3E%3C%2Fsvg%3E');
    opacity: 0.3;

    position: absolute;
    font-size: 24px;

    top: 8px;
    right: 0;
    bottom: 0;

    object-position: center;

    padding-right: 32px;
}

.bold-separator {
    width: 100%;
    height: 32px;

    background-color: #f8f8f8;

    border-block: 1px solid #ddd;
}

.servicer-button > svg {
    min-width: 56px;
}

.success-feedback {
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;

    margin-bottom: 16px;
    width: 100%;
    min-height: 56px;

    background-color: rgba(92, 153, 107, .75);
    color: white;
    padding: 8px 8px 8px 12px;
    border-left: 4px solid rgb(95, 155, 123);
}

.info-feedback {
    margin-bottom: 16px;
    width: 100%;
    min-height: 56px;
    padding: 8px 8px 8px 12px;

    background-color: rgba(141, 141, 141, 0.75);
    border-left: 4px solid rgb(131, 131, 131);
}

.info-feedback > div {
    color: rgb(255, 255, 255);

    word-wrap: break-word;
}

.info-feedback > svg {
    margin-right: 8px;
}

.success-feedback > div {
    display: inline-block;
    flex-shrink: 0;
    max-width: 100%;
}

.success-feedback > div > span {
    word-wrap: break-word;
    width: 100%;
}

.success-feedback > a.button {
    background-color: #0001;
    color: white;

    margin-left: auto;
}

.success-feedback > a.button:hover {
    background-color:#0002;
}

.cookie_eu_button {
    height: fit-content !important;
    padding: 0 24px !important;
}

#type-bought:checked ~ .type-button-container > #type-bought-button {
    background-color: #4C93BB;
    color: white;
}

#type-used:checked ~ .type-button-container > #type-used-button {
    background-color: #4C93BB;
    color: white;
}

#type-email-only:checked ~ .pass-issuing-system-container > #type-email-only-button {
    background-color: #4C93BB;
    color: white;
}

#type-full-details:checked ~ .pass-issuing-system-container > #type-full-details-button {
    background-color: #4C93BB;
    color: white;
}

footer {
    width: 100%;

    margin-top: 256px;
    padding-inline: max(32px, calc((100% - calc(var(--content-width) + var(--max-navbar-width) + var(--max-ad-width) + var(--feed-gap) * 2)) / 2));
}

footer a {
    text-decoration: none !important;
}

footer > .content {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: stretch;
    justify-content: space-between;
}

@media only screen and (min-width: 1101px) {

    footer > .content > div.column:not(:last-of-type) {
        padding-right: 32px;
    }
}

@media only screen and (max-width: 1100px) {
    footer > .content {
        flex-direction: column;
        gap: 32px;
    }
}

footer > .request-info > * {
    font-size: 12px;
    color: #666;
}

.noselect {
    -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Safari */
    -khtml-user-select: none; /* Konqueror HTML */
        -moz-user-select: none; /* Old versions of Firefox */
        -ms-user-select: none; /* Internet Explorer/Edge */
            user-select: none; /* Non-prefixed version, currently
                                    supported by Chrome, Edge, Opera and Firefox */
}