/*importeren custom font*/
/* @font-face {
  font-family: "jura";
  src: url("./fonts/jura.ttf") format("ttf");
}
@font-face {
  font-family: "montserrat";
  src: url("./fonts/montserrat.ttf") format("ttf");
} */

/*************/
/* CSS RESET */
/*************/

/*naar een idee van Jen Simmons*/
*,
*::after,
*::before {
  box-sizing: border-box;
}

body {
  margin: 0;
}

button:not([disabled]) {
  cursor: pointer;
}

/*********************/
/* CUSTOM PROPERTIES */
/*********************/
:root {
  --text-white: rgb(255 255 255);
  --background-black: rgb(27 28 30);
  --decoration-blue: rgb(58 251 254);
  --decoration-pink: rgb(255 51 169);
  --decoration-purple: rgb(67 97 238);
}

/**************/
/*** BASICS ***/
/**************/
body {
  background-color: var(--background-black);
}

h2 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 2em;

  color: var(--text-white);
}

h3 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 2em;

  color: var(--text-white);
}

p {
  font-family: 'Jura', sans-serif;
  font-weight: 400;
  font-size: 1em;

  color: var(--text-white);
}

a,
button {
  font-family: 'Jura', sans-serif;
  text-decoration: none;
  color: var(--decoration-blue);
}

/**************/
/*** FOOTER ***/
/**************/
footer {
  display: flex;
  align-content: center;
  justify-content: center;
  background-color: var(--background-black);
  color: white;
  height: 4em;
  box-shadow: 0 1em 0.8em 0.6em var(--decoration-blue);
}

/**************/
/*** HEADER ***/
/**************/
header {
  position: sticky;
  top: 0;

  background-color: var(--background-black);
  color: var(--text-white);
  box-shadow: 0 -1em 0.8em 0.6em var(--decoration-blue);

  font-family: 'Montserrat', sans-serif;
  font-weight: 600;

  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  justify-items: stretch;
  padding: 1em;
  z-index: 2;
}

/*logo*/
header > a{
  grid-area: 1/2;
  display: flex;
  width: 3em;
  aspect-ratio: 1/1;
  position: relative;
  justify-self: center;
  /* z-index: 2; */
}
header > a:hover img {
  transition: 0.3s ease-in-out;
  filter: drop-shadow(0 0 0.15em var(--decoration-blue));
}

h1 {
  opacity: 0;
  width: 3em;
  aspect-ratio: 1/1;
  margin: 0;
  font-size: 1em;
  position: absolute;
}
header > a img {
  z-index: -1;
  max-width: 48px;
}
header > a:first-of-type {
  max-width: 48px;
}

/*links naar github en linkedin*/
header > a:nth-of-type(2),
header > a:nth-of-type(3) {
  grid-area: 1/5;
  display: none;
  position: static;
  width: auto;
  height: 1.5em;
}
header > a:nth-of-type(3) {
  margin-left: 5em;
}
header > a:nth-of-type(2) img,
header > a:nth-of-type(3) img {
  height: 1.5em;
}

/*navigatie*/
nav {
  display: flex;
  justify-self: flex-end;
  margin-right: 1em;
  z-index: 1;
}
nav ul {
  position: fixed;
  display: flex;
  flex-direction: column;
  background-color: var(--background-black);

  list-style-type: none;
  padding: 5.5em 5em 5em 3em;
  margin: 0;
  z-index: 0;
  top: 0;
  right: 0;
  bottom: 0;

  background-color: var(--background-black);
  box-shadow: 0.08em 0em 1em 0.1em var(--decoration-blue);

  transition: ease-in-out 0.2s;
  transform: translateX(100vw);
  z-index: 0;
}
nav ul li {
  margin-bottom: 1em;
  color: var(--decoration-blue);
  text-decoration: underline;
  text-decoration-style: wavy;
}
nav ul li a {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
}
header nav.open ul {
  transform: translateX(0vw);
  transition: ease-in-out 0.2s;
}

/*hamburger knopje*/
header nav > a {
  /* padding-right: 0.5em; */
  max-width: 2.4em;
  height: 1.8em;
  display: flex;
  align-content: space-between;
  flex-wrap: wrap;
}

header nav span {
  display: block;
  background-color: var(--decoration-blue);
  width: 2.4em;
  height: 0.2em;

  border-radius: 0.5em;
  z-index: 1;
  filter: drop-shadow(0 0 0.15em var(--decoration-blue));
}

/*hamburger knopje open*/
nav.open span:first-of-type {
  transform: rotate(45deg);
  transform-origin: top left;
  transition: ease-in 0.25s;
}
nav.open span:nth-last-of-type(2) {
  display: none;
}
nav.open span:last-of-type {
  transform: rotate(-45deg);
  transform-origin: bottom left;
  transition: ease-in 0.25s;
}

/*power knop*/
header button {
  width: 0em;
  background: none;
  border: none;
}

/************/
/*** MAIN ***/
/************/

main {
  padding: 1.5em;
}
/* main a {
  filter: drop-shadow(0 0 0.5em var(--decoration-blue));
}
main a:hover {
  animation: pulsatingbutton 1s 0.5s linear infinite;
} */


/* Over mij
main article {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  align-content: center;
  margin-top: 5em;
}
main article img {
  width: 100vw;
  max-width: 30em;
  padding: 1em;
}
main article p {
  width: 100vw;
  margin-top: 2em;
  margin-bottom: 2em;
  max-width: 30em;
  padding: 1em;
}
main article a {
  margin-bottom: 15em;
  margin: 1em;
  margin-bottom: 7em;
} */

/* #error,
#loading {
  display: flex;
  justify-content: center;
  max-width: 100vw;
  padding-bottom: 9em;
  padding-top: 9em;
  animation: pulsatingbutton 1.5s 0.5s linear infinite;
} */

/***************/
/*media queries*/
/***************/

@media (min-width: 39em) {
  main {
    padding: 2em;
  }
}

@media (min-width: 45em) {
  main {
    padding: 3em;
  }
}

@media (min-width: 80em) {
  header {
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
    justify-items: stretch;
  }
  header > a:first-of-type {
    grid-area: 1/3;
  }
  header nav > a {
    display: none;
  }
  nav {
    justify-self: stretch;
    margin-right: 0;
    display: grid;
    grid-row: 1;
    grid-column-start: 2;
    grid-column-end: 5;
  }
  nav ul {
    display: flex;
    justify-content: space-around;
    position: relative;
    flex-direction: row;
    transform: translateX(0);
    box-shadow: none;
    background: none;
    padding: 0;
    transition: none;
  }
  nav ul li {
    width: 10em;
    margin-bottom: 0;
    text-decoration: none;
  }
  nav ul li:hover,
  nav ul li.portfolio,
  nav ul li.overmij {
    text-decoration: underline;
    text-decoration-style: wavy;
  }
  nav ul li:first-of-type {
    display: flex;
    justify-content: flex-end;
  }
  header > a {
    z-index: 2;
  }

/*links naar github en linkedin*/
header > a:nth-of-type(2),
header > a:nth-of-type(3) {
  display: block;
}

main {
  padding: 4em;
}
}

/***********/
/*animaties*/
/***********/

/* @keyframes pulsatingbutton {
  0% {
    filter: none;
  }
  25% {
    filter: drop-shadow(0 0 0.3em var(--decoration-blue))
      drop-shadow(0 0 0.3em var(--decoration-blue));
  }
  50% {
    filter: none;
  }
  55% {
    filter: none;
  }
  60% {
    filter: drop-shadow(0 0 0.5em var(--decoration-blue))
      drop-shadow(0 0 0.5em var(--decoration-blue));
  }
  65% {
    filter: none;
  }
  75% {
    filter: drop-shadow(0 0 0.5em var(--decoration-blue))
      drop-shadow(0 0 0.5em var(--decoration-blue));
  }
  80% {
    filter: none;
  }
  90% {
    filter: drop-shadow(0 0 0.1em var(--decoration-blue))
      drop-shadow(0 0 0.1em var(--decoration-blue));
  }
  100% {
    filter: none;
  }
} */

/* @media (prefers-color-scheme: light) {
  :root {
    --text-white: rgb(27 28 30);
    --background-black: rgb(255 255 255);
    --decoration-blue: rgb(67 97 238);
    --decoration-pink: rgb(255 51 169);
    --decoration-purple: rgb(67 97 238);
  }
  header > a img {
    filter: brightness(0) saturate(100%) invert(31%) sepia(36%) saturate(3678%) hue-rotate(219deg) brightness(97%) contrast(92%);
  }
  header > a:hover img {
      filter: brightness(0) saturate(100%) invert(31%) sepia(36%) saturate(3678%) hue-rotate(219deg) brightness(97%) contrast(92%) drop-shadow(0 0 0.15em var(--decoration-blue));
  }
} */
