/* Variables */
:root {

    /* Colors */
    --main-bg-color: #2D2B31;
    --section-bg-color: #43404A;
    --text-color: #F1ECEF;

    --border-color: #8D879A;

    --body-quote: #38353D;

    --red: #FF3D2E;
    --green: #0FB850;
    --yellow: #FFC40F;
    --blue: #1DA1F2;

    /* Aspect ratio for banner */
    --aspect-ratio: 600 / 2200;
}



/*
 * General
 */

* {
    box-sizing: border-box;
}

body, html {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: "Avenir", Myriad, "Trebuchet MS", "Helvetica Neue", Helvetica, Tahoma, Arial;
    background-color: var(--main-bg-color);
    color: var(--text-color);
}

header {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #FFF;
    text-shadow: -1px  1px 2px #000,
                  1px  1px 2px #000,
                  1px -1px   0 #000,
                 -1px -1px   0 #000;
}

h1 {
    font-family: "PT Sans", Myriad, "Trebuchet MS", "Helvetica Neue", Helvetica, Tahoma, Arial;
}

main {
    width: 90%;
    margin: 0 auto;
}

header {
    margin-bottom: 3em;
}

header h1 {
    font-size: 3em;
    margin-top: -1.5em;
    z-index: 1;
    font-size: 3em;
    text-align: center;
}

main > section {
    background-color: var(--section-bg-color);
    display: inherit;
    padding: 2rem 0;
    margin: 0 auto;
    max-width: 2000px;
}

main > section,
iframe {
    border-radius: 10px;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.075),
                0 2px 2px rgba(0, 0, 0, 0.075),
                0 4px 4px rgba(0, 0, 0, 0.075),
                0 8px 8px rgba(0, 0, 0, 0.075),
                0 16px 16px rgba(0, 0, 0, 0.075);
}

main > section > h1 {
    font-size: 3em;
    text-align: center;
    /*font-style: italic;*/
    /*text-decoration: underline;*/
    display: inline-block;
    width: 100%;
    margin-top: 0;
}

iframe {
    max-width: 90%;
}

hr {
    width: 90%;
    border: 0;
    height: 3px;
    margin: 3em auto;
    display: block;
    clear: both;
    background-image: -webkit-linear-gradient(
        0deg,
        transparent,
        var(--yellow),
        transparent
    );
}

footer {
    text-align: center;
    margin-top: 3rem;
}

a {
    color: var(--yellow);
}

.hidden {
    visibility: hidden;
}



/*
 * Modal Verification Dialog
 */

dialog {
    position: fixed;
    z-index: 2;
    border-radius: 10px;
    border-color: var(--border-color);
    background: var(--body-quote);
    text-align: center;
    user-select: none;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.075),
                0 2px 2px rgba(0, 0, 0, 0.075),
                0 4px 4px rgba(0, 0, 0, 0.075),
                0 8px 8px rgba(0, 0, 0, 0.075),
                0 16px 16px rgba(0, 0, 0, 0.075);
}

#verification h2 {
    color: var(--red);
}

#verification p {
    color: var(--text-color);
}

#verification button {
    border: none;
    border-radius: 3px;
    margin: 1rem;
    padding: 6px 12px;
    color: white;
    cursor: pointer;
}

#verification button[value=Adult] {
    background-color: var(--green);
}

#verification button[value=Babby] {
    background-color: var(--red);
}

#verification::backdrop {
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}



/*
 * Description
 */

#pitch ul {
    width: fit-content;
    text-align: left;
    margin: 0 auto;
    list-style: none;
    padding-left: 0;
}

#pitch ul li:before {
    content: "\2713  ";
    color: var(--green);
}

#description {
    text-align: center;
    margin-top: -1.5em;
}

#pitch {
    margin: 3em 0;
}

.nsfw-warning {
    font-weight: bold;
    color: var(--red);
}



/*
 * Footer
 */

#nav-links {
    margin: 1em 0;
}



/*
 * Disclaimer
 */

#disclaimer p {
    font-size: 0.7rem;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}



/*
 * Banner
 */

@keyframes scroll {
    from {
        transform: translateX(10%);
    }
    to {
        transform: translateX(110%);
    }
}

#banner {
    display: flex;
    flex-direction: row-reverse;
    width: 100vw;
    max-width: 2200px;
    height: calc(min(100vw, 2200px) * var(--aspect-ratio));
    max-height: 600px;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(rgba(0,0,0,1) 25%, rgba(0,0,0,0));
    mask-image: linear-gradient(rgba(0,0,0,1) 25%, rgba(0,0,0,0));
}

#banner .previews {
    display: flex;
    min-width: 100%;
    flex: 0 0 auto;
    flex-direction: row-reverse;
    animation: scroll linear infinite reverse;
}

.previews div {
    height: 100%;
    width: calc(min(100vw, 2200px) * var(--aspect-ratio));
    margin-left: calc(((min(100vw, 2200px) * var(--aspect-ratio)) / 600) * -150);
    filter: drop-shadow(10px 0 20px black);
}

.previews div img {
    display: block;
    max-height: 100%;
    clip-path: polygon(25% 0%, 100% 0%, 75% 100%, 0% 100%);
}