/* 
 * This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
 * If a copy of the MPL was not distributed with this file, You can obtain one at https://mozilla.org/MPL/2.0/.
 * 
 * Project: Back Of Your Hand (https://backofyourhand.com)
 * Repository: https://github.com/adam-lynch/back-of-your-hand
 * Copyright © 2024 Adam Lynch (https://adamlynch.com)
 */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  --app-header-height: 3.75rem;
  --focus-accent-color-light: rgb(130, 199, 255);
  --focus-accent-color-dark: #eee;
  --focus-accent-color: var(--focus-accent-color-dark);
  --page-title-bottom-margin: 3rem;
  --page-content-padding-horizontal: 20px;
  --scrollbar-thumb-background: #484148;
  --scrollbar-thumb-background: red;
  --scrollbar-track-background: #060206;
  --scrollbar-track-background: yellow;
}

* {
  scrollbar-color: #484148 #060206;
  scrollbar-width: thin;
}

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar,
::-webkit-scrollbar-track {
  background-color: #060206;
}

::-webkit-scrollbar-thumb {
  background-color: #484148;
  border-radius: 10px;
}

html,
body {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  /* This disables overscroll effects and prevents pull-to-refresh */
  overscroll-behavior-y: none;
  /* Disable zoom on iOS */
  touch-action: none;
}

body {
  background: #37003c;
  color: #333;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;

  display: flex;
  flex-direction: column;
  flex: 1;
}

.hide-accessibly {
  display: unset;
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.hide-accessibly--important {
  display: unset !important;
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

ol,
ul {
  list-style: none;
}

fieldset {
  all: unset;
}

:focus-visible {
  outline: 1px solid var(--focus-accent-color-light);
  outline-offset: 5px;
}

.single-line-text-overflow {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.15);
  outline: none;
}

.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border: none;
  border-radius: 12px;
  background: #df206f;
  cursor: pointer;
}

.slider::-webkit-slider-thumb:hover {
  background: #d11563;
}

.slider::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border: none;
  border-radius: 12px;
  background: #df206f;
  cursor: pointer;
}

.slider::-moz-range-thumb:hover {
  background: #d11563;
}

.button-group {
  display: flex;
  justify-content: flex-end;
}

.button-group .button + .button {
  margin-left: 20px;
}

.summary-street-tooltip {
  max-width: 250px;
  display: block;
  color: black;
}

@media (min-width: 800px) {
  .summary-street-tooltip {
    font-size: 1.25rem;
  }
}

.full-screen-display {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 999999;

  overflow-y: auto;
  background: white;
}

.full-screen-display__inner {
  max-width: 95vw;
  margin: 0 auto;
}

.full-screen-display__inner > * {
  margin-top: 1.5rem;
}

.full-screen-display__innerbutton:first-of-type {
  margin-right: 0.75rem;
}

.full-screen-display__inner h2 {
  font-size: 1.2rem;
}

.full-screen-display__innerpre {
  padding: 0.5rem;
  overflow: auto;
  background: #f3f3f3;
  font-size: 0.7rem;
}

.unstyled-link,
.unstyled-link:active,
.unstyled-link:focus,
.unstyled-link:hover {
  color: inherit;
  cursor: default;
  text-decoration: none;
}
