body,
html {
  width: 100%;
  height: 100%;
  overflow-x: hidden;
}

:root {
  --sb-track-color: #d5dde1;
  --sb-thumb-color: #464646;
  --sb-size: 5px;
  --map-buttons-top-margin: 15px;
  --widget-display: none;
  --btn-width: 50px;
  --btn-left-margin: 20px;
  --map-search-width: 150px;
}

*::-webkit-scrollbar {
  width: var(--sb-size);
}

*::-webkit-scrollbar-track {
  background: var(--sb-track-color);
  border-radius: 3px;
}

*::-webkit-scrollbar-thumb {
  background: var(--sb-thumb-color);
  border-radius: 3px;
}

@supports not selector(::-webkit-scrollbar) {
  body {
    scrollbar-color: var(--sb-thumb-color) var(--sb-track-color);
  }
}

.ui-autocomplete {
  max-height: 200px;
  overflow-y: scroll;
  overflow-x: hidden;
}

.popover-body {
  padding: 0.5rem 1rem;
}

.mapboxgl-popup-close-button {
  background-color: #dcdcdcc9;
  border-radius: 3px;
}

.mapboxgl-popup-close-button:hover {
  background-color: rgb(0 0 0/5%);
}

.mapboxgl-popup-content .btn.link-gray {
  display: none;
}

.mapboxgl-ctrl-scale {
  position: absolute;
  bottom: 30px;
  left: 40px;
}

.popup-layer-image {
  margin-right: 5px;
}

#popupAccordion * {
  font-size: 13px;
}

.loading-overlay-content {
  text-transform: none !important;
}

table.jsgrid-table tbody th {
  text-align: left !important;
}

table.jsgrid-table tbody td {
  text-align: left !important;
}

a:not([href]):not([tabindex]) {
  color: white;
  text-decoration: none;
}

.jssocials-share-logo {
  font-size: 18px !important;
}

.netigma-query-container {
  background-color: white;
  padding: 17px;
  font-size: 13px;
  text-align: left;
  display: inline-grid;
  z-index: 2;
  width: 100%;
}

.ui-front {
  z-index: 2000!important;
}

.jsgrid {
  font-size: 13px !important;
  text-align: left !important;
}

.jsgrid-pager {
  gap: 1px;
}

.jsgrid-pager-nav-button {
  padding: 0.2em 0.6em;
  background: #8080802e;
  border-radius: 4px;
  width: 30px;
  height: 30px;
  display: flex;
  justify-content: center;
  white-space: nowrap;
}

.jsgrid-pager-nav-button > a {
  color: darkslategrey;
  text-decoration: none;
}

.jsgrid-pager-page {
  padding: 0.2em 0.6em;
  background: #8080802e;
  border-radius: 4px;
  width: 30px;
  display: flex;
  justify-content: center;
}

.jsgrid-pager-page > a {
  color: darkslategray;
  text-decoration: none;
}

.jsgrid-pager-current-page {
  background: #3c71f2d9;
  color: white;
}

.mapview-buttons-container {
  position: absolute;
  left: var(--btn-left-margin);
  top: var(--map-buttons-top-margin);
  transition: top 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.mapview-buttons {
  color: #272727;
  color: #222;
  transition:
    background 0.35s ease,
    transform 0.25s ease,
    box-shadow 0.35s ease;
  cursor: pointer;
  border-radius: 6px;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  justify-content: center;
  align-items: center;
  width: var(--btn-width);
  height: var(--btn-width);
}

.mapview-buttons:hover {
  background: rgba(255, 255, 255, 0.35);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transform: translateY(-2px);
}

.map-search-button {
  content: "";
}

.map-search-button__bar {
  width: var(--map-search-width);
  max-width: var(--map-search-width);
  text-align: start;
  padding-left: 20px;
}

.deprem {
  background-color: #ffffffba;
  border: 1px solid #cccccc;
  border-radius: 10px;
  font-size: 15px;
  padding: 10px 20px;
}

.legend {
  position: absolute;
  bottom: 64px;
  left: 50px;
}

.legend div {
  display: flex;
  align-items: center;
  padding: 0px 4px;
  border-radius: 5px;
  justify-content: space-between;
}

.legend span {
  width: 15px;
  height: 15px;
  display: inline-block;
  border-radius: 50%;
  margin-right: 5px;
  border: 1px solid rgba(255, 0, 0, 0.397);
}

.wms-legend {
  background-color: rgba(255, 255, 255, 0.85);
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 8px 10px;
  max-width: min(40vw, 320px);
  max-height: 50vh;
  overflow: auto;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.wms-legend strong {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 4px;
}

.wms-legend img {
  display: block;
  max-width: 100%;
  height: auto;
}

.list {
  position: absolute;
  top: calc(var(--map-buttons-top-margin) + var(--btn-width) + 0.25rem);
  left: calc(var(--btn-left-margin) + var(--btn-width) + 0.75rem);
  /* width: 20vw; */
  display: flex;
  flex-direction: column;
  z-index: 10;
}

.list p {
  margin-bottom: 0;
}

.deprem-panel {
  display: flex;
  align-items: stretch;
  margin-bottom: 10px;
  border-radius: 10px;
}

.deprem.list {
  background-color: rgba(255, 255, 255, 0.7);
  overflow-x: hidden;
}

.map-tsunami {
  color: #272727;
}

.map-taskin {
  color: #272727;
}

#weather-widget {
  /* min-width: 50px; */
  height: auto;
  letter-spacing: -0.7px;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif;
  width: min-content;
}

#weather-widget .weather-icon {
  font-size: 2em;
  line-height: 1;
}

#weather-widget .temperature {
  font-size: 1.25em;
  font-weight: 700;
  letter-spacing: -0.7px;
  line-height: 1;
}

#weather-widget .condition {
  font-size: 0.72rem;
  opacity: 0.75;
  line-height: 1.3;
}

.wind-icon {
  display: inline-block;
  animation: wind-wiggle linear infinite;
  transform-origin: center;
}

@keyframes wind-wiggle {
  0%,
  100% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(-3deg);
  }
  75% {
    transform: rotate(3deg);
  }
}

.widget-show > div {
  display: var(--widget-display) !important;
}

.widget-show > div:first-of-type {
  display: flex !important;
}

.glass-buttons {
  background: rgba(255, 255, 255, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.abis-menu-container {
  position: absolute;
  left: calc(
    var(--map-search-width) + var(--btn-width) + var(--btn-left-margin) + 20px
  );
  top: var(--map-buttons-top-margin);
  max-width: calc(
    100% - var(--map-search-width) - var(--btn-width) - var(--btn-left-margin) -
      0.75rem
  );
}
.menu-item {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  transition:
    transform 0.25s ease,
    opacity 0.5s ease,
    top 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    left 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.menu-item-animating {
  opacity: 0.1;
  pointer-events: none;
}

.menu-item-bottom {
  position: fixed !important;
  bottom: 40px;
  top: auto !important;
  opacity: 1;
  z-index: 1000;
  pointer-events: all;
  transform: none !important;
  font-size: x-large;
}

.menu-item-label {
  text-wrap: nowrap;
}

.item img {
  max-width: 25px;
  max-height: 25px;
}

.company-logo {
  position: absolute;
  bottom: 1px;
  cursor: pointer;
  left: 10px;
  z-index: 5;
}

.company-image {
  margin-left: 95px !important;
  margin-bottom: 7px;
  width: 21px;
}

.abis-container {
  width: 100%;
  height: 100%;
}

#map {
  width: 100%;
  height: 100%;
}

.menu-item-length:empty {
  display: none;
}

.menu-subcontainer > div:first-of-type .menu-item-icon {
  height: 75px;
}

.kurum-icon {
  position: absolute;
  bottom: 20px;
  right: 10px;
}

.form-group {
  position: relative;
}

.chem-toggle .caret-up {
  display: none;
}

.chem-toggle[aria-expanded="true"] .caret-down {
  display: none;
}

.chem-toggle[aria-expanded="true"] .caret-up {
  display: inline-block;
}

.chem-toggle2 .caret-up {
  display: none;
}

.chem-toggle2[aria-expanded="true"] .caret-down {
  display: none;
}

.chem-toggle2[aria-expanded="true"] .caret-up {
  display: inline-block;
}

.modal-dropdown-caret {
  position: absolute;
  right: 10px;
  top: 0;
  line-height: 6;
}

@media (max-width: 767px) {
  * {
    --map-search-width: 0px;
    --btn-left-margin: 10px;
  }

  .gap-2 {
    gap: 0.25rem !important;
  }

  .item * {
    font-size: 12px;
    font-weight: 500;
  }

  .item img {
    max-width: 20px;
    max-height: 20px;
  }

  .map-search-button__bar {
    display: none;
  }

  .jsgrid-pager {
    font-size: medium;
    font-weight: bold;
  }
}

@media (max-width: 500px) {
  * {
    --btn-width: 36px;
    --btn-height: 36px;
  }
  label {
    margin-bottom: 4px;
  }

  .jsgrid {
    font-size: 9px !important;
  }

  .jsgrid-pager {
    padding: 0.5em 0;
    font-size: medium;
    font-weight: bold;
  }

  tr.jsgrid-header-row th,
  td {
    width: min-content !important;
  }

  .abis-menu-container {
    left: 70px;
  }

  .mapview-buttons {
    padding: 4px;
    font-size: 10.5px;
  }

  .mapview-buttons > img {
    width: 24px;
    height: 24px;
  }

  .legend {
    left: 45px;
    bottom: 54px;
  }
  .deprem {
    padding: 10px;
    font-size: 13px;
    border-radius: 6px;
  }

  .list {
    display: none;
  }
}
.nc-loader-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  border-radius: inherit;
}
.nc-loader-content {
  text-align: center;
}
.nc-spinner {
  border: 4px solid #f3f3f3;
  border-top: 4px solid #17a2b8;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  animation: nc-spin 1s linear infinite;
  margin: 0 auto 10px;
}
@keyframes nc-spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
.nc-loader-message {
  font-size: 14px;
  color: #333;
}

.tour-popover {
  z-index: 10000 !important;
}

.popover-tour-content {
  min-width: 220px;
  font-family: inherit;
}
.swal2-glass-popup {
  color: #222 !important;
  border-radius: 15px !important;
}

.swal2-glass-form .input-group-text {
  background: rgba(255, 255, 255, 0.5);
  border: none;
}

.swal2-glass-form .form-control {
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.swal2-glass-form .form-control:focus {
  background: rgba(255, 255, 255, 0.6);
  box-shadow: none;
}
