/* MAIN ------------------------------------------------ */
:root{
    --color-background: #131313;
    --color-navigation: #232323;
    --color-text: #fff;
    --color-text-invert: #000;
    --color-text-grey: #aaa;
    --color-primary: #ec5e28;
    --color-overlay: #292929e5;
    --color-card-data: #212121;
    --color-card-chip: #333;
    --color-card-footer: #444;
    --color-batch: #ffaef7;
    --color-weekly: #f5ffa2;
    --color-movie: #ff8b8b;
}

@font-face {
    font-family: 'Inter';
    font-style:  normal;
    font-weight: 400;
    font-display: swap;
    src: url("fonts/Inter-Regular.woff2?v=3.15") format("woff2"),
        url("fonts/Inter-Regular.woff?v=3.15") format("woff");
}

@font-face {
    font-family: 'Inter Black';
    font-weight: 700;
    font-display: swap;
    src: url("fonts/Inter-Black.woff2?v=3.15") format("woff2"),
        url("fonts/Inter-Black.woff?v=3.15") format("woff");
}

@font-face {
    font-family: 'JetBrains Mono';
    font-weight: 400;
    font-display: swap;
    src: url("fonts/JetBrainsMono-Regular.woff2") format("woff2");
}

body {
    margin: 0;
    font-size: 16px;
    font-family: 'Inter', sans-serif;
    background-color: var(--color-background);
    color: var(--color-text);
}

.horizontal-line {
    margin: 1rem 0;
    padding: 0;
    display: block;
    border-bottom: 1px solid var(--color-text);
}

/* SCROLL BAR ------------------------------------------ */

/* width */
::-webkit-scrollbar {
    width: .8rem;
}

/* Track */
::-webkit-scrollbar-track {
    background: var(--color-navigation); 
}

/* Handle */
::-webkit-scrollbar-thumb {
    background: #888;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
    background: #555; 
}

/* LINKS ----------------------------------------------- */
a {
    color:inherit;
    text-decoration:none;
    transition:color .3s;
    outline:0
}
button {
    background-color: transparent;
    color: var(--color-text);
}
a:hover,
button:hover {
    color: var(--color-primary); 
}
a:visited {
    color:inherit;
}
a:visited:hover {
    color: var(--color-primary);
}

/* CHIP ------------------------------------------------ */
/*
.chip {
    align-items: center;
    background-color: var(--color-card-chip);
    display: -ms-inline-flexbox;
    display: inline-flex;
    -ms-flex-align: center;
    font-size: .8rem;
    height: 1.2rem;
    line-height: .8rem;
    margin: .1rem;
    max-width: 320px;
    overflow: hidden;
    padding: 0 .4rem;
    text-decoration: none;
    text-overflow: ellipsis;
    vertical-align: middle;
    white-space: nowrap;
    border-radius: 5px;
}
.chip.batch {
    background-color: var(--color-batch);
    color: var(--color-text-invert);
}
.chip.weekly {
    background-color: var(--color-weekly);
    color: var(--color-text-invert);
}
.chip.movie {
    background-color: var(--color-movie);
    color: var(--color-text-invert);
}*/

/* BUTTON ---------------------------------------------- */
.button {
    -moz-appearance: none;
    -webkit-appearance: none;
    align-items: center;
    border-radius: 5px;
    box-shadow: none;
    display: inline-flex;
    font-size: 1rem;
    line-height: 1.5;
    position: relative;
    border: 1px solid #dbdbdb;
    cursor: pointer;
    justify-content: center;
    padding-bottom: calc(.5em - 1px);
    padding-left: 1em;
    padding-right: 1em;
    padding-top: calc(.5em - 1px);
    text-align: center;
    white-space: nowrap;
    margin-right: 1rem;
}
.buttons .button {
    margin-bottom: .5rem;
}
.buttons {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
}
.buttons:last-child {
    margin-bottom: -.5rem;
    margin-right: 0;
}

/* SWITCH BUTTON --------------------------------- */
.switch-button {
    background: var(--color-card-data);
    border-radius: 5px;
    overflow: hidden;
    width: 100px;
    text-align: center;
    color: var(--color-text);
    position: relative;
    padding-right: 100px;
    position: relative;
    font-weight: bold;
}
.switch-button::before {
    content: "Local";
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    width: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    pointer-events: none;
    font-weight: bold;
}
.switch-button-checkbox {
    cursor: pointer;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    z-index: 2;
}
.switch-button-checkbox:checked+.switch-button-label::before {
    transform: translateX(100px);
    transition: transform 200ms linear;
}
.switch-button-checkbox+.switch-button-label {
    position: relative;
    padding: 15px 0;
    display: block;
    user-select: none;
    pointer-events: none;
}
.switch-button-checkbox+.switch-button-label::before {
    content: "";
    background: var(--color-primary);
    height: 100%;
    width: 100%;
    position: absolute;
    left: 0;
    top: 0;
    border-radius: 5px;
    transform: translateX(0);
    transition: transform 200ms;
}
.switch-button-checkbox+.switch-button-label .switch-button-label-span {
    position: relative;
}

/* NAVIGATION BAR -------------------------------------- */
.nav {
    background: var(--color-navigation);
    color: var(--color-text);
    height: 3.5rem;
    width: 100%;
    position: relative;
    overflow: hidden;
}
.second-nav>.nav {
    padding: 0 3rem;
    height: 3.5rem;
    background-color: var(--color-primary);
    box-sizing: border-box;
}
.nav>.nav-wrap {
    display: grid;
    grid-template-columns: 100px 1fr;
    padding: 0 3rem;
    position: relative;
    z-index: 30;
}
.nav>.nav-wrap>.nav-logo,
.nav>.nav-wrap>.nav-items {
    display: flex;
    flex-wrap: wrap;
}
.nav>.nav-wrap>.nav-logo>.logo {
    height: 3.5rem;
    line-height: 4.5rem;
    width: 100%;
}
.nav>.nav-wrap>.nav-items>.nav-item,
.mobile-nav>.mobile-nav-items>.nav-item,
.second-nav>.nav>.nav-items>.nav-item {
    color: var(--color-text);
    text-align: center;
    min-width: 5rem;
    padding: 0 .5rem;
    line-height: 3.5rem;
    height: 3.5rem;
    white-space: nowrap;
}
.second-nav>.nav>.nav-items>.nav-item {
    padding: 0;
    margin-right: 2rem;
}
.second-nav>.nav>.nav-items>.nav-item:last-child {
    margin-right: 0;
}
.nav>.nav-wrap>.nav-items>.nav-item.active,
.second-nav>.nav>.nav-items>.nav-item.active {
    font-size: 1.2rem;
    font-weight: bold;
}
.nav>.nav-wrap>.mobile-nav-button-container {
    display: none;
    line-height: 4.5rem;
    text-align: right;
}
.nav>.nav-wrap>.mobile-nav-button-container>.mobile-nav-button {
    margin-right: 0;
    border: 0;
    background-color: var(--color-navigation);
    padding: .5rem;
}
.nav>.nav-wrap>.mobile-nav-button-container>.mobile-nav-button>img {
    height: 1.5rem;
    width: 1.5rem;
}
@media (min-width:840px) {
    .mobile-nav {
        display: none !important;
    }
}
@media(max-width:840px) {
    .nav>.nav-wrap {
        padding: 0 1rem;
    }
    .nav>.nav-wrap>.nav-items {
        display: none;
    }
    .nav>.nav-wrap>.mobile-nav-button-container {
        display: block;
    }
}

/* MOBILE NAVIGATION ----------------------------------- */
.mobile-nav {
    display: none;
}
.mobile-nav>.mobile-nav-items {
    background-color: var(--color-card-footer);
}
.mobile-nav>.mobile-nav-items>.nav-item {
    display: block;
    width: 100%;
    padding: 0 1rem;
    text-align: left;
    line-height: 2.5rem;
    height: 2.5rem;
}

/* FOOTER ---------------------------------------------- */
.footer {
    background-color: var(--color-navigation);
    min-height: 10rem;
    margin-top: 0;
    padding: 4rem 3rem;
}

@media(max-width:840px) {
    .footer {
        padding: 2rem 1rem;
    }
    .second-nav>.nav {
        padding: 0 1rem;
    }
}

/* BUTTON IMAGES --------------------------------------- */
img.discordimg {
    height: 20px!important;
    margin-right: 5px!important;
}

img.kofiimg {
    height: 13px!important;
    width: 20px!important;
    margin-right: 5px!important;
}

.might-overflow {
    float: left;
    overflow: hidden;
    -ms-text-overflow: ellipsis;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 340px;
}

.might-overflow:hover {
    overflow: visible;
}

.might-overflow:hover span {
    position: relative;
    background-color: #212121;
    padding: 5px;
    padding-left: 0;
}
