body {
    font-family: 'Roboto', Arial, sans-serif;
    background: linear-gradient(#e0e0e0 1px, transparent 1px),
                linear-gradient(90deg, #e0e0e0 1px, transparent 1px);
    background-size: 35px 35px;
}

#header {    
    display: flex;
    align-items: flex-start;
    margin: 1em 0.5em 1.5em 0.5em;
}

#logo {
    font-size: 1.8em;
    padding: 0.2em 0.5em;
    background: #F5FBFF;
    border: 1px solid black;
}

.menu {
    padding: 0.0em 0.25em;
    background: white;
    border: 1px solid black;
    margin-left: 0.8em;
}

.push {
    margin-left: auto;
}

body {
    line-height: 1.618;
    max-width: 44em;
    margin: auto;  
    background-color: #f9f9f9;
}

#contents {
    color: black;
    padding: 0.1em 0.8em 1.5em 0.8em;
    background-color: white;
    margin-top: 1.4em;
    /* border-top: 1px solid black; */
}

#frontpage {
    padding: 0em 0.6em;
}

#frontpage .article {
    color: black;
    border: 1px solid black;
    margin: 0em 0em 1.4em 0em;
    padding: 0.15em 1em 1em 1em;
    background: white;
}

.article, .title {
    position: relative;
}

.date {    
    position: absolute;    
    top: 0px;
    right: 5px;
    font-size: 0.9em;
}

body {
    font-size: 1.1rem;
}

.title h1 {
    text-align: center;
}

#frontpage .article:hover, #logo:hover, .menu:hover, a:hover {
    background-color: #E6F2FF;
}

@media screen and (min-width: 768px) {
    #header {
        margin: 0.6em 6em 2em 6em;
    }

    .menu {
        padding: 0.0em 0.5em;
    }

    #frontpage {
        padding: 0em 5em;
    }
    
    #frontpage .article {        
        margin: 0em 1em 1.4em 1em;
        padding: 0.5em 2em 1.5em 2em;
    }
    
    #contents {
        padding: 2em 3em 0em 3em;
        margin-bottom: 1.4em;
        border: 1px solid black;
    }

    .title h1 {
        padding-top: 0.4em;
        padding-bottom: 1em;
    }
}

pre, code, blockquote {
    overflow-x: auto;   
    padding-left: 0.75em;
    padding-right: 0.75em;
    margin-left: 0px;
    margin-right: 0px;
    border: 1px solid black;    
}

blockquote {
    font-size: 0.93em;
    background-color: #f9f9f9;
}

pre, code {
    font-size: 0.85em;
}

img, video {
    height: auto;
    max-width: 100%;
}

#contents a, #contents a:visited{
    color: black;
    text-decoration-line: underline;    
}

a {
    text-decoration: none;
    color: #005b96;
}


h1, h2, h3, h4, h5, h6 {
    text-align: left;
    line-height: 1.3;    
    font-weight: bold;    
    margin-top: 1.2rem;
    margin-bottom: 1em;
    overflow-wrap: break-word;
    word-wrap: break-word;
    -ms-word-break: break-all;
    word-break: break-word;    
}

h1 {
    font-size: 1.45em;
}

.article h1 {
    font-size: 1.26em;
    margin-bottom: 0.5em;
}

h2 {
    font-size: 1.26em;
    margin-top: 2.75rem;
}

h3 {
    font-size: 1.2em;
}

h4 {
    font-size: 1.1em;
}

#copyright {    
    text-align: center;
    padding: 1.5em 0em;
}
