body {
    background-image: url("https://wallpaperaccess.com/full/279547.jpg");
    /* background-color: #f6c1dd; */
    background-size: cover;
    background-position: center;
    margin-right: 200px;
    display: grid;
    grid-template-rows: 200px 1fr 200px;
    grid-template-columns: 200px 1fr 200px;
    justify-content: center;
    justify-items: center;
    margin-top: 0%;
}

a {
    text-decoration: none;
}

h2 {
    display: grid;
    grid-row: 1;
    grid-column: 2;
    margin: auto;
    font-size: 63px;
    margin-top: 3px;
}

button {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 10px;
    width: 100px;
    height: 48px;
    appearance: none;
    background-color: #FCFCFD;
    border-radius: 4px;
    border-width: 0;
    box-shadow: rgba(45, 35, 66, 0.4) 0 2px 4px, rgba(45, 35, 66, 0.3) 0 7px 13px -3px, #D6D6E7 0 -3px 0 inset;
    box-sizing: border-box;
    color: #36395A;
    font-family: "JetBrains Mono", monospace;
    line-height: 1;
    list-style: none;
    overflow: hidden;
    padding-left: 16px;
    padding-right: 16px;
    position: relative;
    text-align: left;
    text-decoration: none;
    transition: box-shadow .15s, transform .15s;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
    white-space: nowrap;
    will-change: box-shadow, transform;
    font-size: 18px;
}

button:focus {
    box-shadow: #D6D6E7 0 0 0 1.5px inset, rgba(45, 35, 66, 0.4) 0 2px 4px, rgba(45, 35, 66, 0.3) 0 7px 13px -3px, #D6D6E7 0 -3px 0 inset;
}

button:hover {
    box-shadow: rgba(45, 35, 66, 0.4) 0 4px 8px, rgba(45, 35, 66, 0.3) 0 7px 13px -3px, #D6D6E7 0 -3px 0 inset;
    transform: translateY(-2px);
}

button:active {
    box-shadow: #D6D6E7 0 3px 7px inset;
    transform: translateY(2px);
}

.header {
    display: grid;
    grid-template-rows: 100px 50px 50px;
    grid-template-columns: 1fr;
    color: white;
    grid-row: 1;
    grid-column: 2;
    font-size: 30px;
    text-shadow: 5px 5px 10px black,
        5px 5px 20px black;
}

.play-field {
    display: grid;
    justify-content: center;
    align-items: center;
    grid-row: 2;
    grid-column: 2;
    width: 70%;
    position: relative;
    box-shadow: 5px 5px 5px 5px black;
}

.board {
    margin: 10px;
    display: grid;
    position: relative;
    justify-content: center;
    grid-area: main;
    grid-row: 2;
    grid-column: 2;
    grid-template-rows: 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr;
    width: 585px;
    height: 585px;
    border: 7px solid rgb(153, 44, 4);
    box-shadow: 5px 5px 15px 10px rgb(0, 0, 0);
    max-width: 700px;
}

.tile {
    position: relative;
    display: grid;
    padding: auto;
    place-items: center;

}

.tile.dark {
    /* background-color: rgb(194, 138, 64); */
    background-image: url("https://media.istockphoto.com/photos/natural-wood-texture-picture-id183805873?k=20&m=183805873&s=612x612&w=0&h=xhh5k_dv4-Sxk8aAGYKH2ZFdROFiVQd5zdMAY-FGGRs=");
    background-size: 100px;
    overflow: hidden;
    background-position: center;
}

.tile.light {
    background-image: url("https://textures.world/wp-content/uploads/2018/10/Natural-Seamless-Light-Wood-Texture-2-copy.jpg");
    /* background-color: antiquewhite; */
    background-size: 100px;
    overflow: hidden;
    background-position: center;
}

.startGame {
    display: flex;
    grid-row: 3;
    grid-column: 2;
    justify-content: center;
    width: 100%;
    margin-top: 20px;
}

#player10,
#player11,
#player12,
#player13,
#player14,
#player15,
#player16,
#player17,
#player18,
#player19,
#player110,
#player111 {
    position: absolute;
    display: grid;
    /* background-color: rgb(239, 239, 55); */
    background-color: rgb(252, 245, 95);
    background-size: cover;
    box-shadow: 1px 2px 1px 1px;
    width: 75%;
    height: 75%;
    border-radius: 50%;
    cursor: pointer;
}

#player20,
#player21,
#player22,
#player23,
#player24,
#player25,
#player26,
#player27,
#player28,
#player29,
#player210,
#player211 {
    position: absolute;
    display: grid;
    background-color: rgb(102, 206, 247);
    background-size: cover;
    box-shadow: 2px 2px 2px 1px;
    width: 75%;
    height: 75%;
    border-radius: 50%;
    cursor: pointer;

}

.player-turn {
    display: grid;
    grid-row: 2;
    grid-column: 1;
    width: 80px;
    height: 80px;
}

.blue-turn {
    background-color: rgb(82, 181, 223);
    width: 100px;
    height: 200px;
    margin-top: 40px;
    margin-bottom: 120%;
    border-radius: 20%;
}

.yellow-turn {
    background-color: rgb(252, 245, 95);
    width: 100px;
    height: 200px;
    margin-top: 20px;
    border-radius: 20%;
}

#player1text,
#p1checkers {
    display: inline;
    grid-row: 2;
    grid-column: 2;
    margin: auto;
}

#player2text,
#p2checkers {
    display: inline;
    grid-row: 3;
    grid-column: 2;
    margin: auto;
}

#p2checkers,
#p1checkers {
    font-size: 35px;
    color: rgb(231, 164, 70);
    font-weight: bold;
}

.winner {
    font-size: 100px;
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    color: red;
    position: absolute;
    width: 500px;
    height: 300px;
    top: 350px;
    display: flex;
    justify-content: center;
    font-weight: bold;
    text-shadow: 5px 5px 5px black;
}


.king {
    border: 7px solid rgb(211, 95, 32);
    border-radius: 50%;
}


#modal {
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    background-color: rgba(0, 0, 0, 0.4);
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    z-index: 1;
    overflow: auto;
    display: none;
}

#modal-textbox {
    background-color: rgb(238, 232, 232);
    height: 50%;
    width: 50%;
    max-width: 30rem;
    border-radius: 4px;
    margin: 18rem auto;
    margin-right: 39%;
    box-shadow: 0 2px 2px rgba(0, 0, 0, 0.2);
    padding: 10px;
    z-index: 2;
    position: relative;
    pointer-events: none;
}

/* background image opacity source: https://coder-coder.com/background-image-opacity/ */

#modal-textbox::before {
    content: "";
    background-image: url("https://is4-ssl.mzstatic.com/image/thumb/Purple60/v4/78/90/cd/7890cd24-de04-6601-63ac-a6d10a9c888a/source/512x512bb.jpg");
    background-size: contain;
    position: absolute;
    top: 0px;
    right: 0px;
    bottom: 0px;
    left: 0px;
    opacity: 0.3;
    z-index: 2;
    pointer-events: none;
}

#close {
    width: 100%;
    height: 100%;
}

.footer {

    position: fixed;
    bottom: 0;
    width: 120%;
    height: 40px;
    line-height: 40px;
    text-align: center;
    background: #f1f1f1;
}

.footer-details {
    display: inline-block;
    vertical-align: middle;
    line-height: normal;
    font-size: 20px;
}



@media only screen and (max-width: 1200px) {

    /*Tablets [601px -> 1200px]*/
    body {
        /* background-color: lightblue; */
        background-image: url("https://wallpaperaccess.com/full/279547.jpg");
        margin-right: 10px;
        margin-left: 20px;
        display: grid;
        grid-template-rows: 200px 1fr 200px;
        grid-template-columns: 100px 500px 50px;
    }

    /* Rules */
    #modal {
        font-size: medium;
    }

    #modal-textbox {
        height: 70%;
        width: 90%;
        margin: 15rem auto;
        justify-content: center;
    }

    /* Header */
    h2 {
        display: grid;
        grid-row: 1;
        grid-column: 2;
        margin: auto;
        font-size: 47px;
    }

    .header {
        font-size: 25px;
        grid-template-rows: 90px 40px 40px;
    }

    #p2checkers,
    #p1checkers {
        font-size: 35px;
        color: rgb(231, 164, 70);
        font-weight: bold;
    }

    /* Buttons */
    button {
        width: 70px;
        height: 35px;
    }

    /* checkers board */

    .board {
        margin: 10px;
        display: grid;
        position: relative;
        justify-content: center;
        grid-area: main;
        grid-row: 2;
        grid-column: 2;
        grid-template-rows: 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr;
        grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr;
        width: 400px;
        height: 400px;
        border: 7px solid rgb(153, 44, 4);
        box-shadow: 5px 5px 15px 10px rgb(0, 0, 0);
        max-width: 500px;
    }

    .play-field {
        display: grid;
        justify-content: center;
        align-items: center;
        grid-row: 2;
        grid-column: 2;
        width: 100%;
        position: relative;
        box-shadow: 5px 5px 5px 5px black;
    }

    .blue-turn {
        background-color: rgb(82, 181, 223);
        width: 70px;
        height: 100px;
        margin-top: 80%;
        margin-bottom: 80%;
        border-radius: 20%;
    }

    .yellow-turn {
        background-color: rgb(252, 245, 95);
        width: 70px;
        height: 100px;
        margin-top: 10px;
        border-radius: 20%;
    }
}


@media only screen and (max-width: 600px) {

    /*Big smartphones [426px -> 600px]*/
    body {
        /* background-color: rgb(173, 230, 185); */
        background-image: url("https://wallpaperaccess.com/full/279547.jpg");
        margin-right: 10px;
        margin-left: 20px;
        display: grid;
        grid-template-rows: 200px 1fr 80px 50px;
        grid-template-columns: 100px 400px 50px;
    }

    /* Rules */
    #modal {
        font-size: small;
    }

    #modal-textbox {
        height: 60%;
        width: 90%;
        /* margin: 18rem auto;
        margin-right: 30%; */
        justify-content: center;

    }

    /* Header */
    h2 {
        display: grid;
        grid-row: 1;
        grid-column: 2;
        margin: auto;
        font-size: 40px;
    }

    .header {
        font-size: 20px;
        grid-template-rows: 80px 30px 30px;
    }

    #p2checkers,
    #p1checkers {
        font-size: 30px;
        color: rgb(231, 164, 70);
        font-weight: bold;
    }


    /* Buttons */
    button {
        width: 50px;
        height: 25px;
        font-size: 14px;
    }

    /* checkers board */
    .board {
        margin: 10px;
        display: grid;
        position: relative;
        justify-content: center;
        grid-area: main;
        grid-row: 2;
        grid-column: 2;
        grid-template-rows: 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr;
        grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr;
        width: 350px;
        height: 350px;
        border: 7px solid rgb(153, 44, 4);
        box-shadow: 5px 5px 15px 10px rgb(0, 0, 0);
        max-width: 500px;
    }

    .play-field {
        display: grid;
        justify-content: center;
        align-items: center;
        grid-row: 2;
        grid-column: 2;
        width: 90%;
        position: relative;
        box-shadow: 5px 5px 5px 5px black;
    }

    .player-turn {
        display: flex;
        grid-row: 4;
        grid-column: 2;
        justify-content: center;
        width: 100%;
        margin: 2px 30px;
        width: 80%;
        height: 65%;
    }

    .blue-turn {
        background-color: rgb(82, 181, 223);
        width: 50%;
        height: 140%;
        margin: 10% 5%;
        /* margin-top: 40px;
        margin-bottom: 120%; */
        border-radius: 20%;
    }

    .yellow-turn {
        background-color: rgb(252, 245, 95);
        width: 50%;
        height: 140%;
        margin: 10% 5%;
        /* width: 70px;
        height: 100px; */
        /* margin-top: 20px; */
        border-radius: 20%;
    }
}

@media only screen and (max-width: 425px) {

    /*Small smartphones [325px -> 425px]*/
    body {
        /* background-color: rgb(123, 120, 212); */
        background-image: url("https://wallpaperaccess.com/full/279547.jpg");
        margin-right: 3%;
        margin-left: 3%;
        display: grid;
        grid-template-rows: 120px 1fr 60px 30px;
        grid-template-columns: 40px 300px 50px;
    }

    /* Rules */
    #modal {
        font-size: smaller;
    }

    #modal-textbox {
        height: 70%;
        width: 90%;
        /* margin: 18rem auto;
        margin-right: 30%; */
        justify-content: center;
    }

    /* Header */
    h2 {
        display: grid;
        grid-row: 1;
        grid-column: 2;
        margin: auto;
        font-size: 20px;
    }

    .header {
        font-size: 15px;
        grid-template-rows: 40px 15px 40px;
    }

    #p2checkers,
    #p1checkers {
        font-size: 20px;
        color: rgb(231, 164, 70);
        font-weight: bold;
    }


    /* Buttons */
    button {
        width: 50px;
        height: 25px;
        font-size: 14px;
    }

    /* checkers board */
    .board {
        margin: 10px;
        display: grid;
        position: relative;
        justify-content: center;
        grid-area: main;
        grid-row: 2;
        grid-column: 2;
        grid-template-rows: 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr;
        grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr;
        width: 320px;
        height: 350px;
        border: 7px solid rgb(153, 44, 4);
        box-shadow: 5px 5px 15px 10px rgb(0, 0, 0);
        max-width: 500px;
    }

    .play-field {
        display: grid;
        justify-content: center;
        align-items: center;
        grid-row: 2;
        grid-column: 2;
        width: 100%;
        position: relative;
        box-shadow: 5px 5px 5px 5px black;
    }

    .player-turn {
        display: flex;
        grid-row: 4;
        grid-column: 2;
        justify-content: center;
        width: 100%;
        margin: 2px 30px;
        width: 80%;
        height: 65%;
    }

    .blue-turn {
        background-color: rgb(82, 181, 223);
        width: 50%;
        height: 170%;
        margin: 7% 5%;
        /* margin-top: 40px;
        margin-bottom: 120%; */
        border-radius: 20%;
    }

    .yellow-turn {
        background-color: rgb(252, 245, 95);
        width: 50%;
        height: 170%;
        margin: 7% 5%;
        /* width: 70px;
        height: 100px; */
        /* margin-top: 20px; */
        border-radius: 20%;
    }
}