:root {
    font-size: 16px;
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scrollbar-width: thin;
}

html,
body {
    width: 100%;
    min-height: 100%;
}

body {
    overflow-x: hidden;
}

.filters {
    position: fixed;
    z-index: 10;
    top: 0;
    left: 0;
    width: 11.25rem;
    height: 100vh;
    padding: 50px 20px 50px 50px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: space-between;
    border-right: 1px solid #3F7B5C;
    background:
        url('https://ik.imagekit.io/elaravoid/sunera-sae/dithered/1000185968-ditheredd.png?updatedAt=1786643506884') center / cover no-repeat;
}

.filterz {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pitekan {
    width: 100%;
}

a {
    text-decoration: none;
}

.filters button {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 5px 10px;
    border: 4px double #3F7B5C;
    border-radius: 999px;
    color: #3F7B5C;
    font-family: 'Mansalva', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1;
    cursor: pointer;
    background: linear-gradient(180deg,
            #FDF6E2,
            #ABD69E);

    transition:
        transform .2s ease,
        background .2s ease;
}

.filters button:hover {
    background: linear-gradient(0deg,
            #F9B472,
            #FDF6E2);

    transform: scale(1.05);
}

.filters button:focus {
    transform: scale(.95);
}

.filters button.active {
    background: linear-gradient(0deg,
            #F9B472,
            #FDF6E2);
}

.filters button.active:hover {
    transform: scale(1);
}

.filters button .dot,
.caption .dot {
    border-radius: 50%;
}

.filters button .dot {
    width: 10px;
    height: 10px;
    flex: 0 0 10px;
}

.random {
    background: #f4d13a;
}

.culture {
    background: #f381af;
}

.food {
    background: #ff9b49;
}

.place {
    background: #4e92d1;
}

.animalplant {
    background: #5da156;
}

.board {
    width: calc(100% - 11.25rem);
    min-height: 100vh;
    margin-left: 11.25rem;
    padding: 50px 50px;
    column-count: 5;
    column-gap: 15px;
    background:
        url('https://ik.imagekit.io/elaravoid/sunera-sae/bg-grain.jpg?updatedAt=1784899972972') center / 50% fixed;
}

.card {
    width: 100%;
    display: inline-block;
    margin: 8px 0;
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
    page-break-inside: avoid;
    opacity: 1;
}

.card.hidden {
    display: none;
}

.polaroid {
    width: 100%;
    overflow: hidden;
    padding: 9px;
    background: #FDF6E2;
}

.polaroid.transparent {
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 7px;
    border-radius: 50%;
    background: #FDF6E2;
}

.polaroid img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

.text-card {
    width: 100%;
    padding: 15px;
    background: #f3c6ce;
    box-shadow:
        0 6px 18px rgba(0, 0, 0, .12);
    font-size: 1.3rem;
    line-height: 1.4;
    color: #3F7B5C;
}

.caption {
    width: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 5px;
    margin-top: 4px;
    font-family: 'Kanit', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.2;
    color: #3F7B5C;
}

.caption .dot {
    width: 12px;
    height: 12px;
    flex: 0 0 12px;
    margin-top: 4px;
}

/* =========================
   TABLET
========================= */

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

    .board {
        column-count: 4;
    }

}

/* =========================
   SMALL TABLET
========================= */

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

    .board {
        column-count: 3;
        column-gap: 25px;
        padding: 40px 30px;
    }

}

/* =========================
   MOBILE
========================= */

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

    :root {
        font-size: 14px;
    }

    body {
        overflow-x: hidden;
    }

    .filters {
        position: fixed;
        width: 100%;
        height: auto;
        padding: 15px;
        border-right: none;
        border-bottom: 1px solid #3F7B5C;
        gap: 10px;
        background-size: cover;
    }

    .filterz {
        flex-direction: row;
        width: 100%;
        overflow-x: auto;
        scrollbar-width: none;
        flex-wrap: nowrap;
        gap: 5px;
    }

    .filterz::-webkit-scrollbar {
        display: none;
    }

    .pitekan {
        width: 100%;
    }

    .filters button {
        width: auto;
        flex: 0 0 auto;
        padding: 5px 10px;
    }

    .board {
        width: 100%;
        margin-left: 0;
        padding: 110px 15px 10px;
        column-count: 2;
        column-gap: 10px;
    }

}