:root {
    font-size: 16px;
}

* {
    margin: 0;
    padding: 0;
    font-family: "Mansalva";
    color: #abd69e #CBECEE #FDF6E2 #FDC9E5 #FDC9E5 #FBD985 #4455B1 #3f7b5c #c9d9f8
}

html {
    width: 100%;
    overflow-x: hidden;
    scrollbar-width: thin;
    padding: 50px;
    margin: 0;
    background: url('https://ik.imagekit.io/elaravoid/sunera-sae/dithered/1000178906-dithered.png');
    background-size: 45%;
    background-attachment: fixed;
    background-position: center;
}

body {
    margin: 0;
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
}

a {
    text-decoration: none;
    color: #3f7b5c;
}

a:hover {
    text-decoration: underline;
    text-decoration-style: dotted;
}

a:focus {
    color: #3f7b5c;
}

.wrapper {
    position: relative;
    display: flex;
    align-items: start;
    width: 100%;
    z-index: 0;
}

.tabs {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-right: -4px;
    position: sticky;
    top: 50px;
    z-index: 10;
    isolation: isolate;
    height: fit-content;
}

.tab {
    position: relative;
    width: 40px;
    padding: 15px 0;
    height: auto;
    background: linear-gradient(90deg, #FDC9E5, #FDF6E2);
    border: 4px double #3f7b5c;
    border-right: none;
    cursor: pointer;
    color: #3f7b5c;
    writing-mode: sideways-lr;
    font-size: 1rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    border-radius: 25px 0 0 25px;
    transition: .5s;
    z-index: auto;
}

.tab.active {
    width: 44px;
    background: linear-gradient(90deg, #CBECEE, #FDF6E2);
    z-index: 100 !important;
    isolation: isolate;
}

.panel {
    position: relative;
    z-index: 5;
    width: calc(100% - 210px);
    height: auto;
    min-height: 30rem;
    background: linear-gradient(0deg, #CBECEE, #FDF6E2, #CBECEE);
    border: 4px double #3f7b5c;
    padding: 30px;
    color: #4455B1;
    margin-left: 0px;
    isolation: isolate;
    text-wrap: wrap;
}

.content {
    display: none;
}

.content.active {
    display: block;
}

.rowrow {
    width: 100%;
    display: flex;
    gap: 5px;
    padding: 0px 0;
    margin-top: 15px;
}

.neighbors1 {
    width: 50%;
}

.neighbors2 {
    width: 50%;
}

.tetangga1 {
    max-width: 100%;
    height: auto;
    display: flex;
    flex-direction: row;
    padding: 0;
    margin: 0;
    gap: 5px;
    align-items: center;
    justify-content: end;
    text-wrap: wrap;
}

.tetangga2 {
    max-width: 100%;
    height: auto;
    display: flex;
    padding: 0;
    margin: 0;
    gap: 6px;
    align-items: center;
    justify-content: first;
    text-wrap: wrap;
}

.tetangga1 p {
    text-align: right;
    line-height: 1;
    margin-top: -10px;
}

.tetangga2 p {
    text-align: left;
    line-height: 1;
    margin-top: -10px;
}

h1 {
    font-size: 2rem;
    line-height: 1;
    margin-bottom: 7px;
    color: #F0D3ED;
    text-shadow:
        -1px -1px 0 #4455B1,
        0 -1px 0 #4455B1,
        1px -1px 0 #4455B1,
        1px 0 0 #4455B1,
        1px 1px 0 #4455B1,
        0 1px 0 #4455B1,
        -1px 1px 0 #4455B1,
        -1px 0 0 #4455B1;
}

p {
    font-size: 1rem;
    font-family: "Kanit";
}

.rowrow img {
    width: 88px;
    height: 31px;
}

.rowrow img:hover {
    scale: 1.05;
}

.hashtag {
    color: rgba(68, 84, 177, 0.5);
}

.pembatas {
    display: flex;
    flex-direction: row;
    width: 100%;
    gap: 10px;
}

.pembatas img {
    width: 10%;
}

/* tab 2 */
.rowing {
    display: flex;
    width: 100%;
    gap: 20px;
}

.rowing1,
.rowing2,
.rowing3 {
    width: 33%
}

.useful a {
    background: #4455B1;
    color: #FDF6E2;
    padding: 0 5px 2px 5px;
}

.useful a:hover {
    background: #3f7b5c;
    text-decoration: none;
}

.useful {
    line-height: 2;
    margin-left: 15px;
    margin-bottom: 20px;
}

.useful li {
    font-family: "Kanit";
    font-weight: 400;
}

.berguna {
    line-height: 22px;
    margin-left: 15px;
    margin-bottom: 20px;
    margin-top: 10px;
}

.berguna li {
    font-family: "Kanit";
    font-weight: 400;
}

@media (max-width: 768px) {
    :root {
        font-size: 14px;
    }

    html {
        padding: 15px;
        width: calc(100% - 30px);
    }

    body {
        width: 100%;
    }

    p {
        font-size: 0.8rem;
    }

    .wrapper {
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%
    }

    .tabs {
        flex-direction: row;
        position: relative;
        top: 0;
        justify-content: center;
        justify-items: center;
        gap: 4px
    }

    .tab {
        writing-mode: horizontal-tb;
        width: auto;
        height: 40px;
        padding: 0 4px;
        border-radius: 0;
        border-right: 4px double #3f7b5c;
        border-bottom: none;
        border-radius: 20px 20px 0 0;
        line-height: 1;
    }

    .tab.active {
        width: auto;
        border-right: 4px double #3f7b5c;
    }

    .panel {
        width: calc(100% - 30px);
        padding: 10px;
    }

    .neighbors1 {
        width: 50%
    }

    .rowrow {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 5px;
    }

    .neighbors1,
    .neighbors2 {
        width: 100%;
        display: flex;
        flex-direction: column;
    }

    .pembatas img:nth-of-type(1),
    .pembatas img:nth-of-type(2),
    .pembatas img:nth-of-type(3),
    .pembatas img:nth-of-type(4),
    .pembatas img:nth-of-type(5) {
        display: none;
    }

    .pembatas img {
        width: 17.5%
    }

    .rowing {
        width: 100%;
        flex-wrap: wrap;
    }

    .rowing1,
    .rowing2,
    .rowing3 {
        width: 100%
    }
}