body, html {
    background-color: #212121;
    color: lime;
    width: 100vw;
    height: 100vh;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.sorry {
    display: none;
}

#uitlegpage {display: none;}

#showidsmallscreen {display: none;}



body {
        
    max-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}



* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    touch-action: manipulation;
}

#selflink {display: none;}



#klasse-color {
    color: deeppink; 
    
    padding: 5px;
    font-weight: bold;
}

#redirect {
    color: lime;
    margin: 50px;
    font-size: 18px;
    
}

#uitlegpage1 {
    position: fixed;
    top: 0;
    right: 0;
    margin-right: 60px;
    margin-top: 0;
    padding: 7px;
    border-radius: 50%;
    background-color: red;
    z-index: 1000;
}

.id-form {
    
    position: fixed;
    top: 0;
    right: 0;
    
    z-index: 1000;
}

.alttext {
    color: whitesmoke;
    position: absolute;
    bottom: 0;
    font-size: 13px;
    width: 100%;
    text-align: center;
}

#datesmall {
    color: yellow;
    font-size: 12px;
    
    position:absolute;
    right: 20px;
    margin: 0;
    padding: 5px;
    font-style: italic;
}





#imgbox, #movbox {
    
    height: 40%;
    width: 40%;
    display: flex;
    align-items: center;
    position: absolute;
    top: 0;
    right: 0;
    
    padding: 0;
    margin: 0;
}

.grid-foto {
    max-width: 100%;
    max-height: calc(100% - 10px);
    padding-bottom: 20px;
    margin: 0px auto;
    
    align-self: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease, z-index 0s;

    cursor: pointer;
    position: relative;
}

.grid-mov {
    max-width: 100%;
    max-height: calc(100% - 10px);
    object-fit: contain;
    padding-bottom: 20px;
    margin: 0px auto;
    align-self: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease, z-index 0s;
    display: block;
    cursor: pointer;
    position: relative;
}

.grid-foto-groot {
    position: fixed;
    top: 50%;
    left: 50%;
    width: auto;
    max-height: 100%;
    max-width: 100%;
    transform: translate(-50%, -50%) scale(1);
    z-index: 1099;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
    background: transparent;
}

.grid-mov-groot {
    position: fixed;
    top: 50%;
    left: 50%;
    width: inherit;
    height: auto;
    transform: translate(-50%, -50%);
    z-index: 1099;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
    background: transparent;
    object-fit: contain;
}


#home {
    
    width: 50px;
    height: 20px;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 200;
    background-color: #212121;
}

#home:hover {
    background-color: red;
    z-index: 1000;
    color: white;

}

.back {display: none;}
.backlow {
    
    display: block;
    width: 50px;
    height: 30px;
    position: fixed;
    bottom: 0;
    right: 0;
    z-index: 1000;
    background-color: yellow;
    font-weight: bold;
    border-radius: 5px;
    border: 1px solid deeppink;
}



#nieuw {
    color: red;
    font-weight: bold;
}


.container {
    position: relative;
    width: calc(100vw - 40px);
    margin: 0 auto; /* alleen horizontaal centreren */
    padding: 12px;
    box-sizing: border-box;
    height: calc(100vh - 24px); /* 12px padding boven/onder */
    background-color: #212121;
    border: 2px double ivory;
    overflow: hidden;
}

#filterForm {
    margin-bottom: 10px;
    padding: 12px;
    
}

#klasse {
    border: 2px solid lime;
    height: auto;
    padding: 7px;
    border-radius: 3px;
    width: 30%;
    height: 40px;
    margin-right: 20px;
    font-size: 14px;
}
#klasse:hover {
    border: 2px solid deeppink;
    
}

#soort {
    border: 2px solid lime;
    height: auto;
    padding: 7px;
    border-radius: 3px;
    width: 30%;
    height: 40px;
    margin-right: 20px;
    font-size: 14px;
}
#soort:hover {
    border: 2px solid deeppink;
    
}

#zoek {
    padding: 7px;
    border: 2px solid deeppink;
    color: deeppink;
    background-color: #212121;
    
    width: 25%;
    height: 40px;
    border-radius: 12px;
    font-size: 18px;
    font-weight: bold;
}

#zoek:hover {
    color: #212121;
    background-color: lime;
    border: 2px solid lime;
    
}



.zoek-container {
    width: 35vw;
    height: 90vh;
    overflow: hidden;
    
    position: absolute;
    left: 0px;
    top: 0px;
    padding: 10px;
    margin-right: 10px;
}
.resultaten {
    height: 60vh;
    overflow-x: hidden;
    overflow-y: auto;
    
    position: relative;
    margin: 0;
    padding: 12px;
}

#iframe {
    width: 60vw;
    height: 90vh;
    position: fixed;
    bottom: 25px;
    right: 25px;
    border: transparent;
    background-color: transparent;
    padding: 10px;
}

h1 {
    display: none;
    color: deeppink;
    font-size: 20px;
    text-align: center;
    padding: 0px;
    margin-bottom: 7px;
}
#aantal {
    color: yellow;
    text-decoration: none;
    box-shadow: none;
    text-align: center;
    position: relative;
    margin: 0px;
    padding: 0px;
    max-width: 35vw;
    
}

#aantal p {
    font-size: 12px;
    padding: 0;
    color: yellow;
}

#aantal h2 {
    font-size: 14px;
}

h3 {
    color: lime;
    text-decoration: none;
    box-shadow: none;
    text-align: center;
    position: relative;
    margin: 0px;
    padding: 5px;
    font-size: 20px;
    font-family: 'Courier New', Courier, monospace;
    width: 50%;
    text-align: center;
    z-index: 2000;
    background-color: deeppink;
}

.info p {
    color: deeppink;
    margin: 7px;
    padding: 12px;
    width: 100%;
    
    
}

#color {
    color: yellow;
    
    
}

.info #date {
        position: absolute;
        right: 0px;
        text-align: right;
        color: lime;
        font-style: italic;
    }
.info #showid {
    position: absolute;
    top: 0;
    right: 0;
    text-align: right;
    color: yellow;
    font-size: 12px;
    margin-top: 5px;
}

.info {
    width: 50%;
    height: 40%;
    padding-top: 12px;
    z-index: 20;
    position: relative;

}

.nextprev {display: none;}
.vorige {display: none;}
.volgende {display: none;}

.info > .nextprev {
    
    position: absolute;
    bottom: 0;      
    left: 0;       
    display: flex;  /* knoppen naast elkaar */
    gap: 30px;      /* ruimte tussen knoppen */
    padding: 5px;
    
    background: transparent; /* optioneel voor zichtbaarheid */
    z-index: 100;
    width: 150px;    /* laat breedte afhangen van inhoud */

}

.nextprev .vorige {
    
    border: 1px solid lime;
    color: lime;
    background-color: #212121;
    font-size: 14px;
    transition: 0.5s;
    padding: 5px 7px;
    border-radius: 5px;
}

.nextprev .volgende {
    
    border: 1px solid lime;
    color: lime;
    background-color: #212121;
    font-size: 14px;
    transition: 0.5s;
    padding: 7px 5px;
    border-radius: 5px;
}

.volgende:hover, .vorige:hover {
    border-color: deeppink;
    color: yellow;
}

.laatste, .eerste {
    padding: 5px;
    color: red;
    font-size: 14px;
    background-color: #212121;
    border: none;

}


.beschrijving {
    height: 53%;
    max-height: 53%;
    overflow-x: hidden;
    overflow-y: auto;
    margin: 0px;
    padding: 20px;
    
    background-color: transparent;
    color:  whitesmoke;
    font-family:Arial, Helvetica, sans-serif;
    line-height: 2;
    font-weight: normal;
    position: relative;
    font-size: 16px;
    box-shadow: inset 0 0 7px #333333;
    border-radius: 0px;
}



a, a:visited, a:active {
    color: lime;
    text-decoration: none;
    margin: 5px;
    font-family: 'Courier New', Courier, monospace;
}

a:hover {
    color: deeppink;
}

#kiestext {
    width: 90%;
    position: absolute;
    font-family: 'Courier New', Courier, monospace;
    margin-top: 0px;
    font-size: 14px;
    left: 50%; 
    transform: translate(-50%);
    text-align: center;
    color: yellow;
    background-color: #212121;
    z-index: 250;
}

#kiestext p > #yellow {
    color: yellow !important;
}

ul {
    padding-bottom: 20px;
}

li {
    width: 100%;
    list-style-type: none;
    margin-left: -5px;
    padding-right: 12px;
    text-align: left;
    padding: 5px;
    border-bottom: 1px solid darkslategray;

}



@media only screen and (max-width: 500px) and (orientation:portrait) {
    
    html, body {
        overflow: hidden !important; 
        height: 100vh;
    }
    body {
        overflow: hidden;
        height: 100%;
        display: block;
        justify-content: center;
        align-items: center;
    }

    html {
        -webkit-text-size-adjust: 100%;
    }

    #home {
        margin: 0;
        z-index: 1000;
    }

    #grid {display: none;}
    #uitlegpage1 {display: none;}
    #iframelink {display: none;}
    #selflink {display: block;}

    .container, .zoek-container {
        box-sizing: border-box;
        width: 100%;
        max-width: 500px;
        margin: 0 auto;
        margin-top: 10px;
        padding: 12px;
        height: calc(100vh - 24px);
        min-height: calc(100vh - 24px); 
        max-height: calc(100vh - 24px);
        
        background-color: transparent;
        overflow: hidden;
        
    }

    @supports (height: 100dvh) {
        .container, .zoek-container {
            min-height: calc(100dvh - 24px);
            max-height: calc(100dvh - 24px);
        }
    }

    .container {
        border: 3px solid deeppink;
        display: grid;
        row-gap: 10px;
        grid-template-rows: 30% 20% 1fr;
        grid-template-columns: 40% 60%;
        grid-template-areas: 
        "top-left top-right"
        "middle middle"
        "bottom bottom";
    }

    .zoek-container {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

#uitlegtext {
    
    font-family: 'Courier New', Courier, monospace;
    width: 80vw;
    position: relative;
    margin: 60px auto;
    font-size: 15px;
    text-align: center;
    color: yellow;
    background-color: #212121;
    font-weight: normal;
    
}

#showid {
    display: none;
}

#showidsmallscreen {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    margin-left: 17vw;
    margin-top: 20px;
    color: yellow;
}

#uitlegpage {
    display: flex !important;
    position: fixed;
    top: 0;
    right: 0;
    z-index: 500;
    width: 30px;
    height: 30px;
    align-items: center;
    border-radius: 50%;
    
    justify-content: center;
    background-color: red;
    cursor: pointer;
    font-size: 18px;
    margin: 0;
}



#exit {
    
    padding: 4px 7px 4px 7px;
    width: auto;
    height: auto;
    font-size: 24px;
    position: fixed;
    top: 0;
    left: 0;
    background-color: yellow;
    
}

.id-form {
    left: 70%;
    right: auto;
    transform: translateX(-50%);
    z-index: 1000;
}

#select {
    width: 65px;
    height: 25px;
    border-radius: 0%;
    color: yellow;
    background-color: #212121;
    border: 1px solid yellow;
    font-size: 16px;
}

    

    

    #klasse {
        border: 2px solid lime;
        height: auto;
        padding: 7px;
        border-radius: 3px;
        width: 44%;
        height: 40px;
        margin: 0;
        margin-left: 12px;
        margin-top: 20px;
        position: absolute;
        top: 0;
        left: 0;
        font-size: 14px;
    }
    #klasse:hover {
        border: 2px solid deeppink;
        
    }
    
    #soort {
        border: 2px solid lime;
        height: auto;
        padding: 7px;
        border-radius: 3px;
        width: 44%;
        height: 40px;
        margin: 0;
        margin-right: 12px;
        margin-top: 20px;
        position: absolute;
        top: 0;
        right: 0;
        font-size: 14px;
    }
    #soort:hover {
        border: 2px solid deeppink;
        
    }
    
    #zoek {
        padding: 0px;
        border: 2px solid deeppink;
        color: deeppink;
        background-color: #212121;
        position: absolute;
        top: 14vh;
        right: 25px;
        width: 35%;
        height: 40px;
        border-radius: 50%;
        font-size: 18px;
        font-weight: bold;
    }
    
    #zoek:hover {
        color: #212121;
        background-color: lime;
        border: 2px solid lime;
        
    }
    


    #iframe {
        display: none;

    }

    .back {
        display: block;
        width: auto;
        height: auto;
        padding: 7px;
        position: fixed;
        top: 0;
        left: 0;
        z-index: 2000;
        background-color: black;
        font-weight: normal;
        border-radius: 5px;
        border: 1px solid lime;
        color: lime;
        font-size: 12px;
    }

    

.backlow {
    display: block;
    width: 50px;
    height: 30px;
    position: fixed;
    bottom: 0;
    right: 0;
    z-index: 1000;
    background-color: yellow;
    font-weight: bold;
    border-radius: 5px;
    border: 1px solid deeppink;
}



#imgbox {
    
    height: 100%;
    width: 100%;
    
    display: block;
    position: relative;
    grid-area: top-right;
    padding: 0;
    margin: 0;
    text-align: right;
}

#movbox {
    
    height: 100%;
    width: 100%;
    
    display: block;
    position: relative;
    grid-area: top-right;
    padding: 0;
    margin: 0;
    text-align: right;
}


    
#imgbox .grid-foto {
    max-width: 100%;
    max-height: 100%;
    padding-bottom: 20px;
    margin: 0;
    display: inline-block;
    
    
    transition: box-shadow 0.1s ease, z-index 0s;

    cursor: pointer;
    
}

.grid-foto-groot {
    position: fixed;
    top: 50%;
    left: 50%;
    width: auto;
    max-height: 100vh;
    max-width: 100vw;
    transform: translate(-50%, -50%) scale(1.1);
    z-index: 1099;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
    background: #212121;
    padding: 0;
}

    #imgbox .alttext {
        color: yellow;
        position: absolute;
        bottom: 0;
        left: 0;
        font-size: 13px;
        width: 100%;
        padding-right: 0px;
        text-align: right;
        background-color: transparent;
        font-style: italic;
    }

     #movbox .alttext {
        color: yellow;
        position: absolute;
        bottom: 0;
        left: 0;
        font-size: 13px;
        width: 100%;
        padding-right: 0px;
        text-align: right;
        background-color: transparent;
        font-style: italic;
    }


    .resultaten {
        height: 57vh;
        position: absolute;
        margin-top: 32%;
        width: 100%;
    }

    .info {
    position: relative;
    height: 100%;
    width: 100%;
    z-index: 20;
    overflow: hidden;
    margin: 0;
    padding: 0;
    grid-area: middle;
    
    
}

.nextprev {
    display: block;
}
.vorige {display: block;}
.volgende {display: block;}

.info > .nextprev {
    
    text-align: right;
    gap: 15px;
    bottom: 0;
    left: auto;
    right: 0;
    padding: 0;
    margin: 0;
    width: 130px;
    

}

.nextprev .vorige {
    padding: 3px 6px;
    margin: 0px;
    border: 1px solid lime;
    color: lime;
    background-color: #212121;
    font-size: 12px;
}

.nextprev .volgende {
    padding: 3px 6px;
    margin: 0px;
    border: 1px solid lime;
    color: lime;
    background-color: #212121;
    font-size: 12px;
}


    
    
    
    
    .beschrijving {
        min-height: 100%;
        max-height: 100%;
        width: 100%;
        overflow-x: hidden;
        overflow-y: auto;
        margin: 0;
        padding: 10px;
        background-color: lime;
        color: #212121;
        border-radius: 10px;
        font-family: 'Courier New', Courier, monospace;
        box-shadow: inset 0 0 20px deeppink;
        font-weight: bold;
        grid-area: bottom;
        text-align: center;

        font-size: 14px;
    }
    

    h1 {
        display: none;
        font-size: 16px;
        background-color: turquoise;
        color: deeppink;
        margin: 0;
        padding: 0;
        position: relative;

    }

    #aantal {
        color: yellow;
        text-decoration: none;
        box-shadow: none;
        text-align: left;
        position: absolute;
        top: 14vh;
        left: 0px;
        padding: 0px;
        margin-left: 12px;
        width: 50vw;
        height: 15dvh;
        
    }


   

    h3 {
        text-align: center;
         z-index: 2000;
         box-shadow: none;
         grid-area: top-left;
         min-width: 0;
         width: 100%;
         height: auto;
         margin-top: 30px;
         padding-left: 10px;
         transform: rotate(-20deg);
         word-break: break-word;
         overflow-wrap: break-word;
         font-family: fantasy;
         background-color: transparent;
        }

    .info p {
        color: ivory;
        text-align: left;
        padding: 5px;
        font-family: 'Courier New', Courier, monospace;
        margin: 0;
        
        width: 100%;
        
    }

    p #date {
        position: absolute;
        right: 20px;
        color: lime;
        font-style: italic;
        
    }

    
}

@media  only screen and (max-width: 700px) and (orientation: landscape) {
    body, html {
        background-color: steelblue;
        color: ivory;
    }

    .container {
        display: none;
    }

    .sorry {
        display: block;
        width: 80vw;
        height: auto;
        
        
        font-size: 18px;
        margin: auto;
        transform: translate(0%, -40%);
    }

    
}

