@import url('https://fonts.googleapis.com/css?family=Cabin');
@import url('https://fonts.googleapis.com/css2?family=Chewy&family=Nunito:wght@400;700;800&display=swap');
html {
  -webkit-user-select: none;
}

@font-face {
  font-family: 'arcade';
  src: url('/assets/fonts/arcade.ttf');
}

@font-face {
  font-family: 'House of Terror';
  src: url('/assets/fonts/HouseofTerrorRegular.ttf') format('truetype');
}

@font-face {
  font-family: 'Burbank Big Condensed';
  src: url('/assets/fonts/BurbankBigCondensedBold.otf') format('opentype');
  font-weight: bold;
}

@font-face {
  font-family: 'Brianne\'s Hand';
  src: url('/assets/fonts/BriannesHand.ttf') format('truetype');
}
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%;
  z-index: 1040;
}

#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: 10px;
}

.leaderboard-arrow {
  width: 16px;
  height: 16px;
  vertical-align: middle;
}

@media only screen and (max-width: 1000px) {
  #scoreboard {
    height: 100px;
    font-size: 13px;
  }
}

#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;
}

.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;
}

.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;
}

.inventory-slot .quantity {
  position: absolute;
  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);
}

#accept-trade-request-button {
  margin-right: 8px;
}

.inventory-slot.active {
  border: 2px solid white;
}

.inventory-slot-mobile, .trade-offer-slot {
  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: 120000;
}

/* Shop item popover (see ShopComponent.getItemPopoverHtml): the content div is
   built with class="modal-bg-color text-white", which assumes a dark popover
   background. That background was never actually applied (the .popover({style})
   option isn't a real Bootstrap option), so it fell back to Bootstrap's default
   white popover, making the white text invisible. This restores the intended
   dark background so the text is visible again. */
.popover .modal-bg-color {
  background-color: #272e37e5;
  color: #fff;
  padding: 8px;
  border-radius: 4px;
}

#counter {
  display: flex;
  justify-content: center;
  text-align: center;
  color: white;
  z-index: 9000;
}

.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;
}

.ui-text-scoreboard {
  display: none;
}

.ui-text-top-left {
  font-size: 1.75rem;
  z-index: 1000;
  display: none;
  position: absolute;
  top: 30px;
  left: 0;
  color: white;
  padding: 10px;
}

.ui-text-inventory {
  font-size: larger;
  margin: 0 0 0.5rem;
  display: none;
}

#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 {
  color: #fff;
  font-family: 'House of Terror', sans-serif;
  font-size: 28px;
  text-transform: uppercase;
  font-weight: bold;
  line-height: 46px;
  vertical-align: middle;
  text-shadow: 1px 1px 1px #00476c;
  float: left;
  margin: 0;
}

.green {
  color: #4dff3a;
}

.yellow {
  color: #ffe53a;
}

.orange {
  color: #ffa044;
}

.red {
  color: #ff6c6c;
}

.purple {
  color: #ef68ff;
}

#my-score-div {
  padding: 10px;
  font-size: 24px;
}

#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 {
  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 {
  color: white;
}

#chat-tab-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 **/
}

.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;
}

/* shop item grid — classes referenced in ShopComponent.js but previously undefined */
.shop-grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 10px;
  padding: 10px;
}

.shop-grid-container .item-shop-button {
  width: 100%;
  cursor: pointer;
  transition: transform 0.1s ease, background-color 0.15s ease;
}

.shop-grid-container .item-shop-button:hover {
  transform: scale(1.03);
}

.grey-bordered {
  border: 1px solid #6b7280;
}

.bottom-radius {
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
}

.can-purchase-item {
  background-color: rgba(40, 167, 69, 0.25);
}

.can-purchase-item:hover {
  background-color: rgba(40, 167, 69, 0.45);
}

.unpurchasble-item {
  background-color: rgba(220, 53, 69, 0.25);
  cursor: not-allowed;
}

.unpurchasble-item:hover {
  transform: none;
}

/* skins shop grid — classes referenced in renderSkinsButtons but previously undefined */
.shop-grid-items {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100px;
  height: 100px;
  margin: 5px;
  border: 1px solid #6b7280;
  border-radius: 8px;
  background-color: #1f2937;
  overflow: hidden;
}

.shop-grid-items > div:first-child {
  flex: 1;
}

.shop-grid-items .is-mobile {
  width: 100%;
  height: 100%;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.blue-border {
  border-color: #3b82f6;
}

.justify-center {
  justify-content: center;
}

.justify-end {
  justify-content: flex-end;
}

.skin-purchased,
.skin-unpurchased {
  cursor: pointer;
}

.slideup-menu-animation {
  display: -webkit-box;
  -webkit-animation: slide-up .3s ease-out;
  -moz-animation: slide-up .3s ease-out;
}

.slidedown-menu-animation {
  display: none;
  -webkit-animation: slide-down .3s ease-out;
  -moz-animation: slide-down .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;
}

#game-div canvas {
  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");
}

#play-game-button-wrapper {
  z-index: 9999;
  pointer-events: none;
}

.pvz-welcome-card {
  pointer-events: auto;
}

@media (min-width: 900px) {
  #play-game-button-wrapper {
    padding-right: 220px;
  }
}

#account-panel {
  z-index: 10000 !important;
}

#auth-widget {
  z-index: 9999;
}

/* 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-image {
  min-width: 100px;
  min-height: 100px;
}

.menu-row {
  height: 385px;
}

.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 {
  background: white;
  z-index: 10001;
}

#show-chat {
  position: absolute;
  left: 370px;
  bottom: 10px;
  z-index: 2500;
  width: 42px;
  height: 42px;
  margin: 0;
  padding: 0;
  background: var(--pvz-grass-dark) !important;
  border: 3px solid var(--pvz-grass-dark) !important;
  border-radius: 50% !important;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.25);
  cursor: pointer;
}

/* attempt */
#show-chat::before {
  content: "";
  position: absolute;
  width: 20px;
  height: 15px;
  left: 8px;
  top: 9px;
  background: var(--pvz-cream);
  border-radius: 4px;
}

#show-chat::after {
  content: "";
  position: absolute;
  left: 10px;
  top: 22px;
  width: 0;
  height: 0;
  border-top: 7px solid var(--pvz-cream);
  border-right: 6px solid transparent;
}

.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;
  }

  /* chatfix2 */
  #show-chat {
    left: 10px;
    bottom: 10px;
  }
  .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>.white-bg {
    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;
}

.no-selection {
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -khtml-user-select: none;
  -ms-user-select: none;
}

#play-game-button, #backpack-wrapper, #game-div > #stats {
  z-index: 9999;
}

#game-div > #stats {
  right: 35px !important;
  top: 30px;
}

:where(#custom-ingame-ui-container) > * {
  pointer-events: auto;
}

.ui-draggable-dragging {
  transform: scale(1.8);
}

:root {
  --pvz-grass: #7cb342;
  --pvz-grass-dark: #558b2f;
  --pvz-grass-transparent: rgba(124, 179, 66, 0.82);
  --pvz-grass-dark-transparent: rgba(85, 139, 47, 0.88);
  --pvz-sun: #ffca28;
  --pvz-sun-dark: #f9a825;
  --pvz-wood: #a5732c;
  --pvz-wood-dark: #6d4c41;
  --pvz-wood-light: #c9974b;
  --pvz-cream: #fff8e1;
}

/* apply the friendly body font everywhere the UI already uses white text,
   without touching layout/spacing rules already defined above */
.game-ui,
#my-score-div,
#players-attribute-div,
#chat-history,
#scoreboard,
#leaderboard {
  font-family: 'Nunito', sans-serif;
}

/* chat box */
#chat-box {
  width: 360px;
  max-width: 90vw;
}

#chat-history,
#chat-history .msg,
#chat-history .author {
  overflow-wrap: break-word;
  word-break: break-word;
  white-space: normal;
}

/* chatbox  */
#chat-box .tab-content {
  background: var(--pvz-grass-transparent) !important;
  border: 3px solid var(--pvz-grass-dark-transparent);
  border-radius: 10px 10px 5px 5px !important;
  box-shadow: 0 3px 0 var(--pvz-grass-dark-transparent);
  backdrop-filter: blur(1px);
}

#chat-tab-container a.nav-link.active {
  background-color: var(--pvz-grass-dark-transparent) !important;
  color: var(--pvz-cream) !important;
  font-family: 'Chewy', cursive;
  letter-spacing: 0.5px;
}

#chat-history {
  color: var(--pvz-cream);
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.35);
}

/* chat input field */
#chat-message-input .input-group {
  background: var(--pvz-grass-transparent);
  border: 3px solid var(--pvz-grass-dark-transparent);
  border-radius: 10px;
  box-shadow: 0 3px 0 var(--pvz-grass-dark-transparent);
  padding: 6px;
}

#chat-message-input .form-control {
  background: rgba(255, 248, 225, 0.85);
  border: 2px solid var(--pvz-grass-dark-transparent);
  color: var(--pvz-wood-dark);
  font-family: 'Brianne\'s Hand', cursive;
  font-size: 1.1rem;
}

#chat-message-input .form-control::placeholder {
  font-family: 'Brianne\'s Hand', cursive;
  color: var(--pvz-grass-dark);
  opacity: 0.85;
}

#chat-message-input .input-group-append .btn {
  background: var(--pvz-grass-dark-transparent);
  border: 2px solid var(--pvz-grass-dark-transparent);
  color: var(--pvz-cream);
}

/* shops */
#modd-item-shop-modal .modal-content,
#modd-shop-modal,
#shop-modal .modal-content {
  background: repeating-linear-gradient(
    180deg,
    var(--pvz-wood-light) 0px,
    var(--pvz-wood-light) 18px,
    var(--pvz-wood) 18px,
    var(--pvz-wood) 20px
  ) !important;
  border: 4px solid var(--pvz-wood-dark);
  border-radius: 10px;
  box-shadow: 0 3px 0 var(--pvz-wood-dark);
}

#modd-item-shop-modal .modal-header,
#modd-shop-modal .modal-header,
#shop-modal .modal-header {
  background-color: var(--pvz-wood-dark);
  color: var(--pvz-cream);
  border-bottom: 2px solid var(--pvz-wood-dark);
}

#modd-item-shop-modal .nav-link.active,
#modd-shop-modal .nav-link.active,
#shop-modal .nav-link.active {
  background-color: var(--pvz-wood-dark) !important;
  color: var(--pvz-cream) !important;
}

/* leaderboard, scoreboard */
#scoreboard {
  background: var(--pvz-grass-transparent);
  border: 2px solid var(--pvz-grass-dark-transparent);
  border-radius: 10px;
  box-shadow: 0 2px 0 var(--pvz-grass-dark-transparent);
  padding: 10px;
  color: var(--pvz-cream);
  backdrop-filter: blur(1px);
}

/* leadboard shit */
#scoreboard:empty {
  border: 0;
  box-shadow: none;
  background: transparent;
  padding: 0;
  min-height: 0;
}

.scoreboard-player-name {
  font-weight: 400;
  color: #fff;
}

.scoreboard-player-score {
  color: #fff;
  font-weight: 400;
}

/* highlight my own row on the leaderboard: bright lime with a glow, others stay white */
.scoreboard-player-is-myself .scoreboard-player-name {
  color: #99ff00;
  font-weight: 800;
  text-shadow: 0 0 2px #99ff00, 0 0 5px rgba(153, 255, 0, 0.55);
}

.scoreboard-player-is-myself .scoreboard-player-score {
  color: #ccff66;
  text-shadow: 0 0 3px rgba(153, 255, 0, 0.45);
}

/* the "Leaderboard" title/toggle above the list */
#leaderboard-toggle,
.leaderboard-div > *:first-child {
  font-family: 'Chewy', cursive;
  color: var(--pvz-sun);
  text-shadow: 1px 1px 0 var(--pvz-wood-dark);
}

/* hud */
#my-score-div {
  background: var(--pvz-grass-transparent);
  border: 2px solid var(--pvz-grass-dark-transparent);
  border-radius: 12px;
  box-shadow: 0 2px 0 var(--pvz-grass-dark-transparent);
  backdrop-filter: blur(1px);
}

#players-attribute-div span[id^="pt-attribute-"] {
  color: var(--pvz-cream);
  font-weight: 400;
}

/* yellow glow */
#players-attribute-div span[id^="pt-attribute-value-"] {
  color: var(--pvz-sun);
  font-family: 'Chewy', cursive;
  font-size: 1.1em;
  text-shadow: 0 0 2px var(--pvz-sun), 0 0 5px rgba(255, 202, 40, 0.5);
}

#chat-box,
#chat-box *,
#chat-input-field-div,
#chat-input-field-div *,
#leaderboard,
#leaderboard *,
#my-score-div,
#my-score-div *,
#unit-status,
#unit-status *,
#stats,
#stats * {
  font-family: 'Brianne\'s Hand', cursive;
}

/* descriptions & tooltips */
.popover,
.popover * {
  font-family: 'Brianne\'s Hand', cursive !important;
}

.popover,
.popover .popover-body,
.popover .popover-content,
.popover .modal-bg-color,
.popover .text-white,
.popover .text-light {
  color: #111 !important;
}

.popover .popover-body,
.popover .popover-content,
.popover .modal-bg-color {
  background-color: #fff !important;
}

.popover .popover-header,
.popover .modal-bg-color h1,
.popover .modal-bg-color h2,
.popover .modal-bg-color h3,
.popover .modal-bg-color h4,
.popover .modal-bg-color h5,
.popover .modal-bg-color h6 {
  color: #111 !important;
  font-family: 'Brianne\'s Hand', cursive !important;
}

/* description body text stays black */
.popover .modal-bg-color p,
.popover .modal-bg-color div,
.popover .modal-bg-color span,
.popover .modal-bg-color strong,
.popover .modal-bg-color b {
  color: #111 !important;
}

/* prices / positive item information keep the green accent */
.popover .text-success,
.popover .green,
.popover .modal-bg-color .text-success,
.popover .modal-bg-color .green {
  color: #59d65c !important;
}


/* shop cards */
.shop-grid-container .item-shop-button,
.shop-grid-container .item-shop-button *,
.shop-grid-items,
.shop-grid-items *,
#shop-modal .inventory-slot,
#shop-modal .inventory-slot *,
#modd-shop-modal .inventory-slot,
#modd-shop-modal .inventory-slot *,
#modd-item-shop-modal .inventory-slot,
#modd-item-shop-modal .inventory-slot * {
  font-family: 'Brianne\'s Hand', cursive !important;
}

/* shop items */
.shop-grid-container .item-shop-button,
.shop-grid-container .item-shop-button .item-name,
.shop-grid-container .item-shop-button .shop-item-name,
.shop-grid-items .item-name,
.shop-grid-items .shop-item-name,
#shop-modal .inventory-slot .item-name,
#shop-modal .inventory-slot .shop-item-name,
#modd-shop-modal .inventory-slot .item-name,
#modd-shop-modal .inventory-slot .shop-item-name,
#modd-item-shop-modal .inventory-slot .item-name,
#modd-item-shop-modal .inventory-slot .shop-item-name {
  color: #111 !important;
}

/* text */

.shop-grid-container .item-shop-button .text-dark,
.shop-grid-container .item-shop-button .text-body,
.shop-grid-items .text-dark,
.shop-grid-items .text-body,
#shop-modal .inventory-slot .text-dark,
#shop-modal .inventory-slot .text-body,
.shop-grid-container .item-shop-button .text-white,
.shop-grid-items .text-white,
#shop-modal .inventory-slot .text-white,
#modd-shop-modal .inventory-slot .text-white,
#modd-item-shop-modal .inventory-slot .text-white {
  color: #111 !important;
}

.ui-text-top,
#ui-text-top-id {
  font-family: 'House of Terror', sans-serif;
}

/* shop shit final */

.shop-grid-container .item-shop-button,
.shop-grid-container .item-shop-button .item-name,
.shop-grid-container .item-shop-button .shop-item-name,
.shop-grid-items .item-name,
.shop-grid-items .shop-item-name,
#shop-modal .inventory-slot .item-name,
#shop-modal .inventory-slot .shop-item-name,
#modd-shop-modal .inventory-slot .item-name,
#modd-shop-modal .inventory-slot .shop-item-name,
#modd-item-shop-modal .inventory-slot .item-name,
#modd-item-shop-modal .inventory-slot .shop-item-name {
  color: #fff !important;
  font-family: 'Brianne\'s Hand', cursive !important;
  text-shadow:
    -1px -1px 0 #111,
     1px -1px 0 #111,
    -1px  1px 0 #111,
     1px  1px 0 #111;
}

.green,
.text-success,
.can-purchase-item .green,
.can-purchase-item .text-success {
  color: #4dff3a !important;
}

.red,
.text-danger,
.unpurchasble-item .red,
.unpurchasble-item .text-danger {
  color: #ff4d4d !important;
}

.shop-grid-container .item-shop-button .green,
.shop-grid-container .item-shop-button .text-success,
.shop-grid-container .item-shop-button .red,
.shop-grid-container .item-shop-button .text-danger,
.shop-grid-items .green,
.shop-grid-items .text-success,
.shop-grid-items .red,
.shop-grid-items .text-danger,
#shop-modal .inventory-slot .green,
#shop-modal .inventory-slot .text-success,
#shop-modal .inventory-slot .red,
#shop-modal .inventory-slot .text-danger,
#modd-shop-modal .inventory-slot .green,
#modd-shop-modal .inventory-slot .text-success,
#modd-shop-modal .inventory-slot .red,
#modd-shop-modal .inventory-slot .text-danger,
#modd-item-shop-modal .inventory-slot .green,
#modd-item-shop-modal .inventory-slot .text-success,
#modd-item-shop-modal .inventory-slot .red,
#modd-item-shop-modal .inventory-slot .text-danger {
  font-family: 'Brianne\'s Hand', cursive !important;
}

/* ============================================================
   home page
   ============================================================ */

.pvz-welcome-card {
	position: relative;
	width: min(1100px, 92vw);
	height: 88vh;
	max-height: 88vh;
	overflow: hidden;
	display: grid;
	grid-template-columns: 340px 1fr;
	grid-template-rows: minmax(0, 1fr);
	gap: 24px;
	background: var(--pvz-grass);
	border: 6px solid #5b8f32;
	border-radius: 18px;
	box-shadow: 0 8px 0 #5b8f32, 0 20px 40px rgba(0, 0, 0, 0.4);
	padding: 28px;
	font-family: 'Nunito', sans-serif;
}

.pvz-welcome-left {
	display: flex;
	flex-direction: column;
	gap: 18px;
	min-height: 0;
}

.pvz-logo-block {
	display: flex;
	align-items: center;
	justify-content: center;
}

.pvz-logo-image {
	width: 100%;
	max-width: 280px;
	height: auto;
	display: block;
}

.pvz-changelog-panel {
	background: var(--pvz-grass-dark);
	border: 3px solid #5b8f32;
	border-radius: 12px;
	padding: 14px 16px;
	flex: 1;
	display: flex;
	flex-direction: column;
	min-height: 0;
}

.pvz-changelog-title {
	font-family: 'House of Terror', sans-serif;
	color: var(--pvz-cream);
	text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.4);
	margin-bottom: 10px;
	font-size: 1.4em;
}

.pvz-changelog-list {
	overflow-y: auto;
	flex: 1;
	padding-right: 6px;
}

.pvz-changelog-entry {
	margin-bottom: 14px;
}

.pvz-changelog-entry-title {
	font-family: 'Burbank Big Condensed', sans-serif;
	color: var(--pvz-sun);
	font-size: 1em;
	margin-bottom: 4px;
}

.pvz-changelog-entry-desc {
	font-family: 'Brianne\'s Hand', cursive;
	color: var(--pvz-cream);
	font-size: 0.85em;
	line-height: 1.35;
	margin: 0;
}

.pvz-welcome-right {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 10px;
}

.pvz-welcome-heading {
	font-family: 'House of Terror', sans-serif;
	color: var(--pvz-cream);
	text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.4);
	font-size: 2.4em;
	text-align: center;
	margin: 0;
}

.pvz-version-number {
	font-family: 'Brianne\'s Hand', cursive;
	font-weight: 800;
	color: var(--pvz-sun);
	font-size: 1.1em;
	text-align: center;
	margin-bottom: 6px;
}

.pvz-welcome-description {
	font-family: 'Brianne\'s Hand', cursive;
	color: var(--pvz-cream);
	font-size: 1.1em;
	line-height: 1.5;
	max-width: 60ch;
	text-align: center;
	margin-left: auto;
	margin-right: auto;
}

.pvz-welcome-cta {
	font-family: 'House of Terror', sans-serif;
	color: var(--pvz-sun);
	text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.4);
	font-size: 1.3em;
	margin: 6px 0 4px;
}

.pvz-button-row {
	display: flex;
	align-items: center;
	gap: 18px;
	flex-wrap: wrap;
}

.pvz-play-button {
	font-family: 'Brianne\'s Hand', cursive;
	font-size: 1.8em;
	color: var(--pvz-cream);
	background: #7cb342;
	border: 4px solid #5b8f32;
	border-radius: 12px;
	box-shadow: 0 5px 0 #5b8f32;
	padding: 10px 34px;
	cursor: pointer;
	transition: transform 0.08s ease, box-shadow 0.08s ease;
}

.pvz-play-button:hover {
	transform: translateY(2px);
	box-shadow: 0 3px 0 #5b8f32;
}

.pvz-play-button:active {
	transform: translateY(5px);
	box-shadow: 0 0 0 #5b8f32;
}

.pvz-icon-button-group {
	display: flex;
	gap: 10px;
}

.pvz-icon-button {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 54px;
	height: 54px;
	padding: 0;
	border-radius: 10px;
	border: 3px solid #5b8f32;
	color: var(--pvz-cream);
	text-decoration: none;
	cursor: pointer;
	background: var(--pvz-wood-light);
}

.pvz-icon-button i {
	font-size: 1.6em;
}

#pvz-discord-button {
	background: #5865f2;
	border-color: #5b8f32;
}

.pvz-welcome-footer {
	position: absolute;
	right: 50px;
	bottom: 14px;
	display: flex;
	align-items: center;
	gap: 10px;
	color: rgba(255, 255, 255, 0.75);
	font-family: 'Brianne\'s Hand', cursive;
	font-size: 0.9em;
}

.pvz-footer-leaderboard-button {
	width: 40px;
	height: 40px;
	font-size: 0.85em;
}

.pvz-footer-leaderboard-button i {
	font-size: 1.3em;
}

#pvz-leaderboard-button {
	background: #7cb342;
	border-color: #5b8f32;
}

#pvz-badges-button {
	background: #7cb342;
	border-color: #5b8f32;
}

@media (max-width: 720px) {
	.pvz-welcome-card {
		grid-template-columns: 1fr;
		grid-template-rows: none;
		height: auto;
		max-height: 92vh;
		overflow-y: auto;
	}

	.pvz-welcome-left {
		min-height: auto;
	}
}

.pvz-player-count {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 8px;
	color: var(--pvz-cream);
	font-family: 'Brianne\'s Hand', cursive;
	font-size: 1.3em;
}

.pvz-player-count i {
	font-size: 1.1em;
}
