/*
This Source Code Form is subject to the terms of the Mozilla Public
License, v. 2.0. If a copy of the MPL was not distributed with this
file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/

.dark-popup {
    background-color: rgba(23, 23, 23, 0.75);
}

#menu-popup {
    overflow-y: hidden;
}

#mainmenu-items .mainmenu-item {
    text-align: center;
    font-size: 16pt;
    border-radius: 5px;
    border: 1px solid white;
    padding: 1em;
    margin-bottom: 1em;
}

#mainmenu-items .mainmenu-item-sm {
    font-size: 14pt;
    padding: 0.5em;
}

#playerinfo {
    position: absolute;
    left: 0;
    top: var(--f7-statusbar-height);
    padding: 10px;
    padding-right: 20px;
    padding-bottom: 20px;
    width: 20em;
    height: 70px;
    max-width: 90vw;
    background-image: url(../img/player-info-bg.svg);
    background-size: 100% 65px;
    background-repeat: no-repeat;
    background-position: top 5px left 0px;
}

.usericon {
    border: 2px solid white;
    border-radius: 50%;
    height: 50px;
    width: 50px;
    display: inline-block;
}

#playerinfo .usericon {
    flex-shrink: 0;
}

#playerinfo .username-healthbar {
    margin-bottom: 20px;
    font-size: 16px;
    vertical-align: middle;
    width: 100%;
}

.username-healthbar .username {
    padding: 0px 10px;
    overflow: hidden;
    white-space: nowrap;
}

.username-healthbar .healthbar {
    width: 100%;
    max-width: 20em;
    background: rgba(23, 23, 23, 0.25);
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
    border: 1px solid white;
    border-left: none;
}

.healthbar span {
    background-color: #3ffc5e;
    border-top-right-radius: 2px;
    border-bottom-right-radius: 2px;
}

#player-level-badge {
    margin-bottom: 4px;
    margin-left: auto;
}

#messagebar {
    background-color: rgba(23, 23, 23, 0.75);
}

#messagebar #messages-content {
    max-height: 33vh;
    overflow-y: auto;
}

#messagebar #chatbox {
    overflow-y: hidden;
}

#messagebar .toggle-messages {
    width: 64px;
}