html, body {
    background-size: 40px;
    font-family: 'IBM Plex Sans Thai', sans-serif;
    font-size: 16px;
    overflow-y: scroll;
    overflow-x: hidden;
}

body.disable-scroll {
    position: fixed;
    overflow-y: scroll;
    width: 100%;
    height: 100vh;
}

.main-content {
    animation: viewInAnim 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

@keyframes viewInAnim {
    from {
        transform: translateX(-50%) translateY(10px);
        opacity: 0;
    }
}

.win-head {
    background: #CFE1D3;
    box-shadow: 2px 2px 0px 0px #F4FFF7 inset, 1px 1px 0px 0px #AADEC9 inset, -2px -2px 0px 0px #485A52 inset, -1px -1px 0px 0px #111A16 inset, 0px 4px 12px 0px rgba(0, 0, 0, 0.25);
    padding: 6px;
}

.title-bar {
    background: linear-gradient(90deg, #74988A 0%, #95C6A0 100%);
    color: #FFF;
    font-size: 40px;
    font-family: '2005_iannnnnAMD';
    line-height: normal;
    padding: 3px;
    height: 30px;
    display: flex;
    align-items: center;
}

.win-contents {
    padding: 1px;
    background-color: #F2F2F2;
    box-shadow: -2px -2px 0px 0px #F4FFF7 inset, -1px -1px 0px 0px #AADEC9 inset, 2px 2px 0px 0px #485751 inset, 1px 1px 0px 0px #7C998C inset;
    position: relative;
}

.head-win-contents {
    background-image: url(/assets/banner-bg.png);
    /*background: linear-gradient(180deg, rgba(242, 242, 242, 0.00) 0%, #F2F2F2 100%), url(/assets/banner-bg.png), lightgray 50% / cover no-repeat, #F2F2F2;*/
    background-size: cover;
    background-position: center;
}

.head-win-grad {
    position: absolute;
    left: 0;
    top: 0;
    background: linear-gradient(180deg, rgba(242, 242, 242, 0.85) 0%, #F2F2F2 100%);
    width: 100%;
    height: 100%;
}

.header-texts {
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    font-family: 'FC Muffin', cursive;
    font-size: 2em;
}

.head-maji-notes {
    position: absolute;
    bottom: 0;
    right: 0;
    pointer-events: none;
}

.head-container {
    position: relative;
    z-index: 2;
}

.corner-doddle {
    position: absolute;
    pointer-events: none;
    opacity: 0.4;
    z-index: -1;
}

.tag-btn,
.tag-btn:hover {
    font-family: '2005_iannnnnAMD';
    font-size: 30px;
    line-height: normal;
    border-radius: 0;
    border: 1px dashed #485A52 !important;
    transition: none;
    display: flex;
    align-items: center;
    text-transform: capitalize;
}

.tag-smol {
    margin-right: 0.6rem;
}

.tag-btn.active,
.tag-smol,
.tag-btn.active:hover {
    border: none !important;
    background: #CFE1D3;
    box-shadow: 2px 2px 0px 0px #F4FFF7 inset, 1px 1px 0px 0px #AADEC9 inset, -2px -2px 0px 0px #485A52 inset, -1px -1px 0px 0px #111A16 inset;
}

.tag-btn:active,
.tag-btn:focus {
    transform: translate(2px 2px);
    box-shadow: -2px -2px 0px 0px #F4FFF7 inset, -1px -1px 0px 0px #AADEC9 inset, 2px 2px 0px 0px #485751 inset, 1px 1px 0px 0px #7C998C inset;
}

.tag-count {
    background: #FFF;
    box-shadow: -2px -2px 0px 0px #BCD3C9 inset, 2px 2px 0px 0px #7C998C inset;
    padding: 8px 12px;
    margin-left: 6px;
    line-height: normal;
    height: 26px;
    display: flex;
    align-items: center;
}

.tag-smol {
    font-size: 30px;
    height: 40px;
}

.action-bar {
    display: flex;
    padding: 3px;
    margin-top: 1px;
}

.ab-btn {
    color: #557669;
    font-family: '2005_iannnnnAMD';
    font-size: 32px;
    font-weight: 400;
    line-height: normal;
    background-color: transparent;
    border: none;
    padding: 0px 8px;
    border: 2px dashed;
    border-color: transparent;
    transition: background-color 0.25s;
    border-radius: 4px;
    text-decoration: none;
}

.ab-btn:hover {
    transition-duration: 0s;
    background-color: #F2F2F2;
    color: #557669;
}

.ab-btn:focus {
    background-color: #F2F2F2;
    border-color: #171F1C;
}

.post-card .post-card-content {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.post-card:hover .post-card-content {
    transform: scale(1.05);
}

.post-card:active .post-card-content {
    transform: scale(0.95);
    transition-duration: 0s;
}

.post-card a {
    text-decoration: none;
    color: black;
}

.post-card time {
    font-family: '2005_iannnnnAMD';
    font-size: 32px;
}

.post-card .summary-container {
    font-size: 20px;
}

/*
.post-card .summary-container {
    font-size: 20px;
    height: 25px;
    overflow: hidden;
}

.post-card .summary-container p {
    background: linear-gradient(90deg, rgb(0, 0, 0) 0%, rgba(0, 0, 0, 0) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
*/

.footer {
    background: #F2F2F2;
    box-shadow: -2px -2px 0px 0px #F4FFF7 inset, -1px -1px 0px 0px #AADEC9 inset, 2px 2px 0px 0px #485751 inset, 1px 1px 0px 0px #7C998C inset;
}

.head-doddle {
    z-index: 3;
    position: absolute;
    image-rendering: pixelated;
}

.banner-container {
    overflow: hidden;
    border-radius: 8px;
}

.banner-container img {
    animation: bannerScale 1.4s cubic-bezier(0, 0.55, 0.45, 1);
    transform-origin: center;
}

@keyframes bannerScale {
    from {
        transform: scale(1.1);
        opacity: 0;
        filter: blur(5px);
    }

    to {
        transform: scale(1);
        opacity: 1;
        filter: blur(0px);
    }
}

.blog-content {
    font-size: 20px;
    font-weight: 300;
}

.blog-content p::before {
    content: "AAAA";
    opacity: 0;
}

.blog-content li {
    margin-left: 3em;
}

::selection {
    background: #CFE1D3;
}

.btn {
    border-radius: 0;
    font-family: '2005_iannnnnAMD';
    font-size: 32px;
    line-height: 1;
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform: scale(1);
}

.btn-primary,
.btn-primary:focus,
.btn-primary:focus-visible {
    background-color: hsl(133, 23%, 85%);
    color: black;
    border: solid 2px transparent;
    box-shadow: 2px 2px 0px 0px #F4FFF7 inset, 1px 1px 0px 0px #AADEC9 inset, -2px -2px 0px 0px #485A52 inset, -1px -1px 0px 0px #111A16 inset;
    transition: none;
}

.btn-primary:hover {
    background-color: hsl(133, 23%, 90%) !important;
    border-color: transparent !important;
}

.btn-primary:hover,
.btn-primary:active {
    color: black !important;
    border: none !important;
}

.btn-primary:active {
    background-color: hsl(133, 23%, 80%) !important;
    box-shadow: -2px -2px 0px 0px #F4FFF7 inset, 2px 2px 0px 0px #485A52 inset, -1px -1px 0px 0px #AADEC9 inset, 1px 1px 0px 0px #111A16 inset;
}

.btn-primary:focus-visible {
    border: 2px dashed #485A52 !important;
}

.btn:active {
    transition-duration: 0s, 0s;
    transform: scale(0.9);
}

.page-transit {
    border: dashed 5px #74988A;
    position: fixed;
    left: 0;
    top: 0;
}

.progress-page {
    width: 100%;
    height: 3px;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 3;
}

#page-progress {
    height: 100%;
    background-color: #5D7B6F;
    transition: opacity 0.5s;
    opacity: 1;
    display: none;
}

#page-progress.completed {
    opacity: 0;
}

.footer-links a {
    color: #5D7B6F;
    opacity: 0.8;
    font-size: 24px;
    width: 30px;
    height: 50px;
    display: inline-block;

    align-content: center;

    transition: font-size 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), width 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.footer-links a:hover {
    font-size: 32px;
    width: 50px;
    transition-duration: 0.1s;
}

.footer-links a:hover:nth-child(1) {
    color: #ff9f3f;
}

.footer-links a:hover:nth-child(2) {
    color: #242424;
}

.footer-links a:hover:nth-child(3) {
    color: #893fff;
}

.footer-links a:hover:nth-child(4) {
    color: #ff6a74;
}

.content-wrapper {
    width: 100vw;
    display: flex;
}


@media (max-width: 1570px) {
    .corner-doddle {
        opacity: 0.1;
    }
}

@media (max-width: 768px) {
    .corner-doddle {
        display: none;
    }

    .head-doddle {
        display: none;
    }
}

.filters {
    width: 100%;
    overflow: auto;
}

.blog-content a {
    color: #2761ff;
}

.blog-content a::before {
    content: "O|";
    background-image: url("/assets/external-link.svg");
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    position: relative;
    width: 20px;
    height: 20px;
    left: -2px;
    color: transparent;
}


@media(min-width: 1200px) {
    .actual-content.container {
        max-width: 800px;
    }
}

.blog-content .highlight pre {
    padding: 12px;
    border-radius: 8px;
}

.blog-content figure img {
    max-width: 100%;
    height: auto;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.195);
    border-radius: 8px;
}

.blog-content figure figcaption h4 {
    text-align: center;
    font-size: 16px;
    font-weight: normal;
    margin-top: 12px;
    opacity: 0.5;
}

.code-preview {
    height: 300px;
    border-radius: 8px;
    overflow: hidden;
    padding: 0;
}

.ace-editor-view {
    width: 100%;
    flex-grow: 1;
}

.code-preview-title-c {
    width: 100%;
    padding-left: 12px;
    background-color: #ddede2;
    height: 40px;
    display: flex;
    align-items: center;
}

.code-preview-title {
    font-family: 'monofur';
}

.code-preview-title::before {
    content: "A" !important;
    color: transparent;
}

.code-preview .col-md-6 {
    padding: 0;
}

.flex-s {
    flex-grow: 1;
}

.code-preview .run-btn {
    height: 100%;
    padding: 0 15px;
    line-height: 0;
}

.code-preview .run-btn.have-changes {
    background-color: rgb(255, 123, 0);
    border: rgb(255, 123, 0);
}

.table-of-contents {
    background-color: whitesmoke;
    padding: 12px;
    border: 1px solid gray;
    border-radius: 8px;
}

.img-emoji {height: 1.2em;}

.ace_cursor {
    animation: cursorBlink 1s linear infinite !important;
    transition: top 0.2s cubic-bezier(0.16, 1, 0.3, 1), left 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes cursorBlink {
    from {
        opacity: 1;
    }
    to {
        opacity: 0.5;
    }
}