* {
    line-height: 1.15em;
}

html,body {
    background: var(--bg);
    height: 100%;
    color: var(--text);

    font-weight: 400;

    overflow: hidden;
}
body>div:first-child {
    overflow: overlay;
    scroll-snap-type: y mandatory;
}

i {
    margin-bottom: -0.2em;
}

a {
    color: var(--links);
    text-decoration: none;
}
a:hover {
    color: var(--links);
    text-decoration: underline;
}

.btn,.form-control {
    border-radius: 0.65rem;
    border: 1px solid var(--links);
    box-shadow: none !important;
}
.form-control {
    background: var(--bg);
    color: var(--main);
    font-weight: 300;
}
.form-control:focus,
.form-control:active {
    border-color: var(--links);
    background: var(--bg);
    color: var(--main);
}

.btn {
    font-weight: 500;
    cursor: pointer;
}
.btn-main {
    background-color: var(--main) !important;
    color: var(--bg) !important;
    border-color: var(--bg) !important;

    transition: filter 0.25s;
}
.btn-main:disabled,
.btn-main.disabled {
    filter: brightness(0.9);
    transition: filter 0.25s;
}

section {
    height: 100vh;
    scroll-snap-align: start;
}
section>.container {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

section:first-child {
    background: var(--main);
    background-image: linear-gradient(to bottom, #0000, #0003);
    color: var(--bg);
}
#promoImg {
    background-image: url(../img/promo.webp);
    background-position: bottom center;
    background-repeat: no-repeat;
    background-size: contain;

    flex: 1 1 auto;
}
section:nth-child(2) {
    position: relative;
}
section:nth-child(2)>.bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: color-mix(in srgb, var(--main) 7%, var(--bg) 93%);

    mask-image: url(../img/bgpattern.webp);
    mask-size: 50rem;
    -webkit-mask-image: url(../img/bgpattern.webp);
    -webkit-mask-size: 50rem;

    z-index: 1;
}
section:nth-child(2)>.container {
    position: relative;
    z-index: 2;
}

#overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;

    
    backdrop-filter: blur(5px);

    display: flex;
    align-items: center;
    justify-content: center;

    z-index: 10000;
    background: #b7b7b788;
}
#overlay-container {
    overflow: hidden;
    position: relative;
    background: var(--bg);
    border-radius: 1rem;
}
#overlay-body {
    max-height: 70vh;
    overflow: auto;
}
#overlay-body a {
    text-decoration: none;
    color: var(--link);
}
#overlay-body a:hover {
    color: var(--link);
    transition: color 0.25s;
}
#overlay-body a:active {
    color: var(--link);
    filter: contrast(1.5);
    transition: color 0.25s;
}
#overlay-close-btn {
    height: 1.5rem;
    width: 1.5rem;

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;

    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    border-radius: 5000px;

    background: #0003;
    transition: background 0.25s;
}
#overlay-close-btn:hover {
    background: #0008;
    transition: background 0.25s;
}

.fw-300 {
    font-weight: 300;
}
.fw-500 {
    font-weight: 500;
}
.fw-700 {
    font-weight: 700;
}
.fw-900 {
    font-weight: 900;
}

.fs-7 {
    font-size: 0.75rem;
}
.fs-8 {
    font-size: 0.65rem;
}

#promoContainer {
    display: flex;
    align-items: start;
    justify-content: center;
}
.cntbox {
    border-radius: 2rem;
    box-shadow: 0 5px 5px #0002;
    background: var(--bg);
    color: var(--text);
    width: 20rem;
}

.disable-scrolling {
    overflow: hidden;
}

.form-check {
    display: flex;
    align-items: center;
}
.form-check-input {
    height: 1em;
    width: 1em;
    margin-top: 0 !important;
}

@media (min-width: 576px) {
    section:first-child>.container {
        background-size: 90%;
    }
}
@media (min-width: 768px) {
    section:first-child>.container {
        background-size: 80%;
    }
}
@media (min-width: 992px) {
    section:first-child>.container {
        background-size: 60%;
    }
    #promoContainer {
        align-items: center;
    }
}
@media (min-width: 1200px) {
    section:first-child>.container {
        background-size: 60%;
    }
}
@media (min-width: 1400px) {
    section:first-child>.container {
        background-size: 50%;
    }
}