@import url(https://fonts.googleapis.com/css?family=Xanh+Mono);

a {
    padding: 1%;
}
a:link {
    text-decoration: none;
    color: #ffe8e0;
}

a:visited {
    text-decoration: none;
    color: #ffe8e0;
}

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

a:active {
    color: #ad534c;
    text-decoration: underline;
}
html {
    font-family: 'Xanh Mono', monospace; 
    background-color: #ad543c;
    background-image: url('persimmon.png');
}
body {
    padding-left: 5%;
}
p {
    display: block;
    text-align: left;
    padding-left: 4%;
    padding-right: 4%;
    padding-top: 1%;
}
img {
    width: 90%;
    height: auto;
    border-style: solid;
    border-width: 2px;
    border-color: black;
    box-sizing: content-box;
    display: block;
    position: relative;
}
input[type="checkbox"] {
    display: none;
}
.sidenote,
.marginnote {
    float: right;
    clear: right;
    overflow-wrap: break-word; 
    border-style: solid;
    border-width: 2px;
    border-color: black;
    background-color: #f2c6bb;
    box-shadow: 12px 12px rgba(151, 120, 108, 60%);
    text-align: left;
    margin-right: -60%;
    width: 30%;
    padding-left: 2%;
    margin-top: 0.3rem;
    margin-bottom: 0;
    font-size: 0.9rem;
    line-height: 1.3;
    vertical-align: baseline;
    position: relative;
}
.sidenote-number {
    counter-increment: sidenote-counter;
}

.sidenote-number:after,
.sidenote:before {
    position: relative;
    vertical-align: baseline;
}

.sidenote-number:after {
    content: counter(sidenote-counter);
    font-size: 0.75rem;
    top: -0.5rem;
    left: 0.1rem;
}

.sidenote:before {
    content: counter(sidenote-counter) " ";
    font-size: 0.75rem;
    top: 0.0rem;
}

blockquote .sidenote,
blockquote .marginnote {
    margin-right: -82%;
    min-width: 59%;
    text-align: left;
}

h1 {
    text-align: center;
    font-family: "Noto Sans JP", serif;
    font-optical-sizing: auto;
    font-style: normal;
    color: black;
    width: 90%;
    float: left;
    padding-top: 2%;
    padding-bottom: 2%;
    margin: auto;
    font-size: 300%;
    border-style: solid;
    border-width: 2px;
    border-color: black;
    background-color: #f2c6bb;
    box-shadow: 16px 16px rgba(151, 120, 108, 60%);
}
h2 {
    text-align: center;
    color: black;
}
h3 {
    text-align: center;
    color: black;
}

.level1 {

}
.level2 {
    border-style: solid;
    border-width: 2px;
    overflow-wrap: break-word; 
    border-color: black;
    background-color:#f2c6bb ;
    width: 60%;
    float: left;
    margin-top: 2%;
    display: block;
    height: auto;
    margin-left: auto;
    margin-right: auto;
    padding-top: 0px;
    padding-bottom: 1%;
    
    box-shadow: 12px 12px rgba(151, 120, 108, 60%);
}
h3:nth-child(even), th:nth-child(odd), tr.odd > td:nth-child(even), tr.even > td:nth-child(odd) {
    text-align: center;
    margin: auto;
    background: #850b03;
    color:#f2c6bb ;
    padding: 8px;
}
h3:nth-child(odd), th:nth-child(even), tr.odd > td:nth-child(odd), tr.even > td:nth-child(even) {
    text-align: center;
    margin: auto;
    background: #850b03;
    color:#f2c6bb ;
    padding: 8px;
}
.level3 {
    margin: auto;
    padding-top: 1%;
    padding-bottom: 1%;
}
.todo {
    border-style: solid;
    border-width: 1px;
    padding: 1%;
    border-color: #08240e;
    background-color: #f5b8ae;
    color: #850b03;
}
.done {
    border-style: solid;
    border-width: 1px;
    padding: 1%;
    border-color: black;
    background-color: white;
    color: black;
}
.citation {
    padding: 2%;
    display: block;
}
ul {
    margin: 0;
    padding-left: 0;
    padding-bottom: 12px;
    text-align: left;
    list-style: square inside;
}
ul li:nth-child(even), th:nth-child(odd), tr.odd > td:nth-child(even), tr.even > td:nth-child(odd) {
    background:#992f14 ;
    color:#f2c6bb;
    padding: 8px;
}
ul li:nth-child(odd), th:nth-child(even), tr.odd > td:nth-child(odd), tr.even > td:nth-child(even) {
    background:#e0907b;
    color: black;
    padding: 8px;
}
figure {
    display: block;
    padding-top: 2em;
    padding-bottom: 1em;
    margin: auto;
    max-width: 100vw;
}
#hanekawa-img {
    width: 100%;
}
ol {
    width: 20%;
}
ol li {
    list-style: none!important;
}
.citation {
    background: #e0907b;
    color: #ffe8e0;
}
@media (max-width: 800px) {
    .level2 {
        border-style: solid;
        border-width: 2px;
        border-color: black;
        background-color: #f2c6bb;
        width: 90%;
        margin-top: 15%;
        margin-left: auto;
        margin-right: auto;
        padding-bottom: 1%;
    }
    blockquote {
        margin-left: 1.5em;
        margin-right: 0em;
    }

    blockquote p,
    blockquote footer {
        width: 100%;
    }

    label.margin-toggle:not(.sidenote-number) {
        display: inline;
    }

    .sidenote,
    .marginnote {
        display: none;
    }

    .margin-toggle:checked + .sidenote,
    .margin-toggle:checked + .marginnote {
        display: block;
        float: left;
        left: 1rem;
        clear: both;
        width: 95%;
        margin: 1rem 2.5%;
        vertical-align: baseline;
        position: relative;
    }
    
}
