* { box-sizing: border-box; }

html, body {
    height: 100%;
    margin: 0;
    overflow: hidden;
}

hr { 
    border: 1px solid rgb(180,0,0);
    margin: 1.25em 0 0.8em 0;
}

a { color: rgb(110,0,0); }

a:hover { color: rgb(200,0,0); }

@font-face {
    font-family: CenturySchoolbook;
    src: url(fonts/CenturySchoolbook/centuryschoolbook.ttf);
}

h1, h2 { 
    margin: 0;
    font-family: CenturySchoolbook;
}

h3 { 
    margin: 10px 0 0; 
    font-style: italic;
}

ul { 
    margin: 6px 0 12px;
    padding-left: 18px;
    list-style-type: circle;
}

li { margin-bottom: 6px; }

.column {
    float: left;
    height: 100%;   
    overflow: auto;
    padding: 0 16px;
}

.column.side { 
    width: calc((100vw - 1000px)/2);
    background-color: darkred;
    padding: 0;
}

.column.main { 
    width: 1000px;
    max-width: 100%;
    padding: 16px;
    display: flex;
    margin: auto;
    align-items: center;
    justify-content: safe center;
    flex-direction: column;
    background-color: #ddd;
    font-family: CenturySchoolbook;
}

.column.main p { text-align: center; }

.column.mid1 { width: 667px; }

.column.mid2 { width: 333px; color: rgb(110, 0, 0); }

.column.mid2 ul { margin-top: 6px }

.column.mid2 li { font-size: 18px; }

.column.mid2 h2 { font-size: 1.6em; }

@media screen and (max-width: 1000px) {
    .column.side { width: 0; height: auto; }

    .column.mid1 { width: 66.7%; }

    .column.mid2 { width: 33.3%; }
}

@media screen and (max-width: 800px) {
    .column.mid1, .column.mid2 { 
        width: 100%;
        height: auto;
    }

    html, body { overflow: auto; }
}

#menu {
    position: absolute;
    display: block;
    height: 100%;
}

#menu ul {
    display: none;
    margin: 0;
    width: 250px;
    height: 100%;
    padding-left: 0;
    list-style-type: none;
    background-color: rgba(0,0,0,0.75);
}

#menu a, #menu .current {
    display: block;
    color: white;
    padding: 10px;
    font-size: larger;
    font-weight: bold;
    font-family: Arial, Helvetica, sans-serif;
    text-decoration: none;
}

#menu a[target="_blank"]:after {
    background-image: url(imgs/new_tab.png);
    background-size: 13px 13px;
    display: inline-flex;
    width: 13px; height: 13px;
    margin-left: 8px;
    content: "";
}

#menu a:hover, #menu .current { 
    color: black;
    background-color: white;
}

#menu:hover ul {
    display: block;
}

#menu_btn {
    width: 36px;
    height: 30px;
    position: absolute;  
    left: 8px; top: 12px;
}

#name {
    font-size: 2.5em;
    margin: 0.5em 0 4px 0
}

#links {
    float: right;
    padding: 10px 2px 0px 10px;
    vertical-align: bottom;
}

@media screen and (max-width: 650px) {
    #links { float: none; padding: 10px 0; }

    #name { margin-top: 0; }
}

#links tr { height: 25px; }

#links img {
    display: flex;
    align-items: center;
}

#links a {
    color: #555;
    text-decoration: none;
}

#links a:hover {
    color: darkred;
    text-decoration: underline;
}

#classes li { margin-bottom: 4px; }