body {
    font-family: Arial, sans-serif;
    text-align: center;
    background-color: #f0f0f0;
}

#game-container {
    display: none;
}

#players {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    margin: 20px;
}

#playerA{
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 10px;
    margin-left: 600px;
}
#playerB {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 10px;
    margin-right: 600px;
}

.player-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 10px;
    font-size: 1.2em;
    font-weight: bold;
}

.score {
    font-size: 1.5em;
    color: #333;
    margin-top: 5px;
}

#board {
    display: grid;
    grid-template-columns: repeat(15, 40px);
    grid-gap: 2px;
    margin: 20px auto;
    width: max-content;
}

.cell {
    width: 40px;
    height: 40px;
    background-color: #F5DEB3;
    line-height: 40px;
    vertical-align: middle;
    text-align: center;
    font-weight: bold;
    position: relative;
    border: 1px solid #ccc;
    font-size: 18px;
    cursor: pointer;
}

.cell.double-word {
    background-color: #FF9999;
}

.cell.triple-word {
    background-color: #FF6666;
}

.cell.double-letter {
    background-color: #99CCFF;
}

.cell.triple-letter {
    background-color: #3399FF;
}

.cell.center {
    background-color: #FF9999;
}

#log {
    margin: 20px;
    max-width: 600px;
    text-align: left;
    margin: 10px auto;
    border-top: 1px solid #ccc;
    padding-top: 10px;
    height: 20px;
    overflow-y: hidden;/*was auto*/
    background-color: #fff;
    color: #fff;
}

#controls {
    margin: 20px;
}

button {
    padding: 10px 20px;
    margin: 0 10px;
    font-size: 16px;
}

.hidden {
    display: none;
}

.modal {
    display: block;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.7);
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 300px;
    border-radius: 5px;
}

.modal-content h2 {
    margin-bottom: 20px;
}

.modal-content button {
    width: 50%;
    margin-bottom: 10px;
    font-size: 12px;
    border-radius: 5px;
    color: #fff;
    background-color: blue;
}
.modal-content button:hover {
    background-color: rgb(95, 139, 241);
}

.gameOverModal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.7);
}

.gameOverModal-content {
    background-color: #139732;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 300px;
}

.gameOverModal-content h2 {
    margin-bottom: 20px;
}

#exchangeButton {
    background-color: #f0ad4e;
    color: #000000;
    border-color: #eea236;
    border-radius: 5px;
}
#exchangeButton:hover {
    background-color: #a37433;
    color: #000000;
    border-color: #eea236;
    border-radius: 5px;
}
#exchangeButton.active {
    background-color: #edbb73;
    color: #fff;
    border-color: #eea236;
    border-radius: 5px;
}

#submitMoveButton {
    background-color: #f0ad4e;
    color: #000000;
    border-color: #eea236;
    border-radius: 5px;
}
#submitMoveButton:hover {
    background-color: #a37433;
    color: #000000;
    border-color: #eea236;
    border-radius: 5px;
}

.rack {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.tile {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: #F5DEB3; /* Beige color */
    margin: 2px;
    line-height: 40px;
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    border: 1px solid #ccc;
    border-radius: 5px; /* Rounded edges */
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1); /* Subtle shadow */
    cursor: pointer;
}

.tile.exchanged {
    background-color: #ffa500; /* Orange color */
    /*border: 2px solid #ff4500; */
}

#shuffleButton {
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    border: none;
    cursor: pointer;
  }