* {
    box-sizing: border-box;
    user-select: none;
}

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

html, body, .content {
    height: 100%;
}

body {
    margin: 0;
    padding: 0;
    background-color: #000;
    color: #fff;
    font-family: Inter, sans-serif;
}

.content {
    display: flex;
}

.sidebar {
    background-color: #111;
    flex-basis: 20%;
    overflow-y: scroll;
}

.emotes {
    flex-grow: 1;
    padding: 1em;
    overflow-y: auto;
}

#list {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
}

.sidebar-info {
    padding: 1em;
    margin-bottom: 1em;
}

.tc {
    text-align: center;
}

.sidebar-category {
    cursor: pointer;
    padding: 0.25em 0.5em;
    height: 36px;
}

.sidebar-category *, .emote * {
    vertical-align: middle;
}

.sidebar-category img {
    margin-right: 1em;
}

.sidebar h1, p {
    margin: 0;
}

.mb1 {
    margin-bottom: 1em;
}

.mb05 {
    margin-bottom: 0.5em;
}

.sidebar h2 {
    margin: 0.1em 0;
    color: #aaa;
    font-size: 1em;
    /*padding-left: 1em;*/
    text-align: center;
}

a {
    font-weight: bold;
    text-decoration: none;
    color: #fff;
}

.sidebar-info a {
    border-bottom: 1px dotted #fff;
}

.emote {
    text-align: center;
    padding: 0.25em;
    cursor: pointer;
    transition: background-color 0.1s ease-in-out;
}

.emote:hover {
    background-color: #333;
}

.emote .img {
    height: 50px;
}

.emote-verified {
    color: #9eaf4d;
}

.emote-osk {
    color: #19ff95;
}

.emote-staff {
    color: #4762fe;
}

.emote-supporter {
    color: #e0520d;
}

.hidden {
    display: none;
}

#toast {
    position: fixed;
    bottom: 1em;
    right: 1em;
    background-color: #333;
    padding: 1em;
    border-radius: 0.5em;
    color: #fff;
    font-size: 1.25em;
    z-index: 100;
    transition: opacity 0.5s ease-in-out;
    pointer-events: none;
    opacity: 0;
}

.hamburger-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4em;
    line-height: 4em;
    padding: 0 1em;
    background-color: #111;
    display: flex;
    justify-content: space-between;
    user-select: none;
}

@media screen and (min-width: 1024px) {
    .sidebar-category.active {
        background-color: #333;
    }

    .hamburger-bar {
        display: none;
    }
}

@media screen and (max-width: 1024px) {
    body.hide-sidebar .sidebar {
        display: none;
    }

    body:not(.hide-sidebar) .sidebar {
        flex-basis: 100%;
    }

    body:not(.hide-sidebar) .emotes, body:not(.hide-sidebar) .hamburger-bar {
        display: none;
    }

    .emotes {
        padding-top: 5em;
    }

    .emote {
        padding: 0.1em;
    }

    #list {
        grid-template-columns: repeat(6, 1fr);
    }
}

@media screen and (max-width: 768px) {
    #list {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media screen and (max-width: 480px) {
    #list {
        grid-template-columns: repeat(2, 1fr);
    }
}