/* Default font and color settings. */
:root {
    font-family: "Noir W05 Regular", -apple-system, BlinkMacSystemFont, Segoe UI,
        Roboto, Helvetica Neue, Arial, Noto Sans, Liberation Sans, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.5;
    font-weight: 400;

    color-scheme: light dark;
    color: var(--luciditi-tcolor);
    background-color: var(--luciditi-pcolor);
    background-image: url(".././img/bg.png");
    background-origin: padding-box;
    background-position-x: 50%;
    background-position-y: 100%;
    background-size: 100%;

    font-synthesis: none;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-text-size-adjust: 100%;

    transition: all 0.4s;
}

body {
    margin: 0;
}

/* Headings
-------------------------------------------------------------- */

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: Play, sans-serif;
    text-transform: capitalize;
}

h1 {
    font-size: 3em;
    line-height: 1;
    margin-bottom: 0.5em;
}

h2 {
    font-size: 2em;
    margin-bottom: 1em;
}

h3 {
    font-size: 1.5em;
    line-height: 1;
    margin-bottom: 1em;
}

h4 {
    font-size: 1.2em;
    line-height: 1.25;
    margin-bottom: 1.25em;
}

h5 {
    font-size: 1em;
    font-weight: bold;
    margin-bottom: 1.5em;
}

h6 {
    font-size: 1em;
    font-weight: bold;
}


/* Text elements
-------------------------------------------------------------- */

p {
    margin: 1rem;
}

a {
    font-weight: 500;
    color: var(--luciditi-scolor);
    text-decoration: inherit;
}

a:hover {
    color: #d97706;
}

body button,
body .button {
    position: relative;
    border: 1px solid var(--luciditi-scolor);
    padding: 0.6em 1.2em;
    font-size: 1em;
    font-weight: 700;
    font-family: Poppins, sans-serif;
    background-color: var(--luciditi-scolor);
    color: var(--luciditi-tcolor);
    cursor: pointer;
    transition: all 0.25s;
    text-transform: capitalize;
    margin: 1rem;
    height: auto;
}

body button:hover,
body .button:hover {
    background: transparent;
    color: var(--luciditi-scolor);
}

body button:focus,
body button:focus-visible body .button:focus,
body .button:focus-visible {
    outline: 4px auto -webkit-focus-ring-color;
}

body button:disabled,
body .button:disabled {
    /* background-color: var(--luciditi-scolor);
    border-color: var(--luciditi-scolor); */
    color: #f8fafc;
    filter: brightness(120%);
    cursor: not-allowed;
}

label {
    font-weight: 700;
    margin: 0.25rem 0;
}


/* Luciditi styles
-------------------------------------------------------------- */

#luciditi-age-assurance {
    position: relative;
}

#luciditi-box {
    margin: 0;
    display: flex;
    place-items: center;
    min-width: 320px;
    min-height: 100vh;
}

.luciditi-box-content {
    position: relative;
    z-index: 1;
}

.luciditi-box-title {
    margin-right: 1rem;
    margin-left: 1rem;
}

.luciditi-box-buttons {
    display: block;
    padding: 20px;
    padding-bottom: 2rem;
    box-sizing: border-box;
}

#luciditi-loader {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgb(10 18 31 / 80%);
    backdrop-filter: blur(5px);
}


.luciditi-spinner {
    display: none;
}

.luciditi-spinner {
    box-sizing: border-box;
    position: absolute;
    top: calc(50% - 10px);
    left: calc(50% - 10px);
    width: 20px;
    height: 20px;
    margin: 0px;
    padding: 0px;
    border: 2px solid var(--luciditi-tcolor);
    border-radius: 50%;
    animation: luciditi-spinner 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
    border-color: var(--luciditi-tcolor) transparent transparent transparent;
    z-index: 2;
}

.luciditi-spinner:nth-child(1) {
    animation-delay: -0.45s;
}

.luciditi-spinner:nth-child(2) {
    animation-delay: -0.3s;
}

.luciditi-spinner:nth-child(3) {
    animation-delay: -0.15s;
}


#luciditi-loader {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgb(10 18 31 / 80%);
    backdrop-filter: blur(5px);
}

#luciditi-loader>.luciditi-spinner {
    display: block;
    width: 40px;
    height: 40px;
    top: calc(50% - 20px);
    left: calc(50% - 20px);
}

#luciditi-loader.active {
    display: block;
}

.luciditi-box-buttons .luciditi-init-button.active span {
    visibility: hidden;
}

.luciditi-box-buttons .luciditi-init-button.active>.luciditi-spinner {
    display: block;
}

.luciditi-box-buttons .luciditi-self-declare {
    color: #fff;
    font-size: 13px;
    font-weight: 400;
    display: block;
    max-width: fit-content;
    margin: 0 auto;
}

.luciditi-box-buttons .luciditi-self-declare:hover {
    text-decoration: underline;
}

.luciditi-muted-notice {
    position: absolute;
    right: 10px;
    bottom: 10px;
    font-size: 12px;
    color: hsla(0, 0%, 100%, .30);
    display: block;
    margin: 0;
    letter-spacing: 0.5px;
    user-select: none;
}

/* Popup Modal
-------------------------------------------------------------- */
#luciditi-age-assurance-modal {
    display: none;
}

.luciditi-modal-opened {
    overflow: hidden;
}

.luciditi-modal {
    height: 100vh;
    min-height: 100%;
}

.luciditi-modal-open {
    z-index: 2147483647;
    position: fixed;
    background: #f3f3f3;
    margin-left: 0;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    -webkit-box-shadow: 0 10px 40px rgb(0 0 0 / 20%);
    box-shadow: 0 10px 40px rgb(0 0 0 / 20%);
    outline: none !important;
    display: block;
    opacity: 1;
    visibility: visible;
    border-radius: 0px;
    overflow: hidden;
    max-height: 100vh;
    max-width: 100vw;
    height: 100%;
    box-sizing: border-box;
}

.luciditi-modal-bg {
    position: fixed;
    height: 100%;
    width: 100%;
    background: rgba(0, 0, 0, 0.68);
    z-index: 2147483640;
    display: block;
    top: 0;
    left: 0;
    cursor: pointer;
}

#luciditi_modal_inner {
    position: relative;
    overflow: auto;
    height: 100%;
}

.close {
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
    height: 20px;
    width: 20px;
    opacity: 0.8;
    z-index: 9;
    cursor: pointer;
}

.close:hover {
    opacity: 1;
}

.close:before,
.close:after {
    position: absolute;
    content: ' ';
    height: 15px;
    width: 2px;
    right: 14px;
    left: auto;
    top: 8px;
    background-color: #333;
}

.close:before {
    transform: rotate(45deg);
}

.close:after {
    transform: rotate(-45deg);
}


/* Cards
-------------------------------------------------------------- */
.card-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.card {
    width: 100%;
    text-align: center;
    background-color: #0a121f;
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
}

.card img {
    margin: 2rem auto;
    margin-bottom: 0;
}

.card .brand {
    max-height: 60px;
}

.powered-by-luciditi {
    width: 45vw;
    max-width: 200px;
    margin: 1rem;
    margin-top: 2rem;
    margin-right: 0.5rem;
    align-self: flex-end;
    filter: grayscale(100%);
    opacity: 0.3;
}

/* Loading bar
-------------------------------------------------------------- */
.loading {
    text-align: center;
    width: min-content;
    margin: 0 auto;
}


.loading__bar {
    position: relative;
    height: 5px;
    width: 12rem;
    /* background-color: rgb(169, 169, 169); */
    background-color: var(--luciditi-scolor);
    border-radius: 1em;
    overflow: hidden;
}

.loading__bar::after {
    position: absolute;
    top: 0;
    left: 0;
    content: "";
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, #fff5, rgba(230, 230, 230, 0.891));
    animation: loading-animation 1.3s infinite;
    border-radius: 1em;
}

/* WooCommerce
-------------------------------------------------------------- */
.luciditi-box-wc-products {
    font-size: 85%;
    list-style-position: inside;
    margin-left: 0;
    padding-left: 0;
}

.luciditi-wc-cancel-av {
    position: absolute;
    top: 20px;
    right: 20px;
    opacity: 0.8;
}

.luciditi-wc-cancel-av:hover {
    opacity: 0.9;
}

/* Animations
-------------------------------------------------------------- */
@keyframes luciditi-spinner {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes loading-animation {
    0% {
        left: -50%;
    }

    100% {
        left: 150%;
    }
}