body,
html {
    margin: 0;
    padding: 0;
    background: #000000;
}

* {
    touch-action: manipulation;
}

*,
*:before,
*:after {
    box-sizing: border-box;
}

body {
    position: relative;
    color: #000000;
    font-size: 18px;
    font-family: 'Roboto', sans-serif;
    width: 100%;
    height: 100vh;
}

.header {
    position: absolute;
    padding: 20px 10px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    z-index: 100;
    top: 2em;
    font-weight: bold;
    width: 100vw;
}

.header a {
    color: #ffffff;
    text-align: center;
    padding: 12px;
    text-decoration: none;
    justify-content: center;
    font-size: 18px;
    line-height: 25px;
    border-radius: 4px;
}

.header a:hover {
    color: #acacac;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger div {
    width: 30px;
    height: 3px;
    background-color: #ffffff;
    margin: 3px 0;
    transition: transform 0.4s;
}

.hamburger.active div:nth-child(1) {
    transform: rotate(-45deg) translate(-12px, 13px);
}

.hamburger.active div:nth-child(2) {
    opacity: 0;
}

.hamburger.active div:nth-child(3) {
    opacity: 0;
}

.hamburger.active div:nth-child(4) {
    transform: rotate(45deg) translate(-6px, -7px);
}


@media screen and (max-width: 768px) {
    .header {
        justify-content: center;
        flex-direction: column;
        align-items: center;
        background: rgba(31, 31, 31, 0.7); /* gelap tapi transparan */
        backdrop-filter: blur(12px) saturate(150%); /* efek frosted glass */
        -webkit-backdrop-filter: blur(12px) saturate(150%);
               
    }

    .header::before {
        content: "";
        position: absolute;
        inset: 0;
        pointer-events: none;
        z-index: 0;
        
    }

    .header a {
        display: none;
        font-size: 14px;
        background: transparent;
        color: #ffffff;
    }

    .hamburger {
        display: flex;
        z-index: 1;
    }
}

.footer {
    position: absolute;
    padding: 20px 10px;
    display: flex;
    justify-content: center;
    z-index: 100;
    bottom: 2em;
    font-weight: bold;
    width: 100vw;
}

.footer a {
    color: #ffffff;
    text-align: center;
    padding: 12px;
    text-decoration: none;
    font-size: 12px;
    line-height: 25px;
    border-radius: 4px;
}

.footer a:hover {
    color: #acacac;
}

.wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#c {
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    display: block;
}

.loading {
    position: fixed;
    z-index: 50;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: #1f1f1f;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loader {
    -webkit-perspective: 120px;
    -moz-perspective: 120px;
    -ms-perspective: 120px;
    perspective: 120px;
    width: 100px;
    height: 100px;
}

.loader:before {
    content: "";
    position: absolute;
    left: 25px;
    top: 25px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #ffffff;
    animation: flip 1s infinite;
}

@keyframes flip {
    0% {
        transform: rotate(0);
    }

    50% {
        transform: rotateY(180deg);
    }

    100% {
        transform: rotateY(180deg) rotateX(180deg);
    }
}

.popup {
    display: none;
    position: fixed;
    z-index: 100;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000000;
}

.popup-content {
    background-color: #1f1f1f;
    padding: 20px;
    border-radius: 25px;
    text-align: center;
    color: #ffffff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    width: 80%;
    max-width: 700px;
    max-height: 80vh;
    overflow-y: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.popup-content h2 {
    margin-top: 0;
}

.popup-content button {
    background-color: #1f1f1f;
    color: #ffffff;
    padding: 10px 20px;
    border: 2px solid #ffffff;
    border-radius: 25px;
    cursor: pointer;
}

.popup-content button:hover {
    background-color: #acacac;
}

@media (max-width: 768px) {
    .popup-content {
        width: 90%;
        padding: 15px;
        border-radius: 15px;
    }

    .popup-content h2 {
        font-size: 1.2rem;
    }

    .popup-content button {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
}