*,
*::after,
*::before {
    box-sizing: border-box;
}

:root {
    font-size: 15px;
}

@font-face {
    font-family: 'TT Travels Next';
    src: url('../fonts/TT-Travels-Next-Black-Italic.ttf') format('truetype');
    font-style: italic;
    font-weight: 900;
    font-display: swap;
}

body #cdawrap {
    --cda-right: 2rem;
    --cda-top: 2rem;
}

.demo-2 #cdawrap {
    --cda-text-color: #fff;
    --cda-sp-color: #fff;
}

body {
    --color-text: #002fa7;
    --color-bg: #111111;
    --color-link: #0a8dbb;
    --color-link-hover: #fff;
    --color-info: #5a5757;
    color: var(--color-text);
    background-color: var(--color-bg);
    font-family: monospace;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    margin: 0;
}

.demo-2 {
    --color-text: #fff;
    --color-bg: #2d40f8;
    --color-link: #78e7f6;
    --color-info: #1e2ba8;
}

.hidden {
    display: none;
}

/* Page Loader */
.js .loading::before {
    content: '';
    position: fixed;
    z-index: 100000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-bg);
}

.js .loading::after {
    content: '';
    position: fixed;
    z-index: 100000;
    top: 50%;
    left: 50%;
    width: 60px;
    height: 60px;
    margin: -30px 0 0 -30px;
    pointer-events: none;
    border-radius: 50%;
    opacity: 0.4;
    background: var(--color-link);
    animation: loaderAnim 0.7s linear infinite alternate forwards;
}

@keyframes loaderAnim {
    to {
        opacity: 1;
        transform: scale3d(0.5, 0.5, 1);
    }
}

a {
    text-decoration: none;
    color: var(--color-link);
    outline: none;
}

a:hover,
a:focus {
    color: var(--color-link-hover);
    outline: none;
}

.message {
    background: var(--color-text);
    color: var(--color-bg);
    padding: 1rem;
    text-align: center;
}

.frame {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 5vw;
    text-align: center;
    z-index: 1000;
    pointer-events: none;
}

.frame__title {
    font-family: 'TT Travels Next', sans-serif;
    font-size: clamp(1.2rem, 2vw, 2rem);
    margin: 0;
    font-style: italic;
    font-weight: 900;
    color: #fff;
}

.frame__title-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.frame__subtitle {
    margin: 0;
    color: #fff;
    font-family: monospace;
    font-size: clamp(0.8rem, 1.2vw, 1rem);
    letter-spacing: 0.05em;
}

.frame__links {
    display: inline-block;
    margin: 1rem 0;
}

.frame__info {
    display: inline-block;
    margin: 0 2rem;
    color: var(--color-info);
}

.frame a {
    text-transform: lowercase;
}

.frame a::before {
    content: '_';
}

.frame__demo--current,
.frame__demo--current:hover {
    color: var(--color-text);
}

.content {
    display: flex;
    flex-direction: column;
    width: 100vw;
    height: 100vh;
    position: relative;
    justify-content: flex-start;
    align-items: center;
}

@media screen and (min-width: 53em) {
    .message {
        display: none;
    }

    .content {
        height: 100vh;
        justify-content: center;
    }
}
