html,
body {
    margin: 0;
    padding: 0;
    height: 100vh;
    width: 100vw;
}

.container-fluid {
    height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 0;
}

.game-container {
    height: 100vh;
    display: flex;
    flex-direction: column;
}

#game-board {
    flex: 1;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

#game-level {
    flex: 1;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

#overlay {
    display: none;
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 1;
    transition: opacity 0.5s ease-out;
}

#overlay.fade-out {
    animation: fadeOut 0.5s forwards;
}

.chat-messages {
    overflow-y: auto;
    max-height: 30vh;
    font-size: 0.9rem;
    line-height: 1.2;
}

#chat,
#player-list {
    position: fixed;
    bottom: 70px;
    max-width: 400px;
    width: 100%;
    z-index: 999;
    border-radius: 0.25rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#chat {
    right: 20px;
}

#player-list {
    left: 20px;
}

.chat-toggle-btn,
.player-list-toggle-btn {
    position: fixed;
    bottom: 20px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    border: none;
}

.chat-toggle-btn {
    right: 20px;
}

.player-list-toggle-btn {
    left: 20px;
}

.chat-toggle-btn.active,
.player-list-toggle-btn.active {
    background: #007bff;
    color: white;
}

.status-connected {
    background-color: #0066ff;
    border-color: #b6d4fe;
    color: #000;
}

.status-disconnected {
    background-color: #ff0015;
    border-color: #f5c2c7;
    color: #999;
}

.status-ready {
    background-color: #6fad7d;
    border-color: #badbcc;
    color: #000;
}

.status-playing {
    background-color: #00ff0d;
    border-color: #b6effb;
    color: #000;
}

.status-unknown {
    background-color: #e2e3e5;
    border-color: #d3d6d8;
    color: #666;
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}
