/* @import url('https://fonts.googleapis.com/css?family=Cabin'); */
/* @import url('https://fonts.googleapis.com/css2?family=Noto+Sans:ital,wght@0,400;0,700;1,400;1,700&display=swap'); */
/* @import url('https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap'); */
/* @import url('https://fonts.googleapis.com/css2?family=Chango:ital,wght@0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap'); */
/* @import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap'); */
/* @import url('https://fonts.googleapis.com/css2?family=Rubik:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap'); */
/* @import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap'); */

html {
    -webkit-user-select: none;
}

@font-face {
    font-family: 'arcade';
    src: url('/assets/fonts/arcade.ttf');
}

:root {
    --primary-theme-color: #7197d5;
    --primary-text-color: white;
    --secondary-color: #597d80;
    --accent-light: #cc9a8f;
    --accent: #995c5c;
    --primary-color: #1f3d4c;
    --main: #27292d;
    --lobby-blue: #4299e1;
    --lobby-blue-hover: #3182ce;
    --lobby-shadow: 8px 8px 1px rgba(0, 0, 0, 0.8);
    --lobby-modal-border: 3px solid rgba(0, 0, 0, 0.8);
}

body {
    background-color: #000;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    /*font-family: '04b03', 'Georgia', serif;*/
    font-family: 'Cabin', 'arial', serif;
    line-height: normal;
    -webkit-font-smoothing: antialiased;
    /*overflow: hidden;*/
}

canvas {
    display: block;
    /* necessary to hide scroll bars */
    background-color: black;
}

.absolute-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.absolute-vertical-center {
    position: absolute;
    top: 50%;
    transform: translate(0%, -50%);
    -webkit-transform: translate(0%, -50%);
    -moz-transform: translate(0%, -50%);
    -ms-transform: translate(0%, -50%);
    -o-transform: translate(0%, -50%);
}

/*#expedition-card {
  display: none;
  width: 640px;
  position: absolute;
  top: 10%;
  left: 10%;
1  transform: translate(-10%, -10%);
}
*/

.convoy-tr,
.cursor-pointer {
    cursor: pointer;
}

.cursor-not-allowed {
    cursor: not-allowed !important;
}

.treasure-chest-button {
    background: transparent;
    border: 1px solid #cecece;
    border-radius: 5px;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    -ms-border-radius: 5px;
    -o-border-radius: 5px;
}

.chest-text-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    -webkit-transform: translate(-50%, -50%);
    -moz-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    -o-transform: translate(-50%, -50%);
    color: darkblue;
}

.text-align-center {
    text-align: center;
}

.opacity-100 {
    opacity: 1 !important;
}

.opacity-50 {
    opacity: 0.5 !important;
}

#menu-wrapper {
    user-select: text !important;
    /* height: 100vh; */
    min-width: 100%;
    min-height: 100%;
    padding-top: 30px;
    padding-bottom: 30px;
    /* z-index: 1050; */
}

#game-div canvas {
    position: fixed;
}

#menu-column-main {
    display: flex;
    justify-content: center;
}

.medal {
    min-width: 15px;
    min-height: 25px;
    margin: 0 5px;
}

.gold-medal {
    background: url('/assets/images/gold-medal.png');
    background-repeat: no-repeat !important;
    background-size: contain !important;
}

.silver-medal {
    background: url('/assets/images/silver-medal.png');
    background-repeat: no-repeat !important;
    background-size: contain !important;
}

.bronze-medal {
    background: url('/assets/images/bronze-medal.png');
    background-repeat: no-repeat !important;
    background-size: contain !important;
}

#login-error-message {
    display: none;
}

.footer {
    background-color: white;
    z-index: 10000;
    position: absolute;
    right: 20px;
    bottom: 0;
    padding: 10px;
    margin: 0 auto;
    text-align: center;
    width: 200px;
    -webkit-border-top-left-radius: 5px;
    -webkit-border-top-right-radius: 5px;
    -moz-border-radius-topleft: 5px;
    -moz-border-radius-topright: 5px;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
}

.modal {
    z-index: 10000;
}

#login-div {
    padding: 10px;
    color: white;
}

#leaderboard {
    right: 0px;
    top: 30px;
    text-align: right;
    padding: 10px;
}

#scoreboard {
    height: 175px;
    overflow: auto;
    padding-top: 5px;
}

@media only screen and (max-width: 1000px) {
    #scoreboard {
        height: 100px;
        font-size: 13px;
        padding-top: 3px;
    }
}

#scoreboard .scoreboard-mobile {
    width: 100px;
    height: 100px;
}

.context-menu-item.context-menu-hover.context-menu-danger {
    background: #dc3545;
    color: white;
}

#menu-button-container {
    z-index: 1040;
    position: absolute;
    color: white;
    margin: 10px;
}

.game-ui {
    z-index: 1000;
    color: white;
    margin: 10px;
    display: none;
    width: fit-content;
    margin-left: auto;
    padding-left: 10px;
}

#backpack {
    width: 240px;
    margin: 10px;
}

@media (max-width: 1024px) {
    .game-ui {
        font-size: 12px;
        margin: 3px;
        margin-left: auto;
    }

    #backpack {
        margin: 3px;
    }
}

.dark-bg {
    color: white;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 5px;
    padding: 20px;
}

.white-bg {
    background-color: white;
    border-radius: 5px;
    padding: 20px;
}

.menu-div {
    border-radius: 5px;
    padding: 20px;
}

@media (max-width: 1000px) {
    .menu-div {
        padding: 10px 14px;
        font-size: 13px;
    }
}

.item-class-normal {
    color: black;
}

.item-class-special {
    color: green;
}

.item-class-rare {
    color: orange;
}

.item-class-legendary {
    color: gold;
}

/* .item-div {
  z-index: 10000;
} */

.quantity {
    position: absolute;
    z-index: 10;
    bottom: 0px;
    right: 4px;
}

.item-key-stroke {
    width: 49px;
    height: 20px;
    display: inline-block;
}

.inventory-slot {
    width: 45px;
    height: 45px;
    margin: 0px 2px 0px 2px;
    background-color: rgba(0, 0, 0, 0.5);
}

.trade-slot {
    width: 45px !important;
    height: 45px !important;
    margin: 0px 2px 0px 2px;
    background-color: rgba(0, 0, 0, 0.5);
    border-color: #6b7280;
    color: white;
}

.trade-offer-slot {
    position: relative;
    padding: 6px !important;
}

#accept-trade-request-button {
    margin-right: 8px;
}

#trader-accept.active,
#you-accept.active {
    background: url('/assets/images/checkmark.svg');
    width: 15px;
    height: 15px;
    background-position: center;
    background-size: cover;
    display: inline-block;
    margin-right: 5px;
}

.trade-head {
    margin-bottom: 4px;
}

.trade-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#trader-name,
#trade-username {
    font-weight: 700;
}

.trade-item-added {
    border-color: #f8f9fa;
}

.trade-item-success {
    border-color: #28a745;
}

.disabled-trade-button {
    opacity: 60%;
}

.cancel-trade-button {
    background-color: #6c757d;
    margin-left: 2px;
}

#accept-trade-text {
    font-weight: 600;
}

.inventory-slot.active {
    border: 2px solid white;
    background-color: rgba(0, 0, 0, 0.5);
}

/* .active {
    border: 2px solid white;
    background-color: rgba(0, 0, 0, 0.5);
} */

.inventory-slot-mobile {
    margin-left: 2px;
    margin-right: 2px;
    background-color: rgba(0, 0, 0, 0.5);
}

.inventory-slot-mobile.active {
    border: 2px solid white;
}

.inventory-slot-mobile {
    width: 35px;
    height: 35px;
}

#trade-div,
#trade-request-div {
    display: none;
}

.margin-top-4 {
    margin-top: 4px;
}

#inventory {
    display: none;
    position: relative;
    color: white;
    background-color: rgba(0, 0, 0, 0.5);
    width: 220px;
    text-align: center;
    margin: 10px;
    padding: 20px;
    right: 0px;
    border-radius: 5;
}

/*For inventory item tooltip*/

.popover.top {
    margin-top: -20px;
}

.popover {
    z-index: 10000;
}

.modal-open .popover {
    z-index: 12050;
}

#counter {
    display: flex;
    justify-content: center;
    text-align: center;
    color: white;
    z-index: 1030;
}

.ui-text-top {
    font-size: 24px;
    padding: 10px;
    display: none;
}

.ui-text-center-lg {
    font-size: 3em;
    z-index: 1000;
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    -webkit-transform: translate(-50%, -50%);
    -moz-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    -o-transform: translate(-50%, -50%);
    color: white;
}

#headerTopPartner {
    color: #fff;
    font-size: 25px;
    text-transform: uppercase;
    font-weight: bold;
    line-height: 46px;
    vertical-align: middle;
    text-shadow: 1px 1px 1px #00476c;
    float: left;
    margin: 0;
}

#headerTopPartner b {
    font-size: 18px;
    font-weight: normal;
    color: #cdedff;
    line-height: 46px;
}

.green {
    color: #4dff3a;
}

.yellow {
    color: #ffe53a;
}

.orange {
    color: #ffa044;
}

.red {
    color: #ff6c6c;
}

.purple {
    color: #ef68ff;
}

#my-score-div {
    padding: 10px;
    font-size: 18px;
    border: 1px solid gray;
}

@media (max-width: 1024px) {
    #my-score-div {
        font-weight: 500;
        font-size: 12px;
        padding: 2px 5px;
    }
}

#item-info-div {
    font-size: 24px;
}

.progress {
    margin-bottom: 0px;
    height: 24px;
    background-color: #495057bd;
}

.progress-bar {
    margin: 3px;
}

#unit-status {
    text-align: center;
}

#attribute-bars {
    position: relative;
    /* fill container */
    /* width:200px; */
    margin: auto;
}

#privacy-policy-modal,
#join-convoy-modal,
#help-modal,
#modd-shop-modal {
    z-index: 22000;
}

#modd-shop-div {
    display: none;
}

#coin-shop-modal,
#confirm-purchase-modal {
    z-index: 25000;
}

#shop-modal {
    z-index: 10000;
}

#shop-modal .inventory-slot {
    margin: 5px;
}

/* #chat-box {
  min-width: 350px;
  max-width: 450px;
  width: 25%;
} */

#chat-box #hide-chat {
    height: 15px;
}

#chat-box #tabs {
    height: 35px;
}

#chat-box .tab-content,
#friends-panel .tab-content {
    height: 250px;
}

#mobile-chat-box {
    height: 40vh;
    width: 200px;
    position: absolute;
    top: 75px;
    left: 10px;
    z-index: 1;
}

#friends-list {
    color: white;
    overflow-y: auto;
}

#pending-list {
    color: white;
    overflow-y: auto;
}

#chat-tab-container a.nav-link,
#friends-panel-container a.nav-link.active {
    color: white;
}

#chat-tab-container a.nav-link.active,
#friends-panel-container a.nav-link.active {
    color: white;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 5px 5px 0 0;
    -webkit-border-radius: 5px 5px 0 0;
    -moz-border-radius: 5px 5px 0 0;
    -ms-border-radius: 5px 5px 0 0;
    -o-border-radius: 5px 5px 0 0;
}

.user-select-none {
    user-select: none;
}

#chat-history {
    word-wrap: break-word;
    overflow-y: auto;
}

#reloading-message {
    display: none;
}

.blink {
    animation: blinker 0.5s linear infinite;
}

@keyframes blinker {
    50% {
        opacity: 0;
    }
}

/* TABLE STUFF */

#server-list_filter {
    display: none;
}

.navbar .dropdown-menu li a:hover,
.navbar .dropdown-menu li a:focus,
.navbar .dropdown-menu li a:active,
.navbar.navbar-default .dropdown-menu li a:hover,
.navbar.navbar-default .dropdown-menu li a:focus,
.navbar.navbar-default .dropdown-menu li a:active {
    background-color: #9c27b0;
    color: #ffffff;
    box-shadow: 0 12px 20px -10px rgba(156, 39, 176, 0.28), 0 4px 20px 0px rgba(0, 0, 0, 0.12), 0 7px 8px -5px rgba(156, 39, 176, 0.2);
}

.slider {
    overflow-y: hidden;
    height: 100vh;
    /* approximate max height */
    transition-property: all;
    transition-duration: 2s;
    transition-timing-function: cubic-bezier(1, 0, 0.5, 1);
    color: black;
    z-index: 99999;
    background-color: white;
}

.more-games-modal-in {
    display: -webkit-box !important;
    -webkit-transform: translate(0, 100vh) !important;
    /** Chrome & Safari **/
    -o-transform: translate(0, 100vh) !important;
    /** Opera **/
    -moz-transform: translate(0, 100vh) !important;
    /** Firefox **/
    transition: all 2s ease-in-out;
    -webkit-transition: all 2s ease-in-out;
    /** Chrome & Safari **/
    -moz-transition: all 2s ease-in-out;
    /** Firefox **/
    -o-transition: all 2s ease-in-out;
    /** Opera **/
}

.cookie-fix-modal-class {
    width: 600px;
    max-width: 70%;
    margin: auto;
}

.cookie-fix-steps {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.more-games-modal-out {
    -webkit-transform: translate(0, -50vh) !important;
    /** Chrome & Safari **/
    -o-transform: translate(0, -50vh) !important;
    /** Opera **/
    -moz-transform: translate(0, -50vh) !important;
    /** Firefox **/
    transition: all 2s ease-in-out;
    -webkit-transition: all 2s ease-in-out;
    /** Chrome & Safari **/
    -moz-transition: all 2s ease-in-out;
    /** Firefox **/
    -o-transition: all 2s ease-in-out;
    /** Opera **/
}

.slideup-menu-animation {
    animation: 10s slide-up;
    margin-top: 0%;
}

.more-game-defualt {
    position: absolute;
    z-index: 29999;
    bottom: 0px;
    margin: auto;
    right: 0px;
    left: 0px;
    display: none;
    overflow-x: hidden;
    border-radius: 0;
}

.leaderboard-div {
    position: absolute;
    left: 40%;
    bottom: 5px;
}

.slideup-menu-animation {
    display: -webkit-box;
    -webkit-animation: slide-up 0.3s ease-out;
    -moz-animation: slide-up 0.3s ease-out;
}

.slidedown-menu-animation {
    display: none;
    -webkit-animation: slide-down 0.3s ease-out;
    -moz-animation: slide-down 0.3s ease-out;
}

@-webkit-keyframes slide-down {
    0% {
        opacity: 1;
        -webkit-transform: translateY(100%);
    }

    100% {
        opacity: 0;
        -webkit-transform: translateY(150%);
    }
}

@-moz-keyframes slide-down {
    0% {
        opacity: 1;
        -moz-transform: translateY(100%);
    }

    100% {
        opacity: 0;
        -moz-transform: translateY(150%);
    }
}

@-webkit-keyframes slide-up {
    0% {
        opacity: 0;
        -webkit-transform: translateY(100%);
    }

    100% {
        opacity: 1;
        -webkit-transform: translateY(0);
    }
}

@-moz-keyframes slide-up {
    0% {
        opacity: 0;
        -moz-transform: translateY(100%);
    }

    100% {
        opacity: 1;
        -moz-transform: translateY(0);
    }
}

.slider-out {
    height: 0;
}

.overlay-loading {
    position: fixed;
    /* Sit on top of the page content */
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.close-loading-screen {
    position: absolute;
    right: 5px;
    color: rgba(0, 0, 0, 0.6);
    cursor: pointer;
}

#featured-youtuber > a:hover,
#game-samples > a:hover {
    text-decoration: none;
}

#game-samples:hover #game-text {
    background-color: #007bff;
    color: white !important;
    border-bottom-left-radius: 0.25rem;
    border-bottom-right-radius: 0.25rem;
}

#game-samples:hover #game-overlay {
    display: block;
}

#game-text {
    color: black;
}

.game-overlay {
    display: none;
    position: absolute;
    background-color: rgba(0, 123, 255, 0.3);
    width: 100%;
    height: 100%;
    border-top-left-radius: 0.25rem;
    border-top-right-radius: 0.25rem;
}

.bg-azure {
    background-color: azure;
}

.padding-left-4rem {
    padding-left: 4rem !important;
}

.padding-right-4rem {
    padding-right: 4rem !important;
}

#taroFrontBuffer {
    position: fixed;
}

.text-strock {
    color: white;
    -webkit-text-fill-color: white;
    /* Will override color (regardless of order) */
    -webkit-text-stroke-width: 1px;
    -webkit-text-stroke-color: black;
    font-weight: 700;
}

.non-link {
    cursor: pointer;
    color: #0275d8 !important;
}

.non-link:hover {
    color: #014c8c !important;
    text-decoration: underline !important;
}

#featured-youtuber {
    position: fixed;
    bottom: 0;
    right: 10px;
    z-index: 10001;
    padding: 10px;
    background-color: white;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

#coin-shop-modal.show {
    display: flex !important;
    align-items: center;
    min-width: 500px;
}

#player-input-modal .modal-body {
    min-width: 450px;
}

#play-game-button {
    font-size: 1rem;
}

.discord-button {
    background: #7289da;
    height: 35px;
}

.twitter-button {
    background: #1da1f2;
    height: 35px;
}

.facebook-button {
    background: #4267b2;
    height: 35px;
}

.youtube-button {
    background: #ff0000;
    height: 35px;
}

.android-button {
    background: #689f38;
    height: 35px;
}

.ios-button {
    background: #1c81f3;
    height: 35px;
}

.patron-full-button {
    background-image: url('/assets/images/patron_button.png');
}

/* dev console accordion handles */

div[id$='-div-accordion'] {
    background: black;
    max-height: 30px;
    font-size: 11px;
}

div#dev-console {
    position: absolute;
    top: 60px;
}

div#dev-console-table {
    min-width: 444px;
}

.btn.facebook-login-button {
    background: #4267b2;
    color: white;
}

.coin-offer-button-container {
    /* position: absolute; */
    /* bottom: 0; */
}

.login-card {
    box-shadow: 0 0 40px 17px #ccc;
}

.col-sm-2-5 {
    width: 20%;
}

#modd-dialogue-modal {
    font-family: 'Rubik', 'Cabin', 'arial', serif;
}

#modd-dialogue-image {
    min-width: 100px;
    min-height: 100px;
}

.menu-row {
    /* height: 385px; */
    /* margin-top: 60px; */
}

.menu-row-mobile {
    height: 220px;
}

#chat-message-input {
    width: 100%;
    display: none;
}

#chat-input-field-div {
    z-index: 2500;
}

#change-server,
#play-game-button .button-text {
    padding: 15px;
}

.main-vertical-mobile {
    margin: auto;
    flex: 0 0 66.666667%;
    max-width: 66.666667%;
}

#friends-panel {
    z-index: 10001;
}

#show-chat {
    position: absolute;
    bottom: 0;
    z-index: 1000;
    margin: 15px;
}

.small-font {
    font-size: small !important;
}

.smaller-font {
    font-size: smaller !important;
}

@media (max-width: 768px) {
    #change-server,
    #play-game-button .button-text {
        padding: 5px;
    }

    .hidden-vertical-mobile {
        display: none;
    }

    .hide-on-mobile {
        display: none !important;
    }

    .ui-text-top {
        font-size: 15px;
        padding: 5px 10px;
    }

    .progress {
        height: 0.7rem;
    }

    .progress-label {
        font-size: 8px;
    }

    .inventory-slot .quantity {
        font-size: 8px;
    }

    .main-vertical-mobile {
        max-width: 250px;
    }

    #shopbutton {
        display: inline !important;
    }

    #menu-column-left-container {
        min-width: 200px !important;
        max-width: 200px;
    }

    #menu-column-left-container > .menu-div {
        padding-bottom: 10px;
        padding-top: 10px;
    }
}

#game-suggestions-card li.list-group-item:hover {
    background: #23272b !important;
}

.progress-text {
    z-index: 1;
    font-weight: bold;
}

#home-button {
    position: fixed;
    top: 10px;
    left: 10px;
}

#home-button-link {
    position: fixed;
    top: 90px;
    left: 0px;
}

.is-moddable #menu-column-main-container,
.is-moddable #menu-column-right-container {
    display: none;
}

.is-moddable.unpublished #menu-column-main-container {
    display: block;
}

@media (max-width: 1024px) {
    #home-button-link {
        display: none;
    }
}

.no-selection {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -khtml-user-select: none;
    -ms-user-select: none;
}

/* loading animation and css for lobby */
.loading-lobby-container {
    font-family: 'Cabin', 'arial', serif;
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.loading-lobby {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 50px;
    text-align: center;
    color: rgb(61, 60, 60);
    padding: 40px;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    /* animation: infinite 12s loading-animation-main ease;
  box-shadow: rgba(83, 255, 135, 0.12) 0px 2px 4px 0px, rgba(95, 183, 221, 0.32) 0px 2px 16px 0px;
  background: linear-gradient(-45deg, rgb(83, 196, 111), rgb(228, 226, 123), rgb(110, 197, 248));
  background-size: 200% 200%; */
}

.loading-lobby i {
    font-size: 60px !important;
}

.madeusinglink:hover {
    background: #d1d5db !important;
}

/*
.lobby-loading-text::after{
  font-size: 23px;
  font-weight: 600;
  color: rgb(61, 60, 60);
  animation: 6s loading-animation infinite;
  content: "loading the lobby...";
  text-align: center;
}

@keyframes loading-animation {
  0% {
    content: "Loading the lobby";
  }
  100%{
    content: "It may take a while";
  }
}

@keyframes loading-animation-main {
  0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
} */

.no-padding {
    padding: 0px !important;
}

.modal {
    overflow-y: auto;
}

.leaderboard-arrow {
    width: 14px;
    height: 14px;
}

:where(#custom-ingame-ui-container) > * {
    pointer-events: auto;
}
