body{
    font-family: sans-serif;
    font-size: 16px;
    color: #404040;
    margin: 0;
    padding: 0;
}

p, ul {
    line-height: 160%;
}

a {
    color: #004d99;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

pre {
    background: #f4f0ec;
    padding: 4px;
    font-size: 14px;
}

ul li:hover {
    background: #f4f0ec;
}
        
ul li a {
    display: inline-block;
    width: 220px;
}

/*
#left, #mainpage, #right {
    background: yellow;
}
*/

#header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 12px;
    border-bottom: 1px solid #dcdfe3;
}

h1 {
    /*display: flex;*/
    color: #008000;
    margin: 0;
    padding: 8px 0;
}

#linkdiv {
    display: flex;
    gap: 12px;
}

#wrapper {
    display: flex;
    gap: 10px;
}

#left, #right {
    /*display: flex;*/
    flex-basis: 16%;
    align-items: flex-start;
}

#left h4 {
    background: #008000;
    color: #FFFFFF;
    text-align: center;
}

#mainpage {
    flex: 1;
    align-items: flex-start;
}

#mainpage > *, #left > *, #right > * {
    margin-right: 6px;
    margin-left: 6px;
}

#thumbnails {
    display: flex;
    align-content: space-between;
}

#thumbnails img {
    border: 1px dotted #004d99;
    margin: 0 10px 10px 0;
}

@media only screen and (max-width: 800px) {
    body {
        font-size: 15px;
    }

    #wrapper {
        justify-content: center;
    }

    #left, #right {
        display: none;
    }

    #mainpage {
        flex: 0 0 100%;
    }

    #header {
        display: flex;
        flex-direction: column;
        justify-content: center;
  }

  ul li span {
    display: none;
  }    
}
