html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: #000 url('./imgs/f.jpg') no-repeat top left;
    overflow: hidden;
}

.btn {
    cursor: pointer;
    font-size: 25px;
    font-family: sans-serif;
    background-color: #000;
}

/* =========================
   LISTEN OVERLAY
========================= */

#listen {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    flex-direction: column;
    z-index: 100;
    pointer-events: none;
    opacity: 1;
}

#listen.hidden {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

#listen #play {
    pointer-events: auto;
    cursor: pointer;
    margin: auto;
    width: 200px;
    padding: 20px 30px;
    border-radius: 7px;
    text-align: center;
    font-size: 70px;
    font-family: sans-serif;
    color: #fff;
    background-color: #000;
    transition: box-shadow 0.3s ease-in-out;
}

#listen #play:hover {
    box-shadow: 5px 5px 5px #000;
    transition: box-shadow 0.1s ease-in-out;
}

/* =========================
   ART AREA / LAYERS
========================= */

#art {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.9);
}

/* both sliders share same structure */
#slider,
#slidergifs {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    margin: 0;
    padding: 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

#slider::-webkit-scrollbar,
#slidergifs::-webkit-scrollbar {
    display: none;
}

#slider li,
#slidergifs li {
    list-style: none;
    flex: 0 0 100vw;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

#slider li img,
#slidergifs li img {
    display: block;
    width: 100vw;
    height: 100vh;
    object-fit: fill;
}

/* base art */
#slider {
    z-index: 1;
}

/* motion layer wrapper */
#gifs {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

/* motion slider */
#slidergifs {
    opacity: 0.4;
    mix-blend-mode: soft-light;
    transition: opacity 1.3s ease-in-out;
}

#slidergifs.hide {
    opacity: 0;
}

/* vinyl overlay */
#vinyl {
    position: absolute;
    inset: 0;
    width: 100vw;
    height: 100vh;
    z-index: 3;
    mix-blend-mode: soft-light;
    pointer-events: none;
}

/* scratch overlay */
#scratch {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    z-index: 4;
    opacity: 0.05;
    mix-blend-mode: hard-light;
    pointer-events: none;
}

/* optional bird layer */
#bird {
    position: absolute;
    left: calc(50vw - 25vw);
    top: calc(50vh - 25vh);
    width: 50vw;
    height: 50vh;
    opacity: 0.3;
    mix-blend-mode: darken;
}

/* =========================
   MENU
========================= */

#menu {
    position: absolute;
    inset: 0;
    z-index: 20;
    width: 100vw;
    pointer-events: none;
}

#menu-title,
#menu-prev,
#menu-next {
    position: absolute;
    bottom: 50px;
    font-family: sans-serif;
    pointer-events: auto;
}

#menu-title {
    padding: 40px;
    font-size: 80px;
}

#menu-prev,
#menu-next {
    padding: 20px;
    border-radius: 50%;
    color: #fff;
}

#menu-prev {
    left: 20px;
}

#menu-next {
    right: 100px;
}

#menu-prev.hidden,
#menu-next.hidden {
    display: none;
}

/* =========================
   AUDIO
========================= */

#audio {
    position: fixed;
    left: 0;
    bottom: 0;
    z-index: 5;
    width: 100%;
}

#audio audio {
    width: 100vw;
}

audio::-webkit-media-controls-enclosure {
    border-radius: 0;
    background: none;
}

audio::-webkit-media-controls-panel {
    background: none;
}

/* =========================
   MOBILE
========================= */

@media screen and (max-width: 900px) {
    #slider li img,
    #slidergifs li img {
        min-height: 150px;
        max-height: 50%;
    }

    #menu-title {
        font-size: 42px;
        padding: 20px;
        bottom: 90px;
    }

    #menu-prev,
    #menu-next {
        bottom: 20px;
    }
}