/**
 * Estilos do Jogo 3D
 */

/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    overflow: hidden;
    font-family: Arial, sans-serif;
}

canvas {
    display: block;
}

/* ===== Painéis de UI ===== */

/* Painel de Instruções */
#instructions {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 15px;
    border-radius: 8px;
    font-size: 14px;
    max-width: 300px;
    z-index: 100;
}

#instructions h3 {
    margin-bottom: 10px;
    color: #4CAF50;
}

#instructions ul {
    list-style: none;
    padding: 0;
}

#instructions li {
    margin: 5px 0;
    padding-left: 10px;
}

#instructions .key {
    background: #333;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: monospace;
}

/* Display de Posição */
#position {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: #4CAF50;
    padding: 10px;
    border-radius: 8px;
    font-family: monospace;
    z-index: 100;
}

/* Modo de Câmera */
#camera-mode {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: #FF9800;
    padding: 10px 15px;
    border-radius: 8px;
    font-family: Arial, sans-serif;
    font-size: 14px;
    z-index: 100;
}

/* Inventário */
#inventory {
    position: absolute;
    top: 50px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: #8BC34A;
    padding: 10px 15px;
    border-radius: 8px;
    font-family: Arial, sans-serif;
    font-size: 14px;
    z-index: 100;
}

/* ===== Mira (Crosshair) ===== */
#crosshair {
    position: absolute;
    width: 20px;
    height: 20px;
    pointer-events: none;
    z-index: 100;
}

#crosshair::before,
#crosshair::after {
    content: '';
    position: absolute;
    background: white;
    border: 1px solid black;
}

#crosshair::before {
    width: 2px;
    height: 20px;
    left: 50%;
    transform: translateX(-50%);
}

#crosshair::after {
    width: 20px;
    height: 2px;
    top: 50%;
    transform: translateY(-50%);
}
