/* GLOBAL */
:root {
    /* Colors */
    --bg-dark-color: #000000;
    --bg-dark-alt-color: #222222;
    --bg-light-color: #ffffff;
    --text-dark-color: #ffffff;
    --text-light-color: #000000;
    --brand-twitch-color: #bf94ff;

    /* Fonts */
    --font-family: 'Lexend', sans-serif;

    /* Player */
    --player-width: 400px;
    --player-height: 300px;

    /* Breakpoints */
    --breakpoint-xs: 320px;
    --breakpoint-sm: 576px;
    --breakpoint-md: 768px;
    --breakpoint-lg: 992px;
    --breakpoint-xl: 1200px;
    --breakpoint-xxl: 1400px;
}

body {
    font-family: var(--font-family);
    background: var(--bg-dark-alt-color);
    -ms-overflow-style: none;
    scrollbar-width: none;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    /* min-width: 320px; */
    line-height: 1.5;
}

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

iframe {
    border: none;
    width: 100%;
    height: 100%;
}

select {
    width: 100%;
    padding: 10px;
    border: none;
    border-right: 10px solid transparent;
    outline: none;
    background: var(--bg-dark-alt-color);
    color: var(--brand-twitch-color);
    cursor: pointer;
}

button {
    border: none;
    outline: none;
    cursor: pointer;
}

.row {
    display: flex;
    flex-direction: row;
    gap: 15px;
    align-items: center;
}

/* Icons */

i {
    font-size: 14px;
}
@media (min-width: 768px) {
    i {
        font-size: 20px;
    }
}

.fa-comment-dots {
    font-size: 18px;
}
@media (min-width: 768px) {
    .fa-comment-dots {
        font-size: 20px;
    }
}

.fa-right-to-bracket {
    font-size: 16px;
}
@media (min-width: 768px) {
    .fa-right-to-bracket {
        font-size: 18px;
    }
}
.fa-shuffle {
    font-size: 16px;
}
@media (min-width: 768px) {
    .fa-shuffle {
        font-size: 18px;
    }
}

/* #header */

#header {
    background: var(--bg-dark-color);
    color: var(--text-dark-color);
    padding: 10px;
    text-align: center;
    display: flex;
    flex-direction: row;
    gap: 15px;
    align-items: center;
    justify-content: space-between;
}
@media (min-width: 768px) {
    #header {
        padding: 10px 20px;
    }
}

#header h1 {
    margin: 0;
    text-transform: uppercase;
    font-size: 18px;
    letter-spacing: 4px;
}
@media (min-width: 768px) {
    #header h1 {
        font-size: 22px;
    }
}
#header h2 {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 6px;
    line-height: 0;
    color: var(--brand-twitch-color);
}
@media (min-width: 768px) {
    #header h2 {
        font-size: 14px;
    }
}









#header #logo {
    text-align: center;
    width: 30%;
    display: flex;
}
@media (min-width: 768px) {
    #header #logo {
        width: 70%;
        gap: 10px;
    }
}
#header #stats {
    width: 70%;
    display: flex;
    justify-content: flex-end;
    gap: 40px;
}
@media (min-width: 768px) {
    #header #stats {
        width: 30%;
    }
}
#header #stats i {
    color: var(--brand-twitch-color);
}




#header #logo h1 span:first-of-type,
#header #logo h2 span:first-of-type {
    display: none;
}
@media (min-width: 768px) {
    #header #logo h1 span:first-of-type {
        display: unset;
    }
}
@media (min-width: 1200px) {
    #header #logo h2 span:first-of-type {
        display: unset;
    }
}
@media (min-width: 768px) {
    #header #logo h1 span:last-of-type {
        display: none;
    }
}
@media (min-width: 1200px) {
    #header #logo h2 span:last-of-type {
        display: none;
    }
}

#header #streams-online-count,
#header #streams-viewers-count {
    font-weight: 600;
}
@media (min-width: 768px) {
    #header #streams-online-count,
    #header #streams-viewers-count {
        font-size: 20px;
    }
}

/* #nav */
#nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-dark-color);
    padding: 0 10px 10px 10px;
}
@media (min-width: 768px) {
    #nav {
        padding: 0px 20px 10px 20px;
        justify-content: flex-start;
        gap: 20px;
    }
}
#nav > div {
    width: 100%;;
}
@media (min-width: 768px) {
    #nav > div {
        width: auto;
    }
}
@media (min-width: 768px) {
    #nav #join-team {
        margin-left: auto;
    }
}

#nav button,
#nav .button {
    background: none;
    outline: none;
    color: var(--text-dark-color);
    text-decoration: none;
    text-align: center;
    background: #222;
    border: 1px solid #333;
    width: 100%;
    height: 40px;
    display: table-cell;
    vertical-align: middle;
    padding: 0 18px;
}
@media (min-width: 768px) {
    #nav button,
    #nav .button {
        font-size: 18px;
    }
}
#nav .text {
    display: none;
}
@media (min-width: 768px) {
    #nav .text {
        display: unset;
    }
}


/* CONTENT */


#main {
    display: flex;
    flex: 1;
    flex-direction: column-reverse;
    max-width: 100%;
    padding: 0;
    gap: 0;
    justify-content: space-around;
}
@media (min-width: 768px) {
    #main {
        flex-direction: row;
    }
}
#main #content {
    width: 100%;
    padding: 5px 0;
}
#main #players {
    display: flex;
    flex-wrap: wrap;
    align-content: center;
    justify-content: center;
    height: 100%;
}

#main #players .player {
    border: 1px solid #000;
    box-sizing: border-box;
    margin: 5px;
    width: calc(var(--player-width) - 10px);
    height: calc(var(--player-height) - 10px);
}

#main #players .player.offline {
    display: none;
}

#main #players .player.online {
    display: unset;
}

#main #players .player iframe {
    background: var(--bg-dark-color);
}





/* #sidebar */
#sidebar {
    background: var(--bg-dark-color);
    padding: 0 10px;
}
@media (min-width: 768px) {
    #sidebar {
        width: 100%;
        max-width: 300px;
    }
}
@media (min-width: 1200px) {
    #sidebar {
        max-width: 360px;
    }
}

#sidebar #chat-container #twitch-chat-embed {
    height: calc(var(--player-container-height) - 10px);
    margin-top: 10px;
}
@media (min-width: 992px) {
    #sidebar #chat-container #twitch-chat-embed {
        height: calc(var(--player-container-height) - 20px);
    }
}


#footer {
    background: var(--bg-dark-color);
    color: var(--text-dark-color);
    padding: 10px 20px;
    display: flex;
    gap: 5px;
    flex-direction: row;
    justify-content: space-between;
}

#footer p {
    margin: 0;
}

#footer a {
    color: #ffffff;
    text-decoration: none;
}

#footer i {
    font-size: 14px;
}

#footer #credits {
    display: flex;
    row-gap: 5px;
    column-gap: 15px;
    flex-wrap: wrap;
}
#footer .row {
    gap: 5px;
    flex-direction: row;
}
@media (min-width: 768px) {
    #footer #credits {
        display: flex;
        gap: 15px;
    }
}
/* .loader {
    display: inline-block;
    font-size: 14px;
    color: #ffffff;
}

.loader::after {
    content: ' ';
    animation: dots 1s infinite;
}

@keyframes dots {
    0%, 20% {
        content: ' .';
    }

    40% {
        content: ' ..';
    }

    60% {
        content: ' ...';
    }

    80%, 100% {
        content: ' ....';
    }
} */

/* Error Pages */
.error-page #main {
    text-align: center;
    color: var(--text-dark-color);
    font-size: 400%;
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    justify-content: center;
}

.error-page #main h1 {
    margin: 0;
}

.error-page #main p {
    margin: 0;
}

