body {
    font-family: Arial, sans-serif;
    background-color: #242424;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100dvh;
    margin: 0;
    overflow: hidden;
}

.container {
    position: fixed;
    inset: 6px;
    background: rgb(245, 245, 245);
    border: 1px solid #cdcdcd;
    border-radius: 10px;
    padding: 10px;
    display: flex;
    flex-direction: column;
}

.header {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: left;
    align-items: left;
    font-weight: bold;
    background-color: #e6e6e6;
    padding: 6px;
    border-radius: 8px;
    border: 1px solid #cdcdcd;
}

.title {
    margin: 0;
    font-size: 1.5rem;
    color: #333;
}

#usernameDisplay {
    max-width: fit-content;
    font-size: 14px;
    color: #666;
}

.clickable {
    cursor: pointer;
}

.users-info {
    position: absolute;
    right: 1rem;
    display: flex;
    flex-direction: column;
    /* Stack elements vertically */
    align-items: flex-end;
    /* Align items to the right */
}

#tankSelector {
    margin-top: 5px;
    font-size: 14px;
    width: 100px;
    padding: 2px;
}

.user-list {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background: white;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}

#userCount:hover+.user-list,
.user-list:hover {
    display: block;
}

.user-list div {
    padding: 3px 0;
    white-space: nowrap;
}

.canvas-container {
    position: relative;
    max-width: 800px;
    max-height: 800px;
    margin: 0 auto;
    margin-top: 20px;
    overflow: hidden;
    border: 1px solid #ccc;
    background-color: white;
}

#gameCanvas {
    width: 100%;
    height: 100%;
}