/* START: Global tags */
html {
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    height: 100%;
    font-size: var(--font-size-body);
}

body {
    width: 100%;
    height: 100%;
    background: var(--black);
    font-family: var(--font-family);
    font-size: 1rem;
    text-transform: uppercase;
    opacity: 0;
    transition: 0.4s opacity ease;
}

body.loaded {
    opacity: 1;
}

* {
    margin: 0;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

*:focus {
    outline: none;
}

.noselect {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

::selection {
    background: var(--black);
    color: var(--white);
}

::-moz-selection {
    background: var(--black);
    color: var(--white);
}

p:not(:last-child) {
    margin-bottom: 20px;
}

a,
a:hover,
a:link {
    text-decoration: none;
    transition: color 0.4s ease, background-color 0.4s ease;
    -webkit-transition: color 0.4s ease, background-color 0.4s ease;
    -moz-transition: color 0.4s ease, background-color 0.4s ease;
    -o-transition: color 0.4s ease, background-color 0.4s ease;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

section {
    width: 100%;
    position: relative;
}

/* STRINGTUNE CLASSES */
.animated-text .-s-char {
    opacity: 0;
    -webkit-transform: translate3d(0, calc(100vw * 20 / var(--page-width)), 0);
    transform: translate3d(0, calc(100vw * 20 / var(--page-width)), 0);
    transition: opacity 0.3s var(--f-cubic), transform 0.3s var(--f-cubic);
    will-change: transform opacity;
    display: inline-block;
}

.animated-text.-splited.-inview .-s-char {
    opacity: 1;
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
    transition: opacity 0.9s var(--f-cubic), transform 0.9s var(--f-cubic);
    transition-delay: calc(var(--char-start) / 10 * 0.3s + 0.3s);
}

.magnetic-element {
    -webkit-transform: translate3d(
        calc(var(--magnetic-x) * 1px),
        calc(var(--magnetic-y) * 1px),
        0
    );
    transform: translate3d(
        calc(var(--magnetic-x) * 1px),
        calc(var(--magnetic-y) * 1px),
        0
    );
}

/* GENERAL CLASSES */
.reveal {
    transition: opacity 0.5s ease, transform 0.5s ease !important;
    -webkit-transition: opacity 0.5s ease, transform 0.5s ease !important;
}

.revealText {
    opacity: 0;
    transform: translate3d(0, 20px, 0);
    -webkit-transform: translate3d(0, 20px, 0);
}

.revealText.revealed {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    -webkit-transform: translate3d(0, 0, 0);
}

.revealImage {
    opacity: 0;
    transform: scale(0.9);
    -webkit-transform: scale(0.9);
}

.revealImage.revealed {
    opacity: 1;
    transform: scale(1);
    -webkit-transform: scale(1);
}

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

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

.position-relative {
    position: relative;
}

.position-absolute {
    position: absolute;
}

.section,
.aspect-container {
    width: 100%;
    position: relative;
}

.section {
    padding-bottom: var(--gap);
    padding-top: var(--gap);
}

.section.invisible {
    visibility: hidden;
}

.aspect-container picture {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.aspect-container img,
.aspect-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.aspect-container video {
    position: absolute;
    left: 0;
    right: 0;
}

body.touhcDevice .main-scroll-content {
    position: relative;
    overflow-y: hidden;
}

main {
    position: relative;
    z-index: 1;
    pointer-events: none;
}

main > * {
    pointer-events: initial;
    width: 100%;
}

.red-button a {
    margin-top: calc(100vw * 22 / var(--page-width));
    color: var(--black);
    border: 2px solid var(--candy);
    text-align: center;
    padding: calc(100vw * 25 / var(--page-width))
        calc(100vw * 44 / var(--page-width));
    -webkit-transition: background-color 0.25s ease, color 0.25s ease;
    transition: background-color 0.25s ease, color 0.25s ease;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.red-button a:hover {
    background-color: var(--candy);
    color: var(--black);
}

.scramble-text {
    display: inline-block;
    position: relative;
}
.scramble-overlay {
    display: block;
}

/* PAGE TRANSITION */
.page-transition {
    z-index: 20;
    background: white;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    pointer-events: none;
    transition-property: opacity;
    transition-duration: 0.2s;
}

.page-transition.opened {
    opacity: 1;
    pointer-events: initial;
}

.page-transition.closed {
    pointer-events: none;
    opacity: 0 !important;
}

.page-transition.show {
    opacity: 1 !important;
    pointer-events: initial;
}

.grecaptcha-badge {
    opacity: 0 !important;
    pointer-events: none !important;
}

.modal-donation {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
    bottom: 0;
    left: 0;
}

@media only screen and (max-width: 768px) {
    body {
        overflow-x: hidden;
    }

    .red-button a {
        font-size: calc(18rem / 15);
        padding: calc(100vw * 17 / var(--page-width))
            calc(100vw * 35 / var(--page-width));
    }
}
