* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: #121212;
    color: #fff;
    font-family: 'Arial', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.container {
    text-align: center;
    max-width: 600px;
    margin: 0 auto; /* Center alignment safeguard */
    width: 100%; /* Ensure it doesn't shrink below its children */
}

h1 {
    margin-bottom: 20px;
    font-size: 2rem;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 5px;
    /* border: 1px solid #333; */
}

th {
    font-weight: bold;
    /* background-color: #1e1e1e; */
}

td {
    position: relative;
}

/* Align text in the leftmost column (player names) to the right */
td:first-child {
    text-align: right;
    padding-right: 10px; /* Optional: Add spacing for better readability */
}


.card {
    display: block;
    width: 100%;
    height: 100%;
    background-color: #2c2c2c;
    color: #fff;
    border-radius: 8px;
    padding: 10px;
    transition: transform 0.3s, background-color 0.3s;
    cursor: pointer;
    font-size: 1.2rem;
}

.card.available {
    background-color: #28a745;
}

.card.unavailable {
    background-color: #dc3545;
}

.card:hover {
    transform: scale(1.05);
}

.card:active {
    transform: scale(0.95);
}

@media (max-width: 600px) {
    th[data-full] {
        position: relative;
    }

    th[data-full]::before {
        content: attr(data-short); /* Show the short name */
        position: absolute;
        top: 50%; /* Center vertically */
        left: 50%; /* Center horizontally */
        transform: translate(-50%, -50%);
        font-size: 1rem; /* Set the appropriate font size for short names */
        white-space: nowrap; /* Prevent wrapping */
    }

    th[data-full] span.full {
        visibility: hidden; /* Hide full name */
        position: absolute; /* Prevent it from taking space */
    }
}