/* Main CSS imports all individual stylesheets */

/* Import base styles */
@import 'base.css';

/* Import component styles */
@import 'buttons.css';
@import 'notifications.css';
@import 'loading.css';
@import 'ui.css';

/* Import shop styles */
@import 'shop.css';

/* Any additional main-specific styles can go here */
body, html {
    margin: 0;
    padding: 0;
    font-family: 'Arial', sans-serif;
    background-color: #121212;
    color: #ffffff;
    overflow: hidden;
}

canvas {
    display: block;
    width: 100vw;
    height: 100vh;
}

@media (min-width: 1024px) {
    .key-instructions {
        position: fixed;
        bottom: 10px;
        left: 50%;
        transform: translateX(-50%);
        background-color: rgba(0, 0, 0, 0.7);
        color: white;
        padding: 5px 10px;
        border-radius: 5px;
        font-size: 14px;
        z-index: 1000;
    }
}

@media (max-width: 1023px) {
    .key-instructions {
        display: none;
    }
}

/* Add a proper .hidden class if it doesn't exist */
.hidden {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Mobile Controls */
#mobileControls {
    position: fixed;
    bottom: 5%;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    pointer-events: none;
    z-index: 9999;
    touch-action: none;
}

/* Hide mobile controls on desktop */
@media (min-width: 769px) and (hover: hover) and (pointer: fine) {
    #mobileControls {
        display: none !important;
    }
}

/* Show mobile controls on touch devices and small screens */
@media (max-width: 768px), (hover: none), (pointer: coarse) {
    #mobileControls:not(.hidden) {
        display: flex !important;
    }
    
    .key-instructions {
        display: none !important;
    }
}

#joystickContainer {
    position: relative;
    width: 120px;
    height: 120px;
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    pointer-events: auto;
    touch-action: none;
}

#joystick {
    position: absolute;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    touch-action: none;
}

#attackButton {
    width: 100px;
    height: 100px;
    background: rgba(255, 50, 50, 0.7);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-weight: bold;
    pointer-events: auto;
    transition: transform 0.1s;
    touch-action: none;
    box-shadow: 0 0 15px rgba(255, 50, 50, 0.5);
} 