@import "wc23.css";

#full-table {
    display: grid;
    grid-template-columns: 12% 12% 12% 12% 4% 12% 12% 12% 12%;
    width: 90%;
    margin-left: calc(5% - 24px);
    column-gap: 6px;
    height: calc(92vh - 150px);
}

.r16-capsule {
    display: grid;
    grid-template-rows: 8% 5% 8% 5% 8% 5% 8% 6% 8% 5% 8% 5% 8% 5% 8%;
    height: calc(92vh - 150px);
}

.r16-reversed > .r16-img {
    justify-self: right;
}

.r8-capsule {
    display: grid;
    grid-template-rows: 21% 5% 21% 6% 21% 5% 21%;
    grid-template-columns: 1fr;
    height: calc(92vh - 150px);
}

.r4-capsule {
    display: grid;
    grid-template-rows: 47% 6% 47%;
    height: calc(92vh - 150px);
}

.FINAL-capsule {
    display: grid;
    grid-template-rows: 1fr;
    height: calc(92vh - 150px);
}

.r16 {
    display: grid;
    grid-template-columns: 33% 45% 22%;
    padding: 2px;
    border: 2px solid var(--turf-blue);
    align-items: center;
    text-align: center;
}

.r16-reversed {
    grid-template-columns: 22% 45% 33%;
}

.r16-img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    width: 80%;
    height: 80%;
    max-width: 100%;
    max-height: 100%;
    overflow: hidden;
}

.r16-name {
    font-size: min(1.1vw, 2.2vh);
}

.r16-score {
    font-size: min(1.1vw, 2.2vh);
}

.r8 {
    display: grid;
    grid-template-rows: 5% 35% 25% 35%;
    padding: 2px;
    border: 2px solid var(--turf-blue);
    align-items: center;
    justify-items: center;
    text-align: center;
    width: 92%;
}

.r8-backwards {
    grid-template-rows: 35% 25% 35% 5%;
}

.r8-img {
    display: block;
    width: 80%;
    height: 80%;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
}

.r8-name {
    font-size: min(1.2vw, 2.4vh);
}

.r8-score {
    font-size: min(2vw, 4vh);
}

.r4 {
    display: grid;
    grid-template-rows: 40% 25% 35%;
    padding: 2px;
    border: 2px solid var(--turf-blue);
    align-items: center;
    justify-items: center;
    text-align: center;
}

.r4-backwards {
    grid-template-rows: 35% 25% 40%;
}

.r4-img {
    width: 80%;
    height: 80%;
}

.r4-name {
    font-size: min(1.5vw, 3vh);
}

.r4-name-activated {
    font-size: min(2.2vw, 4.4vh);
}

.r4-score {
    font-size: min(3vw, 6vh);
}

.finalist {
    display: grid;
    grid-template-rows: 25% 30% 35%;
    padding: 2px;
    border: 2px solid var(--turf-blue);
    align-items: center;
    justify-items: center;
    text-align: center;
}

.finalist-img {
    width: 80%;
    height: 60%;
    max-width: 100%;
    max-height: 100%;
}

.finalist-name {
    font-size: min(2.5vw, 5vh);
}

.finalist-score {
    font-size: min(4.5vw, 9vh);
}

.r8-incomplete {
    grid-template-rows: 0% 0% 100% 0%;
}

.r8-bincomplete {
    grid-template-rows: 0% 100% 0% 0%;
}

.r4-incomplete {
    grid-template-rows: 0% 100% 0%;
}

.r4-incomplete > span {
    font-size: 1.2vw;
    text-align: center;
    justify-content: center;
}

.finalist-incomplete {
    grid-template-rows: 0% 100% 0%;
}

.finalist-incomplete > span {
    font-size: 1.2vw;
}

#FINAL {
    text-align: center;
    justify-content: center;
    height: calc(92vh - 150px);
    display: grid;
}

#FINAL > span {
    text-align: center;
    justify-content: center;
    font-size: 1.2vw; 
    overflow: hidden;
}

#FINAL > span > span {
    overflow: hidden;
}

.lost {
    border: 1px dashed gray;
    opacity: 0.6;
}

.white {
    color: white;
}

.win-yellow {
    background-color: var(--dark-yellow);
}

.win-green {
    background-color: var(--dark-green);
}

.win-black {
    background-color: var(--dark-black);
}

.win-red {
    background-color: var(--dark-red);
}

.win-blue {
    background-color: var(--dark-blue);
}

.win-orange {
    background-color: var(--dark-orange);
}