/* SINGLE POST */

html {
    scroll-behavior: smooth;
}

.light-theme {
    header {
        .games {
            background-color: var(--secondary);
            color: var(--primary);
        }
    }

    main {
        .audio-player {
            background-color: rgba(36, 36, 36, 0.2);
    
            .mainElements {
                #playPauseBtn {
                    svg {
                        path:first-of-type {
                            stroke: var(--secondary);
                        }
                        path:last-of-type {
                            fill: var(--secondary);
                        }
    
                        @media (min-width:900px) {
                            &:hover {
                                path:first-of-type {
                                    fill: var(--secondary);
                                }
                                path:last-of-type {
                                    fill: var(--primary);
                                }
                            }
                        }
                    }
                }
            }

            #visualizer {
                rect {
                    fill: var(--secondary);
                }
            }

            input[type="range"] {
                color: var(--secondary);
            }
    
            input[type="range"]::-webkit-slider-runnable-track {
                background-image: radial-gradient(var(--secondary) 1px, transparent 0);
            }

            input[type="range"]::-moz-range-track {
                background-image: radial-gradient(var(--secondary) 1px, transparent 0);
            }
        }

        .sidePanel {
            .topContent {
                .backTitle {
                    .back {
                        svg {
                            path:first-of-type {
                                stroke: var(--secondary);
                                fill: var(--primary);
                            }
                            path:last-of-type {
                                stroke: var(--secondary);
                            }
                        }
        
                        @media (min-width:900px) {
                            &:hover {
                                svg {
                                    path:first-of-type {
                                        fill: var(--secondary);
                                    }
                                    path:last-of-type {
                                        stroke: var(--primary);
                                    }
                                }
                            }
                        }
                    }

                    h1 {
                        color: var(--primary);
        
                        span {
                            background-color: var(--secondary);
                        }
                    }
                }

                .clientLinks {
                    .year {
                        background-color: var(--secondary);
                        color: var(--primary);
                    }
                    .links {
                        a {
                            svg {
                                path:first-of-type {
                                    stroke: var(--secondary);
                                    fill: var(--primary);
                                }
                                path:last-of-type {
                                    fill: var(--secondary);
                                    stroke: none;
                                }
                            }

                            &:hover {
                                svg {
                                    path:first-of-type {
                                        fill: var(--secondary);
                                    }
                                    path:last-of-type {
                                        fill: var(--primary);
                                    }
                                }
                            }
                        }
                    }
                }
            }

            .bottomContent {
                .sliderText {
                    .animating {
                        color: var(--primary);
                        background-color: var(--secondary);
                    }
                }
                
                .progressContainer {
    
                    .dot {
                        background-color: var(--secondary);
                    }
    
                    .progressBar {
                        background-color: var(--secondary);
                    }
                }

                .yearLinks {
                    .year {
                        background-color: var(--secondary);
                        color: var(--primary);
                    }
    
                    .links {
                        span {
                            background-color: var(--secondary);
                        }
                    }
                }
            }
        }
    }

    .footer {
        .linksContainer {
            svg {
                path:first-of-type {
                    stroke: var(--secondary);
                    fill: var(--primary);
                }
                path:last-of-type {
                    fill: var(--secondary);
                }
            }

            .links {
                background-color: var(--secondary);

                a {
                    color: var(--primary);
                    border-top: 1px solid var(--primary);

                    svg {
                        path:first-of-type {
                            stroke: var(--primary);
                        }
                        path:last-of-type {
                            stroke: var(--primary);
                        }
                    }
                }

                &::after {
                    background-color: var(--secondary);
                }
            }
        }
    }
}

header {
    transform: translateY(0);
	opacity: 1;

    .games {
        background-color: var(--primary);
        color: var(--secondary);
    }
}

main {
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    height: 100%;

    .hide {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        border: 0;
    }

    .border {
        animation: border 0.9s cubic-bezier(.2,1,.95,1);
    }

    .border_alt {
        animation: border_alt 0.5s cubic-bezier(.2,1,.95,1);
    }

    .border_small {
        animation: border_small 0.9s cubic-bezier(.2,1,.95,1);
    }

    .border_small_alt {
        animation: border_small_alt 0.5s cubic-bezier(.2,1,.95,1);
    }

    .audio-player {
        display: grid;
        grid-template-columns: repeat(10, 1fr);
        width: 100%;
        margin: 0 auto 1rem;
        padding: 15px;
        background-color: rgba(225, 255, 188, 0.2);

        .mainElements {
            width: 100%;
            display: grid;
            grid-template-columns: repeat(14, 1fr);
            align-items: center;
            gap: 0.75rem;
            grid-column: 1 / 11;

            #playPauseBtn {
                cursor: pointer;
                text-decoration: none;
                text-align: center;
                display: inline-block;
                background-color: transparent;
                border: none;
                width: 30px;
                height: 30px;
                grid-column: 1 / 2;

                svg {
                    path:first-of-type {
                        stroke: var(--primary);
                        fill: transparent;
                    }
                    path:last-of-type {
                        fill: var(--primary);
                    }

                    @media (min-width:900px) {
                        &:hover {
                            path:first-of-type {
                                fill: var(--primary);
                            }
                            path:last-of-type {
                                fill: var(--secondary);
                            }
                        }
                    }
                }
            }

            #currentTime,
            #totalTime {
                font-family: "PP Mondwest";
                font-size: 12px;
            }

            #currentTime {
                grid-column: 2 / 4;
            }

            #seekbar {
                grid-column: 4 / 13;
            }

            #totalTime {
                text-align: right;
                grid-column: 13 / 15;
            }
        }

        #visualizer {
            grid-column: 3 / 10;
            width: 100%;
            height: fit-content;
            max-height: 0;

            rect {
                fill: var(--primary);
                transition: opacity 0.01s ease-in-out;
            }
        }

        /* PROGRESS BAR */
        input[type="range"] {
            font-size: 1.5rem;
            width: 100%;
            color: var(--primary);
            --thumb-height: 5px;
            --track-height: 0.125em;
            --track-color: rgba(0, 0, 0, 0.2);
            --brightness-hover: 180%;
            --brightness-down: 80%;
            --clip-edges: 0.125em;
            position: relative;
            background: #fff0;
            overflow: hidden;
            cursor: grab;
            padding: 1rem 0;
        }

        input[type="range"]:active {
            cursor: grabbing;
        }

        input[type="range"]:focus {
            outline: none;
        }

        /* === WebKit === */
        input[type="range"],
        input[type="range"]::-webkit-slider-runnable-track,
        input[type="range"]::-webkit-slider-thumb {
            -webkit-appearance: none;
            height: var(--thumb-height);
        }

        input[type="range"]::-webkit-slider-thumb {
            --clip-top: calc((var(--thumb-height) - var(--track-height)) * 0.5 - 0.5px);
            --clip-bottom: calc(var(--thumb-height) - var(--clip-top));
            --clip-further: calc(100% + 1px);

            width: var(--thumb-width, var(--thumb-height));
            background-color: transparent;
            box-shadow: calc(-100vmax - var(--thumb-width, var(--thumb-height))) 0 0
            100vmax currentColor;

            clip-path: polygon(
                100% -1px,
                var(--clip-edges) -1px,
                0 var(--clip-top),
                -100vmax var(--clip-top),
                -100vmax var(--clip-bottom),
                0 var(--clip-bottom),
                var(--clip-edges) 100%,
                var(--clip-further) var(--clip-further)
            );
        }

        input[type="range"]::-webkit-slider-runnable-track {
            background-image: radial-gradient(var(--primary) 1px, transparent 0);
            background-size: 15px 15px;
            background-position: 10px 10px;
        }

        /* === Firefox 🫠 === */
        input[type="range"],
        input[type="range"]::-moz-range-track,
        input[type="range"]::-moz-range-thumb {
            appearance: none;
            height: var(--thumb-height);
        }

        input[type="range"]::-moz-range-track,
        input[type="range"]::-moz-range-thumb,
        input[type="range"]::-moz-range-progress {
            background: #fff0;
        }

        input[type="range"]::-moz-range-thumb {
            background-color: transparent;
            width: var(--thumb-width, var(--thumb-height));
            box-shadow: calc(-100vmax - var(--thumb-width, var(--thumb-height))) 0 0
            100vmax currentColor;
            cursor: grab;
            border: none;
        }

        input[type="range"]:active::-moz-range-thumb {
            cursor: grabbing;
        }

        input[type="range"]::-moz-range-track {
            background-image: radial-gradient(var(--primary) 1px, transparent 0);
            background-size: 15px 15px;
            background-position: 10px 10px;
            width: 100%;
            background-color: transparent;
        }

        input[type="range"]::-moz-range-progress {
            appearance: none;
            background: currentColor;
        }

        input[type="range"]::-moz-range-track,
        input[type="range"]::-moz-range-progress {
            height: calc(var(--track-height) + 1px);
            border-radius: var(--track-height);
        }

    }

    .sidePanel {
        margin-top: 7.1rem;
        grid-column: 1 / 2;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        gap: 1rem;
        height: calc(100svh - 6.1rem - 35px);

        .topContent {
            display: flex;
            flex-direction: column;
            gap: 10px;

            .backTitle {
                display: flex;
                flex-direction: column;
                gap: 10px;
    
                .back {
                    width: fit-content;
    
                    svg {
                        display: block;
                        path {
                            @media (max-width:1050px) {
                                & {
                                    stroke-width: 1.5;
                                }
                            }
                        }
                        path:first-of-type {
                            stroke: var(--primary);
                            fill: var(--secondary);
                        }
                        path:last-of-type {
                            stroke: var(--primary);
                        }
                    }
    
                    @media (min-width:900px) {
                        &:hover {
                            svg {
                                path:first-of-type {
                                    fill: var(--primary);
                                }
                                path:last-of-type {
                                    stroke: var(--secondary);
                                }
                            }
                        }
                    }
                }
    
                h1 {
                    font-family: "PP Mondwest";
                    font-size: 40px;
                    font-style: normal;
                    font-weight: 400;
                    line-height: 110%;
                    letter-spacing: -1.2px;
                    color: var(--secondary);
                    width: fit-content;
                    padding: 5px 0;
    
                    span {
                        background-color: var(--primary);
                        padding: 5px;
                        -webkit-box-decoration-break: clone;
                        box-decoration-break: clone;
                    }
                }
            }

            .clientLinks {
                display: flex;
                flex-direction: row;
                align-items: flex-start;
                justify-content: space-between;
                gap: .5rem;

                .year {
                    display: none;
                }

                .client {
                    font-size: 20px;
                }

                a.client {
                    @media (min-width:900px) {
                        &:hover {
                            text-decoration: underline;
                        }
                    }
                }

                .links {
                    display: flex;
                    flex-direction: column;
                    justify-content: flex-end;
                    gap: .5rem;

                    a {
                        font-family: "PP Mondwest";
                        text-decoration: underline;
                        text-underline-offset: 2px;
                        display: flex;
                        flex-direction: row;
                        align-items: flex-end;
                        justify-content: space-between;
                        gap: .5rem;

                        svg {
                            path:first-of-type {
                                stroke: var(--primary);
                                fill: var(--secondary);
                            }
                            path:last-of-type {
                                fill: var(--primary);
                            }
                        }

                        @media (min-width:900px) {
                            &:hover {
                                svg {
                                    path:first-of-type {
                                        fill: var(--primary);
                                    }
                                    path:last-of-type {
                                        fill: var(--secondary);
                                    }
                                }
                            }
                        }
                    }
                }

                @media (max-width:900px) {
                    .year {
                        display: block;
                        padding: .15rem .25rem;
                        background-color: var(--primary);
                        color: var(--secondary);
                        font-size: 12px;
                    }

                    .client {
                        text-align: right;
                        font-size: 16px;
                    }
                    
                    .links {
                        display: none;
                    }
                }
            }
        }

        .bottomContent {
            .sliderText {
                opacity: 0;
                display: none;
                transition: opacity .25s ease;
        
                h1,
                h2,
                h3,
                h4,
                h5,
                h6 {
                    font-family: "PP Mondwest";
                    margin-bottom: 1rem;
                }
                
                h2 {
                    font-size: 32px;
                }
        
                h3 {
                    font-size: 26px;
                }
        
                h4 {
                    font-size: 20px;
                }
        
                h5 {
                    font-size: 18px;
                }
        
                h6 {
                    font-size: 14px;
                }
        
                p {
                    font-size: 16px;
                    line-height: 115%;
                    margin-bottom: .75rem;
                    letter-spacing: 0.3px;
                }

                span.char {
                    opacity: 0;
                }

                span.bold {
                    font-weight: bold;
                }

                span.font,
                a {
                    font-family: "PP Mondwest", serif;
                    font-size: 18.5px;
                }

                a {
                    display: inline;
                    text-decoration: underline;
                }

                .animating {
                    color: var(--secondary);
                    background-color: var(--primary);
                    border-radius: 2px;
                }
            }

            a {
                width: fit-content;
            }

            .progressContainer {
                position: relative;
                display: flex;
                flex-direction: row;
                align-items: center;
                justify-content: space-between;
                width: 100%;
                height: 5px;
                border-radius: 5px;
                margin: .75rem 0;
                padding: 1rem 0;
                cursor: pointer;

                .dot {
                    width: 3px;
                    height: 3px;
                    border-radius: 3px;
                    background-color: var(--primary);

                    /* &:hover {
                        outline: solid 2px  var(--primary);
                        outline-offset: 4px;
                    } */
                }

                .progressBar {
                    position: absolute;
                    height: 5px;
                    background-color: var(--primary);
                    border-radius: 5px;
                    transition: width 0.9s cubic-bezier(0.23, 1, 0.320, 1);
                }
            }

            .spacer {
                height: 5px;
                margin: .75rem 0;
                padding: 1rem 0;
            }

            .yearLinks {
                display: flex;
                flex-direction: row;
                justify-content: space-between;
                gap: .5rem;

                .year {
                    background-color: var(--primary);
                    color: var(--secondary);
                    padding: .15rem .25rem;
                    width: fit-content;
                    height: fit-content;
                    font-size: 12px;
                }

                .links {
                    display: flex;
                    flex-direction: row;
                    align-items: center;
                    gap: .5rem;
                    
                    a {
                        font-family: "PP Mondwest";
                        text-decoration: underline;
                        text-underline-offset: 2px;
                    }

                    span {
                        width: 3px;
                        height: 3px;
                        border-radius: 2px;
                        background-color: var(--primary);
                    }
                }
            }

            @media (max-width:900px) {
                & {
                    display: none;
                }
            }
        }

        @media (max-width:900px) {
            & {
                height: fit-content;
                margin-top: 5.5rem;
            }
        }
    }

    .slider {
        grid-column: 2 / 5;
        position: relative;
        height: 100svh;
        overflow: hidden;
        -ms-overflow-style: none;
        scrollbar-width: none;

        &::-webkit-scrollbar {
            display: none;
        }

        .sliderList {
            display: flex;
            flex-direction: column;
            animation: opacity .75s;
            transition: transform 0.9s cubic-bezier(0.23, 1, 0.320, 1);

            .sliderContent {
                display: none;

                @media (max-width:900px) {
                    & {
                        display: block;

                        h1,
                        h2,
                        h3,
                        h4,
                        h5,
                        h6 {
                            font-family: "PP Mondwest";
                            margin-bottom: 1rem;
                        }

                        h2 {
                            font-size: 32px;
                        }
                
                        h3 {
                            font-size: 26px;
                        }
                
                        h4 {
                            font-size: 20px;
                        }
                
                        h5 {
                            font-size: 18px;
                        }
                
                        h6 {
                            font-size: 14px;
                        }
                
                        p {
                            font-size: 15px;
                            margin-bottom: .5rem;
                        }

                        a {
                            display: inline-block;
                            text-decoration: underline;
                        }

                        strong {
                            font-family: "PP Mondwest";
                            font-size: 16.5px;
                            font-weight: 400;
                        }
                    }
                }
            }

            .sliderSlide {
                height: 100svh;
                display: flex;
                align-items: flex-start;
                justify-content: center;
                overflow: hidden;
                padding-top: 7.1rem;
                width: 100%;
        
                img {
                    width: 100%;
                    height: auto;
                    max-height: calc(100svh - 7.1rem);
                    object-fit: cover;
                }

                video {
                    width: 100%;
                }
            }

            .dual {
                display: flex;
                flex-direction: row;
                gap: 20px;
        
                img,
                video,
                .spacer {
                    width: calc(50% - 10px);
                    height: 100%;
                }

                video {
                    object-fit: cover;
                }
            }

            .textImage {
                display: flex;
                flex-direction: row;
                gap: 20px;

                .text {
                    display: flex;
                    flex-direction: column;
                    align-items: flex-end;
                    width: 50%;

                    h1,
                    h2,
                    h3 {
                        font-family: "PP Mondwest";
                    }

                    h1,
                    h2,
                    h3,
                    h4,
                    h5,
                    p {
                        max-width: 400px;
                        width: 100%;
                        margin-bottom: .75rem;
                    }

                    p {
                        font-size: 15px;
                    }
                }

                img {
                    width: 50%;
                }
            }
        }

        @media (max-width:900px) {
            & {
                height: auto;
                overflow-y: scroll;

                .sliderList {
                    gap: 4rem;

                    .sliderSlide {
                        padding-top: 0;
                        height: fit-content;
                    }

                    .textImage,
                    .dual {
                        flex-direction: column;
                        gap: 4rem;

                        .text {
                            width: 100%;

                            p {
                                font-size: 14px;
                            }
                        }

                        img,
                        video {
                            width: 100%;
                        }
                    }

                    .spacer {
                        display: none;
                    }
                }
            }
        }
    }

    @media (max-width:1200px) {
        & {
            grid-template-columns: repeat(6, 1fr);

            .sidePanel {
                grid-column: 1 / 3;
            }

            .slider {
                grid-column: 3 / 7;
            }
        }
    }

    .footer {
        display: none;

        @media (max-width:900px) {
            & {
                width: 100%;
                display: grid;
                grid-template-columns: repeat(3, 1fr);
                align-items: flex-end;
                justify-content: space-between;
                pointer-events: painted;
                padding: 0 0 30px;

                a {
                    text-decoration: underline;
                    font-family: "PP Mondwest";
                    font-size: 16px;
                }

                .previous,
                .next {
                    white-space: nowrap;
                }

                .previous {
                    grid-column: 1 / 2;
                }

                .next {
                    justify-self: end;
                    grid-column: 3 / 4;
                }

                .linksContainer {
                    position: relative;
                    justify-self: center;
                    grid-column: 2 / 3;

                    svg {
                        path {
                            transition: fill .3s;
                        }
                        path:first-of-type {
                            stroke: var(--primary);
                            fill: var(--secondary);
                        }
                        path:last-of-type {
                            fill: var(--primary);
                        }
                    }

                    &.open {
                        .links {
                            pointer-events: all;
                            opacity: 1;
                            transform: translate(-50%, 0px) scale(1);

                            &::after {
                                bottom: -10px;
                                border-radius: 0;
                            }
                        }
                    }

                    .links {
                        transform-origin: center;
                        pointer-events: none;
                        opacity: 0;
                        position: absolute;
                        bottom: 200%;
                        left: 50%;
                        transform: translate(-50%, 10px) scale(0.8);
                        background-color: var(--primary);
                        transition: opacity .3s cubic-bezier(.35,1.6,.32,1), transform .5s cubic-bezier(.35,1.6,.32,1);

                        a {
                            font-size: 14px;
                            line-height: 80%;
                            color: var(--secondary);
                            display: flex;
                            flex-direction: row;
                            gap: 1rem;
                            align-items: flex-end;
                            justify-content: space-between;
                            text-wrap: nowrap;
                            padding: .75rem;
                            border-top: 1px solid var(--secondary);

                            &:first-of-type {
                                border-top: none;
                            }
                            
                            svg {
                                path:first-of-type {
                                    fill: transparent;
                                    stroke: var(--secondary);
                                }
                                path:last-of-type {
                                    stroke: var(--secondary);
                                }
                            }
                        }

                        &::after {
                            content: "";
                            position: absolute;
                            width: 20px;
                            height: 20px;
                            background-color: var(--primary);
                            bottom: 5px;
                            left: 50%;
                            transform: translateX(-50%) rotate(45deg);
                            border-radius: 10px;
                            z-index: -1;
                            transition: all .4s .15s ease-out;
                        }
                    }
                }
            }
        }

        @media (max-width:600px) {
            & {
                padding: 0 0 20px;
            }
        }
    }

    @media (max-width:900px) {
        & {
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            height: 100%;

            .sidePanel,
            .splide {
                grid-column: auto;
            }

            .sidePanel {
                .topContent {
                    .backTitle {
                        flex-direction: row;
                        justify-content: space-between;

                        h1 {
                            font-size: 30px;
                            text-align: right;
                        }
                    }
                }
            }
        }
    }
}

@keyframes border {
    0%,100% {
        border-radius: 0px;
        scale: 1;
    }
    20% {
        border-radius: 25px;
        scale: 0.96;
    }
}

@keyframes border_alt {
    0%,100% {
        border-radius: 0px;
        scale: 1;
    }
    20% {
        border-radius: 25px;
        scale: 0.96;
    }
}

@keyframes border_small {
    0%,100% {
        border-radius: 0px;
    }
    20% {
        border-radius: 15px;
    }
}

@keyframes border_small_alt {
    0%,100% {
        border-radius: 0px;
    }
    20% {
        border-radius: 15px;
    }
}

@keyframes opacity {
    0%,
    40% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}