html {
  box-sizing: border-box;
  font-size: 18px;
}
*,
*:before,
*:after {
  box-sizing: inherit;
}

body {
  font-family: "Montserrat";
  background-color: hsl(180, 50%, 80%);
  background-image: url("../images/Truchet_tiling.png");
  width: 80rem;
  max-width: 80%;
  margin: auto;
  padding: 1rem;
  border-radius: 0.5rem;
}

h1,
h2,
h3,
nav {
  font-family: "Arvo";
}

a {
  color: inherit;
}

nav ul li a {
  text-decoration: none;
}

header {
  background-color: hsl(120, 50%, 80%);
  padding: 1rem;
  border-radius: 1rem;
  color: hsl(120, 50%, 10%);
}

main {
  background-color: hsl(300, 50%, 80%);
  color: hsl(300, 50%, 10%);
  padding: 1rem;
  border-radius: 1rem;
  line-height: 1.35rem;
}

aside {
  background-color: hsl(0, 50%, 80%);
  color: hsl(0, 50%, 5%);
  padding: 1rem;
  border-radius: 1rem;
}

footer {
  background-color: hsl(120, 50%, 80%);
  color: hsl(120, 50%, 10%);
  padding: 1rem;
  border-radius: 1rem;
  font-size: 15px;
}

figure,
img {
  max-width: 100%;
  max-height: 100%;
}

img.headerLogo {
  width: 11rem;
  max-width: 30%;
  padding-left: 1rem;
  float: right;
}

.linkblocks {
  display: grid;
  text-align: center;
}
.card {
  padding: 0.25rem;
  border: hsl(120, 50%, 80%) solid 4px;
  margin: 0.5rem;
  border-radius: 0.5rem;
}
.card.wip {
    border-color: hsl(180, 50%, 80%);
  border-style: dashed;
}
.card.complete{
    border-color: hsl(120, 50%, 80%);
  border-style: solid;
}

figure.profilepicture {
  width: 40%;
  float: right;
  border-radius: 1rem;
}

figure.profilepicture img {
  border-radius: 2rem;
  box-shadow: 5px 5px 9px hsl(300, 50%, 50%);
  position: inline;
}

.werkplekleren main figure {
  width: 70%;
  margin:auto;
}
.werkplekleren main {
  text-align: center;
}

/*navbar stuff*/

.navbar ul li {
  padding: 1rem;
  background-color: hsl(0, 50%, 80%);
  border-radius: 1rem;
  border: hsl(0, 70%, 70%) solid 1px;
  color: hsl(0, 50%, 10%);
}

.navbar ul li:hover,
.navbar ul li.active {
  background-color: hsl(0, 70%, 70%);
  color: hsl(0, 50%, 5%);
}

.navbar a {
  color: hsl(0, 50%, 5%);
  text-decoration: none;
}

.navbar {
  background-color: inherit;
  margin: 0;
  padding: 0;
}

.navbar .headerlogo {
  display: inline-block;
}

.navbar ul {
  padding: 0;
  border-top: 10rem;
  list-style: none;
}

.navbar li,
.navbar .logo {
  padding: 1rem;

  min-width: 5.2rem; /* this is trial and error to have a consistent width for the active class */
}

.nav-icon {
  padding: 1rem;
}

/* mobile view */
.toggle {
  display: none;
  width: fit-content;
  text-align: left;
}
nav ul li {
  display: list-item;
}

body.home,
body.myProjects,
body.werkplekleren,
body.contact {
  display: grid;
  grid-template-areas:
    "header"
    "main"
    "footer";
  grid-template-columns: 1fr;
  grid-template-rows: auto;
  gap: 1rem 1.5rem;
}

body.aboutMe,
body.portfolioWebsite,
body.gameDevGodot, body.themawebsite {
  display: grid;
  grid-template-areas:
    "header"
    "main"
    "aside"
    "footer";
  grid-template-columns: 1fr;
  grid-template-rows: auto;
  gap: 1rem 1.5rem;
}

.linkblocks {
  grid-template-columns: 1fr 1fr;
}

.portfolioWebsite main figure {
    border: hsl(300 50% 50%) solid 1px;
    border-radius: 0.25rem;
    padding: 0.1rem;
    width: 100%;
    margin:auto;
}
  .portfolioWebsite main img {
    border-radius: 0.25rem;
  }

/*desktop view*/

@media screen and (min-width: 950px) {
  body.home,
  body.myProjects,
  body.werkplekleren,
  body.contact {
    display: grid;
    grid-template-areas:
      "header header header"
      "blank1 main blank2"
      "footer footer footer";
    grid-template-columns: 1fr 10fr 1fr;
    grid-template-rows: auto;
    gap: 1rem 1.5rem;
  }

  body.aboutMe,
  body.portfolioWebsite,
  body.gameDevGodot, body.themawebsite {
    display: grid;
    grid-template-areas:
      "header header header"
      "blank1 main aside"
      "blank1 main blank2"
      "footer footer footer";
    grid-template-columns: 1fr 8fr 2fr;
    grid-template-rows: auto;
    gap: 1rem 1.5rem;
  }

  .toggle {
    display: inline-block;
    width: fit-content;
  }
  .nav-icon {
    display: none;
  }
  nav ul li {
    display: inline-block;
  }

  .linkblocks {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .werkplekleren main figure {
  width: 30%;
  margin: auto;
  padding-top: 3rem;
  padding-bottom: 3rem;
}
}

@media screen and (min-width: 1500px) {
  .portfolioWebsite main figure {
    width: 42%;
    min-width: 20rem;
  }

  .portfolioWebsite main figure:nth-of-type(odd){
    float:right;
  }
  .portfolioWebsite main figure:nth-of-type(even){
    float:left;
  }
}

header {
  grid-area: header;
}

main {
  grid-area: main;
}

aside {
  grid-area: aside;
}

footer {
  grid-area: footer;
}

/*easter egg voor de leerkracht, betreffende dat gebruik van Comic Sans bij hem verboden is*/
.portfolioWebsite footer span.troll {
  color: hsl(120, 50%, 80%);
  font-family: "Comic Sans MS";
}
