@import url('https://fonts.googleapis.com/css2?family=Open+Sans&display=swap');

/* Home/reused */
* {
    box-sizing: border-box;
}

html, body {
    margin: 0px;
}

.posterMover {
    position: absolute;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100vw;
    transition: transform .75s ease-out;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

#posterVideo {
    display: none;
    object-fit: cover;
    height: 100vh;
    width: 100vw;
}

#homeButton {
    display: none;
    position: fixed;
    width: 3vw;
    top: 0;
    left: 0;
    z-index: 2;
    background-color: transparent;
    border: none;
    transition: transform 0.5s;
}

#homeButton:hover {
    transform: scale(1.1);
}

#loadMessage {
    font-family: 'Open Sans', sans-serif;
    display: none;
    z-index: 2;
    color: black;
    font-size: xx-large;
    font-weight: 800;
    animation: scrollFade 2s infinite alternate-reverse;
}

#aboutButton {
    position: fixed;
    width: 2.5vw;
    top: 0%;
    left: 0;
    z-index: 2;
    background-color: transparent;
    border: none;
    transition: transform 0.5s;
}

#aboutButton:hover {
    transform: scale(1.1);
}

#aboutWrapper {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 3;
    background-color: rgba(0,0,0,0.6);
    width: 100vw;
    height: 100vh;
}

#aboutModal {
    max-width: 45%;;
    animation: grow 0.3s;
    background-color: rgb(195, 207, 221);
    border-radius: 1em;
    border-color: black;
    border-width: 0.2em;
    border-style: solid;
    padding: 1%;
    overflow: auto;
    -ms-overflow-style: none;  /* IE and Edge scrollbar */
    scrollbar-width: none;  /* Firefox scrollbar */
    font-family: 'Open Sans', sans-serif;
}

#indexPoster {
    object-fit: cover;
    height: 100%;
    width: 100%;
    position: absolute;
}

#indexGlow {
    position: absolute;
    height: 100vh;
    width: 100vw;
}

.indexPath {
    transition: stroke-opacity 1s;
    stroke-opacity: 0;
}

.indexPathSelector {
    cursor: pointer;
}

#posterWrapper {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    transition: opacity 1s;
}

.galleryWrapper {
    display: none;
    justify-content: space-between;
    align-items: center;
    flex-direction: row;
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    animation: grow 0.3s;
}

.shrink {
    animation: shrink 0.3s;
}

#expandedWrapper {
    display: none;
    justify-content: center;
    align-items: center;
    position: fixed;
    z-index: 3;
    background-color: rgba(0,0,0,0.6);
    width: 100vw;
    height: 100vw;
}

#expandedFigure {
    max-width: 100vw;
    max-height: 100vh;
    margin: auto;
    animation: grow 0.4s;
}

#expandedFigure figcaption {
    max-width: 90vw;
    max-height: 10vh;
    overflow-wrap: break-word;
    font-size: 2em;
    white-space: normal;
}

#expandedFigure img {
    display: block;
    margin: auto;
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
}

#expandedPreviousButton {
    display: none;
    position: absolute;
    left: 10%;
}

#expandedNextButton {
    display: none;
    position: absolute;
    right: 10%;
}

figcaption {
    text-align: center;
    background-color: white;
    font-family: 'Open Sans', sans-serif;
    max-width: 8vw;
    overflow-wrap: break-word;
    white-space: nowrap;
    overflow: hidden;
}

#scrollIndicator {
    display: none;
    position: absolute;
    width: 5%;
    left: 26%;
    bottom: 10%;
    animation: scrollBounce 0.6s infinite alternate, scrollFade 3s forwards;
    pointer-events: none;
}

#rightButtons {
    background-color: rgba(0,0,0,0.6);
    position: relative;
    left: 18vw;
    display: none;
    flex-flow: column nowrap;
    align-items: center;
    padding: 1% 2%;
    padding-left: 2.5%;
    height: 100%;
    width: 20%;
    overflow: auto;
    animation: bounceHorizontal 2s ease-in infinite;
    transition: left 0.3s;
    -ms-overflow-style: none;  /* IE and Edge scrollbar */
    scrollbar-width: none;  /* Firefox scrollbar */
}

#toggleRightButtons {
    display: block;
    position: fixed;
    right: 0vw;
    transition: right 0.3s;
    animation: bounceHorizontal 2s ease-in infinite;
    top: 50%;
    z-index: 2;
    background-color: transparent;
    pointer-events: none;
    border: 0;
    width: 2vw;
    padding: 0;
}

.iconWrapper {
    position: relative;
    width: 90%;
    height: auto;
    transition: 0.3s ease;
    margin-bottom: 8%;
}

.iconWrapper:hover {
    transform: scale(1.1);
}

.iconImg {
    width: 100%;
    height: auto;
}

.iconText {
    display: block;
    position: absolute;
    top: 30%;
    width: 100%;
    text-align: center;
    font-size: 1.5em;
}

/* Hide scrollbar for Chrome, Safari and Opera */
#filmSlidesGallery::-webkit-scrollbar, .vhsButtons::-webkit-scrollbar {
    display: none;
}

/* Film slides */
#filmSlidesGallery {
    position: relative;
    left: 3.5%;
    width: 50%;
    height: 80%;
    display: none;
    flex-flow: row wrap;
    justify-content: space-around;
    align-items: center;
    overflow: auto;
    scroll-snap-type: y mandatory;
    -ms-overflow-style: none;  /* IE and Edge scrollbar */
    scrollbar-width: none;  /* Firefox scrollbar */
}

.slidesIconText {
    top: 50%;
    width: 100%;
    padding-left: 14%;
    padding-right: 14%;
    text-shadow: 1px 1px 2px white;
    text-wrap: wrap;
}

#filmSlidesGallery img {
    width: 8vw;
    height: 8vw;
    min-width: 6em;
    min-height: 6em;
    object-fit: cover;
    border-radius: 4%;
}

.categoryButtons {
    display: flex;
    flex-direction: column;
    flex: 0 0 10%;
    margin-right: 25%;
    margin-bottom: 20%;
}

#filmSlidesGallery figure {
    margin: 1.5%;
    transition: 0.3s ease;
    scroll-snap-align: end;
}

#filmSlidesGallery figure:hover {
    transform: scale(1.2);
}

#filmSlidesGallery figCaption {
    display: none;
}

/* VHS gallery */
#vhsGallery {
    position: relative;
    width: 80%;
    height: 100%;
    display: none;
}

#vhsGallery iframe {
    aspect-ratio: 4/3;
    width: 100%;
    height: 100%;
    padding: 3%;
    border: none;
}

.vhsIconText {
    top: 50%;
    text-shadow: 1px 1px 2px white;
}

/* Tapes/Cassettes gallery */
#tapesGallery {
    justify-content: center;
    position: relative;
    width: 80%;
    height: 90%;
    display: none;
    flex-direction: column;
    align-items: center;
}

#cassettesGallery {
    justify-content: center;
    position: relative;
    width: 80%;
    height: 90%;
    display: none;
    flex-direction: column;
    align-items: center;
}

.cassettesIcon {
    width: 100%;
    height: auto;
    margin-top: 2%;
    margin-bottom: 20%;
}

.cassettesIconText {
    color: white;
    text-shadow: 1px 1px 2px black;
    width: 100%;
    top: 75%;
    padding-left: 4%;
    padding-right: 4%;
}

.audioPlayer {
    aspect-ratio: 2 / 1;
    display: grid;
    grid-template-columns: auto;
    grid-template-rows: 40% 60%;
    justify-items: center;
    align-items: center;
    background-color: rgba(54, 54, 54, 0.815);
    border-radius: 1em;
    width: 50%;
}

.playerButton {
    grid-row: 1 / 2;
    grid-column: 1 / 2;
    display: flex;
    align-items: center;
    background-color: transparent;
    border: 0;
    width: 20%;
    height: 20%;
    cursor: pointer;
    padding: 0;
}

#playButtonCassettes {
    position: relative;
    right: 25%;
}

.volumeButton {
    grid-row: 1 / 2;
    grid-column: 1 / 2;
    display: flex;
    align-items: center;
    justify-self: end;
    background-color: transparent;
    border: 0;
    width: 5%;
    position: relative;
    right: 25%;
    cursor: pointer;
    padding: 0;
}

#lowVolume, #lowVolumeCassettes {
    display: none;
    transform: translateY(8%);
}

.reelLine {
    grid-row: 2 / 3;
    grid-column: 1 / 2;
    display: flex;
    width: 100%;
    height: 100%;
    flex-direction: row;
    align-items: center;
}

.reelSvgStart, .reelSvgEnd {
    max-width: 30%;
    z-index: 2;
    margin-left: 2%;
    margin-right: 2%;
}

.timeline {
    align-self: flex-end;
    appearance: none;
    -webkit-appearance: none;
    width: 100%;
    height: 4%;
    border-radius: 1em;
    margin-left: -11%;
    margin-right: -11%;
    margin-bottom: 4%;
    position: relative;
    background-color: black;
    background-size: 0 100%;
    background-repeat: no-repeat;
}

.timeline:hover, #volumeSlider:hover {
    cursor: pointer;
}

.timeline::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 0.3em;
    height: 1.3em;
    transition: all .1s;
    background-color: black;
}

.timeline::-webkit-slider-runnable-track {
    -webkit-appearance: none;
    border: none;
    box-shadow: none;
    background: transparent;
}

.volumeSlider {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
    appearance: none;
    -webkit-appearance: none;
    width: 20%;
    height: 4%;
    margin-right: 3%;
    border-radius: 1em;
    background-color: black;
    background-size: 100% 100%;
    background-repeat: no-repeat;
    justify-self: end;
}

.volumeSlider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 0.3em;
    height: 1.3em;
    transition: all .1s;
    background-color: black;
}

.volumeSlider::-webkit-slider-runnable-track {
    -webkit-appearance: none;
    border: none;
    box-shadow: none;
    background: transparent;
}

.tapeIconText {
    color: black;
    text-shadow: 1px 1px 2px white;
    width: 100%;
    top: 90%;
    padding-left: 4%;
    padding-right: 4%;
}

.tapeIconWrapper {
    margin-bottom: 15%;
}

#tapesCaption, #cassettesCaption {
    display: block;
    grid-column: 1 / 2;
    grid-row: 1 / 2;
    position: relative;
    top: 43%;
    color: white;
    font-family: 'Open Sans', sans-serif;
    max-width: 100%;
    overflow-wrap: break-word;
    white-space: nowrap;
}

#tapesImages, #cassettesImages {
    display: flex;
    position: relative;
    flex-flow: row wrap;
    background-color: rgba(54, 54, 54, 0.815);
    border-radius: 1em;
    width: 65%;
    height: 45%;
    margin-top: 1%;
    justify-content: space-around;
    align-items: center;
    overflow: auto;
    -ms-overflow-style: none;  /* IE and Edge scrollbar */
    scrollbar-width: none;  /* Firefox scrollbar */
}

#tapesImages figure, #cassettesImages figure {
    margin: 1.5%;
    transition: 0.3s ease;
}

#tapesImages figure:hover, #cassettesImages figure:hover {
    margin: 1.5%;
    transition: 0.3s ease;
    transform:scale(1.1);
}

#tapesImages figure img, #cassettesImages figure img {
    width: 8vw;
    height: 8vw;
    min-width: 6em;
    min-height: 6em;
    object-fit: cover;
    border-radius: 4%;
}

/* Printed Gallery */
#printedGallery {
    position: relative;
    padding-left: 13%;
    padding-right: 15%;
    margin-bottom: 5%;
    margin-top: 5%;
    width: 80%;
    height: 90%;
    display: none;
    flex-flow: row wrap;
    justify-content: space-around;
    align-items: center;
    overflow: auto;
    scroll-snap-type: y mandatory;
    -ms-overflow-style: none;  /* IE and Edge scrollbar */
    scrollbar-width: none;  /* Firefox scrollbar */
}

.printedFigure {
    transition: 0.3s ease;
    scroll-snap-align: end;
}

.printedFigure:hover {
    transform: scale(1.2);
}

.printedFigure:hover figcaption {
    color: white;
    text-shadow: 1px 1px 2px black;
}

.printedFigure img {
    width: 8vw;
    height: 8vw;
    min-width: 6em;
    min-height: 6em;
    object-fit: cover;
}

.printedFigure figcaption {
    background-color: transparent;
    color: transparent;
}

.printedIconText {
    color: black;
    text-shadow: 1px 1px 2px white;
    width: 100%;
    padding-left: 14%;
    padding-right: 14%;
}


/* Animations */
@keyframes grow {
    from {transform: scale(0);}
    to {transform: scale(1);}
}

@keyframes shrink {
    from {transform: scale(1);}
    to {transform: scale(0);}
}

@keyframes bounceHorizontal {
    0% {transform: translateX(0);}
    20% {transform: translateX(0);}
    40% {transform: translateX(-2vw);}
    50% {transform: translateX(0);}
    60% {transform: translateX(-0.7vw);}
    70% {transform: translateX(0);}
    75% {transform: translateX(-0.3vw);}
    80% {transform: translateX(0vw);}
    100% {transform: translateX(0);}
}

@keyframes scrollBounce {
    from {transform: translateY(0);}
    to {transform: translateY(-2vw);}
}

@keyframes scrollFade {
    from {opacity: 100%;}
    to {opacity: 0%;}
}