* {
    /* 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 {
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
}

.container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: minmax(100px, auto);
      /* options */
    color: slategray;
}

/*  ====================   Box1: Main menu incl. Hamburger menu   ===========================*/

.box1 {
    grid-column-start: 1;
    grid-column-end: 4;
    margin: 0 auto;
    margin-top: 10px;
    width: 99%;
    color: white;
    background-color: slategray;
    border: 5px solid steelblue;
    border-radius: 15px;
    font-style: italic;
}

.top-nav {
    display: flex;
    flex-direction: row;
    height: 100px;
    align-items: center;
    justify-content: space-around;
  }
  
  .menu {
    display: flex;
    flex-direction: row;
    list-style-type: none;
    /* overflow: hidden; */
    margin: 0 auto;
    padding: 0;
    /* border: 2px solid red; */
  }
  
  .menu #gl {
    background-color: steelblue;
    border-radius: 20px;
  }
  
  .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;
  }

/* ========================================= t.b.v. Hamburger Menu (NOT visable)   ============================= */

/*  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);
}

/* ============================ Start page under top-menu:  any box and position where needed !   ============================== */

.box2 {
    grid-row-start: 2;
    grid-column-start: 1;
    grid-column-end: 4;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: slategray;
    text-align: center;
    letter-spacing: 25px;
    margin: 40px 20px 0px 20px;
}

.box2 .heading {
    width: 50%;
    padding-bottom: 50px;
}

.box2 .heading h3 {
    font-size: 3em;
    padding-bottom: 10px;
    border-bottom: 3px solid steelblue;
}

.box2 .heading h3 span {
    font-weight: 100;
}

.box2 .frame {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.box2 .frame .dream {
    display: flex;
    flex-direction: column;
    width: 32.5%;
}

.box2 .frame .dream img {
    width: 100%;
    padding-bottom: 15px;
    border-radius: 5px;
}

/*  ==============================================================================  */

.webstatcode {
    visibility: hidden;
}

/* ===========================================================================   Any screen width behavior   =========================================== */

/* ============= Mobile behavior = 0-1250px width ================= */

@media (max-width: 1250px) {
    .menu .item a {
        margin: 0 30px;
    }

    .box2 {
        letter-spacing: 20px;
    }
}

/* ============= Mobile behavior = 0-1024px width ================= */

@media (max-width: 1024px) {
    .menu .item a {
        margin: 0 10px;
    }

    .box2 {
        letter-spacing: 15px;
    }
}

/* ============= Mobile behavior = 0-820px width ================= */

@media (max-width: 820px) {
    .menu-button-container {
        display: flex;
    }

    /* 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 darkslategray;
    }

    .menu .item a {
        font-size: 18px;
        letter-spacing: 5px;
    }

    .box2 .frame {
        flex-direction: column;
    }

    .box2 .frame .dream {
        width: 100%;
    }
}

/* ============= Mobile behavior = 0-640px width ================= */

@media only screen and (max-width: 640px) {
    .box2 .heading {
        width: 70%;
    }

    .box2 .heading h3 {
        font-size: 23px;
    }

}

/* ============= Mobile behavior = 0-420px width ================= */

@media (max-width: 420px) {
    .menu li {
        width: 100%;
    }
}