
/* ️🎨 Brand palette */
/* ✍️ Typography */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700&display=swap");
/* 🖌 Canvas + text colours */
/* 👉 Import Bulma *after* the overrides */
@import url("https://fonts.googleapis.com/css2?family=Merriweather&display=swap");
/* ️🔧 Local utilities (optional) */
:root {
  --primary-color: #0059ff;
  --secondary-color: #38a1ff;
  --accent-color: #ff3860;
  --vh: 100vh;
}

html {
  background: #f9fafc;
}

body {
  background: #f9fafc;
  font-size: 16px;
}
@media (max-width: 768px) {
  body {
    font-size: 15px;
  }
}

.navbar-menu {
  padding: 0.5rem;
}

table td {
  text-align: center;
  vertical-align: middle;
  position: relative;
}

table td .icon {
  vertical-align: middle;
  display: inline-block;
}

a {
  color: #0049ff;
}

a:hover {
  color: #5099ff;
}

input[type=checkbox] {
  accent-color: #0aa77a;
  color: white;
}

.button {
  font-size: 1rem;
  border-radius: 8px;
}

.notification {
  font-size: 0.9rem;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  word-break: break-word;
  margin: auto;
}

.button[disabled] {
  opacity: 0.4;
  cursor: not-allowed;
}

.footer {
  padding: 1rem 0.5rem 1rem;
}

.min-vh-100 {
  min-height: 100vh;
}

.flex-grow-1 {
  flex-grow: 1;
}

.auto-hide {
  animation: fadeOutAfterDelay 6s forwards;
  z-index: 1000;
}

.long-auto-hide {
  animation: fadeOutAfterDelay 12s forwards;
}

.chat-window {
  max-height: 20vh;
  overflow-y: auto;
}

.custom-dropdown-item {
  background-color: white;
  cursor: pointer;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
  border: none;
}
.custom-dropdown-item:hover {
  background-color: #f5f5f5;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.fullscreen-mode {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 999;
  background: #f9fafc;
  overflow: auto;
}

@keyframes fadeOutAfterDelay {
  0%, 83% {
    opacity: 1;
    visibility: visible;
  }
  99% {
    opacity: 0;
    visibility: hidden;
  }
  100% {
    opacity: 0;
    visibility: hidden;
    display: none;
  }
}
#messages {
  min-height: 10rem;
  background-color: #f5f5f5;
}

.has-second-background-color {
  background-color: #f5f5f5;
}

.color-background-on-hover:hover {
  background-color: #dddddd;
  cursor: default;
}
.color-background-on-hover:hover tr {
  background-color: #dddddd;
}

.menu-icon {
  margin-bottom: 0px;
  margin-top: 0px;
  margin-right: 6px !important;
}

svg.is-success {
  color: #00c48c;
}

svg.is-danger {
  color: #ff3860;
}

p.is-danger {
  color: #ff3860;
}

p.is-info {
  color: #38a1ff;
}

span.is-danger {
  color: #ff3860;
}

p.is-success {
  color: #00c48c;
}

.switch input[type=checkbox] {
  opacity: 0;
  width: 0;
  height: 0;
}

.switch .slider {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 26px;
  background-color: #ccc;
  border-radius: 34px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.switch .slider::before {
  content: "";
  position: absolute;
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  border-radius: 50%;
  transition: transform 0.2s;
}

.switch input:checked + .slider {
  background-color: #3273dc; /* Bulma primary */
}

.switch input:checked + .slider::before {
  transform: translateX(24px);
}

.is-fullwidth {
  width: 100%;
}

.footer-image {
  max-width: 80%;
  height: auto;
  max-height: 10rem;
  margin: 0.5rem auto;
}

@media (min-width: 1024px) {
  .side-menu {
    min-height: 70vh;
  }
}
@media (max-width: 1023px) {
  .navbar-end {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  .navbar-end .navbar-item {
    width: 100%;
  }
  .navbar-end .navbar-item .button {
    width: 100%;
  }
}
div.background-danger {
  background-color: rgba(255, 56, 96, 0.2);
}

#map svg {
  width: 100%;
  max-width: 900px;
  max-height: 500px;
  display: block;
  margin: 2rem auto;
}
@media (max-width: 1023px) {
  #map svg {
    max-width: 100vw;
    max-height: 150px;
  }
}
#map .region {
  fill: #fff;
  stroke: #000;
  stroke-width: 0.8;
  transition: fill 0.25s;
}
#map .region-clickable {
  cursor: pointer;
}
#map .satisfaction-background-1 {
  fill: #FF0000;
  fill-opacity: 100%;
}
#map .satisfaction-background-2 {
  fill: #FF1900;
  fill-opacity: 95%;
}
#map .satisfaction-background-3 {
  fill: #FF3200;
  fill-opacity: 90%;
}
#map .satisfaction-background-4 {
  fill: #FF4C00;
  fill-opacity: 85%;
}
#map .satisfaction-background-5 {
  fill: #FF6500;
  fill-opacity: 80%;
}
#map .satisfaction-background-6 {
  fill: #FF7F00;
  fill-opacity: 75%;
}
#map .satisfaction-background-7 {
  fill: #FF9800;
  fill-opacity: 70%;
}
#map .satisfaction-background-8 {
  fill: #FFB200;
  fill-opacity: 65%;
}
#map .satisfaction-background-9 {
  fill: #FFCB00;
  fill-opacity: 60%;
}
#map .satisfaction-background-10 {
  fill: #FFE500;
  fill-opacity: 55%;
}
#map .satisfaction-background-11 {
  fill: #F7FF00;
  fill-opacity: 55%;
}
#map .satisfaction-background-12 {
  fill: #DDFF00;
  fill-opacity: 60%;
}
#map .satisfaction-background-13 {
  fill: #C4FF00;
  fill-opacity: 65%;
}
#map .satisfaction-background-14 {
  fill: #AAFF00;
  fill-opacity: 70%;
}
#map .satisfaction-background-15 {
  fill: #90FF00;
  fill-opacity: 75%;
}
#map .satisfaction-background-16 {
  fill: #77FF00;
  fill-opacity: 80%;
}
#map .satisfaction-background-17 {
  fill: #5DFF00;
  fill-opacity: 85%;
}
#map .satisfaction-background-18 {
  fill: #44FF00;
  fill-opacity: 90%;
}
#map .satisfaction-background-19 {
  fill: #2AFF00;
  fill-opacity: 95%;
}
#map .satisfaction-background-20 {
  fill: #10FF00;
  fill-opacity: 100%;
}
#map .region:hover {
  fill: #38a1ff;
}
#map .region.active {
  fill: #0049ff;
}

#tooltip {
  position: absolute;
  background: #333;
  color: #fff;
  padding: 6px 10px;
  border-radius: 4px;
  pointer-events: none;
  font-size: 14px;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.2s ease;
}

main {
  padding: 1rem;
}
@media (min-width: 1024px) {
  main {
    padding: 0rem;
  }
}

table td, table th {
  vertical-align: middle;
  text-align: center;
  word-break: break-word;
  border: none;
}
@media (max-width: 768px) {
  table {
    font-size: 0.9rem;
  }
  table .button {
    font-size: 0.8rem;
    padding: 0.3rem 0.6rem;
  }
}

.table-container {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.menu-list .button {
  margin-bottom: 0.5rem;
  width: 100%;
  justify-content: flex-start;
  white-space: break-spaces;
}
@media (max-width: 768px) {
  .menu-list .button {
    font-size: 0.9rem;
    padding: 0.6rem 0.75rem;
  }
}

#map {
  overflow-x: auto;
}

#gameboard.is-fullscreen {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 999;
  width: 100vw;
  background-color: white;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

body.fullscreen-mode {
  overflow: hidden;
  position: relative;
}

.fullscreen-mode #gameboard.is-fullscreen {
  height: calc(var(--vh, 1vh) * 100);
}

.mobile-menu-button {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 1100;
}

.mobile-slide-menu {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100%;
  background-color: white;
  z-index: 1099;
  transform: translateX(-100%);
  transition: transform 0.3s ease-in-out;
  overflow-y: auto;
}

.mobile-slide-menu.is-active {
  transform: translateX(0);
}

.fit-content {
  width: fit-content;
}

@media (max-width: 1023px) {
  .mb-2-mobile {
    margin-bottom: 1em !important;
  }
}
@media (max-width: 1024px) {
  #game-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100vh;
    background: white;
    z-index: 1000;
    overflow-y: auto;
    transition: left 0.3s ease-in-out;
  }
  #game-menu.is-active {
    left: 0;
  }
  .mobile-menu-button {
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 1100;
  }
}
@media (max-width: 768px) {
  table {
    font-size: 0.85rem;
  }
  td, th {
    word-break: break-word;
    white-space: normal !important;
    padding: 0.5rem;
  }
  .table-container {
    overflow-x: auto;
  }
}
.table {
  background-color: inherit;
}

textarea.input {
  min-height: 200px;
  overflow-y: auto;
  border: 1px solid #dbdbdb;
  padding: 0.5rem;
}

@media (max-width: 768px) {
  .is-mobile-stack thead {
    display: none;
  }
  .is-mobile-stack tbody,
  .is-mobile-stack tr {
    display: block;
    width: 100%;
  }
  .is-mobile-stack tr {
    box-sizing: border-box;
    margin-bottom: 1rem;
    padding: 1rem;
    border-radius: 0.5rem;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    max-width: 100%;
    overflow: hidden;
  }
  .is-mobile-stack td {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 0.5rem 0;
  }
  .is-mobile-stack td::before {
    content: attr(data-label);
    font-weight: 600;
    display: block;
    color: #666;
    font-size: 0.8rem;
    margin-bottom: 0.25rem;
  }
  .is-mobile-stack .button,
  .is-mobile-stack .input {
    width: 100%;
    box-sizing: border-box;
  }
  .is-mobile-stack .field.has-addons {
    flex-direction: column;
    align-items: stretch;
  }
  .is-mobile-stack .field.has-addons .control {
    width: 100%;
    margin-bottom: 0.5rem;
  }
  .is-mobile-stack .field.has-addons .control:last-child {
    margin-bottom: 0;
  }
}
.header-stack {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.header-stack .header-subtitle {
  font-weight: normal;
  font-size: 0.75rem;
  color: #666;
}

td .description-mobile {
  margin-top: 0.3rem;
  font-size: 0.85rem;
  color: #444;
}

td.no-wrap {
  white-space: nowrap;
}

@media screen and (max-width: 768px) {
  .box p {
    margin-bottom: 0.25rem;
  }
}
@media screen and (max-width: 768px) {
  .side-menu {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 240px;
    background: white;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 1000;
  }
  .side-menu.is-active {
    transform: translateX(0);
    box-shadow: 2px 0 12px rgba(0, 0, 0, 0.1);
  }
  /* Ensure the button is visible and above the menu */
  .mobile-menu-button {
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 1100;
  }
}

/*# sourceMappingURL=application.css.map */
