:root {
    --serif: 'Libre Baskerville', serif;
    --sans-serif: Helvetica, Arial, sans-serif;
    --text-color: #000;
    --background-color: #fff;
    --border-color: #c7c7c7;
    --font-size-1: 0.8rem;
    --font-size-2: 1.2rem;
    --font-size-3: 0.8rem;
    --spacing: 2rem auto;
    --line-height: 2.2rem;
    --caption-line-height: 1.4rem;
}

*, *:before, *:after { box-sizing: border-box; }
html {
    font-size: 100%;
}
body {
    padding: 0;
    margin: 0;
    font-family: var(--serif);
    font-size: var(--font-size-1);
    color: var(--text-color);
    background: var(--background-color);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale; 
    -webkit-text-size-adjust: none; 
}
h1, h2, h3, h4, p, figure {
    padding: 0;
    margin: 0;
    font-weight: normal;
    font-size: initial;
}
h1, h2, h3, h4, p, figure, .replay {
    font-size: var(--font-size-2);
    margin: 0 auto;
    padding: 0 30px;
}
h1, h2, h3, h4, p {
    max-width: 900px;
}
h1, h2, h3, h4, p, figure {
    margin: var(--spacing);
}
img {
    width: 100%;
}
section {
    line-height: var(--line-height);
    overflow: auto;
}
figcaption {
    font-size: var(--font-size-3);
    line-height: var(--caption-line-height);
    margin-top: 1rem;
    visibility: hidden;
}
button {
    font-size: var(--font-size-1);
    padding: 6px;
    border: 0;
    /* border: 1px solid var(--border-color); */
    background-color: var(--background-color);
    cursor: pointer;
}

/* Navigation */
header {
    position: fixed;
    padding: 10px 10px 0 10px;
    z-index: 100;
    display: flex;
    flex-flow: row nowrap;
    justify-content: space-between;
    width: 100%;
}
nav.sections-nav, a.back-button {
    font-family: var(--sans-serif);
    font-size: var(--font-size-1);
    color: var(--text-color);
    /* border: 1px solid var(--border-color); */
    background-color: var(--background-color);
    text-decoration: none;
    display: inline-block;
}
button, nav.sections-nav, a.back-button {
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.185);
}
a.back-button {
    padding: 6px;
    min-width: min-content;
    height: min-content;
    width: 150px;
}
.title {
    display: grid;
    grid-template-columns: 1fr min-content;
}
.symbol-container {
    display: flex;
    flex-flow: column nowrap;
    justify-content: center;
    margin-right: 4px;
}
.symbol {
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid var(--text-color);
    transform: rotate(90deg);
}
.section-title {
    text-transform: uppercase;
    line-height: 1rem;
}
.toggle-dropdown {
    cursor: pointer;
    padding: 6px;
    display: block;
}
.dropdown {
    text-transform: uppercase;
    text-align: right;
    display: none;
    padding: 7px;
}
.dropdown a:last-child {
    border: 0;
    padding-bottom: 0;
}
.dropdown a {
    color: #838383;
    padding: 7px 0;
    display: block;
    text-decoration: none;
    display: block;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 4px;
}
.dropdown a:hover {
    color: #000 !important;
}

/* Header */
.logo {
    background-image: url('../images/t-space-logo.svg');
    background-size: 100%;
    background-repeat: no-repeat;
    background-position: center center;
    width: 120px;
    height: 30px;
    bottom: 30px;
    right: 30px;
    position: absolute;
}

/* Tour */
.tour {
    font-family: var(--sans-serif);
    font-size: 2rem;
    color: #fff;
    background-color: #000;
    position: relative;
    height: 100vh;
}
.tour iframe {
    width: 100%;
    height: 100%;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    position: absolute;
    pointer-events: none;
}
.tour .intro {
    font-family: var(--serif);
    font-size: var(--font-size-1);
    color: var(--background-color);
    z-index: 50;
    text-align: center;
    padding: 20px;
    margin-top: auto;
    cursor: pointer;
    background-image: url('../images/tour-placeholder.jpg');
    background-size: cover;
    display: flex;
    flex-flow: column nowrap;
    justify-content: center;
    align-items: center;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    position: absolute;
    overflow-x: hidden;
}
.tour .intro .text {
    font-family: var(--serif);
    position: relative;
    /* padding: 50px; */
    color: var(--background-color);
}
.tour .intro .text h2 {
    font-weight: bold;
    margin: 0;
    padding: 0 2rem;
    margin-bottom: 3rem;
}
.tour .intro .text h2, .tour .intro .text p {
    font-size: var(--font-size-2);
    text-shadow: 2px 2px 10px #000;
}
.tour .intro .text ol {
    margin-left: 0;
    padding-left: 0;
    font-size: var(--font-size-2);
    text-align: center;
    list-style-type: none;
    list-style-position: outside;
    margin-bottom: 3rem;
    text-shadow: 2px 2px 10px #000;
}
.tour .intro .text ol li  {
    margin-bottom: 1rem;
    line-height: 2rem;
}
.tour-iframe {
    display: none;
}
.mobile-note {
    display: none;
}
button.info-button {
    bottom: 10px;
    right: 10px;
    position: absolute;
    z-index: 25;
    display: none;
}
.intro .circle {
    display: none;
}
.intro .circle {
    background-color: #ffffffd1;
    border-radius: 100%;
    filter: blur(40px);
    position: absolute;
    top: -110px;
    left: -90px;
    right: -90px;
    bottom: -110px;
    z-index: -1;
}
.start-tour-button:hover {
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.363);
}
button.learn-more-button {
    font-family: var(--serif);
    color: var(--background-color);
    z-index: 200;
    margin-top: auto;
    margin-bottom: 50px;
    padding: 0 0 6px 0;
    font-size: var(--font-size-2);
    border-bottom: 2px solid #fff;
    text-shadow: 2px 2px 10px #000;
    cursor: pointer;
    position: absolute;
    bottom: 0;
    transform: translate(-50%, -50%);
    left: 50%;
    width: max-content;
    background: transparent;
}
.browse {
    display: flex;
    flex-flow: row nowrap;
    justify-content: center;
    padding: 10px;
}

/* Sections */
section.invert {
    color: var(--background-color);
    background-color: var(--text-color);
}
section .text {
    margin: 3rem 0;
}
figure.large-image {
    margin: 0;
    min-width: 100%;
    padding: 0;
}
figure {
    line-height: 0;
    max-width: 1000px;
}
figure.large-image, figure.large-image img {
    margin: 0 !important;
}
.slideshow {
    position: relative;
}
.replay {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #000000ad;
    flex-flow: row nowrap;
    justify-content: center;
    align-items: center;
    display: none;
}
.replay-button {
    height: min-content;
}
.image-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.two-up {
    grid-template-columns: 1fr 1fr;
    padding: 3rem 0;
    gap: 50px;
    justify-items: center;
}
.two-up img {
    max-width: 320px;
}
.two-up > * {
    display: flex;
    flex-flow: column nowrap;
    align-self: center;
}

/* Credits */
.credits {
    text-align: center;
}
.credits p {
    font-size: var(--font-size-3) !important;
    line-height: 1.4rem;
}
.credits a {
    color: #fff;
}
.credits .ensamble-logo {
    background-image: url('../images/ensamble-studio-logo.svg');
    background-size: 100%;
    background-repeat: no-repeat;
    background-position: center center;
    width: 120px;
    height: 80px;
    margin: 0 auto;
}
.credits #nea {
    margin-top: 20px;
    max-width: 200px;
}

/* Animation */
figure:hover figcaption, .credits:hover p {
    visibility: visible;
    opacity: 1;
}
figcaption, .credits p {
    visibility: hidden;
    opacity: 0;
    transition:visibility 0.3s linear,opacity 0.3s linear;
}

/* Mobile */
@media (max-width: 535px) {
    :root {
        --font-size-2: 1rem;
        --font-size-3: 0.7rem;
        --line-height: 2rem;
        --caption-line-height: 1.2rem;
    }
    section .text {
        margin: 2rem 0;
    }
    .tour .intro .text {
        font-family: var(--sans-serif);
        position: relative;
        /* padding: 50px; */
        color: var(--text-color);
    }
    .tour .intro .text h2 {
        font-weight: bold;
        margin: 0;
        padding: 0 2rem;
    }
    .tour .intro .text h2, .tour .intro .text p {
        font-size: var(--font-size-1);
        box-shadow: none;
        text-shadow: none;
    }
    .tour .intro .text ol {
        font-size: var(--font-size-1);
        margin-left: 0;
        padding-left: 0;
        text-align: center;
        list-style-type: none;
        list-style-position: outside;
        margin-bottom: 2.5rem;
        text-shadow: none;
    }
    .tour .intro .text ol li {
        line-height: var(--caption-line-height);
    }
    .intro .circle {
        display: block;
    }
    .mobile-note {
        display: block;
        font-style: italic;
    }
    figcaption, .credits p {
        visibility: visible;
        opacity: 1;
    }
    .section-title {
        display: block;
    }
    /* header {
        flex-flow: column nowrap;
    } */
    a.back-button {
        margin-bottom: 8px;
        width: auto;
    }
    /* .tour .intro .text ol {
        text-align: left;
    } */
    .tour .intro .text {
        padding: 30px;
    }
    .credits .ensamble-logo {
        width: 80px;
        height: 60px;
    }
    .intro {
        padding: 0;
    }
}

@media (max-width: 900px) {
    button.learn-more-button {
        display: none;
    }
    button.learn-more-button-mobile {
        display: none;
    }
    button.learn-more-button-mobile {
        font-family: var(--sans-serif);
        font-size: var(--font-size-1);
        color: var(--text-color);
        padding: 6px;
        border: 0;
        /* border: 1px solid var(--border-color); */
        background-color: var(--background-color);
        cursor: pointer;
        text-shadow: none;
        box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.185);
        line-height: initial;
        position: absolute;
        right: 10px;
        bottom: 10px;
        margin: 0;
        transform: initial;
        left: initial;
        width: auto;
        z-index: 30;
    }
    button.info-button {
        bottom: 45px;
    }
}