@import url('https://fonts.googleapis.com/css2?family=VT323&display=swap');

:root {
    --primary-color: #ffffff;
    --secondary-color: #00ffff;
    --background-color: #000000;
    --ui-background: rgba(0, 0, 0, 0.8);
    --text-color: #ffffff;
    --border-color: #444444;
}

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

body {
    font-family: monospace;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow: hidden;
    background-image: linear-gradient(45deg, #000033 25%, #000044 25%, #000044 50%, #000033 50%, #000033 75%, #000044 75%, #000044 100%);
    background-size: 10px 10px;
}

.game-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.game-header {
    text-align: center;
    margin-bottom: 20px;
    text-shadow: 0 0 10px var(--secondary-color);
}

h1 {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.game-time {
    font-size: 1.5rem;
    color: var(--secondary-color);
}

.game-wrapper {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

#game-scene {
    width: 100%;
    height: 600px;
    background: #000;
    position: relative;
}

#game-scene canvas {
    width: 100% !important;
    height: 100% !important;
    position: absolute;
    top: 0;
    left: 0;
    outline: none;
}

.game-ui {
    display: flex;
    gap: 20px;
}

.inventory-container {
    flex: 1;
    background-color: var(--ui-background);
    border: 2px solid var(--border-color);
    padding: 15px;
    border-radius: 5px;
}

.inventory-container h2 {
    color: var(--secondary-color);
    margin-bottom: 10px;
    text-align: center;
}

.inventory-slots {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}

.inventory-slot {
    width: 32px;
    height: 32px;
    background-color: #333;
    border: 1px solid #555;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.inventory-slot:hover {
    background-color: #444;
}

.inventory-slot img {
    max-width: 80%;
    max-height: 80%;
}

.game-message {
    flex: 2;
    background-color: #000;
    border: 1px solid #444;
    padding: 15px;
    border-radius: 5px;
    font-family: monospace;
    font-size: 1.2rem;
}

.dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 100;
}

.dialog-box {
    background-color: var(--ui-background);
    border: 4px solid var(--border-color);
    width: 80%;
    max-width: 600px;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 30px var(--primary-color);
}

.dialog-content {
    margin-bottom: 20px;
    font-size: 1.3rem;
}

#dialog-close {
    background-color: var(--primary-color);
    color: var(--text-color);
    border: none;
    padding: 10px 20px;
    font-family: 'VT323', monospace;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.2s;
}

#dialog-close:hover {
    background-color: var(--secondary-color);
    transform: scale(1.05);
}

@media (min-width: 768px) {
    .game-wrapper {
        flex-direction: row;
    }
    
    #game-scene {
        flex: 1;
        min-height: 600px;
    }
    
    .game-ui {
        width: 300px;
    }
} 