/* Windows 98-inspired styling for AlignAndConquer */

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

html, body {
    font-family: 'MS Sans Serif', 'Segoe UI', sans-serif;
    background: #c0c0c0;
    overflow: hidden;
    height: 100vh;
    width: 100vw;
    cursor: url('assets/ui/cursor_default.png') 15 0, auto;
}

#app-container {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #c0c0c0;
    padding: 10px;
}

/* Canvas fills container and expands with the window */
#canvas-container {
    flex: 1;
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    overflow: visible;
    background: #c0c0c0;
    border: 2px outset #c0c0c0;
    box-shadow:
        inset -1px -1px 0px #000,
        inset 1px 1px 0px #fff,
        2px 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
}

/* Windows 98 button style */
button {
    font-family: 'MS Sans Serif', 'Segoe UI', sans-serif;
    font-size: 11px;
    background: #c0c0c0;
    border: 2px outset #c0c0c0;
    padding: 4px 12px;
    cursor: url('assets/ui/cursor_hover.png') 15 0, auto;
    outline: none;
}

button:hover {
    background: #d4d0c8;
}

button:active {
    border: 2px inset #c0c0c0;
    background: #808080;
    cursor: url('assets/ui/cursor_press.png') 15 0, auto;
}

button:disabled {
    color: #808080;
    cursor: not-allowed;
    border: 2px inset #c0c0c0;
    background: #c0c0c0;
}

/* Windows 98 input style */
input, select {
    font-family: 'MS Sans Serif', 'Segoe UI', sans-serif;
    font-size: 11px;
    background: #fff;
    border: 2px inset #c0c0c0;
    padding: 2px 4px;
    outline: none;
}

input:focus, select:focus {
    border: 2px inset #000080;
}

/* Windows 98 modal/dialog style */
.modal {
    background: #c0c0c0;
    border: 2px outset #c0c0c0;
    box-shadow: 
        inset -1px -1px 0px #000,
        inset 1px 1px 0px #fff,
        4px 4px 8px rgba(0, 0, 0, 0.5);
    padding: 8px;
}

.modal-header {
    background: #000080;
    color: #fff;
    padding: 4px 8px;
    font-weight: bold;
    font-size: 11px;
    margin: -8px -8px 8px -8px;
}

/* Landscape prompt: full-screen overlay on narrow portrait (mobile) */
.landscape-prompt {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: #c0c0c0;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}

.landscape-prompt-inner {
    text-align: center;
    font-size: 1.1rem;
    color: #000;
    max-width: 280px;
}

.landscape-prompt-icon {
    display: block;
    font-size: 3rem;
    margin-bottom: 12px;
    line-height: 1;
}

/* Show overlay when portrait and viewport width below breakpoint (mobile) */
@media (orientation: portrait) and (max-width: 768px) {
    .landscape-prompt {
        display: flex !important;
    }
}

/* Loading indicator */
.loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 14px;
    color: #000;
    background: #c0c0c0;
    padding: 20px;
    border: 2px outset #c0c0c0;
    z-index: 1000;
}

