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

#game-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

#coordinates {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 10px;
    border-radius: 5px;
    font-family: monospace;
    font-size: 16px;
    pointer-events: none;
    z-index: 100;
}

#instructions {
    position: absolute;
    top: 60px;
    left: 10px;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 10px;
    border-radius: 5px;
    pointer-events: auto;
}

#instructions h2 {
    margin-top: 0;
    font-size: 18px;
}

#instructions p {
    margin-bottom: 0;
}

#tree-positions-container {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 10px;
    border-radius: 5px;
    z-index: 100;
    max-width: 400px;
}

#tree-positions-container h3 {
    margin-top: 0;
    font-size: 16px;
}

#tree-positions-container p {
    margin: 5px 0;
    font-size: 14px;
}

#tree-positions-display {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

#tree-positions-text {
    width: 100%;
    height: 60px;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 3px;
    padding: 5px;
    font-family: monospace;
    font-size: 12px;
    resize: none;
}

#tree-positions-display button {
    padding: 5px 10px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 14px;
}

#tree-positions-display button:hover {
    background-color: #45a049;
}

/* Chatbox styles */
#chatbox-container {
    position: absolute;
    bottom: 10px;
    left: 10px;
    display: flex;
    gap: 5px;
    z-index: 100;
    width: 300px;
}

#chat-input {
    flex-grow: 1;
    padding: 8px;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-family: Arial, sans-serif;
    resize: none;
    height: 40px;
}

#chat-button {
    padding: 8px 15px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
}

#chat-button:hover {
    background-color: #45a049;
}

/* Message bubble style */
.message-bubble {
    position: absolute;
    background-color: white;
    color: black;
    padding: 8px 12px;
    border-radius: 10px;
    font-family: Arial, sans-serif;
    font-size: 14px;
    max-width: 200px;
    text-align: center;
    transform: translate(-50%, -100%);
    pointer-events: none;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.message-bubble:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    margin-left: -10px;
    border-width: 10px 10px 0;
    border-style: solid;
    border-color: white transparent transparent transparent;
}

/* Other player message style */
.other-player-message {
    background-color: #e1ffc7; /* Light green background */
    color: #000;
}

.other-player-message:after {
    border-color: #e1ffc7 transparent transparent transparent;
}

/* Player status indicator */
.player-indicator {
    position: absolute;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 4px 8px;
    border-radius: 5px;
    font-family: Arial, sans-serif;
    font-size: 12px;
    text-align: center;
    transform: translate(-50%, -100%);
    pointer-events: none;
    z-index: 900;
}

/* Multiplayer info panel */
#multiplayer-info {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 10px;
    border-radius: 5px;
    font-family: monospace;
    font-size: 14px;
    z-index: 100;
    max-width: 250px;
}

#multiplayer-info h3 {
    margin-top: 0;
    margin-bottom: 5px;
    font-size: 16px;
}

#player-count {
    margin: 0;
    font-size: 14px;
}

#connection-status {
    margin: 5px 0;
    font-size: 14px;
}

#current-weapon {
    margin: 5px 0;
    font-size: 14px;
    color: #3498db;
    font-weight: bold;
}

.connected {
    color: #4CAF50;
}

.disconnected {
    color: #f44336;
}

.connecting {
    color: #ff9800;
}

/* Health restored effect */
.heal-feedback {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #2ecc71;
    font-size: 48px;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(46, 204, 113, 0.7);
    pointer-events: none;
    opacity: 0;
    z-index: 1000;
    transition: opacity 0.3s ease-in;
}

.heal-feedback.fade-up {
    animation: fade-up 1.5s ease-out forwards;
}

@keyframes fade-up {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%);
    }
    20% {
        opacity: 1;
        transform: translate(-50%, -60%);
    }
    80% {
        opacity: 1;
        transform: translate(-50%, -100%);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -120%);
    }
}

.health-restored {
    animation: health-pulse 1s ease-in-out;
}

@keyframes health-pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
        filter: brightness(1.5);
    }
    100% {
        transform: scale(1);
    }
} 