.top-bar {
    position: fixed;
    top: 10px;
    width: 100%;
    height: 14px;

    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;

    background: white;

    padding: 0 20px;
    z-index: 10000;

    font-family: "Menlo", monospace;
    color: #00ec69;
    font-size: 14px;
    letter-spacing: 0.02em;
    padding-bottom: 15px;
    padding-top: 7px;
}

.product-title {
    justify-self: start;
}

.details {
    justify-self: center;
    cursor: pointer;
}

.top-right-word {
    justify-self: end;
}


/* =========================
   DETAILS DRAWER
========================= */

.details-text {
    position: fixed;
    top: 14px;
    left: 0;
    width: 100%;

    background: white;
    color: #4e0659;

    padding: 18px 0;

    overflow-y: auto;

    transform: translateY(-100%);
    transition: transform 0.4s ease;

    z-index: 9999;

    border-bottom: 1px solid #55685b;

    font-size: 12px;
    font-family: "Menlo", monospace;
    line-height: 1.4;
}

.details-text.active {
    transform: translateY(0);
}


/* =========================
   DETAILS CONTENT
========================= */

.details-content {
    display: flex;
    gap: 40px;

    max-width: 900px;
    margin: auto;

    padding: 0 30px;
}

.details-left {
    flex: 1;
}

.details-right {
    flex: 2;
}


/* =========================
   FEED
========================= */

.feed-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
}

.feed {
    /*
       THIS is the maximum width of your
       landscape videos.

       Everything in the feed will use
       exactly this same width.
    */
    width: 600px;
    max-width: calc(100vw - 20px);

    margin: 0 auto;
}


/* =========================
   ALL MEDIA
========================= */

.feed img,
.feed video {
    display: block;

    width: 100%;
    max-width: 100%;

    height: auto;

    margin: 0 0 8px 0;

    object-fit: contain;
}


/* =========================
   VIDEOS
========================= */

/*.feed video {*/
/*    max-height: 90vh;*/
/*}*/


/* =========================
   FLOATING BACK
========================= */

#floating-back {
    position: fixed;

    width: 130px;

    cursor: pointer;
    z-index: 29999;

    transition: left 30s ease, top 30s ease;
}


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

@media (max-width: 600px) {

    body {
        padding-top: 70px;
        overflow-x: hidden;
    }


    /* TOP BAR */

    .top-bar {
        top: 0;
        height: 60px;

        grid-template-columns: 1fr;

        text-align: center;

        font-size: 12px;

        padding: 0 10px;

        letter-spacing: 0.04em;
    }

    .product-title,
    .details,
    .top-right-word {
        justify-self: center;
        font-size: 12px;
    }

    .top-right-word {
        display: none;
    }


    /* DETAILS DRAWER */

    .details-text {
        top: 60px;

        padding: 0;
        margin: 0;

        font-size: 12px;
        line-height: 1.3;
    }

    .details-content {
        flex-direction: column;

        gap: 8px;

        padding: 12px 16px;
    }

    .details-left,
    .details-right {
        margin: 0;
    }


    /* FEED */

    .feed {
        width: 100%;
        max-width: calc(100vw - 20px);

        padding: 0;
        margin: 0 auto;
    }


    /* EXACT SAME WIDTH FOR EVERYTHING */

    .feed img,
    .feed video {
        width: 100%;
        max-width: 100%;

        height: auto;

        margin: 0 0 10px 0;

        transform: none;

        object-fit: contain;
    }


    /* BACK BUTTON */

    #floating-back {
        width: 75px;
    }
}


/* =========================
   VERY SMALL PHONES
========================= */

@media (max-width: 380px) {

    .feed {
        width: calc(100vw - 16px);
        max-width: calc(100vw - 16px);
    }

    .feed img,
    .feed video {
        width: 100%;
        max-width: 100%;
    }

    #floating-back {
        width: 60px;
    }
}


/* =========================
   DANCING IMAGES
========================= */

.floating-images {
    position: fixed;

    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    pointer-events: none;

    z-index: 9999;
}

.img {
    position: absolute;

    width: 120px;
    height: auto;

    offset-path: path(
            "M 0 600 C 300 200, 600 1000, 1000 400"
    );

    offset-rotate: auto;

    animation:
            move 25s linear infinite,
            pulse 4s ease-in-out infinite;
}

.img1 {
    animation-delay: 0s, 0s;
}

.img2 {
    offset-path: path(
            "M 200 800 C 400 100, 800 900, 1200 300"
    );

    animation-delay: 5s, 1s;
}

.img3 {
    offset-path: path(
            "M 100 900 C 500 300, 900 700, 1400 200"
    );

    animation-delay: 10s, 2s;
}

.img4 {
    offset-path: path(
            "M 300 700 C 700 50, 1000 800, 1600 400"
    );

    animation-delay: 15s, 0.5s;
}

.img5 {
    offset-path: path(
            "M 50 850 C 350 250, 750 950, 1300 350"
    );

    animation-delay: 20s, 1.5s;
}


/* =========================
   ANIMATIONS
========================= */

@keyframes move {

    0% {
        offset-distance: 0%;
    }

    100% {
        offset-distance: 100%;
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1) rotate(0deg);
    }

    25% {
        transform: scale(1.1) rotate(5deg);
    }

    50% {
        transform: scale(0.9) rotate(-5deg);
    }

    75% {
        transform: scale(1.15) rotate(3deg);
    }
}