body {
    font-family: 'Courier New', Courier, monospace;
    background-color: #111;
    color: #eee;
    margin: 0;
    height: 100vh;
    overflow: hidden;
}

#main-layout {
    display: grid;
    grid-template-columns: 250px 1fr 250px;
    height: 100vh;
    gap: 20px;
    padding: 20px;
    box-sizing: border-box;
}

.side-panel {
    background-color: rgba(0, 255, 0, 0.1);
    border: 2px solid #0f0;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.3);
    overflow-y: auto;
}

.panel-content {
    padding: 1.5rem;
}

#center-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

h1 {
    color: #0f0;
    text-shadow: 0 0 10px #0f0;
    margin-bottom: 2rem;
    font-size: 2.5rem;
}

h2, h3 {
    color: #0f0;
    text-shadow: 0 0 5px #0f0;
    margin-bottom: 1rem;
}

#game-canvas {
    background-color: #000;
    border: 2px solid #0f0;
    /* Transform is now set dynamically in JavaScript based on map size */
    box-shadow: 0 0 20px #0f0;
    transition: transform 0.5s ease-in-out;
}

#ui-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

#start-menu, #lobby-view, #game-over-view {
    padding: 2rem;
    border: 2px solid #0f0;
    background-color: rgba(17, 17, 17, 0.95);
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.5);
    border-radius: 10px;
    max-width: 500px;
    width: 90%;
}

.menu-section {
    margin: 1.5rem 0;
    padding: 1rem;
    border: 1px solid rgba(0, 255, 0, 0.3);
    border-radius: 5px;
    background-color: rgba(0, 255, 0, 0.05);
}

.host-settings {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    align-items: center;
    margin-bottom: 1rem;
}

.host-settings label {
    text-align: right;
    color: #0f0;
}

.p2p-warning {
    font-size: 0.8rem;
    color: #ffc107;
    margin-top: 1rem;
    text-align: center;
}

button {
    background-color: #0f0;
    color: #111;
    border: 2px solid #0f0;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    cursor: pointer;
    margin: 0.5rem 0;
    transition: all 0.3s;
    width: 100%;
    border-radius: 5px;
    font-weight: bold;
    text-transform: uppercase;
}

button:hover:not(:disabled) {
    background-color: transparent;
    color: #0f0;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
}

button:disabled {
    background-color: #333;
    color: #666;
    border-color: #333;
    cursor: not-allowed;
}

#leave-room-btn, #back-to-lobby-btn, #leave-game-btn {
    background-color: #ff4444;
    border-color: #ff4444;
    color: white;
}

#leave-room-btn:hover, #back-to-lobby-btn:hover, #leave-game-btn:hover {
    background-color: transparent;
    color: #ff4444;
    box-shadow: 0 0 10px rgba(255, 68, 68, 0.5);
}

#restart-game-btn {
    background-color: #0f0;
    border-color: #0f0;
}

input[type="text"], input[type="number"] {
    background-color: rgba(0, 0, 0, 0.7);
    border: 2px solid #0f0;
    color: #eee;
    padding: 0.75rem;
    font-size: 1rem;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
    border-radius: 5px;
    margin: 0.5rem 0;
}

input:focus {
    outline: none;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
}

#lobby-room-code-display {
    font-weight: bold;
    color: #0ff;
    background-color: rgba(0, 255, 255, 0.1);
    padding: 0.5rem;
    border-radius: 5px;
    user-select: all;
    word-wrap: break-word;
    border: 1px solid #0ff;
}

#player-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

#player-list li {
    padding: 0.75rem;
    margin: 0.5rem 0;
    background-color: rgba(0, 255, 0, 0.1);
    border: 1px solid rgba(0, 255, 0, 0.3);
    border-radius: 5px;
}

#ping-display {
    background: rgba(0, 255, 0, 0.2);
    padding: 0.5rem;
    border-radius: 5px;
    color: #0f0;
    border: 1px solid #0f0;
    margin: 0.5rem 0;
}

#controls-info p {
    margin: 0.5rem 0;
    color: #ccc;
}

#controls-info strong {
    color: #0f0;
}

#game-actions {
    margin-top: 2rem;
}

#game-info p {
    margin: 0.5rem 0;
}

/* Dropdown Styles */
.dropdown-section {
    margin: 1rem 0;
}

.dropdown-toggle {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(0, 255, 0, 0.1);
    border: 2px solid #0f0;
    color: #0f0;
    padding: 1rem;
    cursor: pointer;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: bold;
    text-transform: none;
    transition: all 0.3s;
}

.dropdown-toggle:hover {
    background-color: rgba(0, 255, 0, 0.2);
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.3);
}

.dropdown-toggle.active {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    background-color: rgba(0, 255, 0, 0.2);
}

.dropdown-arrow {
    transition: transform 0.3s;
}

.dropdown-toggle.active .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-content {
    display: none;
    background-color: rgba(0, 255, 0, 0.05);
    border: 2px solid #0f0;
    border-top: none;
    border-radius: 0 0 5px 5px;
    padding: 1.5rem;
}

.dropdown-content.show {
    display: block;
}

.setting-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 1rem 0;
}

.setting-row label {
    color: #0f0;
    font-weight: bold;
    flex: 1;
}

.input-with-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
}

.input-with-info input {
    flex: 1;
    margin: 0;
}

.info-btn {
    background: none;
    border: 2px solid #ffc107;
    color: #ffc107;
    padding: 0.25rem;
    border-radius: 50%;
    cursor: pointer;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    margin: 0;
}

.info-btn:hover {
    background-color: rgba(255, 193, 7, 0.2);
    box-shadow: 0 0 8px rgba(255, 193, 7, 0.5);
}

.icon-btn {
    background: none;
    border: 2px solid #0f0;
    color: #0f0;
    padding: 0.5rem;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
    width: auto;
    margin: 0;
}

.icon-btn:hover {
    background-color: rgba(0, 255, 0, 0.2);
    box-shadow: 0 0 8px rgba(0, 255, 0, 0.5);
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.panel-header h3 {
    margin: 0;
}

/* Tooltip Styles */
.tooltip {
    position: absolute;
    background-color: rgba(0, 0, 0, 0.95);
    color: #0f0;
    padding: 0.75rem;
    border-radius: 5px;
    border: 1px solid #0f0;
    font-size: 0.9rem;
    max-width: 300px;
    z-index: 1000;
    display: none;
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.3);
}

.tooltip.show {
    display: block;
}

.tooltip::before {
    content: '';
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-bottom: 5px solid #0f0;
}

/* Header buttons */
.header-buttons {
    display: flex;
    gap: 0.5rem;
}

.copyright-btn {
    font-size: 1.2rem;
    font-weight: bold;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(0, 255, 0, 0.1);
    border: 2px solid #0f0;
    color: #0f0;
    cursor: pointer;
    transition: all 0.3s;
    margin: 0;
}

.copyright-btn:hover {
    background-color: rgba(0, 255, 0, 0.2);
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
    transform: scale(1.1);
}

/* Copyright tooltip specific styles */
.copyright-tooltip {
    position: absolute;
    background-color: rgba(0, 0, 0, 0.95);
    color: #0f0;
    padding: 1rem;
    border-radius: 8px;
    border: 2px solid #0f0;
    font-size: 0.9rem;
    max-width: 350px;
    z-index: 1001;
    display: none;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.3);
    line-height: 1.4;
}

.copyright-tooltip.show {
    display: block;
}

.copyright-tooltip h4 {
    color: #0f0;
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    text-shadow: 0 0 5px #0f0;
}

.copyright-tooltip .developer-name {
    color: #0ff;
    font-weight: bold;
    text-shadow: 0 0 5px #0ff;
}

.copyright-tooltip .license-text {
    color: #ffc107;
    font-style: italic;
    margin-top: 0.5rem;
    font-size: 0.8rem;
}

.copyright-tooltip .warning-text {
    color: #ff4444;
    font-weight: bold;
    margin-top: 0.5rem;
    font-size: 0.85rem;
}/*
 Room code container and copy button */
#room-code-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0.5rem 0;
}

#room-code-container p {
    margin: 0;
    flex: 1;
}

.copy-btn {
    background-color: rgba(0, 255, 255, 0.1);
    border: 2px solid #0ff;
    color: #0ff;
    padding: 0.5rem;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
    width: auto;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
}

.copy-btn:hover {
    background-color: rgba(0, 255, 255, 0.2);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
    transform: scale(1.05);
}

.copy-btn.copied {
    background-color: rgba(0, 255, 0, 0.2);
    border-color: #0f0;
    color: #0f0;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
}

.copy-btn.copied svg {
    animation: checkmark 0.3s ease-in-out;
}

@keyframes checkmark {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}
/* Ma
nual room code styles */
.verify-btn {
    background-color: #ffc107;
    border: 2px solid #ffc107;
    color: #111;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: bold;
    text-transform: uppercase;
    margin: 0;
    width: auto;
    min-width: 80px;
}

.verify-btn:hover {
    background-color: transparent;
    color: #ffc107;
    box-shadow: 0 0 10px rgba(255, 193, 7, 0.5);
}

#manual-room-code-section {
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(0, 255, 0, 0.2);
}

#manual-room-code-input {
    flex: 1;
    margin-right: 0.5rem;
}

#smart-search-btn {
    background-color: #17a2b8;
    border-color: #17a2b8;
    margin-top: 0.5rem;
}

#smart-search-btn:hover {
    background-color: transparent;
    color: #17a2b8;
    box-shadow: 0 0 10px rgba(23, 162, 184, 0.5);
}

/* Checkbox styling */
input[type="checkbox"] {
    appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid #0f0;
    border-radius: 3px;
    background-color: transparent;
    cursor: pointer;
    position: relative;
    margin-right: 0.5rem !important;
}

input[type="checkbox"]:checked {
    background-color: #0f0;
}

input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: -2px;
    left: 2px;
    color: #111;
    font-weight: bold;
    font-size: 14px;
}

input[type="checkbox"]:hover {
    box-shadow: 0 0 5px rgba(0, 255, 0, 0.5);
}

/* Success message styles */
#success-overlay {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}/* Room
 code controls styling */
.room-code-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
}

#manual-room-code-input {
    flex: 2;
    min-width: 120px;
    margin: 0;
}

.smart-create-btn {
    background-color: #6f42c1;
    border: 2px solid #6f42c1;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: bold;
    text-transform: uppercase;
    margin: 0;
    white-space: nowrap;
    font-size: 0.9rem;
}

.smart-create-btn:hover {
    background-color: transparent;
    color: #6f42c1;
    box-shadow: 0 0 10px rgba(111, 66, 193, 0.5);
}

/* Smart search controls */
.smart-search-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

#smart-search-btn {
    flex: 1;
    margin: 0;
}

/* Range configuration overlay */
#range-config-overlay input[type="number"] {
    background-color: rgba(0, 0, 0, 0.7);
    border: 2px solid #0f0;
    color: #eee;
    padding: 0.5rem;
    font-size: 1rem;
    text-align: center;
    border-radius: 5px;
    margin: 0;
}

#range-config-overlay input[type="number"]:focus {
    outline: none;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
}

/* Responsive adjustments for smaller screens */
@media (max-width: 600px) {
    .room-code-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .room-code-controls > * {
        margin-bottom: 0.5rem;
    }
    
    .smart-create-btn {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
}

/* Advanced options dropdown styling */
.advanced-toggle {
    background-color: rgba(255, 193, 7, 0.1);
    border-color: #ffc107;
    color: #ffc107;
}

.advanced-toggle:hover {
    background-color: rgba(255, 193, 7, 0.2);
    box-shadow: 0 0 10px rgba(255, 193, 7, 0.3);
}

.advanced-toggle.active {
    background-color: rgba(255, 193, 7, 0.2);
}

.advanced-content {
    background-color: rgba(255, 193, 7, 0.05);
    border-color: #ffc107;
}

.advanced-content .setting-row {
    border-bottom: 1px solid rgba(255, 193, 7, 0.2);
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

.advanced-content .setting-row:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.advanced-content label {
    color: #ffc107;
}

.advanced-content input {
    border-color: #ffc107;
}

.advanced-content input:focus {
    box-shadow: 0 0 10px rgba(255, 193, 7, 0.5);
}

.advanced-content .info-btn {
    border-color: #ffc107;
    color: #ffc107;
}

.advanced-content .info-btn:hover {
    background-color: rgba(255, 193, 7, 0.2);
    box-shadow: 0 0 8px rgba(255, 193, 7, 0.5);
}/* Create
 room options styling */
.create-room-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.create-option {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem;
    border-radius: 8px;
    border: 2px solid transparent;
}

.create-option.recommended {
    background-color: rgba(0, 255, 0, 0.1);
    border-color: #0f0;
}

.create-option.alternative {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
}

.create-btn-primary {
    background-color: #0f0;
    color: #111;
    border: 2px solid #0f0;
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    cursor: pointer;
    border-radius: 5px;
    font-weight: bold;
    text-transform: uppercase;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.create-btn-primary:hover {
    background-color: transparent;
    color: #0f0;
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.5);
}

.create-btn-secondary {
    background-color: rgba(255, 255, 255, 0.1);
    color: #eee;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 5px;
    font-weight: bold;
    text-transform: uppercase;
    transition: all 0.3s;
    width: 100%;
}

.create-btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.password-section {
    margin-top: 0.5rem;
}

.password-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #ffc107;
    cursor: pointer;
    margin-bottom: 0.5rem;
}

.password-input {
    margin-top: 0.5rem;
    padding: 0.5rem;
    background-color: rgba(255, 193, 7, 0.1);
    border-radius: 5px;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.password-input input[type="password"] {
    width: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    border: 2px solid #ffc107;
    color: #eee;
    padding: 0.75rem;
    font-size: 1rem;
    border-radius: 5px;
    margin-bottom: 0.5rem;
}

.password-input input[type="password"]:focus {
    outline: none;
    box-shadow: 0 0 10px rgba(255, 193, 7, 0.5);
}

.password-warning {
    color: #ff6b6b;
    font-size: 0.85rem;
    font-style: italic;
    margin: 0;
    line-height: 1.3;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .create-room-options {
        gap: 0.75rem;
    }
    
    .create-option {
        padding: 0.75rem;
    }
    
    .create-btn-primary {
        font-size: 1rem;
        padding: 0.75rem 1rem;
    }
    
    .create-btn-secondary {
        font-size: 0.9rem;
        padding: 0.6rem 1rem;
    }
}/* Tut
orial animations */
@keyframes tutorialFadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes tutorialFadeOut {
    from { opacity: 1; transform: scale(1); }
    to { opacity: 0; transform: scale(0.9); }
}

/* Pulse animation for recommended button */
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 255, 0, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(0, 255, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 255, 0, 0); }
}

.pulse {
    animation: pulse 2s infinite;
}

/* Tutorial button styling */
.tutorial-btn {
    background-color: rgba(0, 255, 0, 0.1);
    border-color: #0f0;
    color: #0f0;
}

.tutorial-btn:hover {
    background-color: rgba(0, 255, 0, 0.2);
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
}

/* Create button with info layout */
.create-btn-with-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.create-btn-primary {
    flex: 1;
    min-width: 0; /* Allow button to shrink */
}

/* Responsive room code controls */
.room-code-controls-responsive {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}

.input-row {
    display: flex;
    flex: 1;
}

.input-row input {
    flex: 1;
    margin: 0;
}

.buttons-row {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.buttons-row button {
    flex: 1;
    min-width: 80px;
    white-space: nowrap;
    font-size: 0.85rem;
    padding: 0.5rem 0.75rem;
}

.buttons-row .info-btn {
    flex: 0 0 auto;
    min-width: 32px;
    width: 32px;
}

/* Responsive adjustments for Spanish text */
@media (max-width: 768px) {
    .buttons-row {
        flex-direction: column;
    }
    
    .buttons-row button {
        flex: none;
        width: 100%;
        margin-bottom: 0.25rem;
    }
    
    .buttons-row .info-btn {
        width: 40px;
        align-self: center;
    }
    
    .create-btn-with-info {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }
    
    .create-btn-primary {
        font-size: 0.95rem;
        padding: 0.75rem 1rem;
    }
}

@media (max-width: 480px) {
    .buttons-row button {
        font-size: 0.8rem;
        padding: 0.4rem 0.6rem;
    }
    
    .create-btn-primary {
        font-size: 0.9rem;
        padding: 0.6rem 0.8rem;
    }
}/* 
Tutorial section styling */
.tutorial-section {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 255, 0, 0.2);
}

.tutorial-btn-full {
    background-color: rgba(0, 255, 0, 0.1);
    border: 2px solid #0f0;
    color: #0f0;
    padding: 0.75rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: bold;
    text-transform: uppercase;
}

.tutorial-btn-full:hover {
    background-color: rgba(0, 255, 0, 0.2);
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
}

/* Cleanup button styling */
.cleanup-btn {
    width: 100%;
    padding: 0.8rem 1rem;
    margin-top: 0.5rem;
    background-color: rgba(255, 165, 0, 0.1);
    border: 2px solid #ffa500;
    border-radius: 8px;
    color: #ffa500;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.cleanup-btn:hover {
    background-color: rgba(255, 165, 0, 0.2);
    box-shadow: 0 0 10px rgba(255, 165, 0, 0.5);
    transform: translateY(-2px);
}

/* Server Toggle Section */
.server-toggle-section {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.server-toggle-btn {
    flex: 1;
    padding: 0.8rem 1rem;
    background-color: rgba(0, 150, 255, 0.1);
    border: 2px solid #0096ff;
    border-radius: 8px;
    color: #0096ff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.server-toggle-btn:hover {
    background-color: rgba(0, 150, 255, 0.2);
    box-shadow: 0 0 10px rgba(0, 150, 255, 0.5);
    transform: translateY(-2px);
}

.server-toggle-btn.lumaline {
    background-color: rgba(255, 0, 150, 0.1);
    border-color: #ff0096;
    color: #ff0096;
}

.server-toggle-btn.lumaline:hover {
    background-color: rgba(255, 0, 150, 0.2);
    box-shadow: 0 0 10px rgba(255, 0, 150, 0.5);
}

.server-toggle-btn.custom {
    background-color: rgba(255, 255, 0, 0.1);
    border-color: #ffff00;
    color: #ffff00;
}

.server-toggle-btn.custom:hover {
    background-color: rgba(255, 255, 0, 0.2);
    box-shadow: 0 0 10px rgba(255, 255, 0, 0.5);
}

.server-info-btn {
    width: 32px;
    height: 32px;
    padding: 0;
    background-color: rgba(100, 100, 100, 0.1);
    border: 2px solid #666;
    border-radius: 50%;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.server-info-btn:hover {
    background-color: rgba(0, 255, 0, 0.1);
    border-color: #0f0;
    color: #0f0;
    box-shadow: 0 0 8px rgba(0, 255, 0, 0.3);
}

.server-info-text {
    margin-top: 0.5rem;
    padding: 0.8rem;
    background-color: rgba(0, 0, 0, 0.8);
    border: 1px solid #666;
    border-radius: 8px;
    color: #ccc;
    font-size: 0.9rem;
    line-height: 1.4;
    animation: fadeIn 0.3s ease;
}

.server-info-text p {
    margin: 0;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Custom Server Button */
.custom-server-btn {
    width: 100%;
    padding: 0.5rem 0.8rem;
    margin-top: 0.5rem;
    background-color: rgba(128, 0, 128, 0.1);
    border: 1px solid #800080;
    border-radius: 6px;
    color: #800080;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

.custom-server-btn:hover {
    background-color: rgba(128, 0, 128, 0.2);
    box-shadow: 0 0 8px rgba(128, 0, 128, 0.4);
}

/* Custom Server Modal */
.custom-server-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.custom-server-modal-content {
    background-color: rgba(0, 0, 0, 0.95);
    border: 2px solid #800080;
    border-radius: 12px;
    padding: 0;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    color: #eee;
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    color: #800080;
    margin: 0;
    font-size: 1.2rem;
}

.modal-close {
    background: none;
    border: none;
    color: #666;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background-color: rgba(255, 0, 0, 0.2);
    color: #ff4444;
}

.modal-body {
    padding: 1.5rem;
}

.modal-body p {
    margin-bottom: 1.5rem;
    color: #ccc;
    line-height: 1.4;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #0f0;
    font-weight: 500;
}

.form-group input[type="text"],
.form-group input[type="number"] {
    width: 100%;
    padding: 0.8rem;
    background-color: rgba(0, 0, 0, 0.7);
    border: 2px solid #555;
    border-radius: 5px;
    color: #eee;
    font-size: 1rem;
}

.form-group input[type="text"]:focus,
.form-group input[type="number"]:focus {
    border-color: #800080;
    outline: none;
}

.form-group input[type="checkbox"] {
    transform: scale(1.2);
    margin-left: 0.5rem;
}

.server-help {
    margin-top: 1.5rem;
    padding: 1rem;
    background-color: rgba(0, 255, 0, 0.05);
    border: 1px solid rgba(0, 255, 0, 0.2);
    border-radius: 8px;
}

.server-help h4 {
    color: #0f0;
    margin: 0 0 0.8rem 0;
    font-size: 1rem;
}

.server-help ol {
    margin: 0;
    padding-left: 1.2rem;
    color: #ccc;
}

.server-help li {
    margin-bottom: 0.4rem;
    line-height: 1.3;
}

.modal-footer {
    padding: 1.5rem;
    border-top: 1px solid #333;
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

/* Map size select styling */
#map-size-select {
    background-color: rgba(0, 0, 0, 0.7);
    border: 2px solid #ffc107;
    color: #eee;
    padding: 0.75rem;
    font-size: 1rem;
    border-radius: 5px;
    width: 100%;
    cursor: pointer;
}

#map-size-select:focus {
    outline: none;
    box-shadow: 0 0 10px rgba(255, 193, 7, 0.5);
}

#map-size-select option {
    background-color: #111;
    color: #eee;
    padding: 0.5rem;
}

/* Password Modal */
.password-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.password-modal-content {
    background-color: rgba(0, 0, 0, 0.9);
    border: 2px solid #0f0;
    border-radius: 10px;
    padding: 2rem;
    max-width: 400px;
    width: 90%;
    text-align: center;
    color: #eee;
}

.password-modal-content h3 {
    color: #0f0;
    margin-bottom: 1rem;
}

.password-modal-content p {
    margin-bottom: 1.5rem;
    color: #ccc;
}

.password-modal-content input {
    width: 100%;
    padding: 0.8rem;
    margin-bottom: 1.5rem;
    background-color: rgba(0, 0, 0, 0.7);
    border: 2px solid #555;
    border-radius: 5px;
    color: #eee;
    font-size: 1rem;
}

.password-modal-content input:focus {
    border-color: #0f0;
    outline: none;
}

.password-modal-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn-secondary, .btn-primary {
    padding: 0.8rem 1.5rem;
    border: 2px solid;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.btn-secondary {
    background-color: transparent;
    border-color: #666;
    color: #666;
}

.btn-secondary:hover {
    border-color: #999;
    color: #999;
}

.btn-primary {
    background-color: rgba(0, 255, 0, 0.1);
    border-color: #0f0;
    color: #0f0;
}

.btn-primary:hover {
    background-color: rgba(0, 255, 0, 0.2);
}

/* Mobile Controls */
.mobile-controls {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: none;
    z-index: 1500;
    pointer-events: none;
}

/* Left button */
#mobile-left {
    position: absolute;
    left: 30px;
    bottom: 100px;
    width: 80px;
    height: 80px;
    border: 2px solid rgba(0, 255, 0, 0.6);
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    color: rgba(0, 255, 0, 0.8);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.3);
}

/* Radar button (center) */
#mobile-radar {
    position: absolute;
    left: 50%;
    bottom: 30px;
    transform: translateX(-50%);
    width: 80px;
    height: 80px;
    border: 2px solid rgba(0, 255, 0, 0.6);
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    color: rgba(0, 255, 0, 0.8);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.3);
}

/* Right button */
#mobile-right {
    position: absolute;
    right: 30px;
    bottom: 100px;
    width: 80px;
    height: 80px;
    border: 2px solid rgba(0, 255, 0, 0.6);
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    color: rgba(0, 255, 0, 0.8);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.3);
}

.mobile-control-btn:hover, 
.mobile-control-btn:active,
#mobile-left:hover, #mobile-left:active,
#mobile-radar:hover, #mobile-radar:active,
#mobile-right:hover, #mobile-right:active {
    background-color: rgba(0, 255, 0, 0.2);
    border-color: rgba(0, 255, 0, 0.9);
    color: rgba(0, 255, 0, 1);
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(0, 255, 0, 0.6);
}

#mobile-radar:hover, #mobile-radar:active {
    transform: translateX(-50%) scale(1.1);
}

.mobile-radar-btn.active,
#mobile-radar.active {
    background-color: rgba(0, 255, 0, 0.3);
    border-color: rgba(0, 255, 0, 1);
    color: rgba(0, 255, 0, 1);
    box-shadow: 0 0 40px rgba(0, 255, 0, 0.8);
    animation: radarPulse 2s infinite;
}

#mobile-radar.active {
    transform: translateX(-50%);
}

@keyframes radarPulse {
    0%, 100% { 
        box-shadow: 0 0 40px rgba(0, 255, 0, 0.8);
    }
    50% { 
        box-shadow: 0 0 60px rgba(0, 255, 0, 1);
        transform: translateX(-50%) scale(1.05);
    }
}

/* Show mobile controls only on mobile devices */
@media (max-width: 768px) {
    .mobile-controls {
        display: block;
    }
}

@media (min-width: 769px) {
    .mobile-controls {
        display: none !important;
    }
}

/* Smaller mobile controls for very small screens */
@media (max-width: 480px) {
    #mobile-left, #mobile-right, #mobile-radar {
        width: 70px;
        height: 70px;
        border-width: 1.5px;
    }
    
    #mobile-left {
        left: 20px;
        bottom: 80px;
    }
    
    #mobile-right {
        right: 20px;
        bottom: 80px;
    }
    
    #mobile-radar {
        bottom: 20px;
    }
    
    #mobile-left svg, #mobile-right svg, #mobile-radar svg {
        width: 20px;
        height: 20px;
    }
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .tutorial-btn-full {
        font-size: 0.9rem;
        padding: 0.6rem 0.8rem;
    }
}/* Rad
ar section in controls */
.radar-section {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 255, 0, 0.2);
    text-align: center;
}

.radar-section h4 {
    color: #0f0;
    margin-bottom: 1rem;
    font-size: 1rem;
    text-shadow: 0 0 5px #0f0;
}

#radar-container {
    margin: 0 auto;
}

/* Responsive radar */
@media (max-width: 600px) {
    .radar-section {
        margin-top: 1rem;
        padding-top: 0.75rem;
    }
    
    #radar-container {
        width: 100px !important;
        height: 100px !important;
    }
}/*
 Chat section styling */
.chat-section {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 255, 0, 0.2);
}

.chat-section h4 {
    color: #0f0;
    margin-bottom: 1rem;
    font-size: 1rem;
    text-shadow: 0 0 5px #0f0;
}

#chat-messages {
    height: 120px;
    overflow-y: auto;
    background-color: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 255, 0, 0.3);
    border-radius: 5px;
    padding: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
}

.chat-message {
    margin-bottom: 0.25rem;
    word-wrap: break-word;
}

.chat-message.own-message {
    color: #0ff;
}

.chat-player {
    color: #0f0;
    font-weight: bold;
}

.chat-text {
    color: #eee;
    margin-left: 0.25rem;
}

#chat-input-container {
    display: flex;
    gap: 0.5rem;
}

#chat-input {
    flex: 1;
    background-color: rgba(0, 0, 0, 0.7);
    border: 2px solid #0f0;
    color: #eee;
    padding: 0.5rem;
    font-size: 0.85rem;
    border-radius: 5px;
    margin: 0;
}

#chat-input:focus {
    outline: none;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
}

#chat-send-btn {
    background-color: #0f0;
    color: #111;
    border: 2px solid #0f0;
    padding: 0.5rem;
    border-radius: 5px;
    cursor: pointer;
    margin: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

#chat-send-btn:hover {
    background-color: transparent;
    color: #0f0;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
}

/* Room settings display */
#room-settings-display {
    margin-top: 1rem;
    padding: 1rem;
    background-color: rgba(0, 255, 0, 0.05);
    border: 1px solid rgba(0, 255, 0, 0.2);
    border-radius: 5px;
}

#room-settings-display h4 {
    color: #0f0;
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    text-shadow: 0 0 5px #0f0;
}

#room-settings-list p {
    margin: 0.25rem 0;
    color: #ccc;
    font-size: 0.85rem;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .chat-section, .radar-section {
        margin-top: 1rem;
        padding-top: 0.75rem;
    }
    
    #chat-messages {
        height: 100px;
        font-size: 0.8rem;
    }
    
    #chat-input, #chat-send-btn {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
    
    #room-settings-list p {
        font-size: 0.8rem;
    }
}/* C
hat System Styles */
#chat-section {
    margin-top: 1rem;
    border: 1px solid rgba(0, 255, 0, 0.3);
    border-radius: 5px;
    background-color: rgba(0, 255, 0, 0.05);
    padding: 1rem;
}

#chat-messages {
    height: 200px;
    overflow-y: auto;
    border: 1px solid rgba(0, 255, 0, 0.2);
    border-radius: 3px;
    padding: 0.5rem;
    margin-bottom: 0.5rem;
    background-color: rgba(0, 0, 0, 0.3);
}

/* Custom scrollbar for chat - neon theme */
#chat-messages::-webkit-scrollbar {
    width: 8px;
}

#chat-messages::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
}

#chat-messages::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #0f0, #0ff);
    border-radius: 4px;
    box-shadow: 0 0 5px rgba(0, 255, 0, 0.5);
}

#chat-messages::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #0ff, #0f0);
    box-shadow: 0 0 8px rgba(0, 255, 255, 0.7);
}

/* Firefox scrollbar */
#chat-messages {
    scrollbar-width: thin;
    scrollbar-color: #0f0 rgba(0, 0, 0, 0.3);
}

.chat-message {
    margin-bottom: 0.3rem;
    padding: 0.2rem 0;
    border-bottom: 1px solid rgba(0, 255, 0, 0.1);
}

.chat-message:last-child {
    border-bottom: none;
}

.chat-player {
    color: #0ff;
    font-weight: bold;
    text-shadow: 0 0 3px #0ff;
}

.chat-text {
    color: #eee;
    margin-left: 0.5rem;
}

.own-message .chat-player {
    color: #0f0;
    text-shadow: 0 0 3px #0f0;
}

.own-message .chat-text {
    color: #ccc;
}

#chat-input {
    width: 100%;
    padding: 0.5rem;
    background-color: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(0, 255, 0, 0.3);
    border-radius: 3px;
    color: #eee;
    font-family: inherit;
    margin-bottom: 0.5rem;
}

#chat-input:focus {
    outline: none;
    border-color: #0f0;
    box-shadow: 0 0 5px rgba(0, 255, 0, 0.3);
}

#chat-send-btn {
    background-color: rgba(0, 255, 0, 0.1);
    border: 1px solid #0f0;
    color: #0f0;
    padding: 0.5rem 1rem;
    border-radius: 3px;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.3s ease;
}

#chat-send-btn:hover {
    background-color: rgba(0, 255, 0, 0.2);
    box-shadow: 0 0 5px rgba(0, 255, 0, 0.5);
}/* Game 
Info Panel Scrollbar - Neon Theme */
.side-panel::-webkit-scrollbar {
    width: 10px;
}

.side-panel::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 5px;
    border: 1px solid rgba(0, 255, 0, 0.2);
}

.side-panel::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #0f0, #0ff);
    border-radius: 5px;
    box-shadow: 0 0 8px rgba(0, 255, 0, 0.6);
    border: 1px solid rgba(0, 255, 0, 0.3);
}

.side-panel::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #0ff, #0f0);
    box-shadow: 0 0 12px rgba(0, 255, 255, 0.8);
}

/* Firefox scrollbar for side panels */
.side-panel {
    scrollbar-width: thin;
    scrollbar-color: #0f0 rgba(0, 0, 0, 0.3);
}/* 
Smooth Curves Checkbox Styling */
#smooth-curves-toggle {
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #0f0;
    border-radius: 3px;
    background-color: rgba(0, 0, 0, 0.3);
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

#smooth-curves-toggle:checked {
    background-color: rgba(0, 255, 0, 0.2);
    box-shadow: 0 0 8px rgba(0, 255, 0, 0.5);
}

#smooth-curves-toggle:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #0f0;
    font-size: 14px;
    font-weight: bold;
    text-shadow: 0 0 3px #0f0;
}

#smooth-curves-toggle:hover {
    border-color: #0ff;
    box-shadow: 0 0 5px rgba(0, 255, 255, 0.3);
}/* A
udio Controls Styling */
#audio-controls {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    justify-content: center;
}

.audio-btn {
    background-color: rgba(0, 255, 0, 0.1);
    border: 2px solid #0f0;
    color: #0f0;
    padding: 8px 16px;
    border-radius: 5px;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    transition: all 0.3s ease;
    min-width: 60px;
}

.audio-btn:hover {
    background-color: rgba(0, 255, 0, 0.2);
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
    transform: translateY(-2px);
}

.audio-btn.active {
    background-color: rgba(0, 255, 0, 0.3);
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.7);
}

/* Clear input button */
.clear-input-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    padding: 4px;
    border-radius: 3px;
    transition: all 0.2s ease;
    display: none;
    align-items: center;
    justify-content: center;
    width: auto;
    height: auto;
    margin-left: 6px;
    margin-right: 6px;
}

.clear-input-btn:hover {
    color: rgba(255, 100, 100, 0.9);
    background-color: rgba(255, 100, 100, 0.1);
}

.clear-input-btn svg {
    width: 12px;
    height: 12px;
}

/* Download App Button */
.download-section {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(0, 255, 0, 0.2);
}

.download-app-btn {
    background-color: rgba(0, 150, 255, 0.1);
    border: 1.5px solid rgba(0, 150, 255, 0.6);
    color: rgba(0, 150, 255, 0.9);
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-family: inherit;
    font-size: 12px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.download-app-btn:hover {
    background-color: rgba(0, 150, 255, 0.2);
    border-color: rgba(0, 150, 255, 0.8);
    color: rgba(0, 150, 255, 1);
    box-shadow: 0 0 8px rgba(0, 150, 255, 0.4);
    transform: translateY(-1px);
}

.download-app-btn svg {
    width: 14px;
    height: 14px;
}

/* Volume Panels */
.volume-panel {
    background-color: rgba(0, 0, 0, 0.9);
    border: 2px solid #0f0;
    border-radius: 10px;
    padding: 20px;
    margin-top: 15px;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.3);
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

.volume-panel h4 {
    color: #0f0;
    text-align: center;
    margin-bottom: 15px;
    font-size: 18px;
    text-shadow: 0 0 5px #0f0;
}

.volume-slider-container {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    gap: 10px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.volume-slider-container label {
    color: #0ff;
    min-width: 80px;
    font-size: 14px;
}

.volume-slider {
    flex: 1;
    height: 6px;
    background: linear-gradient(90deg, #333, #666);
    border-radius: 3px;
    outline: none;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    max-width: calc(100% - 140px); /* Reserva espacio para label y valor */
    min-width: 100px;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    background: linear-gradient(45deg, #0f0, #0ff);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 8px rgba(0, 255, 0, 0.6);
    transition: all 0.2s ease;
}

.volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 12px rgba(0, 255, 0, 0.8);
}

.volume-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: linear-gradient(45deg, #0f0, #0ff);
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: 0 0 8px rgba(0, 255, 0, 0.6);
}

.volume-value {
    color: #0f0;
    font-weight: bold;
    min-width: 40px;
    text-align: right;
    font-size: 12px;
    text-shadow: 0 0 3px #0f0;
}

/* Volume slider track styling */
.volume-slider::-webkit-slider-track {
    background: linear-gradient(90deg, #333, #666);
    height: 6px;
    border-radius: 3px;
}

.volume-slider::-moz-range-track {
    background: linear-gradient(90deg, #333, #666);
    height: 6px;
    border-radius: 3px;
    border: none;
}