html {
  box-sizing: border-box;
}
*,
*:before,
*:after {
  box-sizing: inherit;
}

/*Tekst decoratie*/
h1,
h2,
h3,
nav {
  font-family: Arial, sans-serif;
}

a {
  font-family: Helvetica, sans-serif;
  text-decoration: none;
}

body,
p {
  font-family: Helvetica, sans-serif;
  margin: auto;
}

/*Body*/

body {
  background-color: #fbdaaf;
  width: 100%;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  padding: 0.625rem;
  border-radius: 0.3rem;
  display: grid;
  grid-template-areas:
    "header"
    "main"
    "main"
    "footer";
  grid-template-rows: auto;
  gap: 0.625rem;
  gap: 1.25rem;
}

/*Header*/

header {
  grid-area: header;
  background-color: #d23131;
  color: white;
  padding: 0.625rem;
  border-radius: 0.5rem;
  box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.2);
}

header nav ul {
  margin: 0;
  padding: 0;
}

header nav li {
  background-color: #bb1919;
  display: block;
  border: 1p solid #bb191996;
  padding: 0.875rem 1rem;
  border-radius: 0.625rem;
  margin-right: 0.625rem;
  text-emphasis: none;
  margin-bottom: 0.5rem;
}

header nav a {
  color: white;
  text-emphasis: none;
  text-decoration: none;
}

header nav li:hover,
header nav .active {
  background-color: #8f0202;
  text-emphasis: none;
}

/*Navbar*/

.navbar {
  position: fixed;
  width: 100%;
  top: 0;
  right: 0;
  background-color: #bb1919;
  margin: 0;
  padding: 0;
}

.navbar .logo {
  display: block;
  float: left;
}

.navbar ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.navbar li,
.navbar .logo {
  padding: 1rem;
  min-width: 5.2rem;
}

.navbar a {
  color: white;
  text-decoration: none;
}

.nav-icon {
  float: right;
  padding: 1rem;
}

.navbar .active {
  background-color: #8f0202;
}

/* mobile view */
.toggle {
  display: none;
  position: absolute;
  top: 3.15rem;
  width: 100%;
  text-align: right;
  background-color: #bb1919;
}

/*Main, section, afbeeldingen en articles*/

main,
aside {
  background-color: white;
  padding: 0.75rem;
  border-radius: 0.3125rem;
}

main {
  grid-area: main;
  width: 100%;
}

article:first-child {
  border: none;
}

article {
  border-top: 1px solid #ab1111;
  margin-bottom: 1.25rem;
}

article img {
  border-radius: 0.25rem;
  margin: auto;
}

figure {
  text-align: left;
  margin: 20px 0;
  border-radius: 0, 25rem;
}

iframe {
  display: block;
  margin-inline-start: auto;
  float: right;
  margin: 20px 0;
}

button {
  background-color: #d23131;
  border: none;
  color: white;
  padding: 15px 32px;
  text-align: center;
  text-decoration: none;
  margin-top: 1rem;
  display: inline-block;
  font-size: 16px;
  border-radius: 0.45rem;
}

button:hover {
  box-shadow: 0 12px 16px 0 rgba(0, 0, 0, 0.24),
    0 17px 50px 0 rgba(0, 0, 0, 0.19);
}

/*Contact formulier*/
/* Style inputs with type="text", select elements and textareas */
input[type="text"],
select,
textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 0.45rem;
  box-sizing: border-box;
  margin-top: 6px;
  margin-bottom: 16px;
  resize: vertical;
}

input[type="submit"] {
  background-color: #d23131;
  color: white;
  padding: 12px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

input[type="submit"]:hover {
  box-shadow: 0 12px 16px 0 rgba(0, 0, 0, 0.24),
    0 17px 50px 0 rgba(0, 0, 0, 0.19);
}

.container {
  border-radius: 5px;
  background-color: #f2f2f2;
  padding: 20px;
}

.col-25,
.col-75,
input[type="submit"] {
  width: 100%;
  margin-top: 0;
}

@media screen and (min-width: 768px) {
  .col-25 {
    float: left;
    width: 25%;
    margin-top: 6px;
  }

  .col-75 {
    float: left;
    width: 75%;
    margin-top: 6px;
  }
}

/*Footer*/

footer {
  grid-area: footer;
  background-color: #d23131;
  color: white;
  text-align: center;
  padding: 0.625rem;
  border-radius: 0.5rem;
  font-size: 0.9rem;
}

/*Andere toestellen*/

@media screen and (min-width: 768px) {
  body {
    width: 50rem;
    justify-content: center;
    padding: 1.25rem;
    display: grid;
    grid-template-areas:
      "header"
      "main"
      "footer";
    gap: 1.25rem;
  }

  header nav li {
    display: inline-block;
    margin-bottom: 0;
  }

  main,
  aside {
    padding: 1.25rem;
  }

  iframe {
    display: flex;
    margin-inline-start: auto;
    float: right;
    margin: 20px 0;
    border: #8f0202;
  }
}

@media screen and (min-width: 1024px) {
  main {
    width: 50rem;
  }
  .nav-icon {
    display: none;
  }
  .toggle {
    display: block;
    position: static;
  }
  .navbar li {
    float: right; /* float problem: nav-links are in reverse order */
  }
  .navbar li {
  }
}
