/* Based on Sakura.css v1.3.1 https://github.com/oxalorg/sakura/ */

/* Body */
html {
    font-size: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

body {
    font-size: 1.125rem;
    line-height: 1.618;
    max-width: 38em;
    margin: auto;
    color: #4a4a4a;
    background-color: #f9f9f9;
    padding: 13px;
}

@media (max-width: 684px) {
    body {
        font-size: 0.956rem;
    }
}

@media (max-width: 382px) {
    body {
        font-size: 0.843rem;
    }
}

h1, h2, h3, h4, h5, h6 {
    line-height: 1.1;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
    font-weight: 700;
    margin-top: 1.875rem;
    margin-bottom: 0.9375rem;
    overflow-wrap: break-word;
    word-wrap: break-word;
    -ms-word-break: break-all;
    word-break: break-word;
}

h1 {
    font-size: 2.35em;
}

h2 {
    font-size: 2.00em;
}

h3 {
    font-size: 1.75em;
}

h4 {
    font-size: 1.5em;
}

h5 {
    font-size: 1.25em;
}

h6 {
    font-size: 1em;
}

p {
    margin-top: 0px;
    margin-bottom: 1.56rem;
}

small, sub, sup {
    font-size: 75%;
}

hr {
    border-color: #1d7484;
}

a, a:visited {
    text-decoration: none;
    color: #1d7484;
}

a:hover {
    color: #084152;
    border-bottom: 2px solid #084152;
}

ul {
    padding-left: 1.4em;
    margin-top: 0px;
    margin-bottom: 1.56rem;
}

li {
    margin-bottom: 0.4em;
}

blockquote {
    margin-left: 0px;
    margin-right: 0px;
    padding-left: 1em;
    padding-top: 0.8em;
    padding-bottom: 0.8em;
    padding-right: 0.8em;
    border-left: 5px solid #1d7484;
    margin-bottom: 1.56rem;
    background-color: #f1f1f1;
}

blockquote p {
    margin-bottom: 0;
}

img, video {
    height: auto;
    max-width: 100%;
    margin-top: 0px;
    margin-bottom: 1.56rem;
}

/* Pre and Code */
pre {
    background-color: #f1f1f1;
    display: block;
    padding: 1em;
    overflow-x: auto;
    margin-top: 0px;
    margin-bottom: 1.56rem;
    font-size: 0.9em;
}

code {
    font-size: 0.9em;
    padding: 0 0.5em;
    background-color: #f1f1f1;
    white-space: pre-wrap;
}

pre > code {
    padding: 0;
    background-color: transparent;
    white-space: pre;
    font-size: 1em;
}

/* Tables */
table {
    text-align: justify;
    width: 100%;
    border-collapse: collapse;
}

td, th {
    padding: 0.5em;
    border-bottom: 1px solid #f1f1f1;
}

/* Buttons, forms and input */
input, textarea {
    border: 1px solid #4a4a4a;
}

input:focus, textarea:focus {
    border: 1px solid #1d7484;
}

textarea {
    width: 100%;
}

.button, button, input[type="submit"], input[type="reset"], input[type="button"] {
    display: inline-block;
    padding: 5px 10px;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    background-color: #1d7484;
    color: #f9f9f9;
    border-radius: 1px;
    border: 1px solid #1d7484;
    cursor: pointer;
    box-sizing: border-box;
}

.button[disabled], button[disabled], input[type="submit"][disabled], input[type="reset"][disabled], input[type="button"][disabled] {
    cursor: default;
    opacity: .5;
}

.button:focus:enabled, .button:hover:enabled, button:focus:enabled, button:hover:enabled, input[type="submit"]:focus:enabled, input[type="submit"]:hover:enabled, input[type="reset"]:focus:enabled, input[type="reset"]:hover:enabled, input[type="button"]:focus:enabled, input[type="button"]:hover:enabled {
    background-color: #982c61;
    border-color: #982c61;
    color: #f9f9f9;
    outline: 0;
}

textarea, select, input {
    color: #4a4a4a;
    padding: 6px 10px;
    /* The 6px vertically centers text on FF, ignored by Webkit */
    margin-bottom: 10px;
    background-color: #f1f1f1;
    border: 1px solid #f1f1f1;
    border-radius: 4px;
    box-shadow: none;
    box-sizing: border-box;
}

textarea:focus, select:focus, input:focus {
    border: 1px solid #1d7484;
    outline: 0;
}

input[type="checkbox"]:focus {
    outline: 1px dotted #1d7484;
}

label, legend, fieldset {
    display: block;
    margin-bottom: .3125rem;
    font-weight: 600;
}


/* Custom theme */

nav ul {
    padding: 0;
}

nav ul li {
    display: inline;
    margin: 0 3% 0 0;
    text-transform: uppercase;
}

#pagination {
    display: flex;
    justify-content: space-between;
    list-style-type: none;
}

footer {
    margin-top: 1em;
}

body {
    /*max-width: 800px;*/
    max-width: 950px;
}

h1, h2, h3, h4 {
    text-align: left;
}

figure {
    padding: .5em;
}

figure img, figure video {
    margin-bottom: 0;
}

figcaption h4 {
    margin-top: 0;
    margin-bottom: .25em;
    font-size: 85%;
    max-width: 380px;
}

.figure-large figcaption h4 {
    max-width: 800px;
}

.figure-large {
    width: 800px;
    margin: 0 auto;
}

figure > a:hover {
    border-bottom: 0 none;
}

.gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-left: -1em; /* hack to allow the gallery to span full text width */
    margin-right: -1em;
}

body {
    overflow-x: hidden;
}

.gallery figure {
    margin: .3em;
}

.gallery img {
    max-width: 380px;
    max-height: 380px;
}

a.noeffect, a.noeffect:hover {
    color: inherit;
    border-bottom: 0 none;
}

.page-list h1 {
    font-size: 140%;
}

.page-list td {
    vertical-align: top;
}


.page-list img, .page-list p {
    margin: 0;
}

.page-list td {
    padding-bottom: .6em;
    padding-top: 1em;
}

.page-list tr:last-child td {
    border-bottom: 0;
}

.page-list__date {
    opacity: .6;
    font-size: 80%;
}

p img:last-child {
    margin-bottom: 0;
}

aside {
    margin-left: 0;
    margin-right: 0;
    padding: 0.8em 0.8em 0.8em 1em;
    border-left-width: 5px;
    border-left-style: solid;
    border-right-width: 5px;
    border-right-style: solid;
    margin-bottom: 1.56rem;
}

aside.info {
    border-color: #25b068;
    background-color: #d2f1de;
}

aside.caution {
    border-color: #c42e50;
    background-color: #eecfd4;
}

aside p:last-child {
    padding-bottom: 0;
    margin-bottom: 0;
}

table {
    width: unset;
    max-width: 100%;
}

aside :first-child {
    padding-top: 0;
    margin-top: 0;
}

.SiteLogo {
    position: absolute;
    right: 0;
    height: 100px;
}

header {
    position: relative;
}

/* line going to the logo */
header h1 {
    border-bottom: 2px solid #4a4a4a;
    margin-right: 98px;
    margin-top: 1.5rem;
}

ul ul {
    margin-bottom: 0;
}

h1 a,
h1 a:link,
h1 a:hover,
h1 a:visited,
h1 a:active {
    cursor: pointer;
    color: #4a4a4a;
    text-decoration: none;
    border-bottom: 0 none;
}

.TagList.single {
    font-size: 80%;
    margin-bottom: .5em;
}

.TagList a {
    padding: 0 .2em;
    border: 1px solid #d2d2d2;
    border-radius: 3px;
    display: inline-block;
    margin: 0 .2em .2em 0;
}

.TagList a.category-tag {
    border-color: #1d7484;
    font-weight: bold;
}

.TagList .count {
    font-size: 80%;
    opacity: .8;
    margin-left: .3em;
    color: #666;
}

#dark-mode-toggle {
    position: absolute;
    right: 1em;
    top: 0;
}

.dark-only {
    display: none;
}

body.dark .light-only {
    display: none;
}

body.dark .dark-only {
    display: unset;
}
