/*******************************************************************************
UiO App
Global styles
*******************************************************************************/

* {
  box-sizing: border-box;
}

html {
  font-family: helvetica, arial, sans-serif;
  font-size: 62.5%; /* 1rem = 10px */
  line-height: 1.5;
}

body {
  margin: 0;
  font-size: 1.8rem;
  /* font-smoothing is macOS only. may not be ideal for all fonts. test. */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
}

p {
  margin: 0 0 20px 0;
}

a {
  text-underline-offset: .2em;
  text-decoration-thickness: .05em;
}

a:hover {
  text-decoration: none;
}

/*******************************************************************************
Language handling. Hide elements depending on html lang.
*******************************************************************************/

html[lang="nb"] .language-dependent:not(.lang-nb),
html[lang="en"] .language-dependent:not(.lang-en) {
  display: none;
}

/*******************************************************************************
invisible: Hidden from view, but accessible for screen-readers.
skip-link: Used to skip blocks of navigation. Only visible on keyboard focus.
*******************************************************************************/

.invisible,
.skip-link:not(:focus) {
  position: absolute;
  left: -100000px;
}

.skip-link {
  display: block;
  text-align: center;
  margin: 5px;
}

/*******************************************************************************
app-global-wrapper

- Controls global side-spacing and width.
- Important: This is used in all outer containers of the framework.
- Changing these styles, will also affect header and footer.
- To edit the app area only, see app-main css.
*******************************************************************************/

.app-global-wrapper {
  box-sizing: content-box; /* max-width = max content width */
  padding: 0 25px;
  margin: 0 auto;
  max-width: 1400px;
}

@media (max-width: 1100px) {
  .app-global-wrapper {
    padding: 0 15px;
  }
}
