/*
    Anwendungsspezifische Styles 
    (Kein Outline um Textboxen, kein Drag'n'Drop von Bildern,...)
*/
img {
    -webkit-user-drag: none;
}

input {
    outline: none;
}



/*
    ServerView Stylesheet
*/
body {
    margin: 0;
    text-align: center;
}

#menubutton {
    position: absolute;
    left: 2.4em;
    bottom: 2em;
}

#startscreen_settingsbtn {
    position: absolute;
    left: 2.4em;
    bottom: 2em;
}

#mainmenu {
    position: absolute;
    left: 2.4em;
    bottom: 5em;
    width: 250px;
    height: auto;
}

#mainmenu_list li {
    cursor: pointer;
    border: none;
}

#userimg {
    width: 125px;
    height: 125px;
    margin: auto;
    cursor: pointer;
}

#channel_wrapper {
    width: 75%;
    height: auto;
    margin: auto;
    margin-top: 10em;
}

.channelSlider {
    width: 100%;
    height: 10em;
    max-height: 10em;
    overflow-x: auto;
}

.sliderInactive {
    height: 5em;
}

#server {
    height:98.6vh;
}

.channel {
    width: 32%;
    height: 90%;
    margin: auto;
    margin-top: 8px;
    display: inline-block;
    cursor: pointer;
}

.channelInactive {
    height: 80%;
}

.channel_usercontainer {
    margin-top: 3.2em;
}







/*

    Startscreen Stylesheet

*/

#startscreen_wrapper {
    width: 500px;
    height: auto;
    max-height: 750px;
    margin: auto;
    margin-top: 30px;
    padding-bottom: 16px;
}

#startscreen_userimg {
    width: 150px;
    height: 150px;
    margin: auto;
}

#serverbrowser {
    margin: auto;
    width: 450px;
    height: 325px;
    max-height: 325px;
}

#serverbrowser_list {
    overflow-y: auto;
    height: 209px;
    max-height: 209px;
}

#serverbrowser_add {
    margin-top: 8px;
}

.serverbrowser_listitem_overlay {
    position: relative;
    height: 100%;
    width: 100%;
    z-index: 9999;
}

.serverbrowser_overlaybtn {
    width: 25px;
    height: 25px;
    cursor: pointer;
    margin-top: 1em;
    margin-left: 1em;
    margin-right: 1em;
}



/*

    MessageBox Stylesheets

*/

#global_messagebox {
    display:none;
    width: 100%;
    height: 4.5em;
    position: absolute;
    bottom: 0;
    left: 0;
}



/*

    ChannelView Stylesheets

*/

#channelview {
    position: absolute;
    z-index: 9998;
    width: 100%;
    height: 100%;
    top: 0;
}

#channelview_chat {
    width: 100%;
    height: calc(100% - 136px);
    position: relative;
}

#channelview_chat_list {
    border:none;
    max-height: 100%;
    overflow-y: auto;
}

#channelview_chat_list li{
    border:none;
}

.channelview_chatmsg {
    width:auto;
    max-width:40vw;
    min-height:50px;
    height:fit-content;
    height:auto;
}

#channelview_uicontainer {
    width: 100%;
    height: 75px;
}

#channelview_uielementwrapper {
    height: 75px;
    max-height: 75px;
    width: 660px;
    margin: auto;
    padding-top: 1em;
}

#channelview_smileybtn {
    display: inline-block;
    margin: 0;
    margin-left: -5px;
    height: 60px;
    border-top-right-radius: 0.5em;
    border-bottom-right-radius: 0.5em;
    margin-top: -2.8em;
    font-size:125%;
}

#channelview_mutebtn {
    display: inline-block;
    height: 45px;
    width: 45px;
    margin-top: -2.8em;
    margin-right: 12em;
}

#channelview_textbox {
    display: inline-block;
    appearance: textarea;
    border: 1px solid gray;
    height: 60px;
    overflow: auto;
    padding: 2px;
    resize: none;
    width: 600px;
    border-top-left-radius: 0.5em;
    border-bottom-left-radius: 0.5em;
    text-align: left;
    outline: none;
    padding: 2px;
    box-sizing: border-box;
    margin: 0;
}

#channelview_usercontainer {
    display:none;
    position:absolute;
    z-index:9999;
    width: 300px;
    height:125px;
    top:0;
    right:0;
    overflow-y: auto;
}

.usercontainer_user {
    width:50px;
    height:50px;
}

#channelview_smileycontainer {
    display:none;
    position:absolute;
    z-index:9999;
    width: 600px;
    height:100px;
    bottom:-15px;
    left:calc(50% - 300px);
    overflow-y: auto;
    padding:0;
}

.smiley {
    font-size: 175%;
}

/*

    Context Menues

*/

#context_user {
    display:none;
    width:250px;   
}

#context_server {
    display:none;
    width:250px;   
}

#context_server_admin {
    display:none;
}

#context_server_channel {
    display:none;
}

.contextmenu {
    position:absolute;
    background-color:rgba(0, 0, 0, 0.85);
    color:whitesmoke;
    border: 1px solid black;
}