html {
  font-size: 62.5%;
  width: 100%;
  height: 100%;
}

body {
  font-family: "Quicksand", sans-serif;
  width: 100%;
  display: flex;
  justify-content: center;
  font-size: 0.9rem;
}

p, h1{
  max-height: 999999px;
}

/* INDEX */
.content {
  width: 97%;
  padding-left: 3%;
  padding-top: 30px;
  display: flex;
  font-size: 1.3rem;
}

.content .grid {
  padding-top: 30px;
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.content .grid_item {
  background-color: #fffefc;
  flex: 1 calc(90% / 3);
  margin: calc(10% / 6);
}

/* RESPONSIVE IFRAME */
.content .media {
  position: relative;
  width: 100%;
  height: 75%;
}

.media iframe,
.media object,
.media embed {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.media iframe {
  background-image: url("https://i.ya-webdesign.com/images/minimalist-transparent-loading-gif-4.gif");
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
}
/* END RESPONSIVE IFRAME */

.content img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
}

.content h1 {
  font-size: 1.5rem;
  margin-top: 10px;
}

.content h1,
.content p {
  padding: 5px;
}

.sidebar {
  padding-left: 20px;
  width: 200px;
}

.sidebar .sidebar_content {
  display: flex;
  flex: 1;
  justify-content: space-between;
  flex-direction: column;
}

.sidebar li {
  margin: 10px 0;
}

.sidebar a {
  color: black;
  text-decoration: none;
}

.sidebar a:hover {
  text-decoration: underline;
}

.sidebar .heading {
  font-size: 1.4rem;
  margin-bottom: 15px;
}

.sidebar .sub_heading {
  margin: 30px 0 15px;
}

/* DOSSIER */
#div2 {
  width: 49%;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}
#div2 article {
  background-color: #fffefc;
  flex: 1 calc(90% / 2);
  margin: calc(10% / 4);
}

/* LOADER */
.loader-wrapper {
  width: 100%;
  height: 100%;
  position: fixed;
  top: 0;
  left: 0;
  background-color: #faf8f9;
  justify-content: center;
  align-items: center;
  display: flex; /* Display word in js naar "flex" gezet */
  z-index: 1;
  font-size: 1.5rem;
}
.loader {
  display: inline-block;
  width: 30px;
  height: 30px;
  position: relative;
  border: 2px solid #d1d1d1; /*rgba(209, 209, 209, .5)*/
  animation: loader 2s infinite ease;
}
.loader-inner {
  vertical-align: top;
  display: inline-block;
  width: 100%;
  background-color: #e1e1e1;
  animation: loader-inner 2s infinite ease-in;
}
@keyframes loader {
  0% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(180deg);
  }
  50% {
    transform: rotate(180deg);
  }
  75% {
    transform: rotate(360deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
@keyframes loader-inner {
  0% {
    height: 0%;
  }
  25% {
    height: 0%;
  }
  50% {
    height: 100%;
  }
  75% {
    height: 100%;
  }
  100% {
    height: 0%;
  }
}

/* EXTERNAL LINKS ICON */
i {
  font-size: 70%;
  padding-left: 6px;
}

/* SMALLER CLIENT RESIZES */
@media screen and (max-width: 1350px) {
  body {
    display: flex;
    flex-direction: column;
    font-size: 1.2rem;
  }

  /* index */
  .content {
    flex-direction: column;
    padding: 0;
    width: 100%;
  }
  .content .grid {
    padding-top: 0;
  }

  .content h1 {
    font-size: 1.5rem;
  }

  .content .grid_item {
    flex: 1 calc(90% / 2);
    margin: calc(10% / 4);
  }

  .content .sidebar {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 95%;
    margin: 0 auto;
    padding: calc(5% / 2);
  }

  .sidebar .sidebar_content {
    flex-direction: row;
  }

  .sidebar > ul {
    width: 20%;
  }

  .sidebar .column {
    display: flex;
    width: 40%;
    flex-direction: row;
    justify-content: space-between;
  }

  .sidebar .heading {
    font-size: 1.4rem;
  }

  .sidebar .sub_heading {
    margin-top: 0;
    margin-bottom: 20px;
  }

  /* dossier */
  #div2 {
    width: 90%;
    margin: 2% auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    position: relative;
  }

  #div2::after {
    content: "Deze browser heeft geen ondersteuning voor het tonen van PDF bestanden.";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-style: italic;
    z-index: -1;
  }
}

@media screen and (max-width: 1000px) {
  .content {
    font-size: 2rem;
  }

  .content h1 {
    font-size: 3rem;
  }

  .content .sidebar {
    flex-direction: column;
    justify-content: center;
    padding: 5%;
    width: 90%;
    font-size: 2.35rem;
  }

  .content .sidebar > ul {
    width: 100%;
  }

  .sidebar .heading {
    font-size: 3rem;
  }

  .sidebar .column {
    flex-direction: column;
    width: calc(100% / 3);
  }

  .sidebar .sub_heading {
    margin: 30px 0 20px;
  }

  .content .grid_item {
    flex: 1 calc(90% / 1);
    margin: calc(10% / 2);
  }

  .grid_item h1 {
    font-size: 4.5rem;
    padding-bottom: 20px;
  }

  .grid_item p {
    font-size: 3rem;
  }

  .loader-wrapper {
    font-size: 3rem;
  }

  .sidebar li {
    margin: 20px 0;
  }

  .sidebar .sub_heading{
    margin-bottom: 40px;
  }
}
