@import url(fonts.css);
@import url(fontawesome.css);

:root {
    --font-family--base: "Archivo", sans-serif;
    --font-family--heading: Bitter;
    --color-rbtv-red: #e4141b;
    --color-black: #000;
    --color-gray-100: #131313;
    --color-gray-200: #1f1e1e;
    --color-white-100: #fff;
    --color-white-200: #d5d5d5;
}

html, body {
    height: 100%;
}

*, *:before, *:after {
    box-sizing: border-box;
}

body {
    font-family: var(--font-family--base);
    margin: 0;
    background: url("../assets/images/rbtv-bg-2023.png");
}

button {
    background: var(--color-white-200);
    border: none;
    padding: 3px 18px;
    line-height: 1;
    cursor: pointer;
    margin: 3px;
    border-radius: 9999vmax;

    img {
        transition: all 0.9s;
    }

    &:hover {
        background: var(--color-white-100);
        border: 3px solid var(--color-white-100);
        margin: 0;

        img {
            transform: rotate(180deg);
        }
    }
}

/*h1, h2, h3, h4, h5, h6 {*/
/*    font-family: var(--font-family--base);*/
/*}*/

header {
    display: -webkit-flex;
    display: -moz-flex;
    display: flex;
    -webkit-flex: 1 0 100%;
    -moz-flex: 1 0 100%;
    flex: 1 0 100%;
    align-self: flex-start;
    padding: 1.5rem 0;

    & > * {
        -webkit-flex: 1 auto;
        -moz-flex: 1 auto;
        flex: 1 auto;
        align-self: auto;
    }
}

.heading {
    margin-top: 0;
}

.heading--red {
    font-family: var(--font-family--heading);
    background-color: var(--color-rbtv-red);
    color: var(--color-black);
    font-weight: 800;
    padding: 3px 9px;
    display: inline;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
    word-wrap: break-word;
    margin-bottom: 0;
}

.heading--white {
    font-family: var(--font-family--base);
    color: var(--color-white-100);
}

.margin-auto {
    margin: auto;
}

h1 {
    text-transform: uppercase;
}

#episode-title, #show-title {
    display: none;
}

.logo {
    text-align: left;
    margin-bottom: 0;
    display: -webkit-flex;
    display: -moz-flex;
    display: flex;
    -webkit-flex-flow: row wrap;
    -moz-flex-flow: row wrap;
    flex-flow: row wrap;
    -webkit-justify-content: stretch;
    -moz-justify-content: stretch;
    justify-content: stretch;
    gap: 15px;
}

.filter {
    text-align: right;
    display: -webkit-flex;
    display: -moz-flex;
    display: flex;
    -webkit-flex-flow: row wrap;
    -moz-flex-flow: row wrap;
    flex-flow: row wrap;
    -webkit-justify-content: flex-end;
    -moz-justify-content: flex-end;
    justify-content: flex-end;
    gap: 10px;

    h4 {
        max-width: 1045px;
        margin: 15px auto 25px;
    }

    .i-arrows-cw {
        font-size: 1.8em;
        width: 1.774em;
        text-align: center;
        line-height: 1.6em;
        background-color: var(--color-rbtv-red);
        color: var(--color-white-100);
        border-radius: 0.9em;
        display: block;
        transition: all 300ms;
        cursor: pointer;
        border: 2px solid var(--color-white-100);

        &:hover {
            transform: rotate(360deg);
        }

        &:before {
            margin: 0;
            width: auto;
            line-height: 1.6em;
        }
    }
}

.content {
    position: relative;
    display: -webkit-flex;
    display: -moz-flex;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    max-width: 1200px;
    margin: auto;
    -webkit-flex-flow: row wrap;
    -moz-flex-flow: row wrap;
    flex-flow: row wrap;
    padding: 0 20px;
}

.item-center {
    align-self: flex-start;
    flex: 0 0 100%;
    margin-top: -2rem;
}

.content-skew {
    transform: skew(-15deg);
    text-align: left;
    width: 100%;
    margin-bottom: 20px;
}

#video-container {
    border-radius: 25px;
    backdrop-filter: blur(6px);
    margin-top: 7px;
    background-color: var(--color-black);
    border: 5px solid var(--color-rbtv-red);
    width: 100%;
    line-height: 0;
}

#youtube-video {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 0.56;
    border-radius: 25px;
    border: 6px solid var(--color-black);
}

#error-message, .i-up-open {
    display: none;
}

summary {
    .i-sliders {
        font-size: 1.8em;
        width: 2.6em;
        text-align: center;
        line-height: 1.6em;
        background-color: var(--color-white-100);
        color: var(--color-rbtv-red);
        border-radius: 0.9em;
        display: inline-block;
        transition: all 300ms;
        cursor: pointer;
        border: 2px solid var(--color-white-100);

        &:hover {
            border-color: var(--color-rbtv-red);
        }

        &:before {
            margin: 0;
            width: auto;
            line-height: 1.6em;
        }
    }
}

details > summary {
    list-style: none;
}

details > summary::marker,
details > summary::-webkit-details-marker {
    display: none;
}

details[open] {
    .controls {
        display: block;
    }

    .i-up-open {
        display: inline-block;
    }

    .i-down-open {
        display: none;
    }
}

.tgl-filter {
    margin: 25px 0 10px;
    cursor: pointer;
}

.settings {
    margin-bottom: 20px;
}

.setSettings {
    display: grid;
    place-content: flex-start;
    grid-template-columns: repeat(2, 200px);
    grid-column-gap: 15px;
    grid-row-gap: 20px;
    margin: 0 auto;
    max-width: 1045px;

    label {
        color: var(--color-white-100);
    }
}

.setFilter {
    height: 100%;
    overflow-x: auto;
    padding-bottom: 100px;
}

.controls {
    border-radius: 11px;
    background-color: rgb(26 25 25 / 85%);
    backdrop-filter: blur(20px);
    width: 100%;
    text-align: left;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 20px;
    top: 95px;
    z-index: 99;
    border: 5px solid var(--color-rbtv-red);

    .space-wrapper {
        padding: 15px;
        height: 100%;
        overflow: hidden;
        /*overflow-x: auto;*/
    }
}

.choices {
    color: var(--color-black);
}

#selectShows {
    display: grid;
    place-content: center;
    grid-template-columns: repeat(5, 200px);
    grid-column-gap: 15px;
    grid-row-gap: 20px;
    margin: 0 10px;

    .show {
        transition: transform 0.15s;

        &:active {
            transform: scale(0.9);
        }
    }

    label {
        opacity: 0.7;
        transition: opacity 0.15s;

        &:hover {
            cursor: pointer;
            opacity: 0.9;

            img {
                -webkit-filter: grayscale(10%);
                filter: grayscale(10%);
            }
        }

        p {
            margin: 5px 15px 0;
            text-align: center;
            color: var(--color-white-100);
            font-size: 0.9rem;
        }

        .img-wrapper {
            position: relative;
            height: 125px;
        }

        img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            object-position: center center;
            border: 3px solid transparent;
            border-radius: 0.9em;
            padding: 4px;
            -webkit-filter: grayscale(30%);
            filter: grayscale(30%);
            transition: filter 0.15s;
        }
    }

    input[type="checkbox"]:checked + label {
        opacity: 1;
    }

    input[type="checkbox"]:checked + label img {
        border: 3px solid var(--color-rbtv-red);
        -webkit-filter: none;
        filter: none;
    }
}

@media (width < 1080px) {
    #selectShows {
        grid-template-columns: repeat(4, auto);
        grid-column-gap: 10px;
        grid-row-gap: 20px;
    }
}

@media (width < 750px) {
    #episode-title {
        display: none !important;
    }

    #selectShows {
        grid-template-columns: repeat(3, auto);
    }
}

@media (width < 576px) {
    header {
        .logo, .filter {
            flex-basis: 100%;
            text-align: center;
        }

        i {
            transform: scale(0.7) rotate(0deg);
        }
    }

    .filter {
        .i-arrows-cw {
            &:hover, &:active {
                transform: scale(0.7) rotate(360deg);
            }
        }
    }

    #selectShows {
        grid-template-columns: repeat(2, auto);
        grid-column-gap: 7px;
        grid-row-gap: 15px;
    }

    .logo {
        img {
            width: 100%;
        }
    }
}

