.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 300px;
    height: 100%;
    background-color: #01161E;
    color: #fafafa;
    padding-left: 18px;
    padding-bottom: 2vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: auto;
    transition: 250ms;
}

.sidebar h1 {
    padding-left: 7px;
    font-size: 3rem;
    margin: 2vh 0;
}

.sidebar h2 {
    padding-left: 7px;
    font-size: 1.5rem;
    margin: 0;
}

.sidebar-page {
    margin-left: 300px;
}

.channel-sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 15px 0;
    padding-right: 15px;
}

#create-channel-button {
    height: 24px;
    width: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: white;
    padding: 0;
    filter: brightness(70%);
}

#create-channel-button:hover,
#create-channel-button:focus {
    filter: brightness(125%);
}

#channel-list {
    padding-right: 18px;
}

.channel-container {
    border: none;
    border-radius: 0.5rem;
    background: none;
    color: #fafafa;
    display: flex;
    width: 100%;
    justify-content: start;
    align-items: center;
    gap: 5px;
    padding: 0.3rem 7px;
    margin: 5px 0;
    filter: brightness(70%);
}

.channel-container:hover,
.channel-container:focus {
    filter: brightness(90%);
    background-color: rgba(255, 255, 255, 0.1);

}

.channel-container.selected {
    filter: brightness(125%);
    background-color: rgba(255, 255, 255, 0.2);
}

.channel-container > svg {
    flex-shrink: 0;
}

.channel-container > span {
    display: block;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#main-sidebar-bottom {
    padding-right: 18px;
    text-align: center;
}

#logout-button {
    width: 100%;
}

#sidebar-profile {
    display: flex;
    justify-content: start;
    align-items: center;
    padding: 5px;
    margin-bottom: 5px;
    border-radius: 2rem;
}

#sidebar-profile:hover,
#sidebar-profile:focus,
#sidebar-profile.selected {
    background-color: rgba(255, 255, 255, 0.1);
    cursor: pointer;
}

#avatar-label {
    max-width: 220px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#sidebar-profile-image-container {
    border: #01161E solid 2px;
    border-radius: 50%;
    overflow: hidden;
    height: 30px;
    width: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
}

#sidebar-profile-picture-placeholder {
    height: 30px;
    width: 30px;
    background-color: pink;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

#sidebar-profile-picture-placeholder.hide {
    display: none;
}

#sidebar-profile-picture-placeholder-letter {
    font-size: 1rem;
    padding: 0;
    margin: 0;
    font-weight: bold;
    color: #01161E;
}

#sidebar-profile-image {
    height: 100%;
    width: 100%;
}

.show-on-collapse {
    display: none;
}

@media (max-width: 650px) {
    .show-on-collapse {
        display: flex;
    }

    .hide-on-collapse {
        display: none;
    }

    #expand-sidebar-button {
        height: 35px;
        width: 35px;
        background: none;
        border: none;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0;
    }

    #expand-sidebar-button > svg {
        fill: #fafafa;
        stroke: #fafafa;
    }

    #main-sidebar-top {
        display: none;
    }

    .expanded #main-sidebar-top {
        display: block;
    }

    .expanded .channel-sidebar-header {
        padding-right: 0;
    }

    .sidebar {
        z-index: 1;
        width: 100%;
        justify-content: start;
        padding: 15px;
    }

    .sidebar:not(.expanded) {
        position: fixed;
        top: 0;
        left: 0;
        height: 100px;
        overflow: hidden;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    #main-sidebar-bottom {
        padding-right: 0;
    }

    .expanded #main-sidebar-bottom {
        padding-right: 18px;
    }

    .sidebar h1 {
        padding: 0;
        margin: 0;
    }

    .sidebar.expanded {
        height: 100%;
    }

    .sidebar-page {
        margin-left: 0;
        margin-top: 100px;
    }
}