button {
  font: inherit;
}

*,
::after,
::before {
  box-sizing: border-box;
}

#splash-screen {
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2000;
  line-height: 1;
  display: flex;
  position: fixed;
  align-items: center;
  justify-content: center;

  color: var(--sd-dark-500, #192334);
  background-color: var(--sd-white, #fff);
  font-family: 'Inter', serif;

  opacity: 1;
  visibility: visible;
  transition: visibility 0s 500ms, opacity 500ms;
}

@media print {
  #splash-screen {
    display: none;
  }
}

#splash-screen[aria-busy='false'] {
  opacity: 0;
  visibility: hidden;
}

#splash-screen p {
  margin: 12px 0 0;
}

#splash-screen .logo {
  font-size: 16px;
  line-height: 24px;
  text-align: center;
  animation: splash-screen-pulse 3s infinite ease-in-out;
}

#splash-screen img {
  display: block;
  animation: splash-screen-logo-pulse 6s infinite ease-in-out;
}

@keyframes splash-screen-pulse {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.9;
  }
  100% {
    opacity: 1;
  }
}

@keyframes splash-screen-logo-pulse {
  0% {
    transform: scale3d(1, 1, 1);
  }
  25% {
    transform: scale3d(0.95, 0.95, 0.95);
  }
  50% {
    transform: scale3d(1.05, 1.05, 1.05);
  }
  75% {
    transform: scale3d(0.95, 0.95, 0.95);
  }
  100% {
    transform: scale3d(1, 1, 1);
  }
}

#splash-screen .spinner {
  display: none;
  font-size: 14px;
  text-align: center;
}

#splash-screen .spinner:before {
  box-sizing: border-box;
  content: '';
  display: inline-block;
  width: 50px;
  height: 50px;
  margin: -5px;
  border-radius: 50%;
  border-width: 5px;
  border-style: solid;
  border-color: #b9d9ff #0075ff #0075ff;
  animation: splash-screen-spinner 1.2s linear infinite;
}

@keyframes splash-screen-spinner {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@media (max-width: 600px) {
  #splash-screen .logo {
    display: none;
  }

  #splash-screen .spinner {
    display: block;
  }
}

#outdated-browser {
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  padding: 16px;
  line-height: 1;
  position: fixed;

  font-size: 14px;
  font-family: Inter, sans-serif;

  color: #333;
  background-color: #f3f5f8;

  opacity: 1;
  visibility: visible;
  transition: visibility 0s 500ms, opacity 500ms;
}

#outdated-browser > div {
  margin: 0 auto;
  padding: 80px 60px;
  text-align: center;
  background-color: #fff;
}

@media (max-width: 600px) {
  #outdated-browser > div {
    padding: 36px 42px;
  }
}

#outdated-browser > div > h2,
#outdated-browser > div > p {
  text-align: center;
}

#outdated-browser > div > div {
  margin-top: 20px;
}

#outdated-browser > div > div > a {
  padding: 20px;
  text-align: center;
  display: inline-block;
  text-decoration: none;
}

#outdated-browser > div > div > a > img {
  width: 80px;
  height: 80px;
  display: block;
  margin-bottom: 16px;
}

html.windows {
  scrollbar-width: thin;
  scrollbar-color: #838383 transparent;
}

html.windows ::-webkit-scrollbar {
  width: 7px;
}

html.windows ::-webkit-scrollbar-track {
  background: transparent;
}

html.windows ::-webkit-scrollbar-thumb {
  transition: background-color 225ms;
  background-color: transparent;
  border-radius: 6px;
  border: 3px solid transparent;
}

html.windows :hover::-webkit-scrollbar-thumb {
  background-color: #838383;
}

@media print {
  .intercom-launcher,
  .ReactQueryDevtools {
    display: none;
  }
}

/* Prevent iOS Safari from increasing font size. https://stackoverflow.com/questions/3226001/some-font-sizes-rendered-larger-on-safari-iphone */
@media screen and (max-width: 480px) {
  body {
    text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
  }
}

/* Leaflet Routing Machine */
.leaflet-routing-container {
  display: none;
}

/* Tooltip arrow */
.MuiTooltip-arrow {
  color: var(--sd-dark-500);
}
