@font-face {
  font-family: 'Fira Sans';
  font-style: normal;
  font-weight: 400;
  src: local('Fira Sans Regular'), local('FiraSans-Regular'),
       url('/assets/fonts/fira-sans-v10-latin-regular.woff2') format('woff2'),
       url('/assets/fonts/fira-sans-v10-latin-regular.woff') format('woff');
}

@font-face {
  font-family: 'Fira Sans';
  font-style: normal;
  font-weight: 700;
  src: local('Fira Sans Bold'), local('FiraSans-Bold'),
       url('/assets/fonts/fira-sans-v10-latin-700.woff2') format('woff2'),
       url('/assets/fonts/fira-sans-v10-latin-700.woff') format('woff');
}

html {
  font-size: 10px;
}

body {
  font-family: "Fira Sans", Helvetica, Arial, sans-serif;
  margin: 0 3rem;
}

body.noscroll {
  overflow: hidden;
}

a {
  text-decoration: none;
}

.content {
  margin: 2rem auto;
  max-width: 75rem;
  font-size: 1.8rem;
  line-height: 3rem;
}

@media (min-width:600px) {
  .content {
    margin: 3rem auto;
    font-size: 2.4rem;
    line-height: 3.6rem;
  }
}

.content p {
  margin: 0 0 1.8rem;
}

@media (min-width:600px) {
  .content p {
    margin: 0 0 2.4rem;
  }
}

.error {
  display: flex;
  margin: auto;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  text-align: center;
}

.error h1 {
  margin: 0 0 1.8rem;
  font-size: 6rem;
}

.error p {
  margin: 0 0 1rem;
}

.error a {
  color: #333; 
  font-size: 1.4rem;
  text-decoration: underline;
}

[data-modal] {
  font-weight: bold;
  cursor: pointer;
  border: none;
  border-bottom: 0.2rem solid #ddd;
  font-size: inherit;
  color: #333;
  background: transparent;
  display: inline;
  padding: 0;
  position: relative;
  transition: color 200ms ease-in;
}

[data-modal]:after {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  top: -0.2rem;
  left: -0.5rem;
  position: absolute;
  z-index: -1;
  transform: scale(0.9);
  border-radius: 1rem;
  padding: 0.2rem 0.5rem;
  transition: transform 200ms ease-in, background 200ms ease-in;
  background: white;
}

[data-modal]:focus {
  outline: 0;
}

[data-modal]:hover, .user-is-tabbing [data-modal]:focus {
  color: white;
  border-bottom: none;
  transition: color 200ms ease-out;
}

[data-modal]:hover:after, .user-is-tabbing [data-modal]:focus:after {
  transform: scale(1);
  background: #333;
  transition: transform 100ms ease-out, background 100ms ease-out;
}

#logo {
  margin: 0 auto 2rem;
  min-height: 10rem;
  text-align: center;
}

#logo svg {
  width: calc(100vw - 6rem);
  max-width: 20rem;
  max-height: calc(100vw - 6rem);
}

@media(min-width: 600px) {
  #logo {
    margin: 0 auto 3.6rem;
    height: 30rem;
    width: auto;
  }

  #logo svg {
    max-width: 30rem;  
  }
}

.languages {
  font-size: 1.4rem;
  text-align: right;
  margin: 0 0 2rem;
  text-transform: uppercase;
}

@media(min-width: 600px) {
  .languages {
    font-size: 1.6rem;
  }
}

.languages a {
  color: #333;
  text-decoration: none;
  border-radius: 0.4rem;
  padding: 0 0.33rem;
  margin:0 0.1rem;
}

.languages a.active {
  color: #fff;
  background: #333;
}

.languages a:hover, .languages a:focus {
  outline: none;
  color: #fff;
  background: #666;
}

.modal {
  position: fixed;
  z-index: 10;
  height: 100%;
  width: 100%;
  left: 0;
  top: 0;
  overflow: auto;
  display: flex;
  justify-content: space-around;
  align-items: flex-start;
  transition: opacity 0.2s ease-in-out;
  transform: scale(1)
}

.modal:before {
  content: "";
  display: block;
  background: #e72e45;
  opacity: 0.8;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  opacity: 0.9;
  position: fixed;
  z-index: -1;
  transition: opacity 0.2s ease-in-out;
}

.modal[hidden] {
  display: flex;
  visibility: hidden;
  transition: visibility 0s linear 0.2s
}

.modal[hidden]:before {
  opacity: 0;
  transition:
      opacity 0.2s ease-in-out,
      visibility 0s linear 0.2s;
}

.modal[hidden] .modal__content {
  opacity: 0;
  transition: opacity 0.2s linear 0s;
}

.modal__close {
  position: absolute;
  top: 1.9rem;
  right: 1.8rem;
  border: 0;
  background: url("data:image/svg+xml,%3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' x='0' y='0' viewBox='0 0 31.1 31.1' xml:space='preserve'%3E%3Cpath fill='%23333' d='M.7 4.3l26.1 26.1c2.3 2.3 5.8-1.3 3.5-3.5C21.7 18.1 13 9.4 4.3.7 2-1.5-1.5 2 .7 4.3z'/%3E%3Cpath fill='%23333' d='M26.8.7L.7 26.8c-2.3 2.3 1.3 5.8 3.5 3.5C13 21.7 21.7 13 30.4 4.3 32.6 2 29.1-1.5 26.8.7z'/%3E%3C/svg%3E%0A") no-repeat center center;
  background-size: 1.8rem;
  width: 1.8rem;
  height: 1.8rem;
  cursor: pointer;
  outline: 0;
}

@media (min-width:600px) {
  .modal__close {
    background-size: auto;
    top: 2.1rem;
    right: 2.5rem;
  }
}

.user-is-tabbing .modal__close:focus {
  outline: 0.1rem dotted #333;
}

.modal__content {
  background: white;
  position: relative;
  transition: opacity 0.2s ease-in-out 0.1s;
  width: 100vw;
  padding: 1.5rem 2rem;
  height: calc(100vh - 3rem);
  overflow: auto;
  margin: 0;
  font-size: 1.8rem;
  line-height: 3rem;
}

@media (min-width:600px) {
  .modal__content {
    width: 48vw;
    height: auto;
    margin: auto;
    border-radius: 1.2rem;
    box-shadow: 0 0 0.4rem rgba(0, 0, 0, 0.25);
    padding: 2rem 4rem;
    max-width: 60rem;
    font-size: 2.1rem;
    line-height: 3rem;
  }
}


.modal__title {
  color: #333;
  font-size: 2.1rem;
  line-height: 2.4rem;
  letter-spacing: -0.025rem;
  margin: .2rem auto 2.4rem;
  font-weight: bold;
  display: block;
}
@media (min-width:600px) {
  .modal__title {
    margin: 0 auto 2.4rem;
    font-size: 2.4rem;
    line-height: 3rem;
    }
}

.modal p {
  margin: 0 0 1.2rem;
}

.visually-hidden {
  position: absolute;
  clip: rect(0, 0, 0, 0);
  height: 1px;
  width: 1px;
  border: 0;
  overflow: hidden;
}
