@import url('https://fonts.googleapis.com/css2?family=Andika+New+Basic&display=swap');
body {
    font-family: 'PT Sans', sans-serif;
    font-family: 'Andika New Basic', sans-serif;
    color: white;
    background-image: linear-gradient( rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.5));
    background-repeat: no-repeat;
    overflow-x: hidden;
    /* background-size: 1600px 750px; */
    background-size: cover;
    background-position: center;
    margin-bottom: 10%;
    background-attachment: fixed;
}

#board-color-options {
    display: flex;
    margin-bottom: 10px;
}

.board-color-1, .board-color-2, .board-color-3 {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    position: relative;
    margin: auto;
    margin-left: 20px;
    margin-right: 20px;
}

.board-color-1:hover, .board-color-2:hover, .board-color-3:hover {
    cursor: pointer;
}

.board-color-1::before {
    content: '';
    width: 35px;
    height: 35px;
    position: absolute;
    z-index: -1;
    border-radius: 50%;
    top: -10px;
    left: -10px;
}

.board-color-1:hover::before, .board-color-2:hover::before, .board-color-3:hover::before {
    transform: scale(1.2);
}

.board-color-2::before {
    content: '';
    width: 35px;
    height: 35px;
    position: absolute;
    z-index: -1;
    border-radius: 50%;
    top: -10px;
    left: -10px;
}

.board-color-3::before {
    content: '';
    width: 35px;
    height: 35px;
    position: absolute;
    z-index: -1;
    border-radius: 50%;
    top: -10px;
    left: -10px;
}

.board-color-1 {
    background-color: #eee;
}

.board-color-1::before {
    background-color: #254117;
}

.board-color-2 {
    background-color: #FFEBCD;
}

.board-color-2::before {
    background-color: #6F4E37;
}

.board-color-3 {
    background-color: #eee;
}

.board-color-3::before {
    background-color: #3D3C3A;
}

.navbar li a {
    color: #fafafa;
    margin-right: 10px;
}

.navbar li a:hover {
    color: white !important;
    transform: scale(1.2);
}

input[type="submit"] {
    background-color: grey;
    margin-left: 5px;
    padding: 5px;
    color: white;
}

input[type="submit"]:active {
    background-color: rgb(59, 76, 87);
}

@media (max-width:500px) and (min-width:288px) {
    .navbar {
        width: 130%;
    }
}

@media (max-width:387px) and (min-width:350px) {
    .navbar {
        width: 150%;
    }
}

@media (max-width:350px) and (min-width:300px) {
    .navbar {
        width: 170%;
    }
}

@media (max-width:299px) and (min-width:250px) {
    .navbar {
        width: 190%;
    }
}

@media (max-width:249px) and (min-width:200px) {
    .navbar {
        width: 240%;
    }
}

@media (max-width:900px) {
    body {
        background-size: cover !important;
        /* overflow-x: hidden; */
    }
}

#simple-modal {
    display: none;
    position: fixed;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    z-index: 1;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
}

.modal-content {
    background-color: #f4f4f4;
    margin: 50% auto;
    color: black;
    width: 80%;
    display: flex;
    flex-direction: column;
    height: 220px;
    box-shadow: 2px 2px 2px #333;
}

.modal-text {
    padding: 20px;
}

.closeBtn-div {
    width: 100%;
    height: 25%;
    background-color: salmon;
    display: flex;
    justify-content: flex-end;
}

.closeBtn {
    color: #333;
    transform: scale(1.2);
    margin: auto 10px;
}

.closeBtn:hover {
    color: #eee;
    cursor: pointer;
}

.modal-footer {
    margin: 0 auto;
}

.understand-button {
    margin-bottom: 10px;
    padding: 5px;
    color: white;
    background-color: steelblue;
    border: none;
    cursor: pointer;
    box-shadow: 1px 1px 1px #333;
}

h1 {
    font-size: 2.2rem;
}

#top-links {
    display: flex;
    width: 10%;
    justify-content: space-evenly;
}

.link-seperator {
    width: 2px;
    height: 30px;
    background-color: #eee;
}

.top-link {
    text-decoration: none;
    font-size: 1.2rem;
    color: #eee;
}

.thinking-time-text {
    display: inline;
}

.top-div {
    width: 100%;
    margin: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    margin-bottom: 70px;
}

.top-div h1 {
    font-family: 'Andika New Basic', sans-serif;
    margin-top: 30px;
    margin-bottom: 2%;
}

#fenInDiv {
    position: absolute;
    /* width: 100%; */
    top: 80%;
    left: 310px;
}

.wrapper-button {
    background: none;
    border: none;
    margin: 0;
    padding: 0;
    cursor: pointer;
}

.question-mark {
    cursor: pointer;
    color: #eee;
}

#fenIn {
    width: 700px;
    height: 30px;
    border-radius: 2px;
    border: 1px solid #333;
    margin-right: 8px;
}

#SetFen {
    font-family: 'PT Sans', sans-serif;
    display: inline-block;
    width: 120px;
    height: 35px;
    text-align: center;
    margin-right: 20px;
    background-color: antiquewhite;
    border: none;
    border-radius: 5px;
    color: black;
    cursor: pointer;
}

.container-div {
    width: 100vw;
}

#Board {
    position: relative;
    margin-left: 250px;
    top: 20px;
    left: 60px;
    width: 480px;
    height: 480px;
    border-style: solid;
    border-width: 2px;
    margin-right: 0;
}

.button-container-1 {
    width: fit-content;
    display: flex;
    margin-bottom: 20px;
}

.button-container-2 {
    width: fit-content;
    display: flex;
    margin-bottom: 20px;
}

.button-container-3 {
    width: fit-content;
    display: grid;
    left: 100%;
    margin-bottom: 20px;
}

.button-primary {
    font-family: 'PT Sans', sans-serif;
    display: inline-block;
    width: 120px;
    height: 30px;
    text-align: center;
    margin-right: 20px;
    background: #3239CD;
    border: none;
    border-radius: 5px;
    color: #eee;
    cursor: pointer;
}

.button-secondary {
    font-family: 'PT Sans', sans-serif;
    display: inline-block;
    width: 120px;
    height: 30px;
    text-align: center;
    margin-right: 20px;
    background: #3C97C3;
    border: none;
    border-radius: 5px;
    color: #eee;
    cursor: pointer;
}

.button-tertiary {
    font-family: 'PT Sans', sans-serif;
    display: inline-block;
    width: 120px;
    height: 30px;
    position: absolute;
    text-align: center;
    left: 70px;
    background: rgb(172, 57, 57);
    border: none;
    border-radius: 5px;
    color: #eee;
    cursor: pointer;
}

.button-primary:focus {
    outline: none;
}

.button-secondary:focus {
    outline: none;
}

.button-tertiary:focus{
    outline: none;
}

.button-primary:hover{
    background: #020650;
}

.button-secondary:hover{
    background: #033e5c;
}

.button-tertiary:hover{
    background: rgb(122, 10, 10);
}

#EngineOutput {
    margin-top: 60px;
    position: absolute;
    left: 850px;
    top: 180px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.2em;
}

#ThinkTimeChoice {
    margin-bottom: 40px;
}

#engine-ouput-spans {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    margin-bottom: 20px;
}

@-moz-document url-prefix() {
    #engine-ouput-spans {
        margin-bottom: 0;
    }
    .output-spans {
        margin-bottom: 20px;
    }

    .button-container-3 {
        margin-bottom: 50px;
    }
}

.Square {
    position: absolute;
    width: 60px;
    height: 60px;
}

.Dark {
    background-color: rgb(55, 124, 46);
}

.Light {
    background-color: #ffffff;
}

.SqSelected {
    background-color: #dbdbdb;
}

.rank1 {
    top: 420px;
}

.rank1.file1::after {
    content: 'A';
    font-size: 1.1rem;
    position: absolute;
    top: 70px;
    left: 30px;
}

.rank1.file2::after {
    content: 'B';
    font-size: 1.1rem;
    position: absolute;
    top: 70px;
    left: 30px;
}

.rank1.file3::after {
    content: 'C';
    font-size: 1.1rem;
    position: absolute;
    top: 70px;
    left: 30px;
}

.rank1.file4::after {
    content: 'D';
    font-size: 1.1rem;
    position: absolute;
    top: 70px;
    left: 30px;
}

.rank1.file5::after {
    content: 'E';
    font-size: 1.1rem;
    position: absolute;
    top: 70px;
    left: 30px;
}

.rank1.file6::after {
    content: 'F';
    font-size: 1.1rem;
    position: absolute;
    top: 70px;
    left: 30px;
}

.rank1.file7::after {
    content: 'G';
    font-size: 1.1rem;
    position: absolute;
    top: 70px;
    left: 30px;
}

.rank1.file8::after {
    content: 'H';
    font-size: 1.1rem;
    position: absolute;
    top: 70px;
    left: 30px;
}

.file1::before {
    content: '1';
    font-size: 1.2rem;
    position: absolute;
    top: 30px;
    left: -20px;
}

.rank8.file1::before {
    content: '8';
    font-size: 1.2rem;
    position: absolute;
    top: 30px;
    left: -20px;
}

.rank7.file1::before {
    content: '7';
    font-size: 1.2rem;
    position: absolute;
    top: 30px;
    left: -20px;
}

.rank6.file1::before {
    content: '6';
    font-size: 1.2rem;
    position: absolute;
    top: 30px;
    left: -20px;
}

.rank5.file1::before {
    content: '5';
    font-size: 1.2rem;
    position: absolute;
    top: 30px;
    left: -20px;
}

.rank4.file1::before {
    content: '4';
    font-size: 1.2rem;
    position: absolute;
    top: 30px;
    left: -20px;
}

.rank3.file1::before {
    content: '3';
    font-size: 1.2rem;
    position: absolute;
    top: 30px;
    left: -20px;
}

.rank2.file1::before {
    content: '2';
    font-size: 1.2rem;
    position: absolute;
    top: 30px;
    left: -20px;
}

.rank2 {
    top: 360px;
}

.rank3 {
    top: 300px;
}

.rank4 {
    top: 240px;
}

.rank5 {
    top: 180px;
}

.rank6 {
    top: 120px;
}

.rank7 {
    top: 60px;
}

.rank8 {
    top: 0px;
}

.file1 {
    left: 0px;
}

.file2 {
    left: 60px;
}

.file3 {
    left: 120px;
}

.file4 {
    left: 180px;
}

.file5 {
    left: 240px;
}

.file6 {
    left: 300px;
}

.file7 {
    left: 360px;
}

.file8 {
    left: 420px;
}

.Piece {
    position: absolute;
}

@media(max-width:1200px) {
    #top-links {
        width: 15%;
    }
    #fenInDiv {
        left: 160px;
    }
    #fenIn {
        width: 650px;
    }
    #Board {
        margin-left: 100px;
    }
    #EngineOutput {
        left: 700px;
    }
}

@media(max-width:1000px) {
    #top-links {
        width: 20%;
    }
    #fenInDiv {
        left: 90px;
        /* width: 100%; */
    }
    #fenIn {
        width: 600px;
    }
    #Board {
        margin-left: 30px;
    }
    #EngineOutput {
        left: 620px;
    }
    .navbar li a:hover {
        transform: none;
    }
}

@media(max-width: 900px) {
    #top-links {
        width: 25%;
    }
    body {
        background-size: 1800px auto;
    }
    .container-div {
        width: 100vw;
    }
    .top-div {
        width: 100%;
        position: relative;
        display: block;
        margin-bottom: 70px;
    }
    .top-div h1 {
        text-align: center;
    }
    #fenInDiv {
        left: 150px;
        top: 60px;
    }
    #fenIn {
        width: 400px;
    }
    #Board {
        margin-left: 10%;
    }
    #EngineOutput {
        top: 750px;
        left: 10%;
    }
}

@media(max-width: 800px) {
    #fenInDiv {
        left: 140px;
    }
}

@media(max-width: 750px) {
    #fenInDiv {
        left: 130px;
    }
    #fenIn {
        width: 350px;
    }
}

@media(max-width: 680px) {
    #simple-modal {
        display: block;
    }
    #Board {
        margin-left: -10%;
        border: none;
    }
    .Square {
        position: absolute;
        width: 50px;
        height: 50px;
    }
    .Piece {
        position: absolute;
        width: 50px;
        height: 50px;
    }
    .fen-form-input-div {
        display: flex;
        justify-content: space-between;
    }
    #fenInDiv {
        width: 80%;
        display: none;
    }
    #fenIn {
        width: 350px;
        margin-right: 10px;
    }
}
