body
{
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}

h1
{
    text-align: center;
    margin: 10px 0;
}

#container
{
    display: flex; 
    flex-direction: column; 
    min-height: 100vh;
    max-width: 500px;
    margin: 0 auto;
}

#game 
{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

#board 
{
    margin-bottom: 10px;
    max-width: 100%;
    overflow-x: auto;
}

#board-table
{
    border-collapse: collapse;
}

#tray 
{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    max-width: 500px;
}

@media (max-width: 768px)
{
    #tray
    {
        width: 100%;
    }
}

#tray-buttons
{
    display: flex;
    gap: 10px;
    justify-content: center;
}

#tray-buttons input
{
    padding: 8px 16px;
    font-size: 14px;
    cursor: pointer;
}

#message
{
    height: 25px;
    width: 90%;
    max-width: 500px;
    background-color: steelblue;
    color: white;
    margin-top: 10px;
    text-align: center;
    line-height: 25px;
}

#two-letter-words
{
    font-family: monospace;
}

.board-cell
{
    font-family: monospace;
    width: 45px;
    height: 45px;
    padding: 0;
    margin: 0;
    border: 1px solid black;
    text-align: center;
    vertical-align: middle;
    font-size: 16px;
}

@media (max-width: 480px)
{
    .board-cell
    {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
}

.board-cell-empty
{
    background-color: white;
}

.board-cell-tentative
{
    background-color: lightcoral;
}

.board-cell-filled
{
    background-color: lightblue;
}

.tray-cell
{
    display: table-cell;
    font-family: monospace;
    padding: 0;
    user-select: none;
    cursor: grab;
    touch-action: none;
    font-size: 16px;
    width: 40px;
    height: 40px;
    text-align: center;
    vertical-align: middle;
    border: 1px solid black;
}

@media (max-width: 480px)
{
    .tray-cell
    {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }
}

.tray-cell-unplaced
{
    background-color: lightcoral;
}

.tray-cell-placed
{
    background-color: grey;
}

.dragging
{
    opacity: 0.5;
    background-color: lightgreen !important;
    cursor: grabbing;
}

.drag-ghost
{
    font-family: monospace;
    font-size: 24px;
    font-weight: bold;
    padding: 5px 10px;
    background-color: lightblue;
    border: 2px solid darkblue;
    border-radius: 4px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transform: translate(-50%, -50%);
}

.glowing
{
  box-shadow:
    0 0 6px 3px yellow,
    0 0 10px 1px magenta,
    0 0 14px 9px orangered; 
}