/* General body styling */
body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Header styling */
header {
    background-color: #333;
    color: white;
    padding: 20px;
    width: 100%;
    text-align: center;
}

/* Game area styling */
#game-area {
    display: none; /* Hide the game area until the game starts */
    margin-top: 20px;
    text-align: center;
}

/* Game control buttons (e.g., end turn) */
#end-turn-btn {
    display: none; /* Show only when it's player's turn */
    padding: 10px 20px;
    background-color: #4CAF50;
    color: white;
    border: none;
    cursor: pointer;
    margin-top: 20px;
}

#end-turn-btn:hover {
    background-color: #45a049;
}

/* Display for current player */
#current-player {
    font-size: 1.5em;
    font-weight: bold;
    margin-top: 20px;
}

/* Styling for discard pile */
#discard-card {
    margin-top: 20px;
    font-size: 1.2em;
    font-weight: bold;
    color: #333;
}

/* Container for hand (cards the current player holds) */
#hand {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

/* Individual card styling */
.card {
    cursor: pointer;
    display: inline-block;
    text-align: center;
}

/* Card image styling */
.card img {
    width: 100px; /* Set width to 100px */
    height: auto; /* Maintain aspect ratio */
    margin: 5px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

/* UI for the main game selection screen */
h1 {
    margin: 0;
    padding: 20px;
    font-size: 2em;
    text-align: center;
}

/* Game buttons section (e.g., Switch, Queenie, Bingo) */
.game-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.game-buttons button {
    padding: 15px;
    font-size: 1.2em;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.game-buttons button:hover {
    background-color: #0056b3;
}

/* Authentication section (Sign In/Out buttons) */
#auth-section {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

#auth-section button {
    padding: 10px 20px;
    font-size: 1em;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 5px;
    margin: 0 10px;
    cursor: pointer;
}

#auth-section button:hover {
    background-color: #218838;
}

/* Styling for the player turn display */
#current-player-display {
    margin-top: 20px;
    font-size: 1.3em;
    font-weight: bold;
    color: #333;
}

/* Styling for the loading spinner (if needed for later use) */
#loading-spinner {
    display: none;
    margin-top: 50px;
}

/* Footer or game information section (optional) */
footer {
    margin-top: 20px;
    text-align: center;
    font-size: 0.9em;
    color: #666;
}
