* {
  /* box-sizing: border-box; padding and border are included in the width and height: */
  box-sizing: border-box;
  font-family: "MS PMincho", sans-serif;
}

html,
body {
  background-image: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.7)), url(images/bg1.jpg);
  background-position: center;
  background-size: cover;
  overflow: hidden;
  margin: 0;
  height: 100%;
  width: 100%;
}

.container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: minmax(100px, auto);
  margin: 1% auto;
}

/*  ====================   Box1: Main menu incl. Hamburger menu   ===========================*/

.box1 {
  grid-column-start: 1;
  grid-column-end: 4;
  /* border: 2px solid red; */
}

.top-nav {
  display: flex;
  flex-direction: row;
  height: 100px;
  align-items: center;
  justify-content: space-around;
  background-color: transparent;
  color: white;
  font-style: italic;
  /* border: 2px solid red; */
}

.menu {
  display: flex;
  flex-direction: row;
  list-style-type: none;
  /* overflow: hidden; */
  margin: 0 auto;
  padding: 0;
  /* border: 2px solid red; */
}

.menu .item {
  overflow: hidden;
}

.menu .item:hover {
  background-color: steelblue;
  border-radius: 20px;
}

.menu .item a {
  text-decoration: none !important;
  color: #ccddf9;
  font-size: 28px;
  letter-spacing: 3px;
  margin: 0 50px;
}

.menu .item a:hover {
  color: orange;
}

/* ========================================= Hamburger Menu (only visible if screen < 820px   ==================== */

/*  Input element: Checkbox */
#menu-toggle {
  display: none;
}

/* Element: Label for: checkbox */
.menu-button-container {
  display: none;
  height: 100%;
  width: 30px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/*  Hamburger menu: Div class = menu-button */
.menu-button,
.menu-button::before,
.menu-button::after {
  display: block;
  background-color: #fff;
  position: absolute;
  height: 4px;
  width: 30px;
  transition: transform 400ms cubic-bezier(0.23, 1, 0.32, 1);
  border-radius: 2px;
}

.menu-button::before {
  content: '';
  margin-top: -8px;
}

.menu-button::after {
  content: '';
  margin-top: 8px;
}

#menu-toggle:checked+.menu-button-container .menu-button::before {
  margin-top: 0px;
  transform: rotate(405deg);
}

#menu-toggle:checked+.menu-button-container .menu-button {
  background: rgba(255, 255, 255, 0);
}

#menu-toggle:checked+.menu-button-container .menu-button::after {
  margin-top: 0px;
  transform: rotate(-405deg);
}

/* ============================================ Text Carousel:   ============================== */

.box2 {
  grid-row-start: 2;
  grid-column-start: 2;
  grid-column-end: 3;
  margin-top: 20px;
  width: 100%;
  height: 70vh;
  color: white;
  /* border: 2px solid red; */
}

.slider {
  height: 70vh;
  width: 680px;
  margin: 20px auto 0;
  overflow: visible;
  position: relative;
  /* border: 2px solid red; */
}

.mask {
  overflow: hidden;
  height: 70vh;
  width: 50%x;
  /* border: 2px solid red; */
}

.slider ul {
  margin: 0;
  padding: 0;
  position: relative;
}

.slider li {
  width: 80%;
  height: 350px;
  position: absolute;
  top: -325px;
  list-style: none;
  /* border: 2px solid red; */
}

.slider .quote {
  font-size: 25px;
  font-family: papyrus;
}

.slider .source {
  margin-top: 30px;
  font-size: 20px;
  text-align: right;
}

.slider li.anim1 {
  animation: cycle 50s linear infinite;
}

.slider li.anim2 {
  animation: cycle2 50s linear infinite;
}

.slider li.anim3 {
  animation: cycle3 50s linear infinite;
}

.slider li.anim4 {
  animation: cycle4 50s linear infinite;
}

.slider li.anim5 {
  animation: cycle5 50s linear infinite;
}

.slider:hover li {
  animation-play-state: paused;
}

@keyframes cycle {
  0% {
    top: 0px;
  }

  4% {
    top: 0px;
  }

  16% {
    top: 0px;
    opacity: 1;
    z-index: 0;
  }

  20% {
    top: 325px;
    opacity: 0;
    z-index: 0;
  }

  21% {
    top: -325px;
    opacity: 0;
    z-index: -1;
  }

  50% {
    top: -325px;
    opacity: 0;
    z-index: -1;
  }

  92% {
    top: -325px;
    opacity: 0;
    z-index: 0;
  }

  96% {
    top: -325px;
    opacity: 0;
  }

  100% {
    top: 0px;
    opacity: 1;
  }
}

@keyframes cycle2 {
  0% {
    top: -325px;
    opacity: 0;
  }

  16% {
    top: -325px;
    opacity: 0;
  }

  20% {
    top: 0px;
    opacity: 1;
  }

  24% {
    top: 0px;
    opacity: 1;
  }

  36% {
    top: 0px;
    opacity: 1;
    z-index: 0;
  }

  40% {
    top: 325px;
    opacity: 0;
    z-index: 0;
  }

  41% {
    top: -325px;
    opacity: 0;
    z-index: -1;
  }

  100% {
    top: -325px;
    opacity: 0;
    z-index: -1;
  }
}

@keyframes cycle3 {
  0% {
    top: -325px;
    opacity: 0;
  }

  36% {
    top: -325px;
    opacity: 0;
  }

  40% {
    top: 0px;
    opacity: 1;
  }

  44% {
    top: 0px;
    opacity: 1;
  }

  56% {
    top: 0px;
    opacity: 1;
    z-index: 0;
  }

  60% {
    top: 325px;
    opacity: 0;
    z-index: 0;
  }

  61% {
    top: -325px;
    opacity: 0;
    z-index: -1;
  }

  100% {
    top: -325px;
    opacity: 0;
    z-index: -1;
  }
}

@keyframes cycle4 {
  0% {
    top: -325px;
    opacity: 0;
  }

  56% {
    top: -325px;
    opacity: 0;
  }

  60% {
    top: 0px;
    opacity: 1;
  }

  64% {
    top: 0px;
    opacity: 1;
  }

  76% {
    top: 0px;
    opacity: 1;
    z-index: 0;
  }

  80% {
    top: 325px;
    opacity: 0;
    z-index: 0;
  }

  81% {
    top: -325px;
    opacity: 0;
    z-index: -1;
  }

  100% {
    top: -325px;
    opacity: 0;
    z-index: -1;
  }
}

@keyframes cycle5 {
  0% {
    top: -325px;
    opacity: 0;
  }

  76% {
    top: -325px;
    opacity: 0;
  }

  80% {
    top: 0px;
    opacity: 1;
  }

  84% {
    top: 0px;
    opacity: 1;
  }

  96% {
    top: 0px;
    opacity: 1;
    z-index: 0;
  }

  100% {
    top: 325px;
    opacity: 0;
    z-index: 0;
  }
}

/* ==========================================   Hide Webstat ====================================== */

.webstatcode {
  visibility: hidden;
}

/* ============= Mobile behavior = 0-1250px width ================= */

@media (max-width: 1250px) {
  .menu .item a {
    margin: 0 30px;
  }
}

/* ============= Mobile behavior = 0-1024px width ================= */

@media (max-width: 1024px) {
  .menu .item a {
    margin: 0 10px;
  }
}

/* ============= Mobile behavior = 0-820px width ================= */

@media (max-width: 820px) {
  .menu-button-container {
    display: flex;
  }

  /* config: Uitklap menu */
  .box1 .menu {
    flex-direction: column;
    margin-top: 100px;
    position: absolute;
    top: 0px;
    left: 13%;
    width: 73%;
    justify-content: center;
    align-items: center;
    /* border: 2px solid red; */
  }

  #menu-toggle~.menu li {
    height: 0;
    margin: 0;
    padding: 0;
    border: 0;
    transition: height 400ms cubic-bezier(0.23, 1, 0.32, 1);
  }

  #menu-toggle:checked~.menu li {
    border: 1px solid #333;
    border-radius: 10px;
    height: 2.5em;
    /* list item hoogte na uitklappen*/
    padding: 0.5em;
    transition: height 400ms cubic-bezier(0.23, 1, 0.32, 1);
  }

  .menu li {
    display: flex;
    justify-content: center;
    margin: 0;
    padding: 0.5em 0;
    width: 70%;
    color: white;
    background-color: slategray;
    z-index: 1;
  }

  .menu li:not(:last-child) {
    border-bottom: 1px solid blue;
  }

  .menu .item a {
    font-size: 18px;
    letter-spacing: 5px;
  }

  /* =========== Text Carousel:   =============== */

  .slider {
    width: 380px;
  }

  .slider li {
    width: 380px;
  }

  .slider .quote {
    font-size: 24px;
  }

  .slider .source {
    font-size: 23px;
  }
}

/* ============= Mobile behavior = 0-420px width ================= */

@media (max-width: 420px) {
  .menu li {
    width: 100%;
  }

  /* =========== Text Carousel:   =============== */

  .slider {
    width: 280px;
  }

  .slider li {
    width: 280px;
  }

  .slider .quote {
    font-size: 21px;
  }

  .slider .source {
    font-size: 19px;
  }

}