* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Sour Gummy', cursive;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    background-attachment: fixed;
    background-size: cover;
    overflow: auto;
    user-select: none;
    min-width: 1200px;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    position: relative;
}

#gameContainer {
    position: relative;
    min-width: 1200px;
    min-height: 800px;
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0;
    box-sizing: border-box;
    z-index: 2;
}


/* Screen frame effect around canvas */
/* #gameContainer::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 1250px;
    height: 850px;
    background: linear-gradient(45deg, #4a5568, #2d3748, #4a5568);
    border-radius: 15px;
    z-index: 0;
    box-shadow: 
        0 0 0 2px rgba(255, 255, 255, 0.1),
        0 15px 40px rgba(0, 0, 0, 0.6);
} */

#gameCanvas {
    border: 3px solid #2d3748;
    border-radius: 10px;
    background: transparent;
    box-shadow: 0 30px 30px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.1), inset 0 0 20px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    resize: none;
    position: relative;
    z-index: 2;
}

#loadingScreen {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #e2e8f0;
    z-index: 10;
    background: rgba(0, 0, 0, 0.3);
    padding: 2rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    min-width: 400px;
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
    animation: loadingScreenPulse 3s ease-in-out infinite;
}

@keyframes loadingScreenPulse {
    0%, 100% {
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 0 0 rgba(255, 107, 107, 0.1);
    }
    50% {
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 20px 5px rgba(255, 107, 107, 0.2);
    }
}

.loading-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

#loadingScreen h1 {
    font-size: 3rem;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

#loadingScreen p {
    font-size: 1.2rem;
    opacity: 0.8;
    margin: 0;
}

/* Cat-themed loading spinner */
.loading-spinner {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    justify-content: center;
}

.cat-paw {
    font-size: 2rem;
    animation: pawBounce 1.5s ease-in-out infinite;
    transform-origin: center;
}

.cat-paw:nth-child(1) {
    animation-delay: 0s;
}

.cat-paw:nth-child(2) {
    animation-delay: 0.2s;
}

.cat-paw:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes pawBounce {
    0%, 100% {
        transform: translateY(0) scale(1);
        opacity: 0.7;
    }
    50% {
        transform: translateY(-10px) scale(1.1);
        opacity: 1;
    }
}

/* Progress bar container */
.progress-container {
    width: 100%;
    max-width: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4);
    background-size: 200% 100%;
    border-radius: 4px;
    width: 0%;
    transition: width 0.3s ease-out;
    animation: progressShimmer 2s ease-in-out infinite;
    box-shadow: 0 0 10px rgba(255, 107, 107, 0.3);
}

@keyframes progressShimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.progress-text {
    font-size: 0.9rem;
    font-weight: bold;
    color: #e2e8f0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.loading-status {
    font-size: 1rem;
    opacity: 0.9;
    color: #cbd5e0;
    font-style: italic;
    min-height: 1.2em;
    transition: opacity 0.3s ease;
}

/* Hide loading screen when game loads */
.loaded #loadingScreen {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.95);
    pointer-events: none;
}

/* Custom scrollbar styling for dark theme */
::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: #1a202c;
    border-radius: 6px;
}

::-webkit-scrollbar-thumb {
    background: #4a5568;
    border-radius: 6px;
    border: 2px solid #1a202c;
}

::-webkit-scrollbar-thumb:hover {
    background: #718096;
}

::-webkit-scrollbar-corner {
    background: #1a202c;
}

/* Firefox scrollbar styling */
html {
    scrollbar-width: thin;
    scrollbar-color: #4a5568 #1a202c;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    background-attachment: fixed;
    background-size: cover;
    min-height: 100%;
}

/* Background image div that matches canvas area */
#backgroundImage {
    position: fixed;
    background-image: url('assets/bgs/bg.jpg');
    background-size: auto;
    background-position: center 1px;
    background-repeat: no-repeat;
    z-index: 1;
    pointer-events: none;
}

/* Foreground image layer in front of canvas */
#foregroundImage {
    position: fixed;
    background-image: url(assets/images/paws_frontlayer.png);
    background-size: auto;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 3;
    pointer-events: none;
}
/* Overlay to darken the background image */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    /* background: linear-gradient(135deg, rgba(26, 26, 46, 0.6) 0%, rgba(22, 33, 62, 0.6) 50%, rgba(15, 52, 96, 0.6) 100%); */
    z-index: 1;
}

/* Fixed canvas size - no responsive resizing */
