@font-face {
    font-family: "cronde";
    src: url("/font/CRONDERegular.ttf") format("truetype");
    font-display: swap;
}

:root {
    font-size: 16px;
}

* {
    padding: 0;
    margin: 0;
    scrollbar-width: thin;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    height: 100%;
    overflow: auto;
}

nav,
.bungaatas,
.bungabawah {
    position: absolute;
}

nav {
    display: flex;
    flex-direction: column;
    gap: 25px;
    bottom: 40px;
    left: 30px;
    z-index: 20;
}

nav a {
    background: white;
    font-family: 'cronde';
    font-size: 1.125rem;
    width: 90px;
    height: 60px;
    padding: 10px;
    border: 3px dotted #ff69b4;
    outline: 3px solid #519c41;
    outline-offset: 2px;
    border-radius: 50%;
    text-align: center;
    align-content: center;
    color: rgb(255, 145, 0);
    font-weight: bold;
    text-decoration: none;
    rotate: 20deg;
    transition: all 0.2s;
}

nav a:hover {
    scale: 1.1;
    rotate: 0deg;
}

.active {
    background: rgb(255, 255, 255);
    text-transform: uppercase;
    padding: 0;
    box-shadow: inset 0 0 25px hotpink;
}

h1 {
    background: pink;
    padding: 10px;
    text-align: center;
    line-height: 1;
    font-size: 24px;
    box-shadow: inset 0 0 15px hotpink;
    font-family: 'cronde';
    width: 25%;
    align-self: center;
    border-radius: 100px;
    outline: 3px solid hotpink;
    outline-offset: 2px;
}

h2 {
    top: 40px;
    right: 35px;
    outline-offset: 2px;
    background: rgba(255, 182, 193, 0.5);
    padding: 10px;
    text-align: left;
    line-height: 1;
    border-radius: 10px;
    font-size: 1.125rem;
    box-shadow: inset 0 0 15px pink;
}

.bungabawah {
    bottom: 5px;
    right: 5px;
    z-index: 10;
}

.bungabawah img {
    width: 250px
}

.bungaatas {
    top: -70px;
    left: 20px;
    transform: rotate(197deg);
    z-index: 10;
}

.bungaatas img {
    width: 230px
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: "Open Sans", sans-serif;
    background-color: rgba(253, 255, 130, 0.8);
    background-image: url('https://ik.imagekit.io/elaravoid/nona/bg-1.png');
    background-size: 10%;
}

.kotak {
    position: relative;
    background-color: hotpink;
    background-image: url('https://ik.imagekit.io/elaravoid/nona/bg-2.png');
    border-radius: 20px;
    background-size: 15%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    width: 87%;
    height: 90%;
    border: 5px solid rgb(255, 61, 158);
    outline: 5px dotted rgb(255, 61, 158);
    margin-left: 110px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 15px;
}

.member {
    position: absolute;
    cursor: pointer;
    bottom: 0px;
    right: 20px;
    z-index: 5;
    filter: drop-shadow(10px -5px 0px rgba(135, 204, 46, 0.8));
}

.member:hover {

    filter: drop-shadow(10px -5px 0px rgba(255, 166, 0, 0.8));
}

.member img {
    height: 550px;
}

.member-esther,
.member-baila,
.member-christy,
.member-shaz {
    position: absolute;
    bottom: 0px;
    cursor: pointer;
    transition: transform 0.2s, filter 0.2s, z-index 0s;
    z-index: 15;
    filter: drop-shadow(10px -5px 0px rgba(135, 204, 46, 0.8));
}

.member-esther:hover,
.member-baila:hover,
.member-christy:hover,
.member-shaz:hover {
    transform: scale(1.2);
    filter: drop-shadow(10px -5px 0px rgba(255, 166, 0, 0.8));
    z-index: 100 !important;
}

.member-esther img,
.member-baila img,
.member-christy img,
.member-shaz img {
    height: 300px;
    display: block;
    pointer-events: auto;
}

.member-esther {
    left: -3%
}

.member-baila {
    left: 16%
}

.member-christy {
    left: 30%;
}

.member-shaz {
    left: 45%;
}

.custom-tooltip {
    position: fixed;
    background: white;
    color: black;
    padding: 12px 16px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-family: 'Poppins', 'Open Sans', sans-serif;
    pointer-events: none;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.2s ease;
    box-shadow: 0px 0px 50px rgb(255, 145, 0);
    backdrop-filter: blur(4px);
    min-width: 260px;
    max-width: 300px;
    white-space: normal;
    line-height: 1;
}

.tooltip-name {
    font-family: 'cronde';
    font-size: 1.25rem;
    font-weight: 800;
    text-align: center;
    letter-spacing: 1px;
    margin-bottom: 0px;
    color: rgba(128, 0, 128, 0.7);
    display: inline-block;
    width: 100%;
    padding-bottom: 5px;
}

.tooltip-detail {
    margin: 5px 0;
    font-size: 0.875rem;
    font-weight: 500;
}

.tooltip-funfact {
    font-size: 0.875rem;
    margin-top: 10px;
    border-top: 2px dotted rgba(128, 0, 128, 0.8);
    padding-top: 10px;
}

.tooltip-funfact-item {
    display: flex;
    gap: 0px;
    margin: 4px 0;
    line-height: 1;
}

.tooltip-funfact-number {
    font-weight: normal;
    min-width: 20px;
    flex-shrink: 0;
}

.tooltip-funfact-text {
    flex: 1;
    word-break: break-word;
    white-space: normal;
}

.custom-tooltip::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 12px;
    height: 12px;
    background: white;
    border-radius: 2px;
    z-index: -1;
}

.member-esther,
.member-baila,
.member-christy,
.member-shaz {
    transition: transform 0.2s cubic-bezier(0.2, 0.9, 0.4, 1.1), filter 0.2s, z-index 0s;
}

.galeri {
    display: flex;
    overflow-y: auto;
    margin: 0;
    scrollbar-width: none;
}

.galeri img {
    height: 150px;
    filter: brightness(0.8) sepia(1) saturate(2) hue-rotate(285deg);
    transition: color 0.3s ease;
}

.galeri img:hover {
    filter: none;
}

.kotak p {
    position: absolute;
    font-family: 'kondre';
    color: white;
    border-radius: 10px;
    text-shadow: 1px 1px 0px rgba(0, 0, 0, 1);
}

.satu {
    left: 35px;
    z-index: 2;
}

.dua {
    top: 165px;
    left: 35px;
    z-index: 2;
}

.tiga {
    top: 315px;
    left: 20px;
    z-index: 2;
}

@media screen and (max-width: 768px) {
    :root {
        font-size: 0.875rem;
        /* 1rem = 16px base */
    }

    .bungaatas {
        display: none
    }

    .bungabawah img {
        width: 150px
    }

    body {
        position: static;
        display: flex;
        flex-direction: column;
        gap: 20px;
        padding: 20px;
        overflow: hidden !important;
        background-size: 20%;
    }

    nav {
        position: static;
        flex-direction: row;
        gap: 15px;
        align-self: center;
    }

    nav a {
        width: 80px;
        height: 55px;
        padding: 5px;
    }

    .kotak {
        position: static;
        justify-self: center;
        justify-items: center;
        margin: 0;
        width: 100%;
        background-size: 30%;
    }

    .kotak h1 {
        width: 150px;
    }


    .member-esther {
        left: -22%
    }

    .member-baila {
        left: 17%
    }

    .member-christy {
        left: 35%;
    }

    .member-shaz {
        left: 60%;
    }

    .member {
        display: none;
    }

    .member-esther,
    .member-baila,
    .member-christy,
    .member-shaz {
        position: fixed;
        bottom: 0px;
        cursor: pointer;
        transition: transform 0.2s, filter 0.2s, z-index 0s;
        z-index: 15;
        filter: drop-shadow(10px -5px 0px rgba(135, 204, 46, 0.8));
    }

    .satu,
    .dua,
    .tiga {
        display: none
    }
}