/* Universal border-box with inheritance*/
/*Algemeen:*/
html {
  box-sizing: border-box;
  margin: 0;
  font-family: "Roboto", sans-serif;
  font-size: 14px;
}
*,
*:before,
*:after {
  box-sizing: inherit;
}
h1,
h2,
h3 {
  font-family: "Open Sans", sans-serif;
  text-shadow: rgba(0, 0, 0, 0.5) 0.1rem 0.1rem;
}
body {
  margin: 0;
  background-color: #dcf0f5;
}

/*Header*/
header {
  grid-area: header;
  background: #524948;
  color: white;
  margin: 0;
  padding: 0.1rem 0;
  border-bottom: hsl(6, 6%, 20%) solid 0.2rem;
}
header h1 {
  margin: 1rem auto;
  width: fit-content;
  text-align: center;
  justify-self: center;
  display: inline-block;
}

nav {
  float: left;
}
#hamburger {
  border: hsl(191, 96%, 15%) solid 0.1rem;
  border-radius: 0.5rem;
  background-color: hsl(188, 97%, 25%);
  text-decoration: none;
  cursor: pointer;
  width: 3rem;
  height: 3rem;
  margin: 1rem 1rem;
  text-align: center;
  padding-top: 0.7rem;
  transform: none;
  transition: none;
  animation: none;
  opacity: 100%;
}
nav ul {
  display: none;
  padding: 0.3rem;
  margin: 0;
  position: absolute;
  z-index: 1;
  background: #524948;
  border-bottom: hsl(6, 6%, 20%) solid 0.2rem;
  border-right: hsl(6, 6%, 20%) solid 0.2rem;
}
nav ul li {
  display: block;
  width: fit-content;
  height: fit-content;
  margin: 2rem 0;
}
nav ul li a {
  padding: 0.5rem;
  border: hsl(191, 96%, 15%) solid 0.1rem;
  border-radius: 0.5rem;
  background-color: hsl(188, 97%, 25%);
  text-decoration: none;
}
.activeDir {
  padding: 0.5rem;
  border: hsl(191, 96%, 15%) solid 0.1rem;
  border-radius: 0.5rem;
  text-decoration: underline;
  background-color: hsl(188, 97%, 20%);
}

/*Main:*/
main {
}
main h1 {
  background-color: #024c5c;
  border: #022c3c solid 0.1rem;
  border-radius: 0.2rem;
  padding: 0.5rem 1rem;
  color: white;
  margin: 1rem auto;
  opacity: 0;
  transform: translateX(-40px);
  animation: fadeIn 1s forwards;
  text-align: center;
  width: 80%;
}
h2 {
  border-bottom: white dotted 0.01rem;
  padding: 0.5rem 0.5rem 0rem 0.5rem;
  margin: 0;
  width: fit-content;
}
figure {
  max-width: 70%;
  justify-self: center;
}
section {
  display: flex;
  flex-direction: column;
  align-items: start;
  background-color: #42acbc;
  padding: 0.25rem 1rem 0.25rem 1rem;
  border-radius: 0.2rem;
  margin: 0.5rem auto;
  color: white;
  width: 75%;
  opacity: 0;
  transform: translateX(100px);
  animation: fadeIn 1.5s forwards;
  border: hsl(188, 48%, 40%) solid 0.1rem;
}
section.visible {
  opacity: 1;
  transform: translateY(0);
}
section p {
  color: white;
}
section h2 {
  color: white;
}
section h3 {
  margin-bottom: 0;
}
abbr {
  cursor: help;
}
a {
  text-decoration: none;
  color: inherit;
}
figure {
  margin: 0;
}
img {
  max-width: 100%;
  height: auto;
  border-radius: 0.2rem;
  border: hsl(188, 48%, 20%) solid 0.1rem;
  box-shadow: hsl(188, 48%, 25%) 0.25rem 0.25rem;
}
figcaption {
  color: hsl(188, 48%, 10%);
  font-size: 0.6rem;
  text-align: left;
}
/*Projecten main:*/
#projecten {
  text-align: center;
}
#projecten section {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-around;
}
#projecten article {
  text-decoration: none;
  margin: 0.5rem;
  padding: 0;
  width: 20rem;
  height: 20rem;
  text-align: center;
  border: hsl(188, 48%, 25%) solid 0.1rem;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  border-radius: 0.5rem 0;
  background-color: hsl(188, 48%, 35%);
  max-width: 80%;
}
#projecten article:hover,
#projecten article:focus {
  box-shadow: hsl(188, 48%, 20%, 0.9) 0.25rem 0.25rem;
  transform: translate(-0.25rem, -0.25rem);
}
#projecten article h2 {
  width: auto;
}
#projecten article a {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0.5rem;
}
#projecten article img {
  box-shadow: none;
}
/*Contact main:*/
#contact section {
  display: flex;
  justify-self: center;
  justify-content: center;
  width: 25rem;
  padding: 2rem;
}
form fieldset p span {
  margin-right: 1rem;
}
form fieldset p label {
  display: inline-block;
  width: 7.5rem;
}
form fieldset p label span {
  color: hsl(0, 100%, 40%);
}
form fieldset p {
  text-align: center;
}
#message {
  width: 90%;
  height: 7.5rem;
}
/*Buttons*/
#submit,
button {
  height: 2rem;
  background-color: #025764;
  border: hsl(191, 96%, 15%) solid 0.1rem;
  border-radius: 0.5rem;
  color: white;
  cursor: pointer;
  margin: 0.5rem auto;
  width: fit-content;
  transition:
    transform 0.1s ease,
    box-shadow 0.1s ease;
}
button {
  display: block;
  margin: 1rem auto;
}
#submit:hover,
#submit:focus,
button:focus,
button:hover {
  background-color: #228c9c;
  box-shadow: hsl(0, 0%, 0%, 0.9) 0.1rem 0.1rem;
  transform: translate(-0.1rem, -0.1rem);
}

/*Footer:*/
footer {
  grid-area: footer;
  position: relative;
  background: #524948;
  color: white;
  width: 100%;
  padding: 0.2rem;
  padding-left: 1rem;
  margin: 0;
  font-size: 0.75rem;
  bottom: 0;
  border-top: hsl(6, 6%, 20%) solid 0.2rem;
}
footer p {
  margin: 0;
}
footer a {
  text-decoration: underline;
}
footer img {
  height: 1.5rem;
  width: auto;
  border-radius: 30%;
  border: none;
  box-shadow: none;
}

/*Animaties:*/
@keyframes fadeIn {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/*Niet mobile*/
@media screen and (min-width: 769px) {
  html {
    font-size: 18px;
  }
  #hamburger {
    display: none;
  }
  .noActiveDir nav {
    margin: 2.2rem 0;
  }
  header h1 {
    display: block;
    margin: 1rem 0 0 3rem;
    padding: 0;
    padding-left: 0.3rem;
    width: auto;
    text-align: start;
  }
  nav {
    float: none;
    display: block;
    margin: 1.6rem 0 1.6rem 0;
  }
  nav ul {
    display: block;
    position: relative;
    margin-left: 3rem;
    padding: 0;
    border: none;
  }
  nav ul li {
    margin: 0;
    display: inline-block;
    transition: transform 0.5s ease;
  }
  nav ul li a {
    padding: 0.5rem;
    transition: box-shadow 0.5s ease;
  }
  nav ul li a:hover,
  nav ul li a:focus {
    background-color: #228c9c;
    box-shadow: hsl(0, 0%, 0%, 0.9) 0.2rem 0.2rem;
  }
  nav ul li:hover,
  nav ul li:focus {
    transform: translate(-0.2rem, -0.2rem);
  }
  .activeDir {
    cursor: default;
    margin: 0;
  }
  .activeDir:hover,
  .activeDir:focus {
    transform: none;
  }

  .textWithImage {
    display: flex;
    justify-content: space-between;
    width: 100%;
  }
  .textWithImage h3 {
    order: 1;
  }
  .textWithImage p {
    order: 2;
  }
  .textWithImage figure {
    order: 3;
    max-width: 50%;
  }
}
@media screen and (min-width: 2559px) {
  main,
  header,
  footer {
    padding-left: 20%;
    padding-right: 20%;
  }
}
