@import url('../styles.css');

input {
    flex: 1;
    max-width: 70%;
    :hover, :focus{
        background-color: var(--hover-color);
    }
}
table {
    width: 100%;
    table-layout: fixed;
    overflow-wrap: break-word;
}
td:nth-child(1) {
    width: 13%;
}

td:nth-child(2) {
    width: 5%;
}
.nameSection {
    display: flex;
    gap: 1rem;
    margin-bottom: 10px;
    :hover, :focus{
        background-color: var(--hover-color);
    }
}

button {
    border-radius: 10%;
    background-color: darkslateblue;
}

main {
    container-type: size;
    display: grid;
    grid-template-columns: 100cqh 1fr;
}
@media (max-aspect-ratio: 1.2) {
    main {
        display: flow;
    }
}
.board {
    display: grid;
    grid-template-columns: repeat(8, 12vmin);
    grid-template-rows: repeat(8, 12vmin);
    :hover, :focus {
        background-color: var(--hover-color);
    }
    button {
        border-radius: 20%;
        justify-content: center;
        align-items: center;
        img {
            border-radius: 10%;
            max-width: 100%;
            max-height: 100%;
        }
    }
}
.closed {
    background-color: gray;
}

#leaderboardID {
  tr,
  td {
    background-color: darkcyan;
    border: 1px solid darkblue;
  }
}

#leaderboardID,
#player-name,
#player-score {
  text-align: center;
}
