* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Droid Sans Mono;
    color: #000000;
    line-height: 1.5;
    margin: 0;
    padding: 0;
    height: 100vh;
    display: grid;
    grid-template-columns: 1fr 3fr 1fr;
    grid-template-rows: 2fr 1.2fr;
}

fieldset {
    width: 100%;
    padding: 15px;
    padding-top: 10px;
}

legend {
    padding-left: 10px;
    padding-right: 10px;
    font-weight: bold;
}

input {
    font-family: Droid Sans Mono;
}

.section {
    display: flex;
    font-size: 12px;
    color: #fff;
    background-color: #000;
}
.left { 
    grid-column: 1;
    grid-row: 1 / 3;
    border-right: 1px solid #fff;
    position: relative;
}
.top { 
    grid-column: 2;
}
.bottom { 
    grid-column: 2;
    justify-content: center;
    align-items: center;
}
.right { 
    grid-column: 3;
    grid-row: 1 / 3;
    border-left: 1px solid #fff;
    padding: 20px;
    display: grid;
    gap: 10px;
    grid-auto-rows: min-content; 
    place-items: center;
}

.text-box {
    background-color: #000;
    color: #fff;
    border-radius: 5px;
    border: 1px solid #fff;
    box-sizing: border-box;
    font-size: 12px;
    padding: 0px 4px;
}

.text-box::placeholder {
    color: #6d6d6d;
}

.btn-small {
    font-size: 12px;
    background-color: black;
    font-family: Droid Sans Mono;
    border: 1px solid white;
    border-radius: 5px;
    padding: 1px 8px;
    cursor: pointer;
    transition: all 0.1s;
    color: #fff;
}

.btn-small:hover {
    transform: scale(1.05);
}

.btn-small:active {
    filter: invert(1);
}

.btn-small:disabled {
    cursor: not-allowed;
    border: 1px dashed black;
    transform: none;
}


.btn {
    width: 100%;
    font-size: 14px;
    background-color: black;
    font-family: Droid Sans Mono;
    letter-spacing: 2px;
    border: 1px solid white;
    padding: 12px 0px;
    cursor: pointer;
    transition: all 0.1s;
    color: #fff;
}

.btn:hover {
    transform: scale(1.05);
}

.btn:active {
    filter: invert(1);
}

.btn:disabled {
    cursor: not-allowed;
    border: 1px dashed black;
    transform: none;
}

.container {
    width: 600px;
}

h1 {
    font-size: 35px;
}

table {
    height: 100%;
    aspect-ratio: 1 / 1; 
    padding: 10px;
    translate: 0px -20px;
}

td {
    text-align: center;
    vertical-align: middle;
    border-radius: 200px;
    border: 1px solid transparent;
    width: 10%;
    height: 10%;
    transition: all 0.3s;
}

td:hover {
    border: 1px solid #fff;
}

td:active {
    border: 1px solid #000;
    background-color: #fff;
}

.cell {
    font-family: Droid Sans Mono;
    border: none;
    padding: 0;
    margin: 0;
    background-color: transparent;
    color: #fff;
}

#settings {
    display: none;
}

.settings-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.settings-row label {
  flex-shrink: 0;
}

.settings-row input {
  flex: 1;
  min-width: 0;
}

.settings-row button {
  flex-shrink: 0;
}

#chat {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    box-sizing: border-box;
    padding:10px;
}

#status {
    color: red;
}

#chat-area {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    gap: 8px;
    width: 100%;
    box-sizing: border-box;
    padding:10px;
}

#chat-box {
    flex: 1;
    background-color: #000;
    color: #fff;
    border-radius: 5px;
    border: 1px solid #fff;
    padding: 8px 10px 8px;
    font-family: Droid Sans Mono;
    width: 100%;
    box-sizing: border-box;
}

#chat-box::placeholder {
    color: #6d6d6d;
}

#messages {
    width: 100%;
    padding-bottom: 60px;
    overflow-y: auto;
}

.row {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

#resignButton {
    display: none;
}

#menuButton {
    display: none;
}

#winnerDisplay {
    position: fixed;
    top: 50%;
    left: 50%;
    padding: 50px;
    transform: translate(-50%, -50%);
    background-image: url("./images/hellspit1.gif");
    background-repeat: no-repeat;
    background-size: cover;
    color: rgb(255, 255, 255); 
    mix-blend-mode: difference;
    z-index: 1000;
    height: 300px;
    width: 500px;
    transition: all 0.5s ease-in-out;
    
    display: none;
    align-items: center;
    justify-content: center;
    text-align: center;
    
    font-size: 32px;
    font-weight: bold;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}