@import url("https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap");
* {
  box-sizing: border-box !important;
  font-optical-sizing: auto;
  font-style: normal;
  font-family: "Inter", sans-serif;
  font-weight: 500;
  letter-spacing: 0.5px;
  font-feature-settings: normal;
}
body {
  margin: 0px !important;
}

.overlay-wrapper {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-pack: distribute;
  justify-content: space-around;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  position: absolute;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100%;
  flex-direction: column;
}

@-webkit-keyframes spin {
  0% {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }

  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}

@keyframes spin {
  0% {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }

  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}

.loading {
  border-radius: 50%;
  width: 44px;
  height: 44px;
  border: 0.25rem solid rgba(255, 255, 255, 0.2);
  border-top-color: #6683f2;
  -webkit-animation: spin 1s infinite linear;
  animation: spin 1s infinite linear;
}

.retry-button {
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  margin-top: 16px;
}

#depth-chart-buttons {
  display: flex;
  gap: 24px;
  align-items: center;
  width: 100%;
  padding: 9px 12px;
  justify-content: flex-end;
}

.charts-wrapper__container {
  position: relative;
  text-align: right;
  z-index: 1;
  justify-content: flex-end;
  align-items: center;
  height: 38px;
}

.charts-wrapper__container button {
  cursor: pointer;
  font-weight: 500;
  transition: 0.2s;
  border-radius: 5px;
  white-space: nowrap;
  pointer-events: all;
  font-size: 12px;
  /* padding: 8px 11px; */
  border: none;
  opacity: 0.5;
}

body.theme-dark,
body.theme-black {
  --loading-bg-color: #000000;
}

body.theme-light {
  --loading-bg-color: #ffffff;
}

.loading-wrapper {
  background-color: var(--loading-bg-color);
}

body.theme-light,
.loading-wrapper,
.chart-page {
  --themed-color-chart-page-bg: #ffffff !important;
  --error-img-url: url("/assets/icons/error_light.svg");
  --retry-img-url: url("/assets/icons/refresh_light.svg");
}

body.theme-dark {
  background-color: #000000 !important;
  color: #b2b5be !important;
  --error-img-url: url("/assets/icons/error_black.svg");
  --retry-img-url: url("/assets/icons/refresh_black.svg");
}

body.theme-black .charts-wrapper__container button {
  background-color: #141414;
  color: #b2b5be;
}
body.theme-light,
body.theme-light .charts-wrapper__container button {
  background-color: #ffffff !important;
  color: #000000 !important;
}

body.theme-dark,
body.theme-dark .charts-wrapper__container button {
  background-color: #141414;
  color: #b2b5be;
}

.charts-wrapper__container button:last-of-type {
  margin-right: 0;
}

.charts-wrapper__container button img {
  height: 12px;
  width: 12px;
  min-width: 12px;
}

.charts-wrapper__container button span {
  margin-left: 6px;
}

body.theme-light .dygraph-axis-label-y,
body.theme-light .dygraph-axis-label-x {
  font-size: 12px;
  /* color: #8a8a8a; */
}

body.theme-dark .dygraph-axis-label-y,
body.theme-dark .dygraph-axis-label-x {
  font-size: 12px;
  /* color: rgba(255, 255, 255, 0.3); */
}

.dygraph-axis-label-x {
  padding-top: 4px;
}
.dygraph-axis-label-y {
  padding-left: 12px;
}

.dygraph-axis-label-y1 {
  display: none;
}

.dygraph-legend {
  font-size: 12px;
  text-align: right;
  position: absolute;
  top: -24px !important;
  right: 110px !important;
  bottom: initial !important;
  left: initial !important;
  color: rgba(255, 255, 255, 0.3);
}

.dygraph-legend-portrait {
  top: 1rem !important;
  right: 3rem !important;
}

body.theme-black .charts-wrapper__container button.icon-btn {
  all: unset;
  transition:
    background-color 0.35s ease,
    color 60ms ease;
  z-index: 0;
  color: rgba(255, 255, 255, 0.5);
  opacity: 0.5;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 5px;
  width: 37px;
  height: 100%;
}

body.theme-black .charts-wrapper__container button.icon-btn:hover {
  background-color: #2a2e39;
  color: rgba(255, 255, 255, 0.6);
  border-radius: 4px;
  opacity: 1;
}

body.theme-black .charts-wrapper__container button.icon-btn.full-screen {
  padding: 0 5px;
  height: 30px;
}

body.theme-black .charts-wrapper__container .vertical-divider {
  width: 1px;
  height: 22px;
  margin: 0 4px;
  background-color: rgba(255, 255, 255, 0.04);
}

.retry-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
}

.retry-text {
  text-align: center;
  line-height: 20px;
  font-size: 14px;
  opacity: 0.5;
  margin-top: 10px;
}

body.theme-light .retry-text {
  color: #141414;
}

body.theme-dark .retry-wrapper {
  background-color: #000000;
}

body.theme-light .retry-wrapper {
  background-color: #ffffff;
}

.error-image,
.retry-image {
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

.error-image {
  height: 96px;
  width: 130px;
}

.retry-image {
  height: 16px;
  width: 16px;
  margin-right: 8px;
}

.retry-button-text {
  font-size: 12px;
  line-height: 16px;
}

body.theme-dark .retry-button {
  background-color: #3a3a3a;
  color: #ffffff;
}

body.theme-light .retry-button {
  background-color: #f0f2fb;
  color: #4965d2;
}

.error-image {
  background-image: var(--error-img-url);
}

.retry-image {
  background-image: var(--retry-img-url);
}

.tooltip {
  position: relative;
  display: inline-block;
}

.tooltip .tooltip-text {
  position: absolute;
  top: 105%; /* Tooltip below the trigger */
  right: 0; /* Align to right edge */
  transform: translateX(0);
  background-color: #3a3a3a;
  color: #fff;
  padding: 5px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 300;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s;
  z-index: 1;
}

.tooltip:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
}

.tooltip .tooltip-text::after {
  content: "";
  position: absolute;
  top: -10px;
  right: 5%;
  margin-left: -6px;
  border-width: 6px;
  border-style: solid;
  border-color: transparent transparent #3a3a3a;
}

.tooltip-text.right {
  transform: translateX(35%);
}

.tooltip-text.right::after {
  right: 40%;
}
