section#content {
    margin-top: 0;
    padding-bottom: 0;
}

div.fast-channel-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 50vh;
}

div.fast-channel-player-container {
    flex-basis: 640px;
    box-sizing: border-box;
}

div.fast-channel-player-inner-container {
    margin: auto;
    width: 80%;
}

div.fast-channel-details-container {
    flex-basis: 680px;
    color: white;
    margin: 1vw;
    box-sizing: border-box;
    padding: 20px;
    overflow-y: auto;
}

div.fast-channel-player-inner-container,
div.fast-channel-details-container {
    box-shadow: 5px 5px 12px rgba(0,0,0,0.4);
}

div.fast-channel-details-ad {
    float: right;
    width: 300px;
    height: 250px;
}

div.fast-channel-title {
    font-size: x-large;
    margin-bottom: 20px;
    cursor: pointer;
}

div.fast-channel-title i,
div.fast-channel-program-title i {
    cursor: pointer;
}

div.fast-channel-description {
    margin-bottom: 10px;
    display: none;
}

div.fast-channel-buttons {
    margin-bottom: 20px;
}

button.follow, button.following {
    margin-bottom: 10px;
}

div.fast-channel-currently-playing {
    font-size: medium;
    font-weight: 100;
    margin-bottom: 15px;
}

div.fast-channel-program-title {
    font-size: medium;
    margin-bottom: 8px;
    cursor: pointer;
}

div.fast-channel-program-time {
    font-size: small;
    color: grey;
}

/*
** EPG
*/

div.epg {
    box-sizing: border-box;
    clear: both;
    color: #eeeeee;
    overflow: scroll;
    height: 50vh;
}

div.epg::-webkit-scrollbar {
    width: 20px;               /* width of the entire scrollbar */
}

div.epg::-webkit-scrollbar-track {
    background: black;        /* color of the tracking area */
}

div.epg::-webkit-scrollbar-thumb {
    background-color: gray;    /* color of the scroll thumb */
    border-radius: 20px;       /* roundness of the scroll thumb */
    border: 3px solid black;  /* creates padding around scroll thumb */
}

div.epg {
    scrollbar-width: thin;          /* "auto" or "thin" */
    scrollbar-color: gray black;   /* scroll thumb and track */
}

div.epg-loader {
    position: absolute;
    top: 60%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-image: url('/img/loader.gif');
    background-repeat: no-repeat;
    z-index: 5;
    width: 128px;
    height: 15px;
    display: none;
}

div.epg-container {
    position: relative;
}

div.epg-marker {
    background-color: rgba(255, 255, 255, 0.75);
    position: absolute;
    width: 3px;
    top: 0;
    bottom: 0;
    z-index: 1;
}

div.epg-timeline {
    color: #fc3;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 10px 0;
    display: inline-flex;
    position: sticky;
    top: 0;
    z-index: 2;
}

div.epg-timeline-empty {
    width: 200px;
}

div.epg-timeline-half-hour {
    font-size: large;
}

div.epg-timeline-marker {
    background-color: white;
    width: 3px;
    height: 100%;
    position: absolute;
    left: 33%;
}

div.epg-channel-row {
    position: relative;
    display: inline-flex;
    padding-left: 15px;
}

div.epg-channel {
    background: linear-gradient(to bottom right, #555555, black);
    box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.5);
    width: 150px;
    position: sticky;
    left: 0;
    text-align: center;
    z-index: 1;
    cursor: pointer;
}

div.epg-channel img {
    height: 100%;
}

div.epg-program-inner {
    background-color: rgba(0, 0, 0, 0.8);
    margin-left: 5px;
    border: solid 2px #555555;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

div.epg-program-inner.focus {
    border-color: #fc3;
}

div.epg-program-inner:not(.focus) {
    cursor: pointer;
}

div.epg-program-inner.focus div.epg-program-title {
    color: #fc3;
}

div.epg-program-time {
    color: grey;
}

div.epg-program-title, div.epg-program-time {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

div.epg-channel, div.epg-program-inner {
    height: 75px;
    padding: 15px;
    border-radius: 15px;
    margin-top: 5px;
}

div.epg-modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 5; /* Sit on top */
    padding-top: 35vh; /* Location of the box */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

div.epg-modal-content {
    background-color: black;
    color: white;
    margin: auto;
    padding: 20px;
    border: 2px solid #fc3;
    border-radius: 5px;
    width: 35%;
    position: relative;
}

div.epg-modal-title {
    font-size: x-large;
}

p.epg-modal-description {
    font-size: large;
}

div.epg-modal-time {
    color: lightgray;
}

span.epg-modal-close {
    color: #aaaaaa;
    float: right;
    margin-left: 10px;
    font-size: 28px;
    font-weight: bold;
}

span.epg-modal-close:hover,
span.epg-modal-close:focus {
    color: white;
    text-decoration: none;
    cursor: pointer;
}

/*
** Media Queries
*/

@media screen and (max-width: 1260px) {
    div.fast-channel-player-container {
        flex-basis: 35%;
    }

    div.fast-channel-player-inner-container {
        width: 90%;
    }

    div.fast-channel-details-container {
        flex-basis: 55%;
    }

    div.fast-channel-title {
        font-size: large;
    }

    div.fast-channel-program-title {
        font-size: small;
    }
}

@media screen and (max-width: 1180px) {
    div.epg-timeline-empty {
        width: 110px;
    }

    div.epg-timeline-half-hour {
        font-size: medium;
    }

    div.epg-channel, div.epg-program-inner {
        height: 50px;
        padding: 10px;
        border-radius: 5px;
    }

    div.epg-channel {
        width: 70px;
    }

    div.epg-program-inner {
        border-width: 1px;
        font-size: small;
    }

    div.epg-modal-content {
        padding: 15px;
        width: 60%;
    }

    div.epg-modal-title {
        font-size: large;
    }

    p.epg-modal-description {
        font-size: small;
    }

    div.epg-modal-time {
        font-size: small;
    }
}

@media screen and (max-width: 1020px) {
    section#content {
        margin-top: 50px;
    }

    div.fast-channel-container {
        height: auto;
    }

    div.fast-channel-player-container {
        flex-basis: 50%;
    }

    div.fast-channel-details-container {
        flex-basis: 340px;
    }

    div.fast-channel-details-ad {
        float: initial;
        margin-bottom: 10px;
    }

    div.epg {
        height: 500px;
    }
}

@media screen and (max-width: 767px) {
    div.fast-channel-container {
        display: initial;
    }

    div.fast-channel-player-container {
        margin-top: 70px;
    }

    div.fast-channel-player-inner-container {
        width: 60%;
    }

    div.fast-channel-details-container {
        margin-top: 20px;
    }

    div.fast-channel-details-ad {
        float: right;
        margin-bottom: 0;
    }
}

@media screen and (max-width: 575px) {
    div.fast-channel-player-inner-container {
        width: 95%;
    }

    div.fast-channel-details-container {
        margin: 0;
    }

    div.fast-channel-details-ad {
        float: initial;
        margin: 0 auto 10px auto;
    }
}

@media screen and (max-width: 450px) {
    div.epg-timeline-half-hour {
        font-size: small;
    }
}