body, html {
    background-color: #212121;
    color: whitesmoke;
    width: 100vw;
    height: 100vh;
    margin: 0;
    padding: 0;
    overflow: hidden;

}

* {box-sizing: border-box;}

#testform {display: none;}

h2 {
    font-size: 16px;
    width: 50vw;
    position: fixed;
    top: 0;
    right: 0;
    margin: 0px;
    margin-top: 20px;
    margin-right: 20px;
    height: 60px;
    text-align: right;
}
.link_container {
    width: 110px;
    height: 80vh;
    overflow-y: auto;
    position: fixed;
    top: 10vh;
    left: 20px;
    border-right: 2px double steelblue;
    background-color: transparent;
    display: flex;
    flex-direction: column;
    padding: 10px;
    
}



.link_container a {
    display: block;
    padding: 10px;
    text-decoration: none;
    color: whitesmoke;
    box-shadow: 0.5px 0.5px 1px whitesmoke;
        
    border-radius: 7px;
    transition: 0.3s ease;
    margin-top: 7px;
    
}

.link_container a:hover {
    
    box-shadow: 0.5px 0.5px 1px darkturquoise;
    background-color: steelblue;
}
a:visited {
    color: whitesmoke;
    text-decoration: none;
}

.center-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 70vh;
    
}

p {text-align: center; color: whitesmoke;}

.media {
    width: 60vw;
    height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 1em auto;
    border-radius: 10px;
    
    padding: 5px;
    overflow: hidden;
}

.media img {
    max-width: 100%;
    max-height: 100%;
    height: auto;
    object-fit: contain;
    
}
.caption {
    text-align: center;
    /*margin: 0.5em 0 1em 0;*/
    font-size: 1.1em;
    color: steelblue;
    width: 60vw;
    margin-left: auto;
    margin-right: auto;
}

.nav-buttons {
    display: flex;
    justify-content: center;
    gap: 1em;
    margin: 1em 0;
}

.button {
    background: #212121;
    color:whitesmoke;
    
    padding: 0.5em 1.2em;
    border-radius: 5px;
    text-decoration: none;
    font-size: 1em;
    transition: background 0.2s;
    box-shadow: 1px 1px 1px steelblue, -1px -1px 1px whitesmoke;
}
.button:hover {
    background: transparent;
    box-shadow: 1px 1px 1px darkturquoise, -1px -1px 1px turquoise;
}







@media only screen and (max-width: 600px) and (orientation:portrait) {

    .media {
        width: 95vw;
        height: 50vh;
        margin-top: 10vh;}

    

    h2 {
        text-align: right;
        width: 70vw;
        position: fixed;
        right: 0px;
        top: 0px;
        font-size: 14px;
        color: steelblue;
        padding: 0;
        margin: 0;
    }

    .link_container {
    position: fixed;
    top: 0;
    left: 0;
    margin-top: 30px;
    height: 10vh;
    width: 100vw;
    padding: 7px 0 20px 0;
    border: none;
    background-color: transparent;
    display: flex;
    flex-direction: row;
    align-items: center;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 8px;
    scrollbar-width: thin; /* voor Firefox */
    -webkit-overflow-scrolling: touch; /* soepel scrollen op iOS */
  }

  .link_container a {
    flex: 0 0 auto;
    min-width: 60px;
    margin: 5px 0 5px 8px;
    padding: 6px 14px;
    box-shadow: 1px 1px 1px steelblue, -1px -1px 1px darkturquoise;
    border-radius: 8px;
    text-align: center;
    font-size: 1.1em;
    white-space: nowrap;
  }

    .link_container a:hover {
        box-shadow: 1px 1px 1px whitesmoke,
        -1px -1px 1px steelblue;
        

    }

    .link_container::-webkit-scrollbar {
  height: 6px;
}
.link_container::-webkit-scrollbar-thumb {
  background: #444;
  border-radius: 3px;
}

    .nav-buttons {
        position: fixed;
    bottom: 6vh; 
    left: 0;
    width: 100vw;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 10px 0;
    background: rgba(0,0,0,0.4); /* optioneel: beetje achtergrond */
    z-index: 10;
    gap: 0;
    border: none;
    margin: 0;

    }

    .container {
        margin-top: 10vh;
        
    }

.caption {
    position: fixed;
    bottom: 15vh; /* boven nav-buttons */
    left: 0;
    width: 100vw;
    min-height: 40px;
    max-height: 20vh;
    overflow-y: auto;
    background: transparent;
    color: whitesmoke;
    text-align: center;
    z-index: 10;
    padding: 0.5em 1em;
    margin: 0;
    font-size: 16px;
    font-family: 'Courier New', Courier, monospace;
  }
}

@media only screen 
  and (max-device-width: 500px) 
  and (orientation: landscape) {
    body {
        background-color: #212121;
    }
    .caption {
        color: #212121;
    }
    p {display: none;}

    .nav-buttons {
        width: 100vw;
        
        margin: 0;
        margin-bottom: 20px;
        position: fixed;
        left: 0;
        bottom: 0;
        gap: 250px;
        color: whitesmoke;
        

    }
    
}

