* {
    box-sizing: border-box;
}

/* font*/
h1 {
    font-size: 3rem;
    margin: 1%;
    margin-top: 2em;
}


/* grid */
.infogrid {
    display: flex;
    justify-content: center;
    align-self: center;
    min-height: 30vh;
    height: 100vh;
    }


.infogrid .container {
    padding: 10px;
    max-width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(250px, 1fr));
    grid-auto-rows: 200px;
    grid-auto-flow: dense ;
    row-gap: 10px;
    column-gap: 10px;
}

.infogrid .container .box {
    color: #929796;
    background: #f2f2f2;
    padding: 10px;
    display: grid;
    font-size: 1.5rem;
    place-items: center;
    text-align: center;
    transition: 0.5s;
    border-radius: 10px;
    text-transform: uppercase;
}

.infogrid .container .box:hover {
    background: #D0D8D1;
}

.infogrid .container .box img {
    max-width: 100px;
    position: relative;
    margin-bottom: 10px;
}

.infogrid .container .box:nth-child(1) {
    grid-column: span 2;
    grid-row: span 1;
}

.infogrid .container .box:nth-child(2) {
    grid-column: span 1;
    grid-row: span 2;
}

.infogrid .container .box:nth-child(4) {
    grid-column: span 1;
    grid-row: span 2;
}

.infogrid .container .box:nth-child(7) {
    grid-column: span 3;
    grid-row: span 1;
}

.infogrid .container .box:hover {
    cursor: pointer;
}

.tekst {
    font-size: 2rem;
}

/* info container */

.info-selector {
    height: fit-content;
}

.info-container {
    background-color: white;
}

.info-container .route .content img,
.info-container .Kranen-Parkeren .content img {
    
    margin: 20px 0px 20px 0px;
    border-radius: 5px 5px 0 0;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
}

.info-container .route .content .routekaart {
    border: none;
    border-radius: 5px 5px 0 0; 
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
}

/*
.info-container .Kranen-Parkeren {
    
    background-color: white;
}

.info-container .bezoekers {
    background-color: white;
}
.info-container .organisatie {
    background-color: white;
}
.info-container .tijdschema {
    background-color: white;
}
.info-container .startlijst {
    background-color: white;
}
.info-container .nood {
    background-color: white;
}
.info-container .route {
    background-color: white;
}
 */

 .info-container .content {
    margin: 1%;
}

/* back to top */
#back-to-top {
    display: none;
    position: fixed;
    bottom: 20px;
    right: calc(50% - 580px);
    z-index: 99;
    font-size: 18px;
    background-color: #555;
    color: white;
    border: none;
    cursor: pointer;
    padding: 10px;
    border-radius: 4px;
}

@media only screen and (max-width: 900px) {
    
    .tekst {
        font-size: 1.5rem;
    }

    .infogrid .container {
        grid-template-columns: repeat(auto-fit,minmax(150px,1fr));
        grid-auto-rows: 120px;
    }

    .infogrid .container .box img {
        max-width: 50px;
        position: relative;
        margin-bottom: 10px;
    }

    .infogrid .container .box:nth-child(1) {
        grid-row: span 1;
        grid-column: span 1;
    }

    .infogrid .container .box:nth-child(2) {
        grid-row: span 1;
        grid-column: span 1;
    }

    .infogrid .container .box:nth-child(3) {
        grid-row: span 1;
        grid-column: span 1;
    }

    .infogrid .container .box:nth-child(4) {
        grid-row: span 1;
        grid-column: span 1;
    }

    .infogrid .container .box:nth-child(5) {
        grid-row: span 1;
        grid-column: span 1;
    }
    
    .infogrid .container .box:nth-child(6) {
        grid-row: span 1;
        grid-column: span 1;
    }
    
    .infogrid .container .box:nth-child(7) {
        grid-row: span 1;
        grid-column: span 2;
    }

    .infogrid .container .box {
        width: 100%;
    }

  

    
    #back-to-top {
        position: fixed;
        right: 20px;
        bottom: 20px;
    }

.info-container .route .content img,
.info-container .Kranen-Parkeren .content img {
    width: 98vw; 
    margin: 20px 0px 20px 0px;
    border-radius: 5px 5px 0 0;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
}
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    align-items: center;
    justify-content: center;
    z-index: 999;
}

.lightbox.active {
    display: flex;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    transition: transform 0.3s ease-in-out;
}

.lightbox.active img {
    transform: scale(1);
}

img:hover {
    cursor: pointer;
}