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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f4f4f9;
    color: #333;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}

h1 {
    margin-top: 50px;
    margin-bottom: 20px;
    color: #2c3e50;
}

#lobby {
    text-align: center;
    width: 100%;
    max-width: 400px;
}

.card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

input {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
}

button {
    width: 100%;
    padding: 12px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #2980b9;
}

hr {
    margin: 20px 0;
    border: 0;
    border-top: 1px solid #eee;
}

#status {
    margin-top: 15px;
    color: #e74c3c;
    font-weight: bold;
}

#game {
    width: 100%;
    max-width: 1000px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#toolbar {
    width: 100%;
    background: white;
    padding: 15px;
    border-radius: 10px 10px 0 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.tools {
    display: flex;
    gap: 10px;
    align-items: center;
}

.tools input[type="color"] {
    width: 40px;
    height: 40px;
    padding: 0;
    margin: 0;
    border: none;
    cursor: pointer;
}

.tools input[type="range"] {
    width: 100px;
    margin: 0;
}

.tools button {
    width: auto;
    padding: 8px 15px;
    font-size: 14px;
}

#playerList {
    font-weight: bold;
    color: #27ae60;
}

#canvas-container {
    width: 100%;
    background: white;
    padding: 10px;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    display: flex;
    justify-content: center;
    overflow: hidden;
}

canvas {
    border: 1px solid #ddd;
    background-color: white;
    cursor: crosshair;
    max-width: 100%;
    touch-action: none; /* Evita el scroll en móviles al dibujar */
}
