@font-face {
  font-family: Sushi;
  src: url(./fonts/sushi-normal.ttf);
  font-weight: normal;
}

@font-face {
  font-family: Sushi;
  src: url(./fonts/sushi-thin.ttf);
  font-weight: 100;
}

@font-face {
  font-family: Sushi;
  src: url(./fonts/sushi-bold.ttf);
  font-weight: bold;
}

@font-face {
  font-family: Sushi;
  src: url(./fonts/sushi-medium.ttf);
  font-weight: 500;
}

/* Color usage */
:root {
    --off-white: #fafafa;
    --sushi-red: #cd0000;
    --back-grey: #313131;
}
  @media (prefers-color-scheme: dark) {
    :root {
      --sushi-red: #ff0000;
      --back-grey: #000000;
    }
}

/* Van a11y */
.visually-hidden {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 0.01em;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 0.01em;
}

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

*::selection {
  color: var(--off-white);
  background-color: var(--sushi-red);
}

@media (prefers-color-scheme: dark) {
  *::selection {
    color: var(--sushi-red);
    background-color: var(--off-white);
  }
}

/* Body styles */

/* Sanne's fix viewport */
html, body {
  overflow-x: hidden;
  position: relative;
  max-width: 100%;
}

body {
  background-color: var(--off-white);

  font-family: sushi;
  line-height: 1.6;
  color: var(--back-grey);
}

@media (prefers-color-scheme: dark) {
  body {
    background-color: var(--back-grey);
    color: var(--off-white);
  }
}

/* Main alignments */

main {
  display: flex;
  flex-direction: column;
}

/* Header algemeen */

a[aria-current="page"] {
  color: var(--sushi-red);
  cursor: default;
  border-bottom: solid var(--sushi-red) 0.3em;
}


header {
  background-color: var(--back-grey); 
  color: var(--off-white);
  padding: 1rem;
  height: max-content;
  margin: 0;
}

nav > img, nav > section {
  z-index: 9999;
}

nav img {
  width: 18em;
}

@media screen and (max-width: 37.5rem) {
  nav img {
    display: none;
  }
}

header nav a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  background-color: none;
}

header nav a:hover {
  color: var(--sushi-red);
}
nav section {
  width: max-content;
}

nav section a {
    background-color: var(--sushi-red);
    padding: 0.5em;
    line-height: normal;
    border-radius: 1em;
}

nav section a:hover {
    background-color: var(--off-white);
    color: var(--back-grey);
}

/* Header & Navigation*/
header nav button {
      display: block;
      cursor: pointer;
      padding: 0.6em;
      background: none;
      border-style: none;
}

header nav button span {
      display: block;
      width: 2em;
      height: 0.25em;
      margin: 0.33em 0;
      background-color: white;
      transition: all 0.3s ease;
}

nav {
      display: flex;
      justify-content: space-between;
      align-items: center;
}

nav ul {
  display: none;
  list-style-type: none;
  padding: 0;
  margin: 0;
  background-color: var(--back-grey);
  position: absolute;
  top: 4.7rem;
  right: 0;
  width: 100%;
  height: fit-content;
  text-align: left;
  z-index: 10;
  padding: 2rem;

  list-style: none;
  justify-content: center;
  gap: 2em;
  align-items: center;
  border-bottom: groove var(--sushi-red) 0.3em;
}

nav ul.open {
  display: block;
  transform: translateX(0);
}

nav section {
  display: flex;
  gap: 1em;
}

li {
      margin-bottom: 1.5rem;
} 

@media screen and (min-width: 80rem) {
  header {
    display: flex;
  }

  nav {
    display: flex;
    width: 100%;
    justify-content: flex-start;

    gap: 2em;
  }

  nav ul {
    display: flex;
    justify-content: flex-start;
    transform: translateX(0);
    padding: 0;

    position: static;
    margin: 0;
    width: max-content;
    border-bottom: none;

    position: relative;
    inset: 1em;
  }

  header nav button, header nav button span {
    display: none;
  }

  nav section {
    margin-left: auto;
  }
}

h2 {
  color: var(--sushi-red);
  margin-bottom: 0.5rem;
}

/* iFrame googleMap + de Buttons */

footer {
  background-color: var(--back-grey);
  color: var(--off-white);
}

footer section {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: bottom;
  padding-top: 0.5rem;
  margin-bottom: 0;
}

footer h2 {
  color: var(--off-white);
  text-align: center;
  margin: 0;
  margin-bottom: 1rem;
  padding-top: 2rem;
}

/* Bron: Developers.google.com */
footer button {
  background-color: var(--back-grey);
  color: var(--off-white);
  cursor: pointer;
  font-weight: bold;
  padding: 1em;
  text-align: center;
  transition: 200ms;
  box-sizing: border-box;
  border: 0;
  font-size: 0.8em;
  touch-action: manipulation;
}

footer button:not(:disabled):hover,
footer button:not(:disabled):focus {
  outline: 0;
  background: var(--sushi-red);
  border-top-right-radius: 1em;
  border-top-left-radius: 1em;
}

footer section:last-of-type {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 1em;
}

footer section:nth-of-type(2) {
  padding-top: 1rem;
  border-radius: 1em;
  background-color: var(--sushi-red);
  margin-top: 0;
}

iframe {
  width: 100%;
  height: 40vh;
  border: none;
}

footer svg {
  fill: var(--off-white);
  width: 3em;
}
