* {
  box-sizing: border-box;
}

header {
  grid-area: header;
  background-color: blanchedalmond;
}

.tm {
  color: rgb(255, 153, 19) !important;
}

.tm:hover {
  color: rgb(255, 196, 120) !important;
  transition: all 0.35s ease;
}

main {
  grid-area: main;
  background-color: rgb(241, 214, 174);
  padding: 1rem;
  color: rgb(49, 47, 16);
  max-width: 100%;
}

main p {
  font-size: larger;
}

h1,
h2,
h3,
nav {
  font-family: Cambria, Cochin, Georgia, Times, "Times New Roman", serif;
  font-size: 1.5rem;
  color: #4a2f15;
}

.overmij {
  border-top: none;
}

h1,
h2,
h3 {
  border-top: 3px solid rgb(133, 111, 22);
}

h1 {
  text-align: center;
}

h2 {
  font-size: 1.8rem;
}

h3 {
  text-align: left;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

figure {
  grid-area: img;
  margin: 1rem 0;
}

.pfp {
  display: none;
  margin: 0 auto;
}

.social-link {
  display: inline-flex;
  margin: 0 8px;
  transition: transform 0.3s ease;
}

.social-link:hover {
  transform: scale(1.2);
}

body {
  background-color: blanchedalmond;
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas:
    "nav"
    "header"
    "main"
    "footer";
  margin: 0.5rem;
  padding: 0.5rem;
}

.hamburger {
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: #4a2f15;
  transition: all 0.35s ease;
}

.hamburger:hover {
  background-color: rgb(155, 115, 55);
}

nav {
  background-color: rgb(197, 153, 87);
  font-size: 0.9rem;
  color: #4a2f15;
  border-top-left-radius: 0.5rem;
  border-top-right-radius: 0.5rem;
  border-bottom-left-radius: 0.1rem;
  border-bottom-right-radius: 0.1rem;
  grid-area: nav;
  display: flex;
  flex-direction: column;
  text-align: center;
  padding: 0 1rem;
  margin: 0 auto;
  max-width: 600px;
  width: 100%;
  position: sticky;
  top: 0;
}

nav .current-page {
  font-weight: bold;
  margin-bottom: 0.2rem;
  font-size: 2.5rem;
  color: #4a2f15;
  white-space: nowrap;
  text-align: center;
}

nav ul {
  background-color: rgb(197, 153, 87);
  flex-direction: column;
  flex-wrap: wrap;
  list-style: none;
  display: flex;
  margin: 0.6rem;
  padding: 0;
  gap: 1.2rem;
  justify-content: flex-end;
  /* animation setup */
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition:
    max-height 0.7s ease,
    opacity 0.5s ease;
}

nav ul.show li a {
  display: block;
}

nav ul.show {
  display: flex;
  max-height: fit-content;
  opacity: 1;
}

nav ul.show a {
  opacity: 1;
  transform: translateY(0);
}

nav a {
  display: flex;
  color: #4a2f15;
  background-color: blanchedalmond;
  border-radius: 0.5rem;
  padding: 0.5rem 1rem;
  opacity: 0;
  transform: translateY(-5px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
  transition: all 0.35s ease;
}

nav a:visited {
  color: #4a2f15;
}

nav a:hover {
  background-color: rgb(160, 120, 60);
}

nav a.active {
  background-color: #a37838;
  color: white;
  transition: all 0.35s ease;
}

nav a.active:hover {
  background-color: #745222;
}

a {
  text-decoration: none;
  color: #b5651d;
  font-weight: bold;
}

a:visited {
  color: #7f3f00;
}

a:hover {
  color: #d35400;
}

.site-title,
.subtitle {
  margin-left: 0;
  border-top: none;
  text-align: center;
}

.site-title {
  font-size: 2rem;
}

.subtitle {
  font-size: 1.6rem;
}

.resultaat {
  max-width: 100%;
  border: 3px solid #a37838;
  border-radius: 1rem;
}

.welkom {
  font-size: xx-large;
}

.werkplekleren {
  font-size: x-large;
}

.rapport,
.contact {
  border-top: none;
}

footer {
  grid-area: footer;
  text-align: center;
  background-color: rgb(197, 153, 87);
  color: black;
  max-width: 100%;
  padding: 0.4rem 1rem 1rem;
  border-bottom-right-radius: 0.5rem;
  border-bottom-left-radius: 0.5rem;
}

.social-link img {
  max-width: 70%;
  max-height: 70%;
}

form input[type="text"],
form input[type="email"],
form textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #c5a373;
  border-radius: 0.3rem;
  font-family: inherit;
  font-size: 1rem;
  box-sizing: border-box;
  display: block;
  margin-bottom: 1rem;
}

@media screen and (min-width: 601px) and (max-width: 1024px) {
  .site-title {
    font-size: 2.5rem;
  }

  .subtitle {
    font-size: 2rem;
  }

  body {
    grid-template-columns: 1fr 3fr;
    grid-template-areas:
      "img header"
      "nav nav"
      "main main"
      "footer footer";
    padding: 1rem;
    max-width: 1024px;
  }

  .pfp {
    max-width: 80%;
    display: block;
  }

  nav {
    display: inline-block;
  }

  .current-page {
    display: none;
  }

  .nav-icon {
    display: none;
  }

  .hamburger {
    display: none;
  }

  nav ul li a {
    display: flex;
  }

  h1 {
    font-size: 3rem;
  }

  h2 {
    font-size: 2rem;
  }

  nav ul {
    flex-direction: row;
    justify-content: space-around;
    gap: 1.5rem;
    max-height: none;
    margin: 0.8rem;
    opacity: 1;
  }

  nav a {
    font-size: 1.2rem;
    opacity: 1;
    transform: none;
    transition: all 0.35s ease;
  }

  nav {
    max-width: 100%;
  }

  .social-link img {
    max-width: 85%;
    max-height: 85%;
  }

  footer {
    max-width: 100%;
  }
}

@media screen and (min-width: 1024px) {
  .site-title {
    font-size: 3.4rem;
  }

  .subtitle {
    font-size: 2.5rem;
  }

  body {
    grid-template-columns: 1fr 4fr;
    grid-template-areas:
      "img header"
      "nav nav"
      "main main"
      "footer footer";
    margin: 100px;
    padding: 1rem;
    max-width: 1366px;
  }

  h1 {
    font-size: 3.8rem;
  }

  h2 {
    font-size: 2.5rem;
  }

  h3 {
    font-size: 2rem;
  }

  .nav-icon {
    display: none;
  }

  .hamburger {
    display: none;
  }

  .pfp {
    max-width: 75%;
    display: block;
  }

  nav {
    max-width: 100%;
    font-size: xx-large;
    max-height: 100%;
    display: inline-block;
  }

  nav .current-page {
    display: none;
  }

  nav ul li a {
    display: flex;
    padding: 0.5rem 2rem;
  }

  nav ul {
    flex-direction: row;
    gap: 1rem;
    justify-content: space-around;
    max-height: none;
    margin: 1rem;
    opacity: 1;
  }

  nav a {
    opacity: 1;
    transform: none;
    transition: all 0.35s ease;
  }

  .social-link img {
    max-width: 100%;
    max-height: 100%;
  }

  footer {
    max-width: 100%;
  }
}
