body {
    margin: 0;
    overflow: hidden;
    background-color: #f0f0f0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

canvas {
    display: block;
}

#loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 20px 40px;
    border-radius: 8px;
    font-size: 20px;
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#loading::after {
    content: "";
    display: block;
    width: 40px;
    height: 40px;
    margin-top: 15px;
    border: 4px solid #fff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

#ui-container {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

button {
    background-color: #2c3e50;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

button:hover {
    background-color: #34495e;
}

button.active {
    background-color: #27ae60;
}

#instructions {
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 15px;
    border-radius: 5px;
    font-size: 14px;
    line-height: 1.5;
    display: none;
    margin-top: 10px;
}

#coordinate-panel {
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px;
    border-radius: 5px;
    display: none;
    /* Oculto para los visitantes */
    gap: 10px;
    align-items: center;
    margin-top: 5px;
}

#coordinate-panel input {
    width: 60px;
    padding: 5px;
    border: none;
    border-radius: 3px;
    background: white;
    color: black;
}

#btn-teleport {
    padding: 5px 10px;
    font-size: 14px;
    background-color: #e67e22;
}

#btn-teleport:hover {
    background-color: #d35400;
}