
/*  <<< CSS RESET FILE >>>  */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
 margin: 0;
 padding: 0;
 border: 0;
 font-size: 100%;
 font: inherit;
 vertical-align: baseline;
}
HTML5 display-role reset for older browsers 
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
 display: block;
}
body {
 line-height: 1;
}
ol, ul {
 list-style: none;
}
blockquote, q {
 quotes: none;
}
blockquotebefore, blockquoteafter,
qbefore, qafter {
 content: '';
 content: none;
}
table {
 border-collapse: collapse;
 border-spacing: 0;
}

/*  <<< \CSS RESET FILE >>>  */

:root {
    --background-color: #121212;
    --black-field: #5C6A72;
    --white-field: white;
    --border-color: #2D353B;
    --jump-color: #A7C080;
}

body {
    background-color: var(--background-color);
    background-image: url('./img/knights-background.webp');
    background-position-x: 53%;
    background-position-y: 60%;
    background-size: 200%;
    background-blend-mode:color-dodge;
    overflow: hidden;
}

#board-section{
    display: flex;
    width: 100vw;
    height: 100vh;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

#chessboard{
    width: 620px;
    height: 620px;
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    border: 10px solid var(--border-color);
    position: relative;
}
.default-field{
    display: flex;
    min-width: 80px;
    min-height: 80px;
    width: 100%;
    height: 100%;
    position: relative;
    align-items: center;
    justify-content: center;
}
.black-field{
    background-color: var(--black-field);
}
.white-field{
    background-color: var(--white-field);
}
#knight-div{
    background-color: transparent;
    background-image: url(./img/knight-150x150px.svg);
    background-size: cover;
    position: absolute;
    width: 60px;
    height: 60px;
}
#knight-div:hover{
    cursor: grab;
}
#flag-div{
    background-color: transparent;
    background-image: url(./img/flag.svg);
    background-size: cover;
    position: absolute;
    width: 60px;
    height: 60px;
}
#flag-div:hover{
    cursor: grab;
}
.jump-field{
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    font-size: 26px;
    font-weight: bold;
    background-color: var(--jump-color) !important;
}

/* Portrait */
@media screen and (orientation: portrait) and (max-width: 1100px){
    #knight-div{
        width: 60px;
        height: 60px;
    }
    #flag-div{
        width: 60px;
        height: 60px;
    }
    #chessboard{
        width: 620px;
        height: 620px;
    }
    .default-field{
        min-width: 60px;
        min-height: 60px;
    }
    body {
        background-repeat: no-repeat;
        background-position: center center;
    }
}

@media screen and (orientation: portrait) and (max-width: 950px){
    #knight-div{
        width: 50px;
        height: 50px;
    }
    #flag-div{
        width: 50px;
        height: 50px;
    }
    #chessboard{
        width: 580px;
        height: 580px;
    }
    .default-field{
        min-width: 40px;
        min-height: 40px;
    }
    body {
        background-repeat: no-repeat;
        background-position: center center;
    }
}

@media screen and (orientation: portrait) and (max-width: 600px){
    #knight-div{
        width: 40px;
        height: 40px;
    }
    #flag-div{
        width: 40px;
        height: 40px;
    }
    #chessboard{
        width: 380px;
        height: 380px;
    }
    .default-field{
        min-width: 40px;
        min-height: 40px;
    }
    .jump-field{
        font-size: 16px;
    }
    body {
        background-size: cover;
        background-repeat: no-repeat;
        background-position: center center;
    }
}

@media screen and (orientation: portrait) and (max-width: 400px){
    #knight-div{
        width: 30px;
        height: 30px;
    }
    #flag-div{
        width: 30px;
        height: 30px;
    }
    #chessboard{
        width: 250px;
        height: 250px;
    }
    .default-field{
        min-width: 30px;
        min-height: 30px;
    }
    .jump-field{
        font-size: 16px;
    }
    body {
        background-size: cover;
        background-repeat: no-repeat;
        background-position: center center;
    }
}

/* Landscape */
@media screen and (orientation: landscape) and (max-height: 1100px){
    #knight-div{
        width: 60px;
        height: 60px;
    }
    #flag-div{
        width: 60px;
        height: 60px;
    }
    #chessboard{
        width: 620px;
        height: 620px;
    }
    .default-field{
        min-width: 60px;
        min-height: 60px;
    }
    body {
        background-repeat: no-repeat;
        background-position: center center;
    }
}

@media screen and (orientation: landscape) and (max-height: 950px){
    #knight-div{
        width: 50px;
        height: 50px;
    }
    #flag-div{
        width: 50px;
        height: 50px;
    }
    #chessboard{
        width: 580px;
        height: 580px;
    }
    .default-field{
        min-width: 40px;
        min-height: 40px;
    }
    body {
        background-repeat: no-repeat;
        background-position: center center;
    }
}

@media screen and (orientation: landscape) and (max-height: 600px) {
    #knight-div{
        width: 40px;
        height: 40px;
    }
    #flag-div{
        width: 40px;
        height: 40px;
    }
    #chessboard{
        width: 380px;
        height: 380px;
    }
    .default-field{
        min-width: 40px;
        min-height: 40px;
    }
    .jump-field{
        font-size: 16px;
    }
    body {
        background-size: cover;
        background-repeat: no-repeat;
        background-position: center center;
    }
}

@media screen and (orientation: landscape) and (max-height: 400px){
    #knight-div{
        width: 30px;
        height: 30px;
    }
    #flag-div{
        width: 30px;
        height: 30px;
    }
    #chessboard{
        width: 300px;
        height: 300px;
    }
    .default-field{
        min-width: 30px;
        min-height: 30px;
    }
    .jump-field{
        font-size: 16px;
    }
    body {
        background-size: cover;
        background-repeat: no-repeat;
        background-position: center center;
    }
}