main {
    display: flex;
    flex-direction: row;
    padding: 2rem;
    gap: 1rem;
}

#realtime-updates {
    border-radius: 10px;
    flex: 1;
    padding: 1rem;
}

#board-section {
    flex: 3;
    border-radius: 10px;
    padding: 1rem;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    /* height: 70vh; */
}

input {
    border-radius: 5px;
    padding-left: 5px;
}

table {
    height: 90%;
    aspect-ratio: 1 / 1;
    table-layout: fixed;
    border-radius: 20px;
}

tr {
    display: flex;
    flex-direction: row;
    height: 20%;
    width: 100%;
}

td {
    flex: 1;
    aspect-ratio: 1 / 1;
    border: 1px solid black;
    width: 20%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: column;
    width: 100%;
    height: 100%;
    padding: 5px;
}


td p {
    font-size: 100%;
    flex: 1;
    user-select: none;
}

td img {
    aspect-ratio: 1 / 1;
    width: 50%;
    object-fit: contain;
    display: block;
    margin: 0;
    flex: 3;
    user-select: none;
}

@media (max-width: 1350px) {
    main {
        flex-direction: column-reverse;
    }
}

@media (max-width: 610px) {
    #board-section {
        padding: 0.2rem;
    }
    main {
        padding: .5rem;
    }
}

@media (max-width: 510px) {
    td p {
        font-size: .5rem;
    }
    td img {
        width: 30%;
    }
    table {
        width: 90%;
        height: auto;
    }
}