body {
    text-align: center;
    margin: 0;
    padding: 0;
    border: 0;
    color: #333333;
    background-color: #fdfcf8;
    font-family: arial, sans-serif;
    font-size: 18px;
    line-height: 1.75;
    height: 100vh;
    overflow: hidden;
    position: relative;
    min-width: 375px;
}
#loading-background {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #fdfcf8;
    opacity: 0.5;
    z-index: 2000;
}
#loading-background img {
    width: 60px;
    height: 60px;
    position: relative;
    top: calc(50% - 30px);
}
#header {
    position: absolute;
    width: 100%;
    height: 70px;
    top: 0;
    background-color: #f4f4f4;
    z-index: 1000;
}
#header h1 {
    display: inline-block;
    position: absolute;
    left: 50px;
    margin: 0;
}
#github-link {
    position: absolute;
    right: 230px;
    top: 20px;
}
#language-select {
    position: absolute;
    right: 50px;
    top: 20px;
    width: 150px;
    font-size: 18px;
}
#navigator {
    position: absolute;
    z-index: 100;
    width: 240px;
    top: 70px;
    left: 0;
    bottom: 0;
    border-right: 2px solid #f4f4f4;
    overflow-y: auto;
    background-color: #fdfcf8;
}
#navigator ul {
    padding: 0;
    cursor: pointer;
}
#navigator ul span {
    font-weight: bold;
}
#navigator ul span.prefix {
    font-size: 20px;
    margin-right: 6px;
}
#navigator ul li {
    list-style-type: none;
}
#navigator ul.hidden li {
    display: none;
}
#navigator ul li.active {
    background-color: #eeeeee;
    font-style: italic;
    font-weight: 600;
}
#navigator ul div:hover, #navigator ul li:hover {
    background-color: #cccccc;
}
#content {
    text-align: left;
    min-width: 700px;
    padding: 110px 150px 110px 300px;
    height: 100%;
    box-sizing: border-box;
    overflow: auto;
}
#content .section {
    margin-bottom: 10px;
}
#content h2 {
    margin-bottom: 40px;
}
a {
    text-decoration: none;
    color: rgb(8, 126, 164);
}
a:hover {
    text-decoration: underline;
}
#footer {
    height: 50px;
    z-index: 50;
    position: fixed;
    left: 240px;
    right: 0;
    bottom: 0;
    border-top: 1px solid #eeeeee;
    background-color: #fdfcf8;
}
#footer a {
    display: inline-block;
    line-height: 50px;
    margin: 0 30px;
}
.question::before, .answer::before{
    display: inline-block;
    width: 25px;
}
.question::before, .answer::before, #view-result::before, #try-it::before {
    font-size: 22px;
}
h3.question {
    margin: 10px 0;
}
h3::before {
    content: "🤔";
    margin-right: 10px;
}
.answer::before {
    content: "😄";
    margin-right: 10px;
}
.answer {
    position: relative;
    padding-left: 35px;
}
.answer div {
    margin-top: 10px;
}
.answer .margin {
    margin-left: 30px;
}
.answer .margin::before {
    content: "⭐";
    font-size: 20px;
}
.answer::before {
    position: absolute;
    top: 0;
    left: 0;
}
.answer .code {
    background-color: #eeeeee;
    line-height: 24px;
    margin: 10px;
    padding: 20px;
    border-radius: 5px;
}
.answer+h3.question {
    margin-top: 30px;
}
table {
    margin: 20px auto;
    max-width: 100%;
    border: 2px solid #999999;
    border-collapse: separate;
    border-spacing: 0;
}
th, td {
    border: 1px solid #aaaaaa;
    padding: 5px;
}
th, td {
    min-width: 100px;
    padding: 5px 10px;
    text-align: center;
}
td.trigger {
    min-width: 120px;
}
iframe {
    width: 100%;
    min-height: 400px;
    border: none;
    margin: 20px 0;
}
.answer p {
    margin: 5px 0;
}
.sub-answer {
    padding-left: 20px;
}
#navigator {
    text-align: left;
}
#navigator>h3 {
    padding-left: 20px;
}
#navigator ul>div {
    padding-left: 35px;
}
#navigator ul>li{
    padding-left: 45px;
}
#navigator ul>li.sub-directive{
    padding-left: 60px;
}
a:hover,button:hover {
    opacity: 0.7;
}
.bottom-switcher {
    text-align: center;
    position: absolute;
    top: 50px;
    cursor: pointer;
    width: 100%;
    display: none;
}
.bottom-switcher>span {
    color: #0921EA;
    display: inline-block;
    transform: rotate(90deg);
    user-select: none;
}
@media screen and (max-width: 1100px) {
    /* body and menu */
    #navigator.closed-menu {
        height: 70px;
        overflow: hidden;
    }
    #navigator {
        /* height: 90px; */
        width: 100%;
    }
    #navigator>h3 {
        padding-left: calc(45% + 20px);
    }
    #navigator ul>div {
        padding-left: calc(45% + 35px);
    }
    #navigator ul>li{
        padding-left: calc(45% + 45px);
    }
    #navigator ul>li.sub-directive{
        padding-left: calc(45% + 60px);
    }
    .bottom-switcher {
        display: block;
    }
    /* content */
    #content {
        min-width: auto;
        padding: 110px 15px 40px 30px;
        word-break: break-word;
    }
    #footer {
        left: 0;
    }
}
@media screen and (max-width: 700px) {
    /* menu */
    #navigator>h3 {
        padding-left: calc(35% + 20px);
    }
    #navigator ul>div {
        padding-left: calc(35% + 35px);
    }
    #navigator ul>li{
        padding-left: calc(35% + 45px);
    }
    #navigator ul>li.sub-directive{
        padding-left: calc(35% + 60px);
    }
    /* header */
    #header {
        min-width: 300px;
        height: 140px;
    }
    #github-link, #language-select {
        top: 90px;
    }
    #content {
        padding-top: 180px;
    }
    #navigator {
        top: 140px;
    }
    #footer {
        left: 0;
    }
}
