@font-face {
    font-family: 'Spoqa Han Sans Neo';
    font-weight: 700;
    src: url('../font/SpoqaHanSansNeo-Bold.woff2') format('woff2');
}
@font-face {
    font-family: 'Spoqa Han Sans Neo';
    font-weight: 400;
    src: url('../font/SpoqaHanSansNeo-Regular.woff2') format('woff2');
}
@font-face {
    font-family: 'Spoqa Han Sans Neo';
    font-weight: 300;
    src: url('../font/SpoqaHanSansNeo-Light.woff2') format('woff2');
}

html, body {
    margin: 0;
    height: 100%;
}

header {
    position: fixed;
    font-size: 18px;
    top: 30px;
    left: 80px;
    display: inline;
    user-select: none;
    z-index: 1;
}

header .v2 {
    display: inline;
    padding: 1px 8px;
    border-radius: 6px;
    font-size: smaller;
    font-weight: bold;
    background-color: #667766;
    color: #ffffff;
}

nav {
    position: fixed;
    top: 0px;
    left: -285px;
    background-color: #eee;
    width: 280px;
    height: 100%;
    float: left;
    transition: all .5s ease;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: #555 #eee;
    box-shadow: 2px 0px 5px #ccc;
	z-index: 2;
}

nav ul {
    list-style: none;
    padding: 0px;
    margin: 0px;
}

nav .nav-part {
    border-top: 1px solid black;
}

nav ul li {
    display: block;
    text-indent: 20px;
    line-height: 40px;
    font-size: 14px;
}

nav ul li a {
    display: block;
}

nav ul a:hover{
    text-decoration: underline;
}

nav ul .nav-title {
    text-align: center;
    background-color: #ccc;
    line-height: 45px;
    text-indent: 0px;
}

nav ul .nav-chapter {
    font-weight: bold;
}

article {
    padding-top: 60px;
    width: 100%;
    min-height: 100%;
}

.content {
    max-width: 780px;
    margin: 0 auto;
    padding: 10px;
}

.content .paging {
    display: flex;
    justify-content: space-between;
    margin: 50px 0px 0px 0px;
    padding: 10px 10px;
    text-align: center;
}

.content .paging li {
    padding: 5px 15px;
    display: inline-block;
    list-style: none;
}

.content .paging a:first-child, .content .paging a:last-child {
    background-color: #667766;
    border-radius: 6px;
    box-shadow: 3px 3px 5px #eee;
    color: white;
    font-weight: bold;
}

.content .paging a:first-child:hover, .content .paging a:last-child:hover {
    text-decoration: underline;
    background-color: #556655;
}

.content .disabled {
    background-color: #eee;
    border-radius: 6px;
    box-shadow: 3px 3px 5px #ddd;
    color: #667766;
    font-weight: bold;
}

.content .page-mark {
    display: block;
    text-align: center;
}

footer {
    max-width: 780px;
    margin: 0 auto;
    padding: 20px;
    font-size: 12px;
}

footer a {
    display: inline-block;
    border: 1px solid black;
    padding: 2px 4px;
}

footer a:hover{
    background-color: #eee;
}

.skip {
    position: fixed;
    left: -1000px;
    top: 0px;
    background: #555;
    color: #fff;
}

.skip:focus{
    left: 0px;
}

#side-plugin {
    position: fixed;
    right: 50px;
    bottom: 40px;
}

#side-plugin a {
    padding: 10px 20px;
    background-color: #667766;
    color: #fff;
    font-weight: bold;
    border-radius: 20px;
}

#side-plugin a:hover {
    background-color: #556655;
}

.post-date {
    font-size: smaller;
    float: right;
}

@media screen and (max-width: 1400px) {
	header {
        display: none;
    }
    #side-plugin {
        display: none;
    }
}

@media screen and (max-width: 1023px) {
	header {
        display: block;
        position: fixed;
        top: 0px;
        left: 0px;
        padding: 6px 0px;
        width: 100%;
        text-align: center;
        background-color: white;
        box-shadow: 3px 0px 5px #ccc;
    }

    .content {
        padding: 10px Calc(10% / 2);
    }
}

@media screen and (max-width: 540px) {
	.content .paging {
        display: block;
    }
    
    .content .paging li {
        display: block;
    }
    
    .content .paging a {
        display: block;
        margin: 10px 0;
        padding: 2px 0;
        background-color: #667766;
        border-radius: 6px;
        box-shadow: 3px 3px 5px #eee;
        color: white;
        font-weight: bold;
    }
    
}