:root {
    --color-background-lightgray: #eee;
}
html,
body,
main {
    margin: 0;
    block-size: 100%;
    font-family: 'Heebo', sans-serif;
}
li,
a:any-link {    
    list-style-type: none;
    text-decoration: none;
    color: inherit;
}
/* HEADER */
.grid,
section {
    display: grid;
    grid-template-columns: 1fr minmax(auto, 1700px) 1fr;
    grid-template-areas: ". content .";
}
.content {
    grid-area: content;
    padding: 0 1em 0 1em;
}
.flex {
    display: flex;
    justify-content: space-between;
}
.foto .flex {
    flex-wrap: wrap;
    row-gap: .3em;
}
header {
    padding: 0 1em 0 1em;
    position: absolute;
    box-sizing: border-box;
    align-items: end;
    inline-size: 100%;
    block-size: 125px; 
    z-index: 1;
}
.logo {
    grid-area: content;
    /*background-repeat: no-repeat;
    background-size: contain;*/
    justify-self: start;    
    inline-size: fit-content;
}
.logo img {
    width: 58px;
}
nav {
    grid-area: 1/2;
    justify-self: end;
    block-size: fit-content;   
    font-size: larger;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: white;
}
header ul {
    padding: 0;
    display: flex;
}
header li > a {
    padding: 10px;
    letter-spacing: 2px;
    align-self: center;
}
header li > a:hover {
    background-color: black;
}
/* DROPDOWN MENU */
.sub-menu {
    position: relative; 
}
.dropdown {
    position: absolute;
    top: 42px;
    left: 0px;
    padding: 1em 0;
    background-color: var(--color-background-light);
    color: var(--color-text);
}
.dropdown li + li {
    margin-top: 10px;
}
.dropdown > li {
    padding: 0.5em 1em;
    inline-size: 12em;  
    text-align: center;
}
.dropdown > li:hover {
    background-color: var(--color-background-dark);
}
.sub-menu:hover .dropdown {
    display: block;
}
.active {
    border-radius: 2px;
    background-color: var(--color-background-dark);
}
.hamburger {
    display: none;
    font-size: 24px;
    cursor: pointer;
    user-select: none;
}
input[type=checkbox]{
    display: none;
}
/* MAIN */
.bg {
    background-image: url("../images/Rijsttafel+zijkant.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    block-size: 100%;
}
.bestelmenu {
    text-align: center;
    block-size: 100%;
    inline-size: 100%;
    backdrop-filter: contrast(100%) brightness(60%); /* FILTER */
}
.bestelmenu a {
    position: relative;
    padding: 1.5em 2em 1.5em 2em;
    background-color: white;
    color: black;
    font-weight: 800;
    font-size: small;
    text-transform: uppercase;
    letter-spacing: 4px;
    border: none;
    border-radius: 5px;
    top: 40%;
}
.bestelmenu a:hover {
    opacity: 80%;
}

.background2 {
    background-image: url("../images/image-asset.jpeg");
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
}
.background2 .content {
    padding: 5em 0 5em 0;
    backdrop-filter: contrast(100%) brightness(60%); /* FILTER */
}
.background2 p {
    
    padding: 0 1em 0 1em;
}
/* FOTO */
.foto {
    padding: 1em 0 1em 0;
}
.foto img {
    inline-size: 49.7%;
}
/* KAARTEN */
.card {
    margin: 1em 0 1em 0;
}
.card-container {
    grid-area: content;
    display: grid;
    grid-template-columns: minmax(auto,1fr);
    column-gap: 1em;
    grid-row-gap: 20px;
}
.card-container a:nth-child(2) img {
    filter:contrast(100%) brightness(70%);
}
.card figure {
    break-inside: avoid;
    overflow: hidden;
    margin: 0;
    block-size: 100%;
    /*box-shadow: 3px 3px 10px 2px lightgray;*/
}
.card figure h3 {
    font-size: 1.5em;
    padding: 0 1em 0 1em;
}
.card figure p {
    padding: 0 1em 1em 1em;
}
.card figure > img {
    inline-size: 100%;
}
.card-container figure:hover {
    box-shadow: 3px 3px 10px 2px lightgray;
}
/* FOOTER */
footer {
    padding: 25px;
    justify-items: center;
    align-items: center;
    text-align: center;
    background-color: #223718;
}
footer > div:nth-child(1) {
    display: flex;
    color: white;
    flex-direction: column;
    justify-items: center;
    list-style-type: none;
    margin: 10px;
}
@media screen and (min-width:768px) {
    header {
        padding: 0 3em 0 3em;
    }
        /* KAARTEN */
    .card-container {
        grid-template-columns: 100%;
    }
    .card figure {
        display: flex;
    }
    .card figure > img {
        inline-size: 30%;
    }
    a:nth-child(2) figure {
        flex-flow: row-reverse;
        background-color: var(--color-background-lightgray);
    }
}
@media screen and (min-width:1024px) {
    .background2 .content {
        padding: 10em 0 10em 0;
    }
    /* FOTO */
    .foto {
        padding: 3em 0 3em 0;
    }
    .foto img {
       inline-size: 24.6%;
    }
        /* KAARTEN */
        .card-container {
            grid-template-columns: repeat(3,minmax(auto,1fr));
        }
        .card figure {
            display: inherit;
        }
        .card figure > img {
            inline-size: 100%;
        }
}
/* RESPONSIVE MOBIEL MENU */
@media (max-width: 768px) {
    header {
        position: relative;
        block-size: 80px;
        align-items: center;
        background-color: #191606;
    }
    .logo {
        justify-self: center;
    }
    .logo img {
        width: 35px;
    }
    .menu { 
        display:none;
        position: absolute;
        background-color: rgba(25, 22, 6, .7);
        top: 60px;
        right: 0;
        left: 0;
        text-align: center;
        padding: 16px 0;
    }
    .menu li + li {
        margin-block-start: 15px;
    }
    .dropdown {
        left: 0;
        right: 0;
    }
    .dropdown > li {
        box-sizing: border-box;
        padding: 0.5em 1em;
        width: 100%;
    }
    .dropdown > li:hover {
        background-color: var(--color-background-dark);
    }
    .hamburger {
        display: block;
    }
    input[type=checkbox]:checked ~ .menu{
        display: block;  
    }
}
/*body, html {
    height: 100%;
    margin: 0;

}

 main p {
    background-color: gray;
    font-size: 1.25rem;
    font-weight: bolder;
    font-family: "Roboto";
    text-shadow: 0 1px 1px #fff;
    letter-spacing: 5px;
}


.background {
    grid-column: 1/4;
    grid-row: 1/2;
}

.background2 p {
    margin: auto;
    width: 800px;
}

.background3 {
    display: grid;
    grid-template-columns: repeat(4, minmax(150px, 300px));
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 40px;
}
.background3 {
    .margin: 40px;
}

section .background3 img{
    inline-size: 100%;
  }
  @media screen and (min-width: 360px) {
    section .background3 img{
        width: 49.5%;
      }
  }

.headcontainer {
    display: grid;
    grid-template-columns: 1fr minmax(auto, 1200px) 1fr;
    grid-template-areas: ". content .";
    padding: 20px;
    width: 100%;
    height: 600px;
}

.head {
    grid-area: content;
    margin-top: 50px;
    padding: 10px;
    width: 500px;
    height: 200px;
    color:beige;
    background-color: rgba(255, 255, 255, .2);
    font-family: 'Bangers', cursive;
    
}*/
