:root {
    --min-box-width: 400px;
}

* {
    font-family: Verdana, serif;
    color: #3BBA9C;
}

body {
    background-color: #43455C;
    display: flex;
    justify-content: center;
    gap: 20px;
    padding-left: calc(100vw - 100%);
}

#flex-item {
    width: 400px;
}

button {
    border: none;
    border-radius: 10px;
    background-color: #3C3F58;
    padding: 8px;
    box-shadow: 1px 4px #000000AA;
}

button:hover {
    cursor: pointer;
    background-color: #707793;
}

button:active {
    box-shadow: none;
    transform: translateY(2px) translateX(2px);
}

button:disabled,
button:hover:disabled,
button:active:disabled {
    box-shadow: none;
    transform: translateY(2px) translateX(2px);
    background-color: #4b4f62;
    color: #989494;
}

#lobby-container,
#player-container {
    border-radius: 10px;
    background-color: #2E3047;
    display: flex;
    flex-direction: column;
    min-height: 100px;
    max-height: 300px;
    overflow-y: auto;
}

#player-container .chat-bubble:last-child {
    margin-bottom: 10px;
}

#lobby-container > button {
    margin: 8px;
}

input {
    height: 28px;
    border: none;
    border-radius: 10px;
    background-color: #2E3047;
    padding-left: 10px;
}

#chat-container {
    border-radius: 10px;
    background-color: #2E3047;
    display: flex;
    flex-direction: column;
    height: 300px;
    overflow-y: auto;
}

.chat-bubble {
    padding: 5px 0 5px 0;
    word-break: break-word;
    border-radius: 10px;
    background-color: #3C3F58;
    margin-top: 8px;
    margin-left: 8px;
    margin-right: 8px;
}

.chat-bubble > p {
    padding-left: 5px;
    margin: 0;
}

#chat-container .chat-bubble:last-child {
    margin-bottom: 10px;
}

#chat-message-input {
    width: 79%;
}

#send-message {
    width: 16%;
}

.lobby-item {
    display: flex;
}

#play-field {
    table-layout: fixed;
    border-collapse: collapse;
    border: 1px solid black;
    margin-left: auto;
    margin-right: auto;
}

td {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    border: 1px solid black;
    width: 60px;
    height: 60px;
    text-align: center;
    background-color: #2E3047;
    overflow: hidden;
}

table {

}

.field-style {
    font-size: 44px;
}


.popup {
    display: none;
    position: fixed;
    top: 2%;
    left: 0;
    width: 100%;
    z-index: 9999;
    overflow: auto;
}

.popup-content {
    background-color: rgba(0, 0, 0, 0.7);
    margin: 5% auto;
    padding: 10px;
    border: 1px solid #888;
    border-radius: 20px;
    width: 80%;
    max-width: 400px;
    text-align: center;
}

.close {
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: #707793;
    text-decoration: none;
    cursor: pointer;
}