html {
  font-size: 14px;
  scroll-behavior: smooth;
}

@media screen and (min-width: 900px) {
  html {
    font-size: 16px;
  }
}

body {
  margin: 0;
  font-family: var(--primary-font);
  height: 100vh;
}

div,
img,
section {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

address {
  font-style: normal;
}

a {
  color: var(--primary);
}

a img:hover {
  opacity: 0.8;
}

/**
/* Used in HtmlDynamicComponent to set correct cursor
*/
div[data-url] {
  cursor: pointer;
}

/****************************/
/*       Navbar height      */
/****************************/

.MuiToolbar-root {
  min-height: var(--navbar-height);
}

/****************************/
/*   Skip to main content   */
/****************************/

.skip__link {
  left: 50%;
  z-index: 99999;
  position: absolute;
  transition: transform 0.3s;
  background: var(--dark-blue);
  transform: translate(-50%, -100%);
}

a.skip__link {
  color: white;
  padding: 0.5rem;
  text-decoration: none;
  text-transform: uppercase;
  font-size: var(--fs-xs);
  opacity: 0;
}

.skip__link:focus {
  transform: translate(-50%, 0%);
  margin-top: 1rem;
  opacity: 1;
}

.skip__marker {
  height: 1px;
  position: absolute;
  top: var(--navbar-height);
}

/****************************/
/*   Scroll and selection   */
/****************************/

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

*::-webkit-scrollbar-thumb {
  background: #99999970;
}

*::-webkit-scrollbar-track {
  background: transparent;
}

::-moz-selection {
  background: var(--primary);
  color: white;
}

::selection {
  background: var(--primary);
  color: white;
}

/**************************/
/*         Other          */
/**************************/

/* class to apply to img to style the alternative text */
.img__alt {
  font-size: var(--fs-xxs);
  color: var(--primary);
}

/* removes styles from links */
.unlink,
.unlink:visited,
.unlink:hover,
.unlink:active,
.unlink:focus,
.unlink:active:focus {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

/* background loader for divs that hold images */
.img__loading {
  background-image: url("/assets/img/loading.svg");
  background-color: var(--medium-grey);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 1.5rem;
}

/************************/
/*   Default template   */
/************************/

h1.demo__title.MuiTypography-root {
  font-size: var(--fs-lg);
  font-weight: bold;
}
