body {
    font-family: sans-serif;
    text-align: center;
    background-color: #006400;
    color: white;
    padding-bottom: 120px; /* Adjusted padding to prevent overlap with 100px menu */
}

.tab-content {
    margin: 0 auto;
    width: 80%;
}

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

#coin-container {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

#coin-container img {
    width: 30px;
    height: 30px;
    margin-right: 10px;
}

.hand {
    margin: 20px 0;
}

.cards img {
    width: 100px;
    height: 145px;
    margin: 0 5px;
}

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

/* Removed old #betting-controls styling */

.hidden {
    display: none;
}

#message {
    font-size: 0.9em;
    font-weight: bold;
    margin-top: 10px;
}

#tab-menu {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px; /* Changed height to 100px */
    background-color: #f8f8f8;
    display: flex;
    border-top: 1px solid #e7e7e7;
}

.tab-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-grow: 1;
    color: black;
    padding: 5px;
    box-sizing: border-box;
    cursor: pointer;
}

.tab-item.active-tab {
    background-color: #e7e7e7;
}

#tab-coins {
    flex-grow: 2;
    font-size: 18px;
    flex-direction: column; /* Changed to column */
    justify-content: center;
    align-items: center;
}

#tab-coins img {
    margin-right: 10px;
}

#date-display {
    font-size: 16px;
    margin-bottom: 5px;
}

#tab-betting-controls {
    flex-grow: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around; /* Distribute space between top, center, bottom */
    font-size: 14px;
    padding: 0 5px;
}

#betting-top,
#betting-center,
#betting-bottom {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

#betting-top button,
#betting-center button,
#tab-betting-controls input {
    padding: 3px 8px;
    font-size: 11px;
    margin: 1px;
}

#betting-center label {
    margin-right: 5px;
    white-space: nowrap;
}

#betting-center input {
    width: 50px;
    padding: 2px;
    font-size: 12px;
    margin-right: 5px;
}

.tab-item img {
    height: 40px;
    width: 40px;
}

#building-board {
    color: black;
}

#land-count {
    font-weight: bold;
}

#building-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    padding: 20px;
}

.building-item {
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 10px;
    background-color: white;
    text-align: center;
}

.building-item img {
    width: 100%;
    height: 80px;
    object-fit: contain;
}

.building-item .item-controls {
    display: flex;
    justify-content: space-around;
    margin-top: 10px;
}

.building-item button {
    padding: 5px 10px;
    font-size: 12px;
    cursor: pointer;
}

.building-item .sell-button {
    background-color: #dc3545;
    color: white;
    border: none;
}

#info-board {
    color: black;
    padding: 20px;
}

#info-board button {
    display: block;
    width: 100%;
    padding: 15px;
    margin: 10px 0;
    font-size: 18px;
    cursor: pointer;
}

.modal {
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    color: black;
    text-align: center;
}

.close-button {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close-button:hover,
.close-button:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}
