html, body {
                overflow: hidden;
                width: 100%;
                height: 100%;
                margin: 0;
                padding: 0;
                font-family: Arial, sans-serif;
                touch-action: none;
            }

            #renderCanvas {
                width: 100%;
                height: 100%;
                touch-action: none;
                display: none;
            }
            
            #canvasZone {
                width: 100%;
                height: 100%;
                position: relative;
            }

            /* Title Screen Styles */
            #titleScreen {
                position: fixed;
                top: 0;
                left: 0;
                width: 100%;
                height: 100%;
                background: url('cover.jpg') no-repeat center center;
                background-size: cover;
                display: flex;
                flex-direction: column;
                justify-content: center;
                align-items: center;
                color: white;
                z-index: 100;
            }

            .title-overlay {
                background-color: rgba(0, 0, 0, 0.6);
                padding: 40px;
                border-radius: 10px;
                text-align: center;
                max-width: 600px;
            }

            .title-overlay h1 {
                font-size: 2.5rem;
                margin-bottom: 20px;
                color: #ffd700;
            }

            .title-overlay p {
                font-size: 1.2rem;
                margin-bottom: 30px;
            }

            .button-container {
                display: flex;
                gap: 20px;
                justify-content: center;
            }

            .title-button {
                padding: 12px 30px;
                font-size: 1.1rem;
                border: none;
                border-radius: 5px;
                cursor: pointer;
                transition: all 0.3s ease;
            }

            #startButton {
                background-color: #4CAF50;
                color: white;
            }

            #startButton:hover {
                background-color: #45a049;
                transform: scale(1.05);
            }

            #aboutButton {
                background-color: #2196F3;
                color: white;
            }

            #aboutButton:hover {
                background-color: #0b7dda;
                transform: scale(1.05);
            }            

            #backButton {
                margin-top: 20px;
                padding: 10px 20px;
                background-color: #f44336;
                color: white;
                border: none;
                border-radius: 5px;
                cursor: pointer;
            }

            /* New Loading Screen Styles */
            #customLoadingScreen {
                position: fixed;
                top: 0;
                left: 0;
                width: 100%;
                height: 100%;
                background-color: #000;
                display: flex;
                flex-direction: column;
                justify-content: center;
                align-items: center;
                color: white;
                z-index: 50;
            }

            .loading-content {
                text-align: center;
            }

            .loading-spinner {
                width: 50px;
                height: 50px;
                border: 5px solid rgba(255, 255, 255, 0.3);
                border-radius: 50%;
                border-top-color: #4CAF50;
                animation: spin 1s ease-in-out infinite;
                margin: 0 auto 20px;
            }

            @keyframes spin {
                to { transform: rotate(360deg); }
            }

            .loading-progress {
                width: 300px;
                height: 20px;
                background-color: #333;
                border-radius: 10px;
                margin: 20px 0;
                overflow: hidden;
            }

            .progress-bar {
                height: 100%;
                background-color: #4CAF50;
                width: 0%;
                transition: width 0.3s ease;
            }

            #loadingText {
                font-size: 1.2rem;
                margin-top: 10px;
            }

            /* Orientation Warning */
            #orientationWarning {
                position: fixed;
                top: 0;
                left: 0;
                width: 100%;
                height: 100%;
                background-color: rgba(0, 0, 0, 0.9);
                display: none;
                flex-direction: column;
                justify-content: center;
                align-items: center;
                color: white;
                z-index: 300;
                text-align: center;
            }

            .orientation-content {
                padding: 30px;
                max-width: 80%;
            }

            .orientation-icon {
                font-size: 60px;
                margin-bottom: 20px;
                animation: pulse 1.5s infinite;
            }

            @keyframes pulse {
                0% { transform: scale(1); }
                50% { transform: scale(1.1); }
                100% { transform: scale(1); }
            }

            /* Virtual Joystick */
            #virtualJoystick {
                position: fixed;
                left: 50px;
                bottom: 50px;
                width: 120px;
                height: 120px;
                z-index: 25;
                display: none;
                touch-action: none;
            }

            .joystick-base {
                width: 100%;
                height: 100%;
                background-color: rgba(255, 255, 255, 0.2);
                border-radius: 50%;
                border: 2px solid rgba(255, 255, 255, 0.5);
                position: absolute;
            }

            .joystick-handle {
                width: 50px;
                height: 50px;
                background-color: rgba(255, 255, 255, 0.8);
                border-radius: 50%;
                position: absolute;
                top: 35px;
                left: 35px;
                transition: transform 0.1s ease;
            }

            /* Look Control */
            #lookControl {
                position: fixed;
                right: 20px;
                bottom: 20px;
                width: 80px;
                height: 80px;
                z-index: 25;
                display: none;
                touch-action: none;
            }

            .look-base {
                width: 100%;
                height: 100%;
                background-color: rgba(255, 255, 255, 0.1);
                border-radius: 50%;
                border: 2px solid rgba(255, 255, 255, 0.3);
                position: absolute;
            }

            .look-handle {
                width: 30px;
                height: 30px;
                background-color: rgba(255, 255, 255, 0.6);
                border-radius: 50%;
                position: absolute;
                top: 25px;
                left: 25px;
                transition: transform 0.1s ease;
            }

            /* Mobile Controls Info */
            #mobileControlsInfo {
                position: fixed;
                bottom: 20px;
                left: 50%;
                transform: translateX(-50%);
                background-color: rgba(0, 0, 0, 0.7);
                color: white;
                padding: 10px 15px;
                border-radius: 8px;
                font-size: 14px;
                z-index: 26;
                display: none;
                text-align: center;
            }

            /* Debug Info */
            #debugInfo {
                position: fixed;
                top: 10px;
                left: 10px;
                background-color: rgba(0, 0, 0, 0.7);
                color: white;
                padding: 10px;
                border-radius: 5px;
                font-size: 12px;
                z-index: 1000;
                display: none;
            }
			/* Frosted Glass Effect */
.title-overlay {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 40px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 1px rgba(255, 255, 255, 0.1);
    max-width: 500px;
    width: 90%;
    text-align: center;
}

/* Button Container dengan layout vertikal */
.button-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 30px 0;
}

/* Tombol dengan efek glass */
.title-button {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    padding: 15px 30px;
    color: white;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.title-button:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.title-button:active {
    transform: translateY(0);
}

/* Copyright text */
.copyright {
    margin-top: 40px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    font-weight: 300;
    letter-spacing: 0.5px;
}

/* Exit Button untuk Virtual Tour */
.exit-button {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    padding: 12px 20px;
    color: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: none; /* Awalnya tersembunyi */
    align-items: center;
    gap: 8px;
}

.exit-button:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.exit-icon {
    font-size: 16px;
    font-weight: bold;
}

/* Responsive Design */
@media (max-width: 768px) {
    .title-overlay {
        padding: 30px 20px;
        margin: 20px;
    }
    
    .title-button {
        padding: 12px 25px;
        font-size: 16px;
    }
    
    .exit-button {
        top: 15px;
        right: 15px;
        padding: 10px 16px;
        font-size: 12px;
    }
}

/* Background cover yang lebih menarik */
#titleScreen {
    background: linear-gradient(135deg, 
        rgba(25, 25, 112, 0.2) 0%, 
        rgba(65, 105, 225, 0.2) 10%, 
        rgba(135, 206, 250, 0.2) 30%),
        url('cover.jpg') center/cover no-repeat;
}

/* Animasi subtle untuk background */
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

#titleScreen {
    animation: gradientShift 15s ease infinite;
}

/* Accessibility improvements */
.title-button:focus,
.exit-button:focus {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .title-overlay {
        background: rgba(0, 0, 0, 0.9);
        border: 2px solid #fff;
    }
    
    .title-button {
        background: #000;
        border: 2px solid #fff;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .title-button,
    .exit-button {
        transition: none;
    }
    
    #titleScreen {
        animation: none;
    }
}
/* About Screen Styles */
#aboutScreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(47, 79, 79, 0.2) 0%, 
        rgba(70, 130, 180, 0.2) 50%, 
        rgba(95, 158, 160, 0.2) 100%),
       url('cover.jpg') center/cover no-repeat;
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
    animation: gradientShift 15s ease infinite;
}

.about-overlay {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(25px) saturate(200%);
    -webkit-backdrop-filter: blur(25px) saturate(200%);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 40px;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.3),
        inset 0 1px 1px rgba(255, 255, 255, 0.1);
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}

.about-overlay::-webkit-scrollbar {
    width: 6px;
}

.about-overlay::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.about-overlay::-webkit-scrollbar-track {
    background: transparent;
}

.about-header {
    text-align: center;
    margin-bottom: 30px;
}

.about-header h2 {
    color: white;
    font-size: 2.5em;
    margin-bottom: 15px;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.about-icon {
    font-size: 3em;
    opacity: 0.9;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.3));
}

.about-content {
    margin-bottom: 30px;
}

.about-description {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1em;
    line-height: 1.6;
    text-align: center;
    margin-bottom: 40px;
    font-weight: 300;
}

.features-section {
    margin-bottom: 40px;
}

.features-section h3 {
    color: white;
    font-size: 1.5em;
    margin-bottom: 25px;
    text-align: center;
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.feature-item {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.feature-icon {
    font-size: 2em;
    flex-shrink: 0;
    margin-top: 5px;
}

.feature-text h4 {
    color: white;
    font-size: 1.1em;
    margin-bottom: 8px;
    font-weight: 600;
}

.feature-text p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9em;
    line-height: 1.5;
    margin: 0;
    font-weight: 300;
}

.tech-section {
    text-align: center;
}

.tech-section h3 {
    color: white;
    font-size: 1.5em;
    margin-bottom: 20px;
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.tech-tags {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

.tech-tag {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 8px 16px;
    color: white;
    font-size: 0.85em;
    font-weight: 500;
    transition: all 0.3s ease;
}

.tech-tag:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.05);
}

.about-footer {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
}

.back-button {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    padding: 12px 25px;
    color: white;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.back-button:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.back-icon {
    font-size: 1.1em;
}

.about-copyright {
    margin-top: 20px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9em;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.version {
    background: rgba(255, 255, 255, 0.1);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: 500;
}

/* Animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.about-overlay {
    animation: slideInUp 0.6s ease-out;
}

.feature-item {
    animation: slideInUp 0.6s ease-out backwards;
}

.feature-item:nth-child(1) { animation-delay: 0.1s; }
.feature-item:nth-child(2) { animation-delay: 0.2s; }
.feature-item:nth-child(3) { animation-delay: 0.3s; }
.feature-item:nth-child(4) { animation-delay: 0.4s; }

/* Responsive Design */
@media (max-width: 768px) {
    .about-overlay {
        padding: 30px 20px;
        margin: 20px;
        max-height: 85vh;
    }
    
    .about-header h2 {
        font-size: 2em;
    }
    
    .about-icon {
        font-size: 2.5em;
    }
    
    .about-description {
        font-size: 1em;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .feature-item {
        padding: 15px;
    }
    
    .feature-icon {
        font-size: 1.8em;
    }
    
    .tech-tags {
        gap: 8px;
    }
    
    .tech-tag {
        padding: 6px 12px;
        font-size: 0.8em;
    }
    
    .back-button {
        padding: 10px 20px;
        font-size: 0.9em;
    }
}

@media (max-width: 480px) {
    .about-overlay {
        padding: 25px 15px;
    }
    
    .about-header h2 {
        font-size: 1.8em;
    }
    
    .feature-text h4 {
        font-size: 1em;
    }
    
    .feature-text p {
        font-size: 0.85em;
    }
    
    .about-copyright {
        flex-direction: column;
        gap: 8px;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .about-overlay {
        background: rgba(0, 0, 0, 0.95);
        border: 2px solid #fff;
    }
    
    .feature-item,
    .tech-tag,
    .back-button {
        background: #000;
        border: 2px solid #fff;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .about-overlay,
    .feature-item {
        animation: none;
    }
    
    .feature-item:hover,
    .tech-tag:hover,
    .back-button:hover {
        transform: none;
    }
}
/* Fullscreen Button Styles */
.fullscreen-button {
    position: fixed;
    top: 20px;
    left: 20px; /* Sesuaikan dengan posisi exit button */
    z-index: 1000;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    padding: 12px 20px;
    color: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: none; /* Awalnya tersembunyi */
    align-items: center;
    gap: 8px;
}

.fullscreen-button:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.fullscreen-icon {
    font-size: 16px;
    font-weight: bold;
}

.fullscreen-text {
    display: inline;
}

/* Styles untuk mode fullscreen */
:fullscreen .fullscreen-button,
:-webkit-full-screen .fullscreen-button,
:-moz-full-screen .fullscreen-button,
:-ms-fullscreen .fullscreen-button {
    background: rgba(255, 255, 255, 0.25);
}

:fullscreen .fullscreen-icon,
:-webkit-full-screen .fullscreen-icon,
:-moz-full-screen .fullscreen-icon,
:-ms-fullscreen .fullscreen-icon {
    content: '⛶';
}

:fullscreen .fullscreen-text,
:-webkit-full-screen .fullscreen-text,
:-moz-full-screen .fullscreen-text,
:-ms-fullscreen .fullscreen-text {
    content: 'Kecilkan';
}

/* Responsive untuk mobile - sembunyikan teks */
@media (max-width: 768px) {
    .fullscreen-text {
        display: none;
    }
    
    .fullscreen-button {
        right: 70px;
        padding: 12px 15px;
    }
}

/* Style untuk canvas di mode fullscreen */
:fullscreen #canvasZone,
:-webkit-full-screen #canvasZone,
:-moz-full-screen #canvasZone,
:-ms-fullscreen #canvasZone {
    width: 100vw !important;
    height: 100vh !important;
}

:fullscreen #renderCanvas,
:-webkit-full-screen #renderCanvas,
:-moz-full-screen #renderCanvas,
:-ms-fullscreen #renderCanvas {
    width: 100% !important;
    height: 100% !important;
}

/* Hide other elements in fullscreen */
:fullscreen #titleScreen,
:fullscreen #aboutScreen,
:fullscreen #orientationWarning,
:fullscreen #mobileControlsInfo,
:-webkit-full-screen #titleScreen,
:-webkit-full-screen #aboutScreen,
:-webkit-full-screen #orientationWarning,
:-webkit-full-screen #mobileControlsInfo,
:-moz-full-screen #titleScreen,
:-moz-full-screen #aboutScreen,
:-moz-full-screen #orientationWarning,
:-moz-full-screen #mobileControlsInfo,
:-ms-fullscreen #titleScreen,
:-ms-fullscreen #aboutScreen,
:-ms-fullscreen #orientationWarning,
:-ms-fullscreen #mobileControlsInfo {
    display: none !important;
}
/* Info Popup Styles */
.info-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
   background: none;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    padding: 20px;
}

.popup-content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 15px;
}

.popup-header h3 {
    margin: 0;
    color: #2c3e50;
    font-size: 1.5em;
    font-weight: 600;
}

.close-popup {
    background: none;
    border: none;
    font-size: 1.5em;
    cursor: pointer;
    color: #7f8c8d;
    padding: 5px;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.close-popup:hover {
    background-color: #f0f0f0;
    color: #e74c3c;
}

.popup-body {
    margin-bottom: 20px;
}

.popup-image {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.popup-body p {
    color: #34495e;
    line-height: 1.6;
    font-size: 1.1em;
    margin: 0;
}

.popup-footer {
    text-align: center;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
}

.popup-instruction {
    color: #7f8c8d;
    font-style: italic;
    font-size: 0.9em;
}

/* Scrollbar styling untuk popup */
.popup-content::-webkit-scrollbar {
    width: 8px;
	display: none;
}

.popup-content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
}

.popup-content::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
}

.popup-content::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.5);
}

/* Responsive design untuk popup */
@media (max-width: 768px) {
    .popup-content {
        padding: 20px;
        max-width: 90%;
    }
    
    .popup-header h3 {
        font-size: 1.3em;
    }
    
    .popup-body p {
        font-size: 1em;
    }
    
    .close-popup {
        width: 35px;
        height: 35px;
        font-size: 1.3em;
    }
}

/* Animation untuk popup */
@keyframes popupFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.info-popup {
    animation: popupFadeIn 0.3s ease-out;
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .popup-content {
        background: #000;
        border: 2px solid #fff;
        color: #fff;
    }
    
    .popup-header h3 {
        color: #fff;
    }
    
    .popup-body p {
        color: #fff;
    }
    
    .close-popup {
        color: #fff;
        border: 1px solid #fff;
    }
}

/* Progress indicator dalam popup */
.popup-progress {
    margin-top: 10px;
    padding: 5px 10px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 15px;
    font-size: 0.8em;
    color: #7f8c8d;
}

/* Completion popup styles */
.popup-content .popup-body {
    text-align: center;
}

.popup-content .popup-body p {
    margin-bottom: 15px;
}

.popup-content button.close-popup {
    background: #3498db;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s ease;
}

.popup-content button.close-popup:hover {
    background: #2980b9;
}
/* Progress Bar Styles */
.progress-container {
    margin: 20px 0;
    width: 100%;
}

.progress-bar {
    width: 100%;
    height: 12px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3498db, #2ecc71);
    border-radius: 10px;
    transition: width 0.5s ease-in-out;
    box-shadow: 0 0 10px rgba(46, 204, 113, 0.4);
}

.progress-text {
    text-align: center;
    font-size: 0.9em;
    color: #7f8c8d;
    font-weight: 500;
}

/* Completion Popup Styles */
.completion-content {
    text-align: center;
}

.completion-icon {
    font-size: 4em;
    margin-bottom: 15px;
    animation: bounce 1s ease-in-out;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-20px);
    }
    60% {
        transform: translateY(-10px);
    }
}

.completion-subtitle {
    color: #7f8c8d;
    font-style: italic;
}

.completion-button {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(46, 204, 113, 0.3);
}

.completion-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(46, 204, 113, 0.4);
}

/* Animation untuk progress bar */
.progress-fill {
    animation: progressPulse 2s ease-in-out infinite;
}

@keyframes progressPulse {
    0%, 100% {
        box-shadow: 0 0 10px rgba(46, 204, 113, 0.4);
    }
    50% {
        box-shadow: 0 0 20px rgba(46, 204, 113, 0.6);
    }
}

/* Responsive design untuk progress bar */
@media (max-width: 768px) {
    .progress-bar {
        height: 10px;
    }
    
    .progress-text {
        font-size: 0.8em;
    }
    
    .completion-icon {
        font-size: 3em;
    }
}
#customLoadingScreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999; /* Pastikan di atas semua element */
    flex-direction: column;
}
/* Style untuk tombol fullscreen di cover */
#fullscreenCoverButton {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    padding: 15px 30px;
    color: white;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

#fullscreenCoverButton:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Style untuk title screen di mode fullscreen */
:fullscreen #titleScreen,
:-webkit-full-screen #titleScreen,
:-moz-full-screen #titleScreen,
:-ms-fullscreen #titleScreen {
    background: linear-gradient(135deg, 
        rgba(25, 25, 112, 0.3) 0%, 
        rgba(65, 105, 225, 0.3) 10%, 
        rgba(135, 206, 250, 0.3) 30%),
        url('cover.jpg') center/cover no-repeat;
    animation: gradientShift 15s ease infinite;
}

:fullscreen .title-overlay,
:-webkit-full-screen .title-overlay,
:-moz-full-screen .title-overlay,
:-ms-fullscreen .title-overlay {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(30px) saturate(200%);
    -webkit-backdrop-filter: blur(30px) saturate(200%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    max-width: 700px;
    padding: 60px;
}

:fullscreen .title-overlay h1,
:-webkit-full-screen .title-overlay h1,
:-moz-full-screen .title-overlay h1,
:-ms-fullscreen .title-overlay h1 {
    font-size: 3em;
}

:fullscreen .title-button,
:-webkit-full-screen .title-button,
:-moz-full-screen .title-button,
:-ms-fullscreen .title-button {
    padding: 18px 35px;
    font-size: 20px;
}

/* Responsive design untuk fullscreen cover */
@media (max-width: 768px) {
    :fullscreen .title-overlay,
    :-webkit-full-screen .title-overlay,
    :-moz-full-screen .title-overlay,
    :-ms-fullscreen .title-overlay {
        padding: 40px 30px;
        margin: 20px;
    }
    
    :fullscreen .title-overlay h1,
    :-webkit-full-screen .title-overlay h1,
    :-moz-full-screen .title-overlay h1,
    :-ms-fullscreen .title-overlay h1 {
        font-size: 2.2em;
    }
    
    :fullscreen .title-button,
    :-webkit-full-screen .title-button,
    :-moz-full-screen .title-button,
    :-ms-fullscreen .title-button {
        padding: 15px 25px;
        font-size: 16px;
    }
}