@import url('https://fonts.googleapis.com/css2?family=Montserrat&display=swap');

html {
    background: linear-gradient(45deg, rgba(143,210,247,1) 0%,rgba(13,193,103,1) 100%);
    background-size: cover;
    font-family: Montserrat;
    min-height: 100%;
}

#login {
    min-width: 400px;
    max-width: 700px;
    background: white;
    border-radius: 4px;
    border: 1.5px solid #333;
    margin: 40px auto;
}

#login h2 {
    text-align: center;
}

#login a {
    display: block;
    border-radius: 4px;
    margin: 5px auto;
    text-align: center;
    background: white;
    width: 40%;
}

#login a>img {
    width: 100%;
    border-radius: 4px;
    background: white;
    transition: background 200ms linear;
    box-shadow: 0px 0px 1.5px 1.5px #0004;
    padding: 12px;
}

#login a>img:hover {
    background: #fff9d7;
}

input[type="text"], textarea {
    background-color: #F7F7F7;
    border: none;
    border-radius: 6px;
    font-size: 1.15rem;
    padding: 6px;
    box-shadow: 0px 0px 1.5px 1.5px #0006;
    border: 1.5px solid #0000;
    border-spacing: 4px;
    transition: border 150ms linear;
    min-width: 400px;
}

input[type="text"]:hover, textarea:hover {
    border: 1.5px solid deeppink;
    border-spacing: 0px;
}

input[type="text"]:focus, textarea:focus {
    outline: none;
    border: 1.5px solid deeppink;
}

#credentials {
    font-size: 0.9rem;
    text-align: center;
    background-color: #fff6d7;
    border-radius: 5px;
    padding: 3px;
    margin: 2px;
    margin-bottom: 8px;
}


#quorum {
    font-size: 0.9rem;
    text-align: center;
    background-color: #c5f5bb;
    border-radius: 5px;
    padding: 3px;
    margin: 2px;
    margin-bottom: 8px;
    display: none;
}

footer {
    font-size: 0.8rem;
    text-align: center;
    background-color: #d7eeff99;
    border-radius: 5px;
    padding: 2px;
    margin: 4px auto;
    text-align: center;
    position: absolute;
    bottom: 10px;
    left: 5%;
    width: 90%;
}

#sidebar {
    width: 280px;
    display: inline-block;
}

#action_picker {
    background-color: #F7F7F7;
    display: block;
    border-radius: 6px;
    margin: 4px;
    text-indent: 0px;
    text-align: center;
    padding-top: 0px;
}

#action_picker ul {
    list-style: none;
    margin: 0px auto;
    padding: 0px;
    display: inline-block;
    width: 100%;
}

#action_picker li {
    background-color: #afc6d0;
    color: white;
    border-radius: 5px;
    margin: 8px;
    padding: 4px;
    font-size: 0.9rem;
    font-weight: bold;
    box-shadow: 0px 4px #7c8f96;
    text-decoration: none;
    display: inline-block;
    width: calc(100% - 40px);
}

#action_picker a {
    color: white;
    text-decoration: none;
}

#action_picker li:hover {
    background-color: #d2e7f1;
    cursor: pointer;
}

#action_picker li[type="active"] {
    background-color: #c90584;
    box-shadow: 0px 4px #980b8c;
}

#action_picker li[type="active"]:hover {
    background-color: #e80d9b;
    cursor: pointer;
}




#header {
    text-align: center;
}

#header img {
    width: 320px;
}

#tos {
    min-width: 700px;
    max-width: 900px;
    background: white;
    border-radius: 4px;
    border: 1.5px solid #333;
    margin: 40px auto;
}


#channels {
    width: calc(100% - 310px);
    height: 500px;
    display: inline-block;
    vertical-align: top;
    margin-bottom: 25px;
}

.channel {
    overflow-y: scroll;
    height: 480px;
    width: 100%;
    background: white;
    border-radius: 4px;
    border: 1.5px solid #333;
    margin: 3px auto;
    padding: 4px;
    display: inline-block;
}

.line {
    min-height: 1.25rem;
    line-height: 1rem;
    width: calc(98% - 4px);
    margin: 2px;
    vertical-align: top;
    margin-bottom: 6px;
    border: 1px solid #0001;
}

.line > * {
    vertical-align: top;
}

.line:nth-child(odd) {
    background-color: rgba(236, 243, 250, 0.61);
}

.topic {
    position: relative;
    width: 100%;
    height: 20px;
    background-color: #fffdef;
    z-index: 5;
    font-size: 0.9rem;
    font-weight: bold;
    border-radius: 4px;
    padding: 2px;
    border: 1px solid #333;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

.timestamp {
    opacity: 75%;
    width: 180px;
    display: inline-block;
    height: 1.25rem;
    line-height: 1rem;
    font-size: 11px;
    background-image: url(/images/clock.svg);
    background-size: 16px 16px;
    background-position: 2px 2px;
    background-repeat: no-repeat;
    text-indent: 22px;
    padding-top: 2px;
 }

.name {
    opacity: 75%;
    width: 360px;
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-weight: bold;
    font-size: 0.8rem;
    color: #006;
    padding: 3px;
    background-image: url(/images/user.png);
    background-size: 14px 16px;
    background-position: 2px 2px;
    background-repeat: no-repeat;
    text-indent: 20px;
}

.message {
    width: 100%;
    display: block;
    white-space: pre-wrap;
    position: relative;
    padding: 4px;
    font-size: 0.95rem;
    border-top: 1px solid #9991;
    color: black;
}


.message_off {
    width: 100%;
    display: block;
    white-space: pre-wrap;
    position: relative;
    padding: 4px;
    font-size: 0.95rem;
    border-top: 1px solid #9991;
    color: rebeccapurple;
}


#userlist_wrapper {
    display: inline-block;
    background-color: aliceblue;
    width: calc(100% - 20px);
    border-radius: 6px;
    height: 400px;
    padding: 4px;
    vertical-align: top;
    position: relative;
    margin: 4px;
    overflow-y: scroll;
}

#userlist_wrapper h1 {
    font-size: 1rem;
    margin: 0px;
}

#userlist {
    font-size: 0.875rem;
    margin-top: 0px;
    margin-left: 8px;
    padding: 12px;
    list-style: url(/images/user.png);
}

#userlist li:nth-child(odd) {
    background-color: #00000006;
}


#main {
    max-width: 95%;
    margin: 0 auto;
    min-height: 400px;
}


input[type="button"] {
    background-color: #2e73b7;
    color: white;
    border-radius: 5px;
    margin: 6px;
    padding: 4px;
    font-size: 1.2rem;
    font-weight: bold;
    box-shadow: 0px 4px #7c967d;
    vertical-align: top;
    text-decoration: none;
    cursor: pointer;
    display: inline-block !important;
}

.modal {
    display: none;
    position: fixed;
    z-index: 10;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: black;
    background-color: #0006;
}

.modal-content {
    background-color: #FEFEFE;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 760px;
}
.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}


#cpnotif {
    color: white;
    font-size: 1rem;
    background-color: black;
    padding: 20px;
    border-radius: 30px;
    position: fixed;
    top: 50%;
    left: 50%;
    width: 200px;
    margin-top: -30px;
    margin-left: -85px;
    display: block;
    text-align:center;
    transition: opacity 1200ms;
}


.label {
    border-radius: 50%;
    min-width: 16px;
    display: inline-block;
    margin-top: -4px;
    margin-left: 12px;
    color: white;
    background-color: #2e73b7;
    text-align: center;
    font-size: 12px;
    padding: 3px;
    border: 2px solid white;
    height: 16px;
}

li > span:empty {
    border: none;
    background-color: #0000;
}


/* Shrink UI on mobile */
@media screen and (max-width: 1200px) {
    #userlist_wrapper {
        max-width: 280px !important;
    }
    #userlist a {
        display: none;
    }
    #userlist {
        font-size: 0.825rem;
    }
    #sidebar {
        font-size: 0.9rem !important;
        height: 20px;
        margin-top: 0px !important;
        padding: 2px;
        display: inline-block;
        max-width: 240px;
    }

    #action_picker li {
        font-size: 0.8rem;
    }

    .label {
        font-size: 10px;
        height: 12px;
        min-width: 12px;

    }
    .message {
        font-size: 0.8rem;
    }

    .name {
        font-size: 0.75rem;
        width: 200px;
    }

    .timestamp {
        width: 140px;
    }


    #header > img {
        width: 200px;
    }
}



.tribute-container {
    position: absolute;
    top: 0;
    left: 0;
    height: auto;
    overflow: auto;
    display: block;
    z-index: 999999;
}
.tribute-container ul {
    margin: 0;
    margin-top: 2px;
    padding: 0;
    list-style: none;
    background: #efefef;
}
.tribute-container li {
    padding: 5px 5px;
    cursor: pointer;
}
.tribute-container li.highlight {
    background: #ddd;
}
.tribute-container li span {
    font-weight: bold;
}
.tribute-container li.no-match {
    cursor: default;
}
.tribute-container .menu-highlighted {
    font-weight: bold;
}
