html, body {
    margin: 0;
    width: 100%;
    overflow-x: hidden;
}

#game-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: sans-serif;
    width: 100%;
    box-sizing: border-box;
    padding: 0 10px;
}

.back-to-hub {
    align-self: flex-start;
    font-size: 0.8rem;
    color: #666;
    text-decoration: none;
    margin: 6px 0 0 4px;
}
.back-to-hub:hover {
    color: #1e88e5;
    text-decoration: underline;
}

/* Hide once installed as a home-screen app -- there's no "back" to a
   browsing session to offer, and it'd break out of the app shell. */
@media (display-mode: standalone), (display-mode: fullscreen), (display-mode: minimal-ui) {
    .back-to-hub { display: none; }
}

.card, #controls button {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

#fight-dialog {
    width: 320px;
    max-width: 90vw;
    box-sizing: border-box;
}

#fight-dialog button {
    display: block;
    width: 100%;
    margin: 10px 0 0;
    padding: 10px 14px;
    box-sizing: border-box;
}

@media (max-width: 600px) {
    .card {
        width: 70px;
        height: 105px;
        margin: 3px;
    }

    #controls button {
        padding: 10px 14px;
        font-size: 15px;
    }

    #message {
        font-size: 16px;
        text-align: center;
    }

    #game-info {
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
    }
}

#room {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 20px;
}

#room.room-quad {
    display: grid;
    grid-template-columns: repeat(2, auto);
    justify-content: center;
}

.card {
    width: 100px;
    height: 150px;
    margin: 5px;
}

#player-info {
    margin-bottom: 20px;
}

#controls button {
    margin: 0 10px;
    padding: 8px 16px;
    font-size: 16px;
    cursor: pointer;
}

#message {
    margin-top: 20px;
    font-size: 18px;
    color: blue;
}

/* Add this to your style.css file */

#game-info {
    margin-top: 30px;
    padding: 15px;
    background-color: #f8f8f8;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

#game-info h2 {
    text-align: center;
    color: #333;
    margin-top: 0;
    border-bottom: 2px solid #ddd;
    padding-bottom: 10px;
}

.info-section {
    margin-bottom: 15px;
}

.info-section h3 {
    color: #444;
    margin-bottom: 8px;
}

.info-section ul {
    padding-left: 20px;
}

.info-section li {
    margin-bottom: 8px;
    line-height: 1.5;
}

.card-type {
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 4px;
}

.diamonds {
    color: white;
    background-color: #1e88e5;
}

.hearts {
    color: white;
    background-color: #e53935;
}

.spades {
    color: white;
    background-color: #212121;
}

.clubs {
    color: white;
    background-color: #424242;
}