body {
    font-family: book antiqua, sans-serif;
    background-image: linear-gradient(red, salmon, white, salmon, red, salmon, white, salmon, red, salmon, white)
}

h3 {
    text-align: center;
}

table {
    border: 3px solid black;
    background-color: rgb(175, 95, 250);
    border-collapse: collapse;
    margin: auto;
}

td {
    border: 1px solid rgb(175, 95, 250);
    background-color: azure;
    width: 32px;
    min-width: 32px;
    height: 32px;
    min-height: 32px;
    padding: 0;
}

img {
    display: flex;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    cursor: pointer;
}

li {
    text-align: left;
}

.game-board {
    width: 100%;
    overflow-x: auto;
}

.letter-2,
.letter-3,
.word-2,
.word-3 {
    background-size: contain;
}

.letter-2 {
    background-image: url(../img/letter-2.png);
}

.letter-3 {
    background-image: url(../img/letter-3.png);
}

.word-2 {
    background-image: url(../img/word-2.png);
}

.word-3 {
    background-image: url(../img/word-3.png);
}

.start-word {
    background-image: url(../img/kalUnite-dark.png);
}

.panels {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 21vh;
    border: 1px solid rgb(175, 95, 250);
    background-color: azure;
}

.players-panel {
    display: flex;
    width: 100%;
    height: 75%;
    justify-content: center;
    align-items: center;
}

.pack-panel {
    width: 7%;
    height: 75%;
    text-align: center;
}

.pack {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    z-index: 99;
}

.pack-panel .length {
    display: block;
    font-size: 15px;
    color: azure;
    background-color: black;
    padding: 7px;
    margin-top: -30px;
    border-radius: 50%;
}

.p1-panel,
.p2-panel {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    width: 86%;
    height: 100%;
    line-height: 110px;
    background-color: azure;
    border-radius: 25px;
    box-sizing: border-box;
}

.p1-panel {
    border: 3px solid blue;
}

.p2-panel {
    display: none;
    border: 3px solid red;
}

.next-check {
    background-color: black;
    display: block;
    color: azure;
    font-size: 25px;
    line-height: 77.5px;
    border-radius: 50%;
    text-align: center;
    width: 7%;
    height: 75%;
    cursor: pointer;
}

.pieces-and-lives {
    width: 75%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.pieces-place {
    width: 100%;
    height: 85%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.piece {
    width: 50px;
    height: 50px;
}

progress.lives {
    background-color: green;
    width: 100%;
    height: 15%;
}

.player {
    color: azure;
    font-size: 25px;
    line-height: 100px;
    border-radius: 50%;
    text-align: center;
    width: 100px;
    height: 100px;
}

.p1-panel .player {
    background-color: blue;
}

.p1-panel .player span {
    background-color: azure;
    border-radius: 50%;
    padding: 3px 7px;
    color: blue;
    border: 3px double blue;
}

.p2-panel .player {
    background-color: red;
}

.p2-panel .player span {
    background-color: azure;
    border-radius: 50%;
    padding: 3px 7px;
    color: red;
    border: 3px double red;
}

.score {
    font-size: 20px;
}

.game-helps {
    width: 20px;
    height: 15%;
    background-color: black;
    color: azure;
    text-align: center;
    border-radius: 50%;
    font-size: 15px;
    line-height: 20px;
    cursor: pointer;
}

.selected {
    border: 3px solid rgb(175, 95, 250);
    transform: scale(1.3);
}

.available {
    opacity: .3;
}

.confirmed {
    filter: contrast(.5);
    cursor: default;
}

.blank-filled {
    border-radius: 50%;
    box-shadow: 0 0 7px 3px rgb(175, 95, 250);
}

.available-switch {
    filter: drop-shadow(0 0 3px rgb(175, 95, 250));
    cursor: pointer;
}

.available-swap {
    display: inline-block;
    margin-left: 1px;
    margin-right: 1px;
    width: 35px;
    height: 35px;
}

.choose-mode div {
    margin: 15px;
    display: inline-block;
}

.choose-mode img {
    width: 70px;
    height: 70px;
    margin: auto;
    border-radius: 50%;
}

.loading {
    position: fixed;
    background-color: black;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    opacity: .9;
    z-index: 999;
    color: azure;
    font-size: 25px;
    text-align: center;
    display: none;
}

.loading img {
    width: 100px;
    height: 100px;
    margin: 225px auto 25px;
}

.pack:hover {
    box-shadow: 0 0 25px 25px black;
}

.next-check:hover,
.game-helps:hover {
    background-color: azure;
    color: black;
    border: 1px solid black;
    box-sizing: border-box;
}

@media screen and (max-width: 1365px) {
    td {
        width: 29px;
        min-width: 29px;
        height: 29px;
        min-height: 29px;
    }

    .game-board {
        margin-bottom: 93px;
    }

    .panels {
        height: 16%;
    }

    .next-check {
        line-height: 50px;
    }

    .game-helps {
        line-height: 15px;
        font-size: 13px;
    }
}

@media screen and (max-width: 767px) {
    .panels {
        border-radius: 50% 50% 0 0;
    }

    .pack-panel .length {
        font-size: 10px;
        margin-top: -25px;
    }

    .players-panel {
        height: 50%;
    }

    .player {
        line-height: 30px;
        width: 30px;
        height: 30px;
        font-size: 15px;
    }

    .players-panel .player span {
        padding: 1px 3px;
    }

    .piece {
        width: 30px;
        height: 30px;
    }

    .score {
        font-size: 13px;
    }

    .next-check {
        line-height: 33px;
        font-size: 10px;
        width: 7%;
        height: 75%;
    }
}

@media screen and (min-height: 640px) {
    table {
        margin: 10vmax auto;
    }
}

@media screen and (min-width: 1025px) {
    table {
        margin: 10vmax auto;
        margin-top: 0;
    }
}

@media screen and (min-height: 900px) {
    td {
        width: 3rem;
        min-width: 3rem;
        height: 3rem;
        min-height: 3rem;
    }
}