body {
    font-family: "Montserrat", sans-serif;
    width: 100%;
    background-color: #ffffff00;
    color: #fefefe;
}

/* ***** Debug blocks ***** */
pre {
    position: absolute !important;
    top: 60px;
}

.dump {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 99999;
}

#error-console {
    font-family: 'Courier New', monospace;
    background: #111;
    color: #ff5555;
    border-top: 2px solid #ff0000;
}

#error-console div {
    margin-bottom: 5px;
    white-space: pre-wrap;
    word-break: break-all;
}

#error-console button {
    background: #ff0000;
    color: white;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

#enable-sync {
    display: none;
    position: fixed;
    bottom: 254px;
    left: 10px;
    z-index: 10000;
}

/* ***** /Debug blocks ***** */

/* ***** hud-menu ***** */

.hud-top {
    position: fixed;
    width: 100%;
    background: rgb(255 255 255 / 4%);
    color: #fefefe;
    font-size: 14px;
    padding: 4px;
    box-shadow: 0px 6px 6px 0px rgb(255 255 255 / 4%);
    z-index: 1000;
}

.hud-menu {
    position: absolute;
    display: flex;
    width: 100%;
    bottom: 12px;
    z-index: 10000;
    align-items: center;
    justify-content: center;
    gap: 14px;
}
.hud-menu button {
    padding: 0;
}
.btn-profile {
    position: relative;
    display: block;
    width: 76px;
    height: 76px;
    background-color: #000000d9;
    border: 2px solid #0d6efd;
    border-radius: 50px;
    padding: 6px !important;
}
.user-lvl {
    position: absolute;
    display: flex;
    top: -2px;
    right: -2px;
    width: 22px;
    height: 22px;
    background: black;
    color: #fefefe;
    font-size: 14px;
    border: 2px solid #0d6efd;
    border-radius: 20px;
    padding: 2px;
    align-items: center;
    justify-content: center;
}
.btn-profile:hover {
    border: 2px solid #0dcaf0;
    transition: all 0.3s ease;
}
.btn-profile:hover .user-lvl {
    border: 2px solid #0dcaf0;
    transition: all 0.3s ease;
}

@media(max-width:540px) {
    .hud-top {
        font-size: 12px;
    }
    .hud-menu {
        gap: 10px;
    }
    .btn-profile {
        width: 58px;
        height: 58px;
    }
    .user-lvl {
        top: -4px;
        right: -4px;
    }
    .hud-menu button img {
        width: auto;
        height: 42px;
    }
}

/* ----- hud-menu-modals ----- */
.modal {
    overflow-y: hidden;
    z-index: 100120;
}
.modal-dialog {
    max-width: unset;
    margin: 0;
}
.modal-content {
    border: 0;
    border-radius: 0;
    height: 100vh;
    background-color: #000000f7;
    color: #fefefe;
}
.modal-header {
    border-bottom: var(--bs-modal-header-border-width) solid #dee2e600;
}
.modal-footer {
    border-top: var(--bs-modal-footer-border-width) solid #dee2e600;
    justify-content: center;
}
.modal-footer .btn {
    color: #fefefe;
}
.modal-footer .btn:active {
    border-color: unset;
}
@media(max-width:540px) {
    .modal-content {
        height: 100vh;
    }
}

/* ***** /hud-menu ***** */

/* ***** Chat ***** */
.messages {
    position: relative;
    width: 100%;
    height: 520px;
    overflow-y: auto;
}
.messages div {
    max-width: 520px;
}

/* ***** /Chat ***** */

.exp {
    position: absolute;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, rgb(255 106 0 / 80%), rgb(94 0 255 / 80%));
    bottom: 0px;
    z-index: 999;
}

/* ***** Main game ***** */

#speed {
    position: fixed;
    top: 90px;
    left: 30px;
    z-index: 999;
}

/* ***** /Main game ***** */

/* ***** Map Objects ***** */
.obj-marker {
    border-radius: 20px;
    border: 1px solid #fefefe;
}
.obj-popup {
    display: block;
    width: 160px;
    height: 240px;
}
.obj-popup img {
    /*width: max-content;*/
    /*height: 100%;*/
}
/* ***** /Map Objects ***** */

.leaflet-control-attribution {display: none !important;}
.leaflet-control-zoom {display: none !important;}
.leaflet-popup-content-wrapper, .leaflet-popup-tip {
    background: rgba(255,55,55,0) !important;
}
.leaflet-container a.leaflet-popup-close-button {
    color: #ffffff !important;
}

main > .container, main > .container-fluid
{
    padding: 70px 15px 20px;
}

.footer {
    background-color: #f5f5f5;
    font-size: .9em;
    height: 56px;
}

.footer > .container, .footer > .container-fluid {
    padding-right: 15px;
    padding-left: 15px;
}

.not-set {
    color: #c55;
    font-style: italic;
}

/* add sorting icons to gridview sort links */
a.asc:after, a.desc:after {
    content: '';
    left: 3px;
    display: inline-block;
    width: 0;
    height: 0;
    border: solid 5px transparent;
    margin: 4px 4px 2px 4px;
    background: transparent;
}

a.asc:after {
    border-bottom: solid 7px #212529;
    border-top-width: 0;
}

a.desc:after {
    border-top: solid 7px #212529;
    border-bottom-width: 0;
}

.grid-view th,
.grid-view td:last-child {
    white-space: nowrap;
}

.grid-view .filters input,
.grid-view .filters select {
    min-width: 50px;
}

.hint-block {
    display: block;
    margin-top: 5px;
    color: #999;
}

.error-summary {
    color: #a94442;
    background: #fdf7f7;
    border-left: 3px solid #eed3d7;
    padding: 10px 20px;
    margin: 0 0 15px 0;
}

/* align the logout "link" (button in form) of the navbar */
.navbar form > button.logout {
    padding-top: 7px;
    color: rgba(255, 255, 255, 0.5);
}

@media(max-width:767px) {
    .navbar form > button.logout {
        display:block;
        text-align: left;
        width: 100%;
        padding: 10px 0;
    }
}

.navbar form > button.logout:focus,
.navbar form > button.logout:hover {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.75);
}

.navbar form > button.logout:focus {
    outline: none;
}

/* style breadcrumb widget as in previous bootstrap versions */
.breadcrumb {
    background-color: var(--bs-gray-200);
    border-radius: .25rem;
    padding: .75rem 1rem;
}

.breadcrumb-item > a {
    text-decoration: none;
}

/* ***** Nav Tabs ***** */
.nav-tabs .nav-link {
    border-radius: 0;
}
.nav-link, .nav-link:hover, .nav-link:focus {
    color: rgba(255, 255, 255, 0.75);
}
