* {
  text-decoration: none;
  color: #000000dd
}

body {
  font-family: sans-serif;
  margin: 0;
  background-color: #fff;
  color: #000000dd;
  box-sizing: border-box;
}

.index-site-title {
  font-size: 32pt;
  display: grid;
  justify-content: center;
}

nav {
  padding: 2rem;
  display: flex;
  align-items: center;
}

.index-main {
  display: grid;
  width: 100vw;
  height: 100vh;
  align-items: center;
  justify-items: center;
}

.index-title-wrapper {
  display: grid;
  width: min(70vw, 600px);
  justify-items: center;
  gap: 0rem;
}

.title-wrapper.leesteksten {
  background-color: rgba(70, 125, 74, .5);
}

.title-wrapper.over {
  background-color: rgba(167, 115, 31, .5);
}

.bottom-spacer {
  padding-bottom: 1.25rem;
}

#links {
  position: absolute;
  display: flex;
  flex-direction: row;
  width: 400px;
  gap: 30px;
  left: auto;
  right: 2rem;
}

.index-links {
  position: relative;
  display: flex;
  flex-direction: row;
  width: 400px;
  gap: 30px;
  margin-top: 2rem;
}

.link {
  width: auto;
  justify-content: center;
  flex: 1;
  display: grid;
  align-items: center;
  border-radius: 10rem;
  border: none;
  /* 1px solid #ccc;*/
  padding: 1rem;
}

button.leesteksten,
a.leesteksten {
  background-color: rgba(70, 125, 74, .5);
}

button.over,
a.over {
  background-color: rgba(167, 115, 31, .5);
}

.link:hover {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
}

.link-nl {
  display: grid;
  color: white;
  width: auto;
  font-weight: bold;
  justify-content: center;
}

.link-en {
  display: grid;
  width: auto;
  color: #ffffff88;
  font-weight: bold;
  justify-content: center;
}

.page-main {
  position: relative;
  z-index: 10;
  display: grid;
  width: auto;
  height: auto;
}

.text-main {
  display: grid;
  gap: 2rem;
  justify-items: center;
}

.over-main {
  display: grid;
  justify-items: center;
  padding: 2rem;
}

#text-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(20rem, 1fr));
  gap: 1rem;
  padding: 2rem;
  padding-top: 0;
}

.page-title {
  align-self: center;
  justify-self: center;
}

.page-title-en {
  align-self: center;
  justify-self: center;
}

.title-wrapper {
  display: grid;
  width: 100%;
  padding: 1rem;
  height: auto;
  justify-items: center;
  box-shadow: rgba(0, 0, 0, .12) 0 0 8px 8px inset;
}

.main-content {
  display: grid;
  gap: 2rem;
  max-width: 100vw;
  min-width: 800px;
}

#text-content {
  margin-top: 2rem;
}

.text-wrapper-box {
  padding: 1rem;
  background-color: #eee;
}

.text-wrapper-box p {
  line-height: 2rem;
}

p {
  margin-top: .2rem;
  margin-bottom: .2rem;
}

h1 {
  font-size: 2rem;
  margin: 0;
}

h2 {
  color: #00000055;
  font-size: 2rem;
  margin: 0;
}

h3 {
  color: #000000cc;
  font-size: 2rem;
  margin: 0;
}

h4 {
  color: #00000066;
  font-size: 1.2rem;
  margin: 0;
}

h5 {
  color: #000000cc;
  font-size: 1rem;
  margin: 0;
}

h6 {
  color: #00000066;
  font-size: 1rem;
  margin: 0;
}

.tooltip {
  position: relative;
  display: inline-block;
  border-bottom: 1px dotted black;
}

.tooltip .tooltiptext {
  visibility: hidden;
  max-width: 100%;
  background-color: rgba(0, 0, 0, .2);
  color: #ffffffdd;
  text-align: center;
  border-radius: 6px;
  padding: 12px;
  position: absolute;
  z-index: 1;
  bottom: 150%;
  left: 50%;
  margin-left: -50%;
  backdrop-filter: blur(2px);
}

.tooltip .tooltiptext::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: black transparent transparent transparent;
}

.tooltip:hover .tooltiptext {
  visibility: visible;
}

.index-bg {
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: -1;
  background-image: url(svg/netherlands.svg);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  opacity: .06;
  filter: blur(8px);
  animation: float 4s infinite ease-in-out;
}

#welcome-message {
  display: grid;
  position: absolute;
  justify-content: center;
  align-self: flex-start;
  width: 100%;
  font-weight: bold;
  color: #444;
  height: 3rem;
  align-items: center;
}

#latest-text {
  position: absolute;
  bottom: 0;
  left: 0;
  padding: 2rem;
  width: 360px;
}

#latest-text-wrapper {
  display: block;
  border: 1px solid #ccc;
  padding: 2em;
  border-radius: 8px;
  text-decoration: none;
  width: auto;
  color: inherit;
  transition: box-shadow 0.2s;
  margin-top: 1rem;
}

#latest-text-wrapper>div {
  margin: 0;
  width: auto;
}

#latest-text-wrapper:hover {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
}

.back-btn {
  margin: 2rem;
}

button,
select,
.a-button {
  display: grid;
  padding: 1rem;
  cursor: pointer;
  font-weight: bold;
  font-size: 1rem;
  color: black;
  background: transparent;
  border: 1px solid #ccc;
  border-radius: 1rem;
  margin-bottom: 1rem;
  text-decoration: none;
  transition: box-shadow 0.2s;
  justify-content: center;
  justify-items: center;
  min-width: 100px;
  width: fit-content;
}

button:hover,
select:hover {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
}

.filters {
  padding: 1rem;
  padding-left: 2rem;
  padding-right: 2rem;
}

select {
  font-size: 1rem;
  padding: 0.5rem;
  margin-right: 1rem;
}

.text-card {
  display: block;
  border: 1px solid #ccc;
  padding: 1rem;
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s;
}

.text-card>div {
  margin: 0;
}

.text-card:hover {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
}

.level {
  color: #444;
  font-size: 0.9rem;
}

.level-en {
  color: #a8a8a8;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.description {
  font-size: 1rem;
}

.description-en {
  font-size: 1rem;
  color: #a8a8a8;
}

.quiz-container form {
  margin: 1rem;
}

.vocab-container>h4 {
  margin-bottom: 1.2rem;
}

.vocab-container {
  margin-bottom: 16rem;
}

.vocab-entry {
  display: flex;
  flex-direction: row;
  width: 100%;
  min-height: 2rem;
}

.vocab-entry>div {
  display: grid;
  align-content: center;
  padding-left: .5rem;
}

.vocab-entry .word-nl {
  flex: 1;
}

.vocab-entry .word-en {
  flex: 1;
}

.vocab-entry .word-note {
  flex: 1.5;
}

.vocab-entry:nth-child(odd) .word-nl {
  background: white;
}

.vocab-entry:nth-child(odd) .word-en {
  background: #eee;
}

.vocab-entry:nth-child(odd) .word-note {
  background: white;
}

.vocab-entry:nth-child(even) .word-nl {
  background: #eee;
}

.vocab-entry:nth-child(even) .word-en {
  background: #ddd;
}

.vocab-entry:nth-child(even) .word-note {
  background: #eee;
}


/* NEDERLAND */

#flag-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  z-index: 100;
  background: transparent;
}

.stripe {
  flex: 1;
  width: 100%;
  opacity: 0;
  position: relative;
  left: -100%;
}

.red {
  background: #AE1C28;
}

.white {
  background: white;
}

.blue {
  background: #21468B;
}

#flag-overlay.show-flag {
  opacity: 1;
}

#flag-overlay.show-flag .stripe {
  animation: flagFade 3s ease-in-out forwards;
}

#flag-overlay.show-flag .red {
  animation-delay: 0s;
}

#flag-overlay.show-flag .white {
  animation-delay: 0.25s;
}

#flag-overlay.show-flag .blue {
  animation-delay: 0.5s;
}

@keyframes flagFade {
  0% {
    opacity: 0;
    left: -100%;
  }

  20% {
    opacity: .75;
    left: 0;
  }

  80% {
    opacity: .75;
    left: 0;
  }

  100% {
    opacity: 0;
    left: 100%
  }
}

/* MOBILE */

#menu-burger {
  display: none;
}

#menu-burger img#close {
  display: none;
}

@media only screen and (max-width: 800px) {
  .index-main {
    align-items: start;
  }

  nav {
    z-index: 200;
  }

  .index-title-wrapper {
    display: grid;
    padding-top: 7rem;
  }

  .index-site-title {
    font-size: 24pt;
  }

  .index-links {
    max-width: 70vw;
  }

  #menu-burger {
    display: grid;
    position: absolute;
    left: auto;
    right: 1rem;
    width: 32px;
    height: 32px;
  }

  #menu-burger img {
    width: 100%;
    height: 100%;
    pointer-events: none;
  }

  #links {
    display: none;
  }

  #links.active {
    display: grid;
    position: absolute;
    top: calc(37.05px + 2*31px);
    margin: 0;
    z-index: 100;
    width: 100%;
    left: 0;
    padding: 1rem;
    box-sizing: border-box;
    background-color: white;
    box-shadow: rgba(0, 0, 0, .12) 0 16px 8px 8px;
  }

  #menu-burger img#burger {
    display: grid;
  }

  #menu-burger.active img#close {
    display: grid;
  }

  .link.active {
    display: fixed;
    top: 3rem;
  }
}