@font-face {
    font-family: HelveticaNeueBold;
    src: url(fonts/HelveticaNeueBd.ttf);
}

@font-face {
    font-family: HelveticaNeueMed;
    src: url(fonts/HelveticaNeueMed.ttf);
}

@font-face {
    font-family: HalTimezoneItalic;
    src: url(fonts/HALTimezoneUnlicensed-Italic.otf);
}

@font-face {
    font-family: NeueMontrealBold;
    src: url(fonts/NeueMontreal-Bold.ttf);
}

*,
html {
    box-sizing: border-box;
    user-select: none;
    -webkit-user-select: none;
}

:root {
    --sans: HelveticaNeueMed;
    --sansBold: HelveticaNeueBold;
    --colorOne: black;
    --colorTwo: lightgrey;
    --colorTwoTransparent: rgba(211, 211, 211, 0.802); /*#ec37a4b9*/
    /*--colorTwoTransparent: #ec37a4b9;*/
    /*#EC37A5*/;
}

::selection {
    background-color: var(--colorTwo);
    color: var(--colorOne);
}

body {
    padding: 0;
    margin: 0;
    font-family: var(--sans);
    color: var(--colorOne);
    background-color: white;
}

b {
    font-family: HalTimezoneItalic;
    font-size: 24px;
    white-space: nowrap;
}

button {
    background-color: var(--colorOne);
    border-radius: 100px;
    color: white;
    border: none;
    font-family: var(--sans);
    width: fit-content;
    text-transform: uppercase;
    padding: 10px 20px;
    display: flex;
    align-self: center;
    cursor: pointer;
    user-select: none;
}

button:hover {
    background-color: var(--colorTwo);
}

#hero {
    position: fixed;
    top: 0;
    left: 0;
    height: 100dvh;
    width: 100vw;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: center;
    z-index: 1000;
    pointer-events: none;
    color: var(--colorOne);
    overflow: hidden;
}

#hero-top {
    display: block;
}

#hero-top-mobile {
    display: none;
}

#hero-bottom {
    display: flex;
    flex-direction: column;
    gap: 0px;
}

#hero-bottom-desktop {
    display: block;
}

#hero-bottom-mobile {
    display: none;
}

#hero span,
#hero-bottom span {
    text-transform: uppercase;
    font-size: 5.3vw;
    line-height: 4.5vw;
    user-select: none;
    font-family: var(--sansBold);
}

/* TIMESTAMP */
#timestamp-section {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    height: fit-content;
    padding: 0 5px;
}

.timestamps {
    font-size: 20px !important;
}

/* ABOUT */
#about-button {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 2000;
}

#close-about {
    position: sticky;
    top: 0;
    left: 0;
    margin-right: auto;
    background-color: white;
    color: var(--colorOne);
}

#close-about:hover {
    background-color: var(--colorTwo);
}

#about {
    display: block;
    height: 100dvh;
    position: fixed;
    transform: translateX(-100%);
    width: 450px;
    background-color: var(--colorOne);
    transition: all 0.5s ease-in-out;
    color: white;
    padding: 20px 20px 20px 20px;
    overflow-y: scroll;
    z-index: 3000;
    font-size: 16px;
    line-height: 20px;
}

#about-description {
    margin-top: 60px;
}

/* MOVIE GUIDE */
#film-guide-stats {
    position: sticky;
    display: flex;
    flex-direction: column;
    gap: 10px;
    top: -20px;
    padding-top: 80px;
    background-color: black;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--colorTwo);
}

#film-guide-button,
#speed-button {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 2000;
    animation: glow 4s ease-in-out infinite;
    text-transform: none;
    animation-fill-mode: none;
    background-color: black;
}

@keyframes glow {
    0% {
        background-color: black;
    }

    30% {
        background-color: black;
    }

    50% {
        background-color: var(--colorTwo);
    }

    70% {
        background-color: black;
    }

    100% {
        background-color: black;
    }
}

#film-guide-button-mobile {
    display: none;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 2000;
}

#close-guide {
    position: sticky;
    top: 0;
    right: 0;
    margin-left: auto;
    background-color: white;
    color: var(--colorOne);
    z-index: 2000;
}

#close-guide:hover {
    background-color: var(--colorTwo);
}

#film-guide {
    display: block;
    height: 100dvh;
    position: fixed;
    right: 0;
    width: 400px;
    background-color: var(--colorOne);
    transition: all 0.5s ease-in-out;
    color: var(--colorTwo);
    padding: 20px 20px 20px 20px;
    overflow-y: scroll;
    z-index: 3000;
}

#film-guide-list {
    margin-top: 40px;
}

.movie-entry {
    padding: 10px 10px;
    cursor: pointer;
}

.added {
    background-color: var(--colorTwo);
    color: var(--colorOne);
}

.movie-entry:hover {
    background-color: var(--colorTwo);
    color: var(--colorOne);
}

/* PROGRESS BAR */
progress {
    -webkit-appearance: none;
    appearance: none;
    position: fixed;
    bottom: 0;
    border: none;
    border-radius: 0px;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 600;
    direction: rtl;
}

progress::-webkit-progress-bar {
    background: none;
    border-radius: 0px;
}

progress::-moz-progress-bar {
    background: none;
    border-radius: 0px;
}

progress::-webkit-progress-value {
    background-color: var(--colorTwoTransparent);
    border-radius: 0px;
    border-left: 2px solid var(--colorOne);
    backdrop-filter: blur(5px);
}

progress::-moz-progress-value {
    background-color: var(--colorTwoTransparent);
    border-radius: 0px;
    border-left: 2px solid var(--colorOne);
    backdrop-filter: blur(5px);
}

/* VERTICAL LINE */
#vertical-line {
    position: fixed;
    border-left: 1.5px solid var(--colorOne);
    z-index: 1000;

    top: 0;
    bottom: 0;
    left: 50vw;
    height: 100vh;
    width: 0;
}

#time-stamp {
    position: absolute;
    padding: 10px 10px;
    background-color: var(--colorOne);
    color: var(--colorTwo);
    top: 200px;
    left: -45px;
    display: none;
}

/* MASK WRAPPER */
#mask-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 550;
    pointer-events: none;
    padding: 60px 20px;
}

#mask-wrapper div {
    position: absolute;
    width: 200px;
    display: flex;
    flex-direction: column;
    pointer-events: all;
    cursor: pointer;
    transition: all 0.5s ease-in-out;
}


#mask-wrapper div img {
    width: 100%;
    transform-origin: 0% 0%;
    display: none;
}

#mask-wrapper div img:hover {
    scale: 2;
}

#mask-wrapper div:hover {
    color: var(--colorTwo);
}

#mask-wrapper .date {
    text-transform: uppercase;
    margin-top: 10px;
    margin-bottom: 3px;
}

/* HEADLINES */
.headline {
    position: absolute;
    width: 300px;
    display: block;
    color: var(--colorOne);
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(2px);
    /*border-top: 1px solid lightgray;
    border-bottom: 1px solid lightgray;*/
    padding: 5px;
}
.headline:hover {
    color: var(--colorTwo);
}
.headline::after {
  content: '|';
  margin-left: 5px;
  animation: blink .75s step-end infinite;
  pointer-events: none;
  color: grey;
}
@keyframes blink {
  50% { opacity: 0; }
}
/* SEGMENTED */
#segmented {
    display: grid;
    /*grid-template-columns:
  1.3% 1.2% 1.6% 1.7% 1.7% 2.5% 1.7% 1.4% 1.3% 2.0%
  1.7% 1.3% 1.3% 1.6% 1.7% 1.7% 1.1% 1.6% 1.5% 1.2%
  1.4% 1.3% 1.1% 1.2% 1.3% 1.7% 1.4% 1.4% 1.5% 1.5%
  1.5% 1.5% 2.1% 1.6% 1.5% 2.0% 1.5% 1.5% 0.9% 1.0%
  0.9% 1.7% 1.7% 1.6% 2.5% 1.5% 1.5% 1.7% 1.3% 1.8%
  1.8% 1.6% 1.2% 1.3% 1.3% 1.3% 1.6% 1.2% 1.4% 2.3%
  1.7% 1.4% 1.4% 1.3% 1.6% 1.5%;*/
    grid-template-columns:
        1.30% 1.14% 1.59% 1.63% 1.72% 2.49% 1.68% 1.35% 1.32% 1.98% 1.63% 1.29% 1.25% 1.59% 1.68% 1.70% 1.11% 1.59% 1.50% 1.22% 1.34% 1.29% 1.12% 1.23% 1.30% 1.67% 1.34% 1.39% 1.50% 1.49% 1.52% 1.49% 2.07% 1.58% 1.50% 1.94% 1.47% 1.44% 0.90% 1.03% 0.89% 1.72% 1.63% 1.54% 2.51% 1.44% 1.50% 1.63% 1.27% 1.74% 1.75% 1.56% 1.23% 1.31% 1.25% 1.29% 1.54% 1.16% 1.35% 2.29% 1.66% 1.34% 1.43% 1.26% 1.56% 1.52% 1.29%;
    height: 100vh;
    position: fixed;
    bottom: 0;
    width: 100%;
    z-index: 500;
}

#segmented div {
    display: block;
    background: none;
    z-index: 500;
}

/* MODAL */
#modal {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: fixed;
    top: 0;
    width: 100vw;
    height: 100dvh;
    z-index: 600;
    pointer-events: none;
    justify-content: center;
    align-items: center;
}

#modal-img {
    background-color: var(--colorOne);
}

#modal img {
    width: 500px;
    filter: grayscale(1);
    mix-blend-mode: screen;
    user-select: none;
}

q {
    /*position: absolute;*/
    width: 400px;
    text-align: center;
    user-select: none;
}

/* MOBILE */
#mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100vw;
    z-index: 1900;
}
@media (max-width:1300px) {
    #hero span {
        text-transform: uppercase;
        font-size: 5.2vw;
    }
}

@media (max-width:900px) {
    #about-button {
        top: 10px;
        left: 10px;
    }

    #speed-button {
        top: 10px;
        right: 10px;
    }

    #hero span {
        text-transform: uppercase;
        font-size: 5vw;
        line-height: 5vw;
    }

    #about {
        width: 100vw;
        transform: translateX(-100vw);
    }

    q {
        width: 90vw;
        margin-left: auto;
        text-align: center;
    }

    #modal {
        position: relative;
        max-width: 90vw;
        margin: auto;
    }

    #modal img {
        max-width: 90vw;
        filter: grayscale(1);
        mix-blend-mode: screen;
    }

    #film-guide-button {
        display: none;
    }

    #film-guide-button-mobile {
        display: none;
    }

    #hero-bottom {
        gap: 0;
    }

    #timestamp-section {
        padding: 0;
    }

    #time-stamp {
        padding: 0px;
    }

    #mask-wrapper {
        overflow: hidden;
    }

    #mask-wrapper div {
        display: none;
    }
}

@media (max-width: 680px) {
    #mobile-overlay {
        display: block;
    }
    #vertical-line {
        display: none;
    }

    #segmented {
        display: none;
    }

    #hero-top {
        display: none;
    }

    #hero {
        justify-content: end;
    }
    #hero-bottom-desktop {
        display: none;
    }

    #hero-bottom-mobile {
        display: none;
    }
    #modal {
        position: relative;
        max-width: 70vw;
        margin: auto;
        transition: all 0.5s ease-in-out;
    }
    #modal img {
        max-width: 70vw;
    }
    #modal q {
        max-width: 70vw;
    }
    #max-wrapper {
        padding: 10px 10px 10px -50px;
    }
    .headline {
        width: 120px;
    }
}