/* Base styles for Moonfall game */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    
    /* Prevent text selection during gameplay */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    
    /* Allow pointer events by default */
    pointer-events: auto;
}

body {
    color: #fff;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: visible; /* Changed from hidden to visible to prevent content cropping */
    position: relative;
    background-color: #000; /* Fallback color */
}

/* Ultrawide background implementation */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-image: url('/assets/images/background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

#app {
    width: 100%;
    height: 100vh;
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
    position: relative;
    overflow: hidden;
}

h1 {
    text-align: center;
    color: #eedbf1;
    margin-bottom: 30px;
    font-size: 3rem;
    text-shadow: 0 0 10px rgba(238, 219, 241, 0.5);
}

.logo-container {
    text-align: center;
    margin-bottom: 30px;
}

#game-logo {
    max-width: 400px;
    width: 100%;
    height: auto;
    border-radius: 8px;
}

h2 {
    color: #eedbf1;
    margin-bottom: 15px;
}

.panel {
    background-color: #16213e;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

button {
    background-color: rgba(74, 63, 53, 0.7);
    color: #eedbf1;
    border: 1px solid rgba(238, 219, 241, 0.5);
    padding: 10px 15px;
    margin: 5px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(3px);
    /* Explicitly prevent button dragging */
    cursor: pointer !important; /* Ensure cursor shows clickable even if dragging is attempted */
}

button:hover:not([disabled]) {
    background-color: rgba(238, 219, 241, 0.3);
    color: #fff;
    box-shadow: 0 0 10px rgba(238, 219, 241, 0.5);
}

button:disabled {
    background-color: rgba(51, 51, 51, 0.5);
    cursor: not-allowed;
    opacity: 0.5;
    border-color: rgba(238, 219, 241, 0.2);
}

input[type="text"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 4px;
    border: 1px solid rgba(238, 219, 241, 0.5);
    background-color: rgba(116, 89, 128, 0.5);
    color: #fff;
    backdrop-filter: blur(3px);
}

/* Animation keyframes */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Action in progress indicator */
.action-in-progress {
    cursor: wait !important;
}

.action-in-progress .card.draggable {
    /* Keep interactions disabled, but do not ghost visuals */
    cursor: not-allowed !important;
    pointer-events: none;
}

.action-in-progress::after {
    content: 'Processing action...';
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(33, 19, 8, 0.9);
    color: #e0c285;
    padding: 10px 20px;
    border-radius: 5px;
    border: 1px solid #e0c285;
    z-index: 20000;
    pointer-events: none;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    font-family: 'Georgia', serif;
}

/* Media queries for responsive design */
@media screen and (max-width: 768px) {
    #app {
        padding: 10px;
    }
    
    .panel {
        padding: 15px;
    }
    
    button {
        padding: 8px 12px;
    }
}

@media screen and (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }
    
    .panel {
        padding: 10px;
    }
    
    button {
        padding: 6px 10px;
        font-size: 0.9rem;
    }
}
