:root {
    --link-color: #2a6a88;
}

body {
    max-width: 800px;
    margin: auto;
    padding: 1em;
    line-height: 1.5;
}

/* header and footer areas */
.menu {
    padding: 0;
}
.menu li {
    display: inline-block;
}
.article-meta,
.menu a {
    text-decoration: none;
    background: #eee;
    padding: 5px;
    border-radius: 5px;
}
.menu,
.article-meta,
footer {
    text-align: center;
}
.title {
    font-size: 1.1em;
}

a {
    color: var(--link-color);
}

footer a {
    text-decoration: none;
}
hr {
    border-style: dashed;
    color: #ddd;
}

/* code */
pre {
    border: 1px solid #ddd;
    box-shadow: 5px 5px 5px #eee;
    padding: 1em;
    overflow-x: auto;
}
code {
    background: #f9f9f9;
}
pre code {
    background: none;
}

/* misc elements */
img,
iframe,
video {
    max-width: 100%;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

main {
    hyphens: auto;
}
blockquote {
    background: #f9f9f9;
    border-left: 5px solid #ccc;
    padding: 3px 1em 3px;
}
.terms {
    font-size: 0.9em;
}
table {
    margin: auto;
    border-top: 1px solid #666;
    border-bottom: 1px solid #666;
}
table thead th {
    border-bottom: 1px solid #ddd;
}
th,
td {
    padding: 5px;
}
thead,
tfoot,
tr:nth-child(even) {
    background: #eee;
}

#TableOfContents,
#TOC {
    border: 1px solid #eee;
    border-radius: 5px;
}

.tooltip {
    position: relative;
    display: inline-block;
    /*border-bottom: 0px dotted black;*/
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 120px;
    background-color: black;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px 5px;

    /* Position the tooltip */
    position: absolute;
    z-index: 1;
    top: -5px;
    left: 105%;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
}
