@font-face {
    font-family: 'Noto Sans';
    font-style: normal;
    font-weight: 400;
    src: local('fonts/Noto Sans')
}
html {
    color: #b5a997;
}
body {
    height: 100%;
    font-family: 'Noto Sans', sans-serif;
    margin-left: 1em;
    margin-top: 1em;
    margin-right: 1em;
}

a, a:link, a:visited, a:hover, a:active{
    color: #b5a997;
    text-decoration: none;
}


#info {
    display: flex;
    flex-direction: column;
}

#middle-bar {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

#middle-bar #player {
    flex: 10;
}

#middle-bar #player #visualizer {
    display: block;
    width: 175px;
    height: 175px;
    padding: 0;
}

#middle-bar #np-container {
    flex: 90;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    /*height: 75px;*/
}

#middle-bar #auth {
    flex: 5;
    display: flex;
    flex-direction: row;
    align-items: center;
}

#middle-bar #auth span {
    flex: 1;
    flex-wrap: nowrap;
    text-wrap: nowrap;
    display: flex-inline;
    margin: 1em;
    cursor: pointer;
}

#sponsorship {
    margin-top: 0.8em;
}
#help-ukraine {
    margin-top: 0.2em;
}

#player {
    margin-bottom: 1em;
    height: 175px;
    width: 175px;
    background-size: 175px 175px;
    background-position: left top;
    background-repeat: no-repeat;
    background-image: url("../img/unknown_track.png");
    min-width: 175px;
    max-width: 180px;
    transition: background-image 0.8s ease-in-out;
}

#player-status {
    height: 75px;
    width: 75px;
    background-position: center center;
    background-repeat: no-repeat;
    cursor: pointer;
    position: absolute;
    left: 125px;
    top: 125px;
    transition: opacity 0.2s, top 0.2s;
}

#player-status:hover {
    top: 120px;
}

#player-status.paused {
    background-image: url("../img/play-btn.png");
    opacity: 0.8;
}

#player-status.paused:hover {
    opacity: 1;
}


#player-status.playing {
    background-image: url("../img/pause-btn.png");
    opacity: 1;
}

#np {
    cursor: pointer;
}

#np a{
    color: #b5a997;
}

#buy {
    display: none;
}

#buy a {
    color: #97b5a6;
}


#links {
    display: flex;
    height: 16px;
    width: 100%;
    flex-direction: row;
    align-items: center;
}

#links .small_btn {
    height: 16px;
    width: 16px;
    margin-right: 4px;
    margin-left: 4px;
}

#menu {
    height:300px;
    width:100%;
    display: none;
    background: rgba(0,0,0,0.4);
}


input {
    background-color: black;
    color: lightgreen;
    border: none;
    margin-right: 2px;
}

#command-response {
    color: #b5a997;
    background: #423c4a;
    border-radius: 1em;
    border-color: #b5a997;
    border-style: solid;
    border-width: 1px;
    font-size: 0.8em;
    padding-top: 0;
    padding-bottom: 0;
    margin-top: 0;
    margin-bottom: 0;
    white-space: pre-wrap;
    height: 0;
    opacity: 0;
    padding-left: 1em;
    padding-right: 1em;
    transition-property: height, opacity, margin-bottom, margin-top, padding-top, padding-bottom;
    transition-duration: 1s;
}

#command-response.visible {
    display: block;
    margin-top: 0.5em;
    margin-bottom: 0.5em;
    padding-top: 1em;
    padding-bottom: 1em;
    height: max-content;
    opacity: 1;
}

#auth-status.hidden {
    display: none;
}

#sign-in.hidden {
    display: none;
}

#sign-up.hidden {
    display: none;
}

#sign-out.hidden {
    display: none;
}

.auth-container {
    display: flex;
    flex: 4;
    flex-direction: column;
    justify-content: left;
    align-items: left;
    margin: 1em;

    color: #b5a997;
    background: #423c4a;
    border-radius: 1em;
    border-color: #b5a997;
    border-style: solid;
    border-width: 1px;
    font-size: 0.8em;

    transition-property: height, opacity, margin-bottom, margin-top, padding-top, padding-bottom;
    transition-duration: 1s;
}

.auth-container.hidden {
    display: none;
    height: 0;
    opacity: 0;
    margin-top: 0;
    margin-bottom: 0;
    padding-top: 0;
    padding-bottom: 0;
}

.auth-container input {
    max-width: 30%;
    flex: 1;
    margin: 0.5em;
    background-color: black;
    color: #b5a997;
    border-style: solid;
    border-width: 1px;
    border-color: #b5a997;
    border-radius: 0.5em;
}

.auth-container input[type=button] {
    background-color: #b5a997;
    color: #423c4a;
    border-style: solid;
    border-width: 1px;
    cursor: pointer;
}

.auth-container span {
    margin: 0.5em;
    color: red;
}

#chat {
    float: none;
    clear: both;
    display: flex;
    flex-direction: column;
}

#inputs {
    display: flex;
}

#nick {
    flex: 1;
    font-size: 1em;
}
#say {
    flex: 9;
    font-size: 1em;
}

#log-container {
    margin-top: 0.5em;
    display:flex;
    flex-direction: row;
}

#log {
    width: 90%;
}

#log .message {
    color: #b5a997;
    word-break: break-word;
}

#log .message .ts {
    font-size: 0.8em;
    display: inline;
}

#log .message .nick {
    color: #c08b3b;
    cursor: pointer;
    display: inline;
    padding-left: 1em;
}

#log .message .text {
    padding-left: 1em;
    display: inline;
}

#log .message .text p {
    display: inline;
}

#log .message img {
    max-width: 45%;
}


#log .message a {
    text-decoration: underline;
    cursor: pointer;
}

#userlist {
    display: flex;
    flex: 1;
    color: #b5a997;
    flex-direction: column;
    border-left: 1px solid black;
    padding-top: 5px;
}

#userlist .user {
    display: flex;
    flex-direction: row-reverse;
    flex-wrap: nowrap;
    justify-content: flex-end;
    cursor: pointer;
    color: #c08b3b;
    align-items: center;
    padding-left: 5px;
}

.user .role-icon {
    width: 16px;
    height: 16px;
    margin-left: 0.5em;
}

.flag {
  margin-left: 0.5em;
  margin-right: 0.5em;
}

#footer {
    margin-top: 1em;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    vertical-align: center;
}

#footer * {
    display: flex;
    margin-right: 0.5em;
    height: 2em;
}

@media (max-width: 480px) {

    input {
        min-width: 0;
        height: 1.5em;
    }

    #middle-bar {
        display: block;
    }

    #userlist {
        display: none;
    }

    #donate div {
        display: none;
    }

    #nick {
        flex: 1;
    }

    #say {
        flex: 1;
    }

    #log .message .ts {
        display: none;
    }

    #log .message .nick {
        padding-left: 0;
    }

    #log .message img {
        max-width: 85%;
    }

    #log .message {
        overflow-wrap: break-word;
    }

    #volume {
        display: none;
    }

    #np-container {
       white-space: nowrap;
       overflow: hidden;
    }

    #links {
        display: none;
    }

    #footer {
        display: none;
    }


}
