* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ==== Background Default ==== */
body {
    font-family: 'Poppins', sans-serif;
    background-image: url('background.png');
    background-size: cover;           /* isi layar penuh */
    background-position: center;      /* selalu fokus tengah */
    background-repeat: no-repeat;
    background-attachment: fixed;     /* efek parallax di desktop */
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    overflow-x: hidden;
    transition: background-image 1s ease-in-out;
}

/* ==== Saat Masuk Game ==== */
body.in-game {
    background-image: url('background2.png');
}

/* ==== Responsif untuk layar kecil (HP) ==== */
@media (max-width: 768px) {
    body {
        background-size: contain;    /* biar gambar terlihat utuh */
        background-position: top;    /* fokus atas */
        background-attachment: scroll; /* biar ga nge-lag di HP */
    }

    .level-selection,
    .game-container {
        width: 95%;      /* biar muat di layar kecil */
        padding: 15px;
        margin: 10px auto;
    }

    .logo-large {
        max-width: 80px;
    }

    h1 {
        font-size: 1.4rem;
    }

    h2 {
        font-size: 1rem;
    }
}


.game-container {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 30px;
    padding: 25px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    width: 100%;
    backdrop-filter: blur(10px);
}

/* ===== HEADER & LOGO ===== */
.header {
    text-align: center;
    margin-bottom: 20px;
}

.logo-large {
    max-width: 100px;
    height: auto;
    display: block;
    margin: 0 auto 15px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
    transition: transform 0.3s ease;
}

.logo-large:hover {
    transform: scale(1.05);
}

.header h1 {
    font-size: 2em;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    margin-bottom: 10px;
    font-weight: 800;
    letter-spacing: 1px;
    animation: titleFloat 3s ease-in-out infinite;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

@keyframes titleFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* ===== STATS SECTION ===== */
.stats {
    display: flex;
    justify-content: space-between;
    margin-bottom: 18px;
    gap: 10px;
}

.stat-box {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    padding: 12px 18px;
    border-radius: 12px;
    color: white;
    flex: 1;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease;
    min-width: 0;
}

.stat-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.stat-label {
    font-size: 0.75em;
    opacity: 0.95;
    margin-bottom: 4px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.stat-value {
    font-size: 1.6em;
    font-weight: 900;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* ===== PROGRESS BAR ===== */
.progress-bar {
    background: #e0e0e0;
    height: 22px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 18px;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.15);
}

.progress-fill {
    background: linear-gradient(90deg, #4facfe 0%, #00f2fe 100%);
    height: 100%;
    width: 0%;
    transition: width 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 0.85em;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* ===== GAME BOARD ===== */
.game-board {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 6px;
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    padding: 12px;
    border-radius: 18px;
    margin-bottom: 18px;
    box-shadow: inset 0 4px 10px rgba(0, 0, 0, 0.1);
}

.candy {
    aspect-ratio: 1;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8em;
    transition: all 0.2s ease;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
    background: white;
    user-select: none;
}

.candy:hover {
    transform: scale(1.08);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
}

.candy.selected {
    transform: scale(1.12);
    box-shadow: 0 0 18px rgba(255, 215, 0, 0.9);
    border: 2px solid #ffd700;
    animation: selectedPulse 0.5s ease infinite;
}

@keyframes selectedPulse {
    0%, 100% { box-shadow: 0 0 18px rgba(255, 215, 0, 0.8); }
    50% { box-shadow: 0 0 28px rgba(255, 215, 0, 1); }
}

.candy.matching {
    animation: pulse 0.3s ease;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.candy.falling {
    animation: fall 0.5s ease;
}

@keyframes fall {
    from { transform: translateY(-100px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* ===== BUTTONS ===== */
.buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 28px;
    font-size: 1em;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}

.btn-secondary:active {
    transform: translateY(0);
}

.btn-sound {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    color: white;
    font-size: 0.95em;
    padding: 12px 22px;
}

.btn-sound:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}

.btn-sound:active {
    transform: translateY(0);
}

/* ===== MODAL ===== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(8px);
    padding: 20px;
}

.modal-content {
    background: white;
    padding: 35px;
    border-radius: 22px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    max-width: 380px;
    width: 100%;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.modal h2 {
    font-size: 2.2em;
    margin-bottom: 18px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    font-weight: 800;
}

.modal p {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: #444;
    font-weight: 500;
}

/* ===== POPUPS ===== */
.combo-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2.5em;
    font-weight: 900;
    color: #ffd700;
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.6),
                 0 2px 4px rgba(0, 0, 0, 0.4);
    animation: comboAnim 1s ease;
    pointer-events: none;
    z-index: 999;
}

@keyframes comboAnim {
    0% { transform: translate(-50%, -50%) scale(0); opacity: 0; }
    50% { transform: translate(-50%, -50%) scale(1.2); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(1); opacity: 0; }
}

.score-popup {
    position: absolute;
    font-size: 1.4em;
    font-weight: 900;
    color: #4facfe;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.4),
                 0 2px 4px rgba(0, 0, 0, 0.3);
    animation: scoreFloat 1s ease;
    pointer-events: none;
    z-index: 998;
}

@keyframes scoreFloat {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(-60px); opacity: 0; }
}

.level-selection {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); <-- hapus baris ini */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    z-index: 2000;
}


.level-container {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 30px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    width: 100%;
    text-align: center;
}

.level-container h1 {
    font-size: 2.2em;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    margin-bottom: 10px;
    font-weight: 800;
    letter-spacing: 1px;
}

.level-container h2 {
    font-size: 1.3em;
    color: #764ba2;
    margin-bottom: 30px;
    font-weight: 700;
    letter-spacing: 2px;
}

.level-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.level-btn {
    background: white;
    border: 3px solid transparent;
    border-radius: 18px;
    padding: 25px 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.level-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.level-btn.easy {
    border-color: #4ade80;
}

.level-btn.easy:hover {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
}

.level-btn.normal {
    border-color: #3b82f6;
}

.level-btn.normal:hover {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
}

.level-btn.hard {
    border-color: #f97316;
}

.level-btn.hard:hover {
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
}

.level-btn.expert {
    border-color: #ef4444;
}

.level-btn.expert:hover {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
}

.level-btn.nightmare {
    border-color: #8b5cf6;
    background: linear-gradient(135deg, #1f1f1f 0%, #3f3f3f 100%);
}

.level-btn.nightmare:hover {
    background: linear-gradient(135deg, #2f2f2f 0%, #4f4f4f 100%);
}

.level-btn.nightmare .level-name,
.level-btn.nightmare .level-info {
    color: white;
}

.level-icon {
    font-size: 2.5em;
}

.level-name {
    font-size: 1.2em;
    font-weight: 800;
    color: #333;
    letter-spacing: 1px;
}

.level-info {
    font-size: 0.75em;
    color: #666;
    font-weight: 600;
}

.level-badge {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 800;
    letter-spacing: 1px;
    margin-top: 5px;
    text-transform: uppercase;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.level-badge.easy {
    background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
    color: white;
}

.level-badge.normal {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
}

.level-badge.hard {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    color: white;
}

.level-badge.expert {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
}

.level-badge.nightmare {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: white;
}

.modal-stats {
    margin: 20px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 12px;
}

.modal-stats p {
    margin: 8px 0;
    font-size: 1em;
}

.modal-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== FOOTER ===== */
.game-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    padding: 12px 20px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    border-top: 2px solid rgba(102, 126, 234, 0.2);
    z-index: 100;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-text {
    color: #64748b;
    font-size: 0.85em;
    margin: 0;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.footer-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    position: relative;
}

.footer-link:hover {
    color: #764ba2;
}

.footer-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transition: width 0.3s ease;
}

.footer-link:hover::after {
    width: 100%;
}

.footer-socials {
    display: flex;
    gap: 12px;
    align-items: center;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 3px 8px rgba(240, 147, 251, 0.3);
}

.social-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(240, 147, 251, 0.5);
}

.social-link:nth-child(1) {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 3px 8px rgba(102, 126, 234, 0.3);
}

.social-link:nth-child(1):hover {
    box-shadow: 0 6px 15px rgba(102, 126, 234, 0.5);
}

.social-link:nth-child(2) {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    box-shadow: 0 3px 8px rgba(79, 172, 254, 0.3);
}

.social-link:nth-child(2):hover {
    box-shadow: 0 6px 15px rgba(79, 172, 254, 0.5);
}

.social-link:nth-child(3) {
    background: linear-gradient(135deg, #a78bfa 0%, #8b5cf6 100%);
    box-shadow: 0 3px 8px rgba(167, 139, 250, 0.3);
}

.social-link:nth-child(3):hover {
    box-shadow: 0 6px 15px rgba(167, 139, 250, 0.5);
}

.social-link:nth-child(4) {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    box-shadow: 0 3px 8px rgba(250, 112, 154, 0.3);
}

.social-link:nth-child(4):hover {
    box-shadow: 0 6px 15px rgba(250, 112, 154, 0.5);
}

.social-link svg {
    width: 20px;
    height: 20px;
}

/* Adjust body padding to account for footer */
body {
    padding-bottom: 65px;
}

/* ===== RESPONSIVE DESIGN ===== */

/* Tablet & Smaller Laptops */
@media (max-width: 768px) {
    .level-container {
        padding: 30px 20px;
    }

    .level-container h1 {
        font-size: 1.8em;
    }

    .level-container h2 {
        font-size: 1.1em;
        margin-bottom: 25px;
    }

    .level-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .level-btn {
        padding: 20px 12px;
    }

    .level-icon {
        font-size: 2em;
    }

    .level-name {
        font-size: 1em;
    }

    .level-info {
        font-size: 0.7em;
    }

    .level-badge {
        padding: 6px 16px;
        font-size: 0.8em;
    }

    body {
        padding: 15px;
    }

    .game-container {
        padding: 20px;
        border-radius: 25px;
    }

    .logo-large {
        max-width: 80px;
        margin-bottom: 12px;
    }

    .header h1 {
        font-size: 1.6em;
        letter-spacing: 0.5px;
    }
    
    .stats {
        gap: 8px;
        margin-bottom: 15px;
    }

    .stat-box {
        padding: 10px 12px;
    }

    .stat-label {
        font-size: 0.7em;
    }
    
    .stat-value {
        font-size: 1.4em;
    }

    .progress-bar {
        height: 20px;
        margin-bottom: 15px;
    }

    .progress-fill {
        font-size: 0.75em;
    }

    .game-board {
        gap: 5px;
        padding: 10px;
    }
    
    .candy {
        font-size: 1.4em;
        border-radius: 8px;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9em;
    }

    .btn-sound {
        padding: 10px 18px;
        font-size: 0.85em;
    }

    .modal-content {
        padding: 28px;
        max-width: 320px;
    }

    .modal h2 {
        font-size: 1.8em;
    }

    .modal p {
        font-size: 1em;
    }

    .combo-popup {
        font-size: 2em;
    }

    .score-popup {
        font-size: 1.2em;
    }
}

/* Mobile Phones */
@media (max-width: 480px) {
    body {
        padding-bottom: 80px;
    }

    .game-footer {
        padding: 10px 15px;
    }

    .footer-content {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .footer-text {
        font-size: 0.75em;
    }

    .footer-socials {
        gap: 10px;
    }

    .social-link {
        width: 32px;
        height: 32px;
    }

    .social-link svg {
        width: 18px;
        height: 18px;
    }

    .level-container {
        padding: 25px 15px;
        border-radius: 25px;
    }

    .level-container h1 {
        font-size: 1.4em;
        margin-bottom: 8px;
    }

    .level-container h2 {
        font-size: 1em;
        margin-bottom: 20px;
        letter-spacing: 1px;
    }

    .level-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .level-btn {
        padding: 18px 10px;
        border-radius: 15px;
    }

    .level-icon {
        font-size: 1.8em;
    }

    .level-name {
        font-size: 0.95em;
    }

    .level-info {
        font-size: 0.65em;
    }

    .level-badge {
        padding: 5px 14px;
        font-size: 0.75em;
    }

    .modal-buttons {
        flex-direction: column;
        width: 100%;
    }

    .modal-buttons .btn {
        width: 100%;
    }

    body {
        padding: 10px;
    }

    .game-container {
        padding: 15px;
        border-radius: 20px;
    }

    .logo-large {
        max-width: 65px;
        margin-bottom: 10px;
    }

    .header {
        margin-bottom: 15px;
    }

    .header h1 {
        font-size: 1.3em;
        margin-bottom: 8px;
    }
    
    .stats {
        gap: 6px;
        margin-bottom: 12px;
    }

    .stat-box {
        padding: 8px 10px;
        border-radius: 10px;
    }

    .stat-label {
        font-size: 0.65em;
        margin-bottom: 3px;
    }
    
    .stat-value {
        font-size: 1.2em;
    }

    .progress-bar {
        height: 18px;
        margin-bottom: 12px;
        border-radius: 10px;
    }

    .progress-fill {
        font-size: 0.7em;
    }

    .game-board {
        gap: 4px;
        padding: 8px;
        border-radius: 15px;
        margin-bottom: 15px;
    }
    
    .candy {
        font-size: 1.2em;
        border-radius: 6px;
    }

    .buttons {
        gap: 8px;
    }
    
    .btn {
        padding: 10px 18px;
        font-size: 0.85em;
        border-radius: 10px;
    }

    .btn-sound {
        padding: 10px 15px;
        font-size: 0.8em;
    }

    .modal-content {
        padding: 25px;
        border-radius: 18px;
        max-width: 280px;
    }

    .modal h2 {
        font-size: 1.5em;
        margin-bottom: 15px;
    }

    .modal p {
        font-size: 0.95em;
        margin-bottom: 18px;
    }

    .combo-popup {
        font-size: 1.8em;
    }

    .score-popup {
        font-size: 1em;
    }
}

/* Very Small Devices */
@media (max-width: 360px) {
    body {
        padding-bottom: 90px;
    }

    .game-footer {
        padding: 8px 10px;
    }

    .footer-text {
        font-size: 0.7em;
    }

    .footer-socials {
        gap: 8px;
    }

    .social-link {
        width: 30px;
        height: 30px;
    }

    .social-link svg {
        width: 16px;
        height: 16px;
    }

    .game-container {
        padding: 12px;
    }

    .logo-large {
        max-width: 55px;
    }

    .header h1 {
        font-size: 1.1em;
    }

    .stat-box {
        padding: 6px 8px;
    }

    .stat-label {
        font-size: 0.6em;
    }

    .stat-value {
        font-size: 1em;
    }

    .candy {
        font-size: 1em;
    }

    .btn {
        padding: 8px 15px;
        font-size: 0.8em;
    }

    .btn-sound {
        padding: 8px 12px;
        font-size: 0.75em;
    }
}

/* ==== Background Candy Rush ==== */
body {
    background-image: url('background.png');
    background-size: cover;          
    background-position: center;     
    background-repeat: no-repeat;    
    background-attachment: fixed;    
    font-family: 'Poppins', sans-serif;
}

.level-selection,
.game-container {
    background-color: rgba(255, 255, 255, 0.85);
    border-radius: 20px;
    padding: 20px;
    margin: 20px auto;
    max-width: 800px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

/* ==== Fix Level Selection Layout ==== */
.level-selection {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh; /* biar full tinggi layar */
    position: relative;
    z-index: 2;
}

/* Untuk pastikan latar belakang game tetap penuh */
body {
    min-height: 100vh;
    overflow-x: hidden;
    background-image: url('background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* Tambahkan layer putih transparan di tengah */
.level-container {
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.15);
    text-align: center;
    max-width: 700px;
    width: 90%;
}

/* ==== Loading Screen ==== */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 5000;
}

.loading-text {
    font-size: 2rem;
    font-weight: bold;
    color: white;
    text-shadow: 0 2px 5px rgba(0,0,0,0.5);
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50%, 100% { opacity: 1; }
    25%, 75% { opacity: 0.5; }
}

