@import url('/css/noto-serif-font.css');
:root{
    --header:#00f;
    --header-text:#fff;
    --header-svg-size:30px;
    --body-background:#eee;
    --primary-background:#fff;
    --header-box-shadow:#000;
    --sidebar-svg:var(--header);
    --post-title-text:#000;
    --post-description-text:var(--header);
    --post-time-text:#f00;
    --footer-background:#009;
}
*{
    margin: 0;
    padding: 0;
    text-decoration: none;
    font-family: 'Noto Serif';
}
.darkmode{
    --primary-background:#222;
    --primary-text:#fff;
    --body-background:#333;
    --header:#222;
    --header-box-shadow:#fff;
    --sidebar-svg:var(--primary-text);
    --post-title-text:#fff;
    --post-description-text:#ccc;
    --post-time-text:#999;
    --footer-background:#000;
}
.navigation-bar{
    background-color: var(--header);
    color: var(--header-text);
    padding:5px;
}
.site-title{
    font-weight: bold;
}
svg{
    color: red;
    height: 50px;
    fill: var(--header-text);
}
body{
    background-color: var(--body-background);
}
.svg-icon{
    display: inline-block;
    width: var(--header-svg-size);
    height: var(--header-svg-size);
    /* -webkit-mask:url('/svg/contact.svg');
    mask:url('/svg/contact.svg'); */
    mask-size: var(--header-svg-size) !important;
    -webkit-mask-size:var(--header-svg-size) !important;
    -webkit-mask-repeat: no-repeat !important;
    -webkit-mask-position: center !important;
    mask-repeat: no-repeat !important;
    mask-position: center !important;
}
.header-icon{
    background-color: var(--header-text);
}
.menu-sidebar-icon{
    background-color: var(--sidebar-svg);
    margin-right: 10px;
}
#light-mode{
    display: none;
}
#light-mode, #dark-mode, #mobile-menu, #close-mobile-menu{
    cursor: pointer;
}
nav{
    display: flex;
    box-shadow: 0 0 10px 1px var(--header-box-shadow);
}
.site-title{
    padding: 10px;
}
.header-action-bar{
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: end;
}
.color-mode{
    padding: 5px;
}
.link-list{
    display: flex;
    align-items: center;
}
.link-list a{
    color: var(--header-text);
    margin: 0 5px;
}
.mobile-menu a{
    display: flex;
    align-items: center;
    color: var(--sidebar-svg);
    padding: 10px 5px;
    box-shadow: 0 0 1px 0 var(--header-box-shadow);
}
.mobile-sidebar-background{
    position: fixed;
    top: 0;
    background-color: rgba(255, 255, 255, 0.308);
    width: 100%;
    padding: 5px;
    height: 100vh;
    display: none;
}
.mobile-menu{
    top: 0;
    right: -30%;
    position: fixed;
    background-color: var(--primary-background);
    box-shadow: 0 0 10px 1px var(--header-box-shadow);
    height: 100vh;
    width: 250px;
    transition: 0.2s ease;
}
.close-mobile-menu{
    background-color: var(--header);
    display: flex;
    padding: 5px;
}
#mobile-menu{
    display: none;
}
.container{
    display: flex;
    justify-content: center;
}
.container-layout{
    width: 100%;
    max-width: 1400px;
    padding-top: 5px;
    display: flex;
    flex-direction: row;
}
.post-list-container{
    width: 70%;
    overflow: hidden;
    margin-right: 5px;
    border-radius: 10px;
    margin-bottom: 5px;
    background-color: var(--primary-background);
}
.post-sidebar-container{
    width: 30%;
    overflow: hidden;
    border-radius: 10px;
    margin-right: 5px;
    margin-bottom: 5px;
    background-color: var(--primary-background);
}
.post-item{
    height: 150px;
    display: block;
    display: flex;
    padding: 5px;
    align-items: center;
    box-shadow: 0 0 1px 0 var(--header-box-shadow);
    background-color: var(--primary-background);
    border-radius: 10px;
    margin:5px;
    transition: 0.2s ease;
}
.post-item img{
    height: 100%;
    border-radius: 15px;
}
.post-info{
    padding: 5px;
}
.post-title{
    margin: 0;
    color: var(--post-title-text);
    
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}
.post-description{
    color: var(--post-description-text);
    font-size: smaller;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
}
.post-published{
    font-size: x-small;
    color: var(--post-time-text);
}
.sidebar-title{
    font-size: x-large;
    font-weight: bold;
    text-align: center;
    background-color: var(--footer-background);
    color: var(--header-text);
    padding: 5px;
    border-radius: 10px 10px 0 0 var(--header-box-shadow);
}
.sidebar-post{
    height: 100px;
}
.sidebar-post-title{
    -webkit-line-clamp: 1;
    line-clamp: 1;
}
.post-search-bar label{
    display: flex;
    border-radius: 20px;
    box-shadow: 0 0 1px 0 var(--header-box-shadow);
    overflow: hidden;
    margin: 5px 0;
    background-color: var(--body-background);
}
.post-search-bar label input[type='search']{
    width: 100%;
    outline: none;
    margin-left: 10px;
    border: none;
    font-size: larger;
    color: var(--primary-text);
    padding: 5px;
    background-color: var(--body-background);
}
.post-search-bar label input[type='submit']{
    width: 100px;
    outline: none;
    border: none;
    background-color: var(--header);
    color: var(--header-text);
    font-size: large;
    transition: 0.2s;
    cursor: pointer;
    font-weight: bold;
}
.post-search-bar label input[type='submit']:hover{
    background-color: #f00;
}
.post-pagination{
    display: flex;
    justify-content: space-between;
    padding: 5px;
}
.post-pagination a{
    display: block;
    padding: 5px 20px;
    border-radius: 10px;
    background-color:var(--header);
    transition: 0.2s ease;
}
.post-pagination svg{
    fill: white;
}
.post-pagination a:hover{
    background-color: #00c;
}
.title-left{
    text-align: left;
}
.post-sidebar-container .label li a{
    color: var(--post-title-text);
}
.post-sidebar-container .label li{
    list-style: none;
    margin-left: 5px;
}
footer {
    background-color: var(--footer-background);
    color: white;
    text-align: center;
    margin-top: auto;
}
footer p{
    padding: 10px;
}
footer .footer-content {
    display: grid;
    grid-template-columns:repeat(auto-fit,minmax(300px,1fr));
    background-color: var(--header);
}

footer .footer-content a {
    color: white;
    transition: 0.2s;
    font-size: small;
    padding: 5px 0;
}

footer .footer-content a:hover {
    background-color: #00c;
}
.best-post{
    display: grid;
    gap: 5px;
    grid-template-columns: repeat(auto-fit,minmax(350px,1fr));
}
@media screen and (max-width:1200px) {
    .container-layout{
        display: unset;
    }
    .post-list-container{
        width: auto;
        margin-right: unset;
    }
    .post-sidebar-container{
        width: auto;
        margin-left: unset;
    }
}
@media screen and (max-width:700px) {
    #mobile-menu{
        display: block;
    }
    .link-list{
        display: none;
    }
}