body {
    font-family: 'Storey Script Static', cursive, Arial, sans-serif;
    background: transparent;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    position: relative;
}

.judul {
    color: white;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    font-size: 50px;
    font-family: "Metal Mania", system-ui;
    text-shadow: 0 0 10px white;
}

.back-button {
    text-align: center;
    margin-top: 650px;
    position: fixed
}


.btn-back {
    font-family: "Metal Mania", system-ui;
    display: inline-block;
    background: linear-gradient(105deg, #b88e2b, #6b5423);
    color: white;   
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 40px;
    font-size: clamp(16px, 2.5vw, 18px);
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

.btn-back::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgb(255, 255, 255), transparent);
    transition: left 0.5s;
}

.btn-back:hover::before {
    left: 100%;
}

.btn-:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgb(255, 255, 255);
}

.container {
    backdrop-filter: blur(10px);
    padding: 40px 50px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    text-align: center;
    width: 460px;
    min-height: 45vh;
    margin-top: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 10;
    position: relative;
}

input,
select,
button {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 15px;
    box-sizing: border-box;
    position: relative;
}

input:focus,
select:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: -3px -3px 15px rgb(255, 255, 255);
    transition: .1s;
}

button {
    background: linear-gradient(105deg, #b88e2b, #6b5423);
    color: white;
    width: 10em;
    height: 2.3em;
    margin: 0.5em;
    color: white;
    border: none;
    border-radius: 0.625em;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    position: relative;
    z-index: 1;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(255, 255, 255, 0.53);
}

button:hover {
    color: black;
}

button:after {
    content: "";
    background: linear-gradient(105deg, white,black);
    position: absolute;
    z-index: -1;
    left: -20%;
    right: -20%;
    top: 0;
    bottom: 0;
    transform: skewX(-45deg) scale(0, 1);
    transition: all 0.5s;
}

button:hover:after {
    transform: skewX(-45deg) scale(1, 1);
    -webkit-transition: all 0.5s;
    transition: all 0.5s;
}


/* Popup Style */

.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    backdrop-filter: blur(5px);
}

.popup-content {
    background: linear-gradient(rgba(109, 151, 109, 0.98), rgba(255, 255, 255, 0.98));
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    width: 450px;
    max-width: 90vw;
    box-shadow: 0 5px 10px rgba(255, 255, 255, 0.779);
    max-height: 80vh;
    overflow-y: auto;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.popup-content h3 {
    margin-bottom: 20px;
    color: #4c3d19;
    font-size: 1.5em;
}

.khodam-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin: 25px 0;
}

.khodam-image {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border-radius: 15px;
    border: 4px solid #ddd;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.khodam-image:hover {
    transform: scale(1.05);
}

.khodam-details {
    text-align: left;
    width: 100%;
    background: linear-gradient(25deg, rgb(197, 201, 197), rgba(255, 255, 255, 0.98));
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid #4c3d19;
}

.khodam-details p {
    margin: 12px 0;
    font-size: 16px;
    line-height: 1.4;
}

.khodam-name {
    color: #4c3d19;
    font-size: 20px !important;
    font-weight: bold;
    text-align: center;
    background: rgb(255, 255, 255);
    padding: 10px;
    border-radius: 8px;
    border: 2px dashed #4c3d19;
}

.close-btn {
    background: linear-gradient(105deg, #b88e2b, #6b5423)!important;
    margin-top: 15px;
}

.close-btn:hover {
    background: linear-gradient(105deg, #b88e2b, #6b5423) !important;
}


/* Loading Styles */

.loading-container {
    text-align: center;
    padding: 40px 20px;
}

.loading-spinner {
    width: 80px;
    height: 80px;
    border: 6px solid rgba(231, 76, 60, 0.2);
    border-left: 6px solid #4c3d19;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px auto;
    position: relative;
}

.loading-spinner::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 30px;
    animation: pulse 2s ease-in-out infinite;
}

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

    100% {
        transform: rotate(360deg);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.7;
    }
}

.loading-container h3 {
    color: #4c3d19;
    margin: 20px 0;
    font-size: 1.3em;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.loading-text {
    color: #585753;
    font-size: 16px;
    margin: 15px 0;
    font-style: italic;
}

.loading-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.loading-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: linear-gradient(105deg, #b88e2b, #6b5423);
    animation: bounce 1.4s ease-in-out infinite both;
}

.loading-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.loading-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

.loading-dots span:nth-child(3) {
    animation-delay: 0s;
}

@keyframes bounce {

    0%,
    80%,
    100% {
        transform: scale(0);
    }

    40% {
        transform: scale(1);
    }
}


/* Result Animation */

.result-container {
    animation: slideIn 0.5s ease-out;
}

.result-title {
    color: #4c3d19;
    font-size: 1.4em;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3), 0 0 10px #4c3d19;
    }

    to {
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3), 0 0 20px #4c3d19;
    }
}

.fade-in {
    animation: fadeIn 0.8s ease-in-out;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.result-btn {
    background: linear-gradient(135deg, #4c3d19, #6b5423) !important;
    margin-top: 20px !important;
    animation: buttonPulse 3s ease-in-out infinite;
}

@keyframes buttonPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.02);
    }
}

.result-btn:hover {
    background: linear-gradient(135deg, #4c3d19, #6b5423) !important;
    transform: scale(1.05) !important;
}


/* Responsive */

@media (max-width: 768px) {
    .back-button {
        top: 20px;
        left: 20px;
    }

    .btn-back {
        padding: 12px 15px;
        font-size: 14px;
        min-width: 50px;
    }

    .btn-back svg {
        width: 28px;
        height: 28px;
    }

    .container {
        width: 90%;
        padding: 30px 25px;
    }

    .popup-content {
        width: 95%;
        padding: 25px 20px;
    }

    .khodam-image {
        width: 150px;
        height: 150px;
    }
}