body {
    display: flex;
    flex-direction: column;
    height: 100vh;
}
.main-content {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1vw;
    gap: 1vw;
    overflow: hidden;
}

.main-content > div {
    gap: 10px;
    padding: 5px;
    background-color: var(--color-bg-secondary);
    border-radius: 10px;
    height: 100%;
    overflow: auto;
}

@media screen and (orientation: portrait) {
    .main-content {
        flex-direction: column;
        overflow: auto;
        min-height: fit-content;
    }
    .main-content > div {
        width: 100%;
        min-height: fit-content;
        overflow: unset;
    }
}

.loadingImg {
    width: 10vh;
    height: 10vh;
}

.statDisplay {
    flex: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.statField {
    padding: 5px;
    background-color: var(--color-bg-secondary);
    border: 3px solid var(--color-bg-highlight);
    border-radius: 10px;
    line-height: 2vw;
    font-size: 1.2vw;
}

.statDetailText {
    font-size: 0.9vw;
}

.totalDistribution {
    flex: 2;
    height: 100%;
    position: relative;
}
.dartBoardContainer {
    position: relative;
    width: 90%;
    height: 90%;
    top: 10%;
    left: 5%;
}

.heatMapInfo {
    z-index: 2;
    background-color: var(--color-bg-secondary);
    border: 2px solid var(--color-bg-highlight);
    border-radius: 10px;
    padding: 10px;
    position: absolute;
    display: none;
    transform: translateY(-100%);
    text-align: center;
}
.totalArrows {
    font-size: 1.2vw;
    position: absolute;
    z-index: 1;
    left: 50%;
    transform: translateX(-50%);
    padding: 10px;
    background-color: var(--color-bg-primary);
    border: 3px solid var(--color-bg-highlight);
    border-radius: 10px;
    overflow: hidden;
    text-wrap: nowrap;
}
.missField {
    position: absolute;
    z-index: 1;
    height: 20%;
    max-height: 15vw;
    aspect-ratio: 1;
    background-color: var(--color-bg-primary);
    border: 3px solid var(--color-bg-highlight);
    border-radius: 10px;
    overflow: hidden;
    top: 10px;
    right: 10px;
}
.missField > img {
    width: 100%;
    height: 100%;
}

.totalAverage {
    position: absolute;
    z-index: 1;
    height: fit-content;
    width: fit-content;
    display: flex;
    flex-direction: column;
    padding: 0.5vw 5px;
    text-align: center;
    font-size: 1.2vw;
    background-color: var(--color-bg-primary);
    border: 3px solid var(--color-bg-highlight);
    top: 10px;
    left: 10px;
    border-radius: 10px;
}

.playerList {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: fit-content;
    align-items: center;
}

.playerListSearch {
    width: 95%;
    padding: 15px;
    justify-self: flex-end;
    background-color: var(--color-bg-highlight);
    border: none;
    color: var(--color-text-primary);
    font-weight: bold;
    border-radius: 10px;
}
.playerListSearch:focus {
    outline: 2px solid var(--color-board-green);
}
.newPlayerButton {
    cursor: pointer;
    width: 95%;
    padding: 15px;
    justify-self: flex-end;
    border: none;
    color: var(--color-text-primary);
    font-weight: bold;
    border-radius: 0.7rem;
    outline: 2px solid var(--color-bg-highlight);
    background-color: var(--color-bg-secondary);
}
.newPlayerButton:hover {
    background-color: var(--color-bg-highlight);
}

.playerListList {
    flex: 1;
    width: 95%;
    background-color: var(--color-bg-highlight);
    display: flex;
    flex-direction: column;
    padding: 10px;
    gap: 10px;
    border-radius: 10px;
    overflow-x: hidden;
    overflow-y: scroll;
}
.playerListList > span {
    font-size: 30px;
    color: var(--color-text-primary);
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 2px;
    align-items: center;
}
.playerListList > span > button {
    flex: 1;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    background-color: var(--color-bg-secondary);
    padding: 5px;
    border-radius: 10px;
    border: 4px solid var(--color-bg-secondary);
    color: var(--color-text-primary);
}
.playerListList > span > button:hover {
    background-color: var(--color-bg-highlight);
}

.playerListList > span > img {
    background-color: var(--color-bg-secondary);
    border: 4px solid var(--color-bg-secondary);
    padding: 5px;
    border-radius: 10px;
    width: 50px;
    height: 50px;
    cursor: pointer;
}
.playerListList > span > img:not(.disabled):hover {
    background-color: var(--color-bg-highlight);
}
.playerListList > span > img.disabled {
    cursor: auto;
    opacity: 0.5;
}
