/* by darkray */

.container {
    margin: 24px auto;
    max-width: 960px;
    border: 1px dashed #666666;
    padding: 0;

}


.header {
    background-color: #FFFFFF;
    border-bottom: 1px dashed #666666;
    padding: 0;
    letter-spacing: .01em;
}

.header a {
    color: inherit;
    text-decoration: none;
    background: 0 0;
}

.logo {
    float: left;
    margin: 0 20px 0 20px;
    width: 80px;
    height: 80px;
    background-repeat: no-repeat;
    background-size: 80px 80px;
    border-radius: 5px;
    -webkit-filter: grayscale(100%);
    filter: grayscale(100%);
}


.title h1 {  
    line-height: 2rem;
    padding: 5px 0 0 0;
    margin: 18px 0 16px 0;
}

.slogan p {
    margin: 0 0 24px 0;
    color: grey;
}

.main {
    position: relative;
}

.main a {
    text-decoration-color: initial;
    color:black;
    text-decoration: none;
}

.main a:hover {
    color:darkgray;
}

.sidebar {
    position: absolute;
    left: 0px;
    width: 200px;
    vertical-align: top;
    background-color: #FFFFFF;
    padding: 0;

}

.content {
    margin-left: 200px;
    min-height: 600px;
    vertical-align: top;
    background-color: #FFFFFF;
    padding: 10px;
    border-left: 1px dashed #666666;
}


.post {
    margin: 20px 20px 0 20px;
    padding-bottom: 10px;
}

.post-title {
    margin: 2px 0;
}

.post-title h2 {
    margin: 0;
}

.post-meta {
    margin: 2px 0;
    color: darkgray;
}

.post-summary {
    margin: 4px 0;
    padding-bottom: 20px;
    border-bottom: 1px dashed #666666;
}

.post-catagory {
    margin: 2px 0;
}

.post-tag {
    margin: 2px 0;
}

.post-content {
    margin: 2px 0;
}

.markdown-body {
    box-sizing: border-box;
    min-width: 200px;
    max-width: 980px;
    margin: 10px auto;
    padding: 0;
}

/*
.post-content img,.post-content video {
    max-width: 100%;
    height: auto;
    display: block;
    margin: auto;
}
*/

.post-list {
  
    list-style-type: none;
    text-transform: none;
    margin: 20px;
    padding: 0 0 30px 0;
    border-bottom: 1px dashed #666666;
    
}

.post-item {
    color: darkgray;
}

.post-item span {
    margin-left: 20px;
}

.profile {
    border-bottom: 1px dashed #666666;
}

.profile img {
    width: 120px;
    height: 120px;
    margin: 10px 40px;
}

.profile span {
    display: inline-block;
    text-align:center;
    width: 100%;
    font-size: 16px;
    margin-bottom: 10px;
}

.nav ul {
    color: #000000;
    list-style-type: none;
    margin: 10px 30px;
    padding: 5px 10px;
    text-transform: none;
}

.nav li {
    text-align: center;
    font-size: 18px;
    margin: 4px 0;
}


.footer {
    border-top: 1px dashed #666666;
    margin-bottom: 0;
    background: #FFFFFF;
    text-align: center;
    padding: 4px;
}

.footer a {
    text-decoration-color: initial;
    color:lightgray;
    text-decoration: none;
}

.footer a:hover {
    color:black;
}

.footer p {
    margin: 2px;
    padding: 0;
}

.search {
    margin: 20px;
}

.search input.search-input {
    background: #FFFFFF;
    border: 1px dashed #666666;
    color: #000000;
    width: 50%;
    margin: 0 auto;
    line-height: 18px;
}



.search-result ul {
    list-style-type: none;
    padding: 0px;
}

.search-result li {
    margin: 2em auto;
}

.search-result a {
    line-height: 1.2;
    font-weight: bold;
    color: black;
    text-transform: capitalize;
    background-image: none;
}

.search-result a:hover {
    color: darkgray;
  
}
    
.search-result p {
    margin: 0.4em auto;
    max-height: 13em;
    overflow: hidden;
    text-align: justify;
}

.search-result em {
    color: blue;
    border-bottom: 1px dashed red;
    font-weight: bold;
    font-style: normal;
}

.search-no-result {
    display: none;
    padding-bottom: 0.5em;
    color: grey;
}
  
.pagination {
    text-align: center;
}

.markdown-body img {
    border-radius: 4px;
}

body {
    font-size: 14px;
    font-family: "lucida grande", "lucida sans unicode", lucida, helvetica, "Hiragino Sans GB", "MicrosoftYaHei", "WenQuanYi Micro Hei", sans-serif;
    font-weight: 400;
    line-height: 1.725;
    text-rendering: geometricPrecision;
    min-height: 100%;
}

/*
Responsive layout
--------------------------------------------------
320px — 480px: Mobile devices
481px — 768px: iPads, Tablets
769px — 1024px: Small screens, laptops
1025px — 1200px: Desktops, large screens
1201px and more —  Extra large screens, TV
--------------------------------------------------
*/

@media screen and (min-width: 1201px) {

}

@media screen and (max-width: 1024px) {
    .container {
        max-width: 96%;
    }
}

@media screen and (max-width: 768px) {
    .container {
        max-width: 96%;
    }
}

@media screen and (max-width: 480px) {

    .container {
        max-width: 96%;
    }

    .header {
        text-align: center;
    }

    .logo {
        display: none;
    }

    .sidebar {
        width: 100%;
        margin: 10px auto;
        position: relative;
        
    }

    .profile {
        display: none;
    }

    .nav {
        text-align: center;
        padding-top: 6px;
    }

    .nav ul {
        margin: 0 auto;
        padding: 0 10px;
        display: inline-block;
    }

    .nav li {
        float: left;
        font-size: 18px;
        margin: 0;
    }

    .nav a {
        margin: 5px 10px;
    }
    
    .content {
        margin: 10px auto;
        min-height: 600px;
        vertical-align: top;
        background-color: #FFFFFF;
        padding: 10px;
        border-top: 1px dashed #666666;
        border-left: initial !important;
    }

    .search input.search-input {
        width: 100%;
    }
}

/* dark mode */
@media (prefers-color-scheme: dark) {
    * {
        -webkit-box-sizing: border-box;
        box-sizing: border-box;
    }

    body {
        background-color: #222;
        color: #aaa;
    }

    .container , .header, .main , .sidebar , .content , .footer {
        background-color: initial !important;
    }

    .container {
        border: 1px dashed lightgray;
    }

    .header , .profile , .post-summary {
        border-bottom: 1px dashed lightgray;
    }

    .content {
        border-left: 1px dashed lightgray;
    }

    .footer {
        border-top: 1px dashed lightgray;
    }

    .markdown-body {
        background-color: #222;
        color: #aaa;
    }

    .search input.search-input {
        background-color: #222;
        border: 1px dashed lightgray;
        color: white; 
    }

    .search-result em {
        color: white;
    }

    a[href] {
        /* color: #1e8ad6; */
        color: #aaa;
    }
    
    a[href]:hover {
        color: #3ba0e6;
    }
}

@media (prefers-color-scheme: light) {
}

