html,
body {
    height: 100%;
    margin: 0;
    padding: 0;

}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: #e4e5e7;
}

.mainblock {
    flex: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
}

.page {
    flex: 1;
    display: flex;
    flex-direction: column;
    margin-top: 40px;
    margin-left: 0;
    transition: margin-left .2s;
}

.content-wrapper {
    flex: 1;
    padding: 20px;
    width: 100%;
    box-sizing: border-box;
}

.footer {
    padding: 15px 0;
    text-align: center;
    font-size: 14px;
    color: #bbb;
    background-color: #2a2d35;
    box-shadow: 0 -1px 4px rgba(0, 0, 0, 0.2);
    width: 100%;
}

@media (min-width: 1000px) {
    .page {
        margin-left: 250px;
        margin-top: 0;
        padding-bottom: 0;
    }

    .burgbtn {
        display: none !important;
    }

    .overlay {
        display: none !important;
    }

    .headbar {
        display: none !important;
    }

    .sidebar {
        left: 0 !important;
    }

    .header_s {
        display: block;
    }
}

@media (max-width: 800px) {
    .footer {
        position: relative;
        margin-top: auto;
    }
}

@media (min-width: 801px) {
    .footer {
        position: relative;
        margin-top: auto;
    }
}


.burgbtn {
    padding: 0 8px;
    cursor: pointer;
}

.headbar {
    height: 40px;
    z-index: 1;
    background-color: #2a2d35;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

#menuToggle span {
    display: block;
    width: 20px;
    height: 3px;
    margin: 4px;
    position: relative;
    background: #fff;
    border-radius: 3px;
}

.sidebar {
    z-index: 3;
    width: 250px;
    background-color: #2a2d35;
    top: 0;
    left: -250px;
    height: 100%;
    position: fixed;
    overflow: auto;
    box-shadow: #000 0px 0px 10px;
    transition-duration: .2s;
}

.sblock {
    padding-top: 10px;
}

.sblock>a {
    text-align: left;
    cursor: pointer;
    padding: 10px 15px;
    text-decoration: none;
    display: flex;
    color: #aaa;
    letter-spacing: 1px;
    margin: 5px 10px;
    border-radius: 5px;
}

.sblock>a:active {
    color: #aaa;
}

.sblock>a:hover {
    background-color: #ddd1;
    filter: brightness(0.9);
}

.sbsel {
    color: #fff !important;
}

.overlay {
    cursor: pointer;
    position: fixed;
    left: 0;
    top: 0;
    display: none;
    width: 100%;
    height: 100%;
    background-color: #0009;
    z-index: 2;
    animation: opac .2s;
}

.blockBase {
    position: relative;
}

.block {
    border-radius: 10px;
    box-shadow: #111 0px 0px 20px;
}

.blockTab {
    padding-top: 0px;
}

.blockHeader {
    color: #000;
    font-size: 22px;
    border-radius: 10px 10px 0px 0px;
    background-color: #b2b4b2;
    padding: 6px 0px;
    margin: -1px -1px -1px -1px;
}

/* Blog part */
.no-bullets {
    list-style-type: none;
    padding-left: 0;
}

#blockBack {
    border: 1px solid #e0e0e0;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.card-content {
    padding: 0px 0px 10px 0px;
}

.card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    margin-bottom: 8px;
}

.block:hover {
    background-color: #f8f9fa;
}

.blockHeader .title-text {
    display: inline-block;
    margin-left: 10px;
    color: #333;
    font-family: 'Arial', sans-serif;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    padding: 5px 0;
}

.card-link:hover .title-text {
    transform: translateX(2px);
}

.post-preview {
    color: #555;
    margin-top: 8px;
    font-size: 0.95rem;
    line-height: 1.4;
    padding-left: 10px;
}

.post-date {
    color: #777;
    font-size: 0.85rem;
    margin-top: 5px;
    display: inline-block;
}

.pagination {
    margin: 20px 0;
    text-align: center;
}

.page-link,
.current-page {
    display: inline-block;
    padding: 5px 10px;
    margin: 0 2px;
    border: 1px solid #ddd;
    text-decoration: none;
    color: #333;
}

.page-link:hover {
    background-color: #f5f5f5;
}

.current-page {
    background-color: #b2b4b2;
    color: #333;
    border-color: #b2b4b2;
}


/* Tag sorting */
.tag-filter {
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.tag {
    display: inline-block;
    padding: 5px 12px;
    background-color: #e9ecef;
    border-radius: 15px;
    color: #495057;
    text-decoration: none;
    transition: all 0.2s;
    font-size: 0.9rem;
}

.tag:hover {
    background-color: #b2b4b2;
}

.tag.active {
    background-color: #b2b4b2;
    color: #333;
}

/* Tags style in post */
.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
    margin-left: 10px;
}

.post-tag {
    display: inline-block;
    padding: 3px 10px;
    background-color: #e0e0e0;
    border-radius: 12px;
    font-size: 0.8rem;
    color: #555;
    text-decoration: none;
    transition: all 0.2s;
}

.post-tag:hover {
    background-color: #b2b4b2;
}


.filter-header-container {
    display: inline-block;
    max-width: 100%;
}

.filter-header {
    font-size: 0.85rem;
    font-family: 'Arial', sans-serif;
    color: #333;
    display: inline-flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 15px;
    cursor: pointer;
    user-select: none;
    background-color: #e4e5e7;
    border-radius: 10px;
    transition: background-color 0.2s;
    width: auto;
    white-space: nowrap;
}

.filter-header:hover {
    background-color: #b2b4b2;
}

.filter-header strong {
    padding-right: 0px;
    /* Space between icon*/
}

.toggle-icon {
    margin-left: 10px;
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.tags-container {
    display: none;
    padding: 10px;
    background-color: #e4e5e7;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
    animation: fadeIn 0.3s ease;
}

.tags-container.show {
    display: flex;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/**/
.single-post {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    line-height: 1.6;
}

.post-content {
    font-size: 1.1rem;
    color: #444;
}

.post-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px auto;
}

.post-content pre {
    background: #f5f5f5;
    padding: 15px;
    border-radius: 4px;
    overflow-x: auto;
}

.post-content code {
    background: #f5f5f5;
    padding: 2px 4px;
    border-radius: 3px;
    font-family: monospace;
}

.post-content blockquote {
    border-left: 4px solid #ddd;
    padding-left: 15px;
    color: #666;
    margin: 20px 0;
}