@font-face {
    font-family: Source_Code_Pro;
    src: url(/Source_Code_Pro/static/SourceCodePro-Regular.ttf);
}

:root {
    --primary: rgb(0, 0, 0);
    --secondary: rgb(241, 241, 241);
    --back-black: rgb(0, 0, 0);
    --opacity-transition-time: 0.5s;
    --opacity-transition-function: ease-in-out;
    background-color: var(--back-black);
    color: var(--secondary);
    font-family: Source_Code_Pro;
    letter-spacing: 3px;
    font-weight: 400;
}

html {
    overflow-x: hidden;
    box-sizing: border-box;
}

a, button {
    cursor: pointer;
}

*, *::before, *::after {
    box-sizing: inherit;
}

.unselectable, .unselectable * {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

*:not(a, p) {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

a {
    color: var(--secondary);
    text-decoration: none;
}

body {
    --horizontal-padding: 12%;
    --inner-width: calc(100% - 2 * var(--horizontal-padding));

    margin: 0;
    max-width: 100%;
    height: max-content;
    overflow-x: hidden;
    box-sizing: border-box;
}

#subscribe-form-wrapper {
    position: relative;
    z-index: 6;
}

#top-padding {
    position: relative;
    width: 100%;
    height: 3rem;
    background-color: black;
    z-index: 2;
}

#slideshow {
    position: relative;
    width: var(--inner-width);
    height: 100%;
    box-sizing: border-box;
    margin: auto;
    overflow: hidden;
    max-height: 100vh;
}

#slideshow #square {
    --arrow-padding: 5rem;

    position: relative;
    max-width: var(--inner-width);
    width: max-content;
    max-height: 100vh;
    height: 100%;
    display: flex;
    justify-content: center;
    justify-self: center;
    margin: 0 auto;
    box-sizing: border-box;
}

#slideshow #square.translucent {
    opacity: 0.5;
}

#slideshow #square img {
    max-width: 100%;
    object-fit: contain;
    padding: 0 var(--arrow-padding);
    box-sizing: border-box;
    max-height: 100%;
}

#slideshow .slide {
    --size: 30%;
    --contrast: 1000%;
    --brightness: 55%;
    --transition-time: 0.4s;

    position: absolute;
    width: var(--size);
    height: var(--size);
    object-fit: contain;
    top: calc(50% - var(--size) / 2);
    left: calc(50% - var(--size) / 2);
    padding: 0 2rem;
    box-sizing: border-box;
    cursor: pointer;
}

#slideshow .slide.pollish {
    --size: 35%;
}

.slide {
    opacity: 0;
    transition: none;
    pointer-events: none;
}

.slide.active {
    opacity: 1;
    pointer-events: auto;
}

.arrow {
    --horizontal-padding: 1vw;
    --distance: calc(0.2 * var(--arrow-padding));

    -webkit-tap-highlight-color: transparent; /* Prevent tap highlight on iOS */
    -webkit-touch-callout: none;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    border: none;
    background: none;
    color: var(--secondary);
    opacity: 0.7;
    font-size: 3rem;
    padding: 0.5rem calc(3 * var(--horizontal-padding));
    cursor: pointer;
}

.arrow:focus, .arrow:active {
    background-color: inherit;
    color: inherit;
    outline: none;
    box-shadow: none;
}

#prev {
    left: var(--distance);
}

#next {
    right: var(--distance);
}

/* Vertical navigation */
#vertical-nav {
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 5;
    max-width: var(--horizontal-padding);
    box-sizing: border-box;
    padding: calc(0.1 * var(--horizontal-padding));
    padding-top: calc(0.15 * var(--horizontal-padding));
}

#vertical-nav img {
    width: 80%;
    margin-bottom: 1rem;
    cursor: pointer;
    user-select: none;
}

#vertical-nav .nav-item {
    margin-bottom: 0.25rem;
    cursor: pointer;
    user-select: none;
    position: relative;
    width: max-content;
    background-color: unset;
    border: unset;
    padding: unset;
}

#vertical-nav #logo-wrapper {
    width: 100%;
}

#vertical-nav #logo-wrapper #logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    margin-bottom: 0.25rem;
}

#vertical-nav .nav-item:not(#logo-wrapper) {
    margin-top: 0.1rem;
    height: 22px;
}

#vertical-nav .nav-item img {
    display: block;
    margin: auto;
    object-fit: contain;
    height: 100%;
}

#shadow {
    visibility: hidden;
    position: fixed;
    width: 100vw;
    height: 100vh;
    background-color: black;
    opacity: 0;
    z-index: 11;
    top: 0;

    
    transition: visibility 0s, opacity var(--opacity-transition-time) var(--opacity-transition-function);
}

#shadow.active {
    visibility: visible;
    opacity: 0.9;
}

img.blue-hover {
    --contrast: 500%;
    --brightness: 95%;
}

img.blue-hover, img.red-hover {
    --transition-time: 0.3s;

    transition: filter var(--transition-time);
}

img.blue-hover:hover {
    /* Darker, more saturated blue on hover */
    filter: invert(50%) sepia(95%) saturate(6000%) hue-rotate(199deg) brightness(var(--brightness)) contrast(var(--contrast));
}

img.red-hover:hover {
    /* Adjusted hue and saturation for a deeper red */
    filter: invert(15%) sepia(96%) saturate(8500%) hue-rotate(-15deg) brightness(95%) contrast(103%);
}

main {
    width: 100%;
    z-index: 4;
    position: relative;
    margin-top: 10rem;
    margin-bottom: 3rem;
    padding: 0 calc(1.5 * var(--horizontal-padding));
    box-sizing: border-box;
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 3rem;
}

.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

#curtain {
    --transition-time: 0.5s;

    position: fixed;
    background-color: black;
    visibility: hidden;
    opacity: 0;
    width: 100vw;
    height: 100vh;
    z-index: 100;
    
    transition: opacity var(--transition-time) ease, visibility 0s linear var(--transition-time);
    
}

#curtain.active {
    visibility: visible;
    opacity: 1;
    transition: opacity var(--transition-time) ease;
}

#background {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    width: var(--inner-width);
    height: 100%;
    box-sizing: border-box;
    z-index: -1;
}

footer {
    --vertical-spacing: 0.75rem;
    --grey: rgb(112, 112, 112);

    background-color: var(--back-black);
    display: flex;
    align-items: center;
    flex-direction: column;
    padding-top: calc(3 * var(--vertical-spacing));
    padding-bottom: calc(3 * var(--vertical-spacing));
    position: relative;
    z-index: 4;
    font-size: 8px;
    cursor: default;
}

footer > * {
    margin: var(--vertical-spacing) 0;
}

footer #privacy-policy {
    color: var(--grey);
}

footer #privacy-policy:hover {
    color: var(--secondary);
    cursor: pointer;
}

footer #social-media-icons {
    padding: 0;
}

footer #social-media-icons svg {
    fill: var(--secondary);
    display: inline-block;
    height: 1.1rem;
    width: 1.1rem;
    line-height: 1;
    margin: 0 0.1rem;
    transition: fill 0.3s ease;
}

footer #social-media-icons:hover svg {
    fill: var(--grey);
}

footer #social-media-icons a:hover svg {
    fill: var(--secondary);
}

#mc_embed_shell {
    visibility: hidden;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 20;
    max-width: 99%;
    width: max-content;
    opacity: 0;

    transition: visibility 0s, opacity var(--opacity-transition-time) var(--opacity-transition-function);
}

#mc_embed_shell.active {
    visibility: visible;
    opacity: 1;
}

#mc_embed_shell #subscribe-border {
    width: 28rem;
    max-width: 100%;
}

#mc_embed_shell #mc_embed_signup {
    position: absolute;
    top: 0;
    height: 100%;
    width: 100%;
}

#mc_embed_shell #mc_embed_signup form {
    margin: 0;
    height: 100%;
    width: 100%;
    padding: 2.75rem;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#mc_embed_shell #mc_embed_signup form .mc-field-group .mce_inline_error {
    border: 3px solid red;
    border-radius: unset;
}

#subscribe-x {
    position: absolute;
    align-self: end;
    width: 2.75rem;
    padding: 1rem;
    padding-right: 0.5rem;
    cursor: pointer;
    top: 2rem;
}

#mc_embed_shell #mc_embed_signup .mc-field-group, #mc_embed_shell #mc_embed_signup #mce-responses {
    display: flex;
    align-items: center;
    padding: 0;
    margin-bottom: 4.5%;
    min-height: 0;
}

#mc_embed_shell #mc_embed_signup .mc-field-group, #mc_embed_shell #mc_embed_signup .optionalParent, #mc_embed_shell #mc_embed_signup #mce-responses {
    width: 74%;
}

/* Center the subscribe button container */
#mc_embed_shell #mc_embed_signup .optionalParent {
    display: flex;
    justify-content: center;
}

#mc_embed_shell #mc_embed_signup #mce-responses > div {
    width: 100%;
    margin: unset;
    font-size: 0.75rem;
    text-align: center;
    margin: unset;
    padding: unset;
    font-family: Source_Code_Pro;
}

#mc_embed_shell #mc_embed_signup .mc-field-group .input-background {
    width: 100%;
    min-width: 0;
}

.placeholder {
    position: absolute;
    padding: 0 0.8rem;
    height: 1.2rem;
    width: auto;
    max-width: 100%;
    min-width: 0;
    object-fit: contain;
}

#mc_embed_shell #mc_embed_signup .mc-field-group input, #mc_embed_shell #mc_embed_signup .mc-field-group select {
    position: absolute;
    background-color: unset;
    border: unset;
    font-size: 1rem;
    margin: 0;
    box-sizing: border-box;
    height: 100%;
    width: 100%;
    padding: 0.5rem;
    font-family: Source_Code_Pro;

    transition: background-color 9999s ease-in-out 0s;
}

#mc_embed_shell #mc_embed_signup .mc-field-group input:-webkit-autofill {
    box-shadow: 0 0 0px 1000px transparent inset !important;
    -webkit-box-shadow: 0 0 0px 1000px transparent inset !important;
    -webkit-text-fill-color: inherit !important;
    background-color: transparent !important;
}

#mc_embed_shell #mc_embed_signup .mc-field-group input::placeholder {
    color: black;
    opacity: 1;
}

#mc_embed_shell #mc_embed_signup .mc-field-group div.mce_inline_error {
    display: none !important;
}

#mc_embed_shell #mc_embed_signup .optionalParent div input, #mc_embed_shell #mc_embed_signup .optionalParent div p {
    font-family: Source_Code_Pro;
    background-color: var(--secondary);
    color: var(--primary);
    height: 2.25rem;
    margin: 0;
}

#mc_embed_shell #mc_embed_signup .optionalParent .foot {
    display: flex;
    width: max-content;
    justify-self: center;
    position: relative;
    justify-content: center;
    align-items: center;
}

#mc_embed_shell #mc_embed_signup .optionalParent div #subscribe-button-text {
    width: auto;
    height: 2rem;
    object-fit: contain;
    padding: 0.6rem;
    z-index: -1;
}

#mc_embed_shell #mc_embed_signup .optionalParent div #subscribe-button-background {
    --transform-padding: 50%;

    position: absolute;
    height: calc(100% + var(--transform-padding));
    object-fit: contain;
    z-index: -2;
    box-sizing: unset;
    padding-bottom: 0.25rem;
}

#mc_embed_shell #mc_embed_signup .optionalParent div input {
    background-color: transparent;
    transition: unset;
    line-height: unset;
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
}

#mc_embed_shell #mc_embed_signup #mailchimp-logo {
    --size: 8;
    --width: calc(var(--size) * 0.5rem);
    --height: calc(var(--size) * 0.25rem);

    margin: 0 !important;
    position: absolute;
    right: calc(0.7 * var(--width));
    bottom: calc(1.5 * var(--height));
}

#mc_embed_shell #mc_embed_signup #mailchimp-logo a {
    height: 100%;
}

#mc_embed_shell #mc_embed_signup #mailchimp-logo a span {
    height: 100%;
}

#mc_embed_shell #mc_embed_signup #mailchimp-logo a span img {

    width: var(--width) !important;
    height: var(--height) !important;
    padding: 4px !important;
    filter: invert(1);
}

@media only screen and (max-width: 800px) {
    :root {
        font-size: 8px;
    }
    body {
        --horizontal-padding: 0%;
    }
    #slideshow #square {
        --arrow-padding: 3rem;
    }
    #slideshow .slide.rareroom {
        --size: 40%;
    }
    main {
        padding: 2rem;
        gap: 2rem
    }
    #vertical-nav {
        position: static;
        margin: auto;
        max-width: 14rem;
        padding-top: 2rem;
    }
    #vertical-nav .nav-item:not(#logo-wrapper) {
        height: 12px;
    }
    #subscribe-x {
        width: 3rem;
    }
    #mc_embed_shell #subscribe-border { 
        width: 32rem;
    }
    #mc_embed_shell #mc_embed_signup #mailchimp-logo {
        --size: 8.5; /* slightly larger on mobile */
    }
    #mc_embed_shell #mc_embed_signup .mc-field-group #mce-COUNTRY {
        padding-left: 1rem;
    }
    footer {
        font-size: 6px;
    }

    footer #social-media-icons svg {
        height: calc(1.1rem * 1.03);
        width: calc(1.1rem * 1.03);
    }
}
