#rightPane {
    width: 320px;
    max-width: 100%;
    position: fixed;
    left: 100%;
    top: 0px;
    background-color: rgba(var(--secondaryColor), 1);
    transition: all .3s;
    color: white;
    box-sizing: border-box;
    padding: 45px 30px;
    z-index: 1000;
}

#rightPane.active {
    left: calc(100% - 320px);
}

#rightPane .headline {
    font-size: 20px;
    text-transform: uppercase;
}

#rightPane .headline.channel {
    width: calc(100% - 40px);
    overflow: hidden;
}

#settingsMenu {
    margin-top: 15px;
}

#settingsMenu>div {
    border-top: 1px solid rgba(255, 255, 255, .1);
}

#settingsMenu>div:first-child {
    border-top: none;
}

#settingsMenu .menu {
    padding-top: 20px;
    padding-bottom: 20px;
    text-transform: uppercase;
    transition: all .2s;
    position: relative;
    cursor: pointer;
    font-size: 16px;
}

#settingsMenu .menu:hover {
    color: rgba(var(--mainColor), 1);
}

#settingsMenu .menu:after {
    content: "\f053";
    font-family: "Font Awesome 5 Pro";
    font-size: 12px;
    opacity: 0;
    position: absolute;
    bottom: calc(50% - 7px);
    left: -17px;
    z-index: 99;
    transition: all .2s;
}

#settingsMenu .menu:hover:after {
    color: rgba(var(--mainColor), 1);
}

#settingsMenu .menu.selected {
    color: rgba(var(--mainColor), 1);
}

#settingsMenu .menu.selected:after {
    opacity: 1;
}

#settingsMenu .submenuFrame {
    color: white;
    padding-left: 10px;
    box-sizing: border-box;
    width: 100%;
    margin-bottom: 20px;
    margin-top: -10px;
    font-size: 14px;
    text-transform: uppercase;
}

#settingsMenu .submenu {
    padding: 7px;
    box-sizing: border-box;
    transition: all .2s;
    position: relative;
    cursor: pointer;
    font-size: 14px;
    border-top: 1px solid rgba(255, 255, 255, .1);
}

#settingsMenu .submenu:after {
    content: "\f0d9";
    font-family: "Font Awesome 5 Pro";
    font-size: 10px;
    opacity: 0;
    position: absolute;
    bottom: calc(50% - 4px);
    left: -10px;
    z-index: 99;
    transition: all .2s;
}

#settingsMenu .submenu:first-child {
    border-top: none;
}

#settingsMenu .submenu:hover {
    color: rgba(var(--mainColor), 1);
}

#settingsMenu .submenu:hover:after {
    color: rgba(var(--mainColor), 1);
}

#settingsMenu .submenu.selected {
    color: rgba(var(--mainColor), 1);
}

#settingsMenu .submenu.selected:after {
    opacity: 1;
}

#channels {
    margin-top: 15px;
}

#channels .channel {
    border-top: 1px solid rgba(255, 255, 255, .1);
    padding-top: 20px;
    padding-bottom: 20px;
    transition: all .2s;
    position: relative;
    cursor: pointer;
    opacity: .6;
}

#channels .channel:first-child {
    border-top: none;
}

#channels .channel.newMessages {
    color: rgba(var(--mainColor), 1);
    opacity: 1;
}

#channels .channel.newMessages .unread {
    border-radius: 180px;
    background-color: #fc3d39;
    width: 17px;
    height: 17px;
    font-weight: 300;
    font-size: 10px;
    line-height: 16px;
    z-index: 1;
    text-align: center;
    color: white;
    display: inline-block;
    position: relative;
    top: -2px;
    margin-right: 3px;
}

#channels .channel .headline {
    font-size: 15px;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 10px;
    display: inline-block;
    padding-right: 40px;
    box-sizing: border-box;
}

#channels .channel .members,
#channels .channel .created {
    width: calc(100% - 50px);
    font-size: 12px;
    color: white;
    opacity: .7;
    line-height: 15px;
}

#channels .channel .members {
    margin-bottom: 3px;
    opacity: 1;
}

#channels .channel .icon {
    width: 32px;
    height: 32px;
    border-radius: 3px;
    position: absolute;
    right: 0px;
    top: calc(50% - 16px);
    background-color: rgba(var(--mainColor), 1);
    transition: all .2s;
}

#channels .channel .icon:after {
    content: "\f054";
    font-family: "Font Awesome 5 Pro";
    font-size: 16px;
    color: white;
    position: absolute;
    bottom: calc(50% - 10px);
    left: calc(50% - 5px);
}

#channels .channel>div:hover > .icon {
    opacity: .8;
}

.createNewChannel {
    text-transform: uppercase;
    display: table;
    font-size: 14px;
    width: 100%;
    cursor: pointer;
    position: absolute;
    bottom: 30px;
    left: 0px;
    padding-top: 30px;
    padding-left: 30px;
}

.createNewChannel:hover {
    opacity: .7;
}

.createNewChannel .cell {
    display: table-cell;
    vertical-align: middle;
    text-align: left;
}

.createNewChannel .cell.text {
    width: 100%;
}

.createNewChannel .icon,
.back .icon {
    width: 32px;
    height: 32px;
    border-radius: 3px;
    background-color: rgba(var(--mainColor), 1);
    transition: all .2s;
    display: block;
    margin-right: 10px;
    position: relative;
}

.back .icon {
    position: absolute;
    top: 41px;
    right: 20px;
    cursor: pointer;
}

.createNewChannel .icon:after {
    content: "\2b";
    font-family: "Font Awesome 5 Pro";
    position: absolute;
    top: 2px;
    left: 10px;
    font-size: 22px;
    font-weight: 300;
    color: white;
}

.back .icon:after {
    content: "\f053";
    font-family: "Font Awesome 5 Pro";
    font-size: 15px;
    color: white;
    position: absolute;
    bottom: calc(50% - 10px);
    left: calc(50% - 5px);
    font-weight: 300;
}

.back .icon:hover {
    background-color: rgba(var(--mainColor), .7);
}

#channels.channel {
    height: calc(100% - 85px);
    box-sizing: border-box;
    position: absolute;
    top: 70px;
    left: 0px;
    width: 100%;
}

#channels.channel .innerChannel {
    height: calc(100% - 96px);
    box-sizing: border-box;
    position: absolute;
    top: 0px;
    left: 0px;
    overflow-y: auto;
    padding-left: 30px;
    padding-right: 30px;
    width: 100%;
}

#channels.channel .message {
    margin-bottom: 10px;
}

#channels.channel .avatar {
    float: left;
    width: 32px;
    height: 32px;
}

#channels.channel .avatar .table {
    display: table;
}

#channels.channel .avatar .table.hide {
    display: none;
}

#channels.channel .avatar .table .cell {
    background-color: rgba(var(--mainColor), 1);
    border-radius: 3px;
    font-size: 14px;
    width: 32px;
    height: 32px;
    display: table-cell;
    text-align: center;
    vertical-align: middle;
}

#channels.channel .bubble {
    width: calc(100% - 42px);
    box-sizing: border-box;
    float: left;
    margin-left: 10px;
    background-color: white;
    border-radius: 3px;
    color: #333;
    padding: 10px;
    font-size: 14px;
}

#channels.channel .bubble .header {
    font-weight: 600;
    margin-bottom: 5px;
}

#channels.channel .bubble .header span {
    font-weight: 400;
    display: block;
    font-size: 12px;
    opacity: .5;
    text-transform: uppercase;
}

#channels.channel .newMessage {
    position: absolute;
    bottom: 0px;
    left: 0px;
    width: 100%;
    background-color: rgba(var(--secondaryColor), 1);
    padding: 10px;
    box-sizing: border-box;
}

#addChannelCoaches,
#addChannelPlayers {
    display: none;
}

#addChannelCoaches.active,
#addChannelPlayers.active {
    display: block;
}

.newMessage textarea {
    width: 100%;
    min-height: 50px;
    box-sizing: border-box;
    border: none;
    resize: none;
    font-size: 14px;
    color: #333;
    padding: 5px;
    border-radius: 3px;
    display: block;
    margin: 0px;
}

.newMessage textarea::placeholder {
    font-size: 14px;
    font-family: "Lato", sans-serif;
}

.newMessage span {
    font-size: 10px;
    color: rgba(255, 255, 255, .8);
    font-weight: 300;
    display: block;
    float: left;
    margin-top: 3px;
}

.newMessage input {
    float: right;
    background-color: rgba(var(--mainColor), 1);
    border-radius: 3px;
    border: none;
    color: white;
    font-size: 11px;
    font-weight: 300;
    text-transform: uppercase;
    padding: 4px 10px;
    cursor: pointer;
    transition: all .2s;
    margin: 0px;
    margin-top: 5px;
}

#rightPane .closeRightpane {
    display: none;
}

@media (max-width:1000px) {
    
    #rightPane .closeRightPane {
        display: block;
        height: 60px;
        width: 60px;
        box-sizing: border-box;
        position: absolute;
        cursor: pointer;
        top: 0px;
        right: 0px;
    }
    
    #rightPane .closeRightPane:before {
        content: "\f00d";
        font-family: "Font Awesome 5 Pro";
        position: absolute;
        font-size: 26px;
        top: calc(50% - 13px);
        left: calc(50% - 9px);
        color: white;
        font-weight: 300;
    }
    
}