* {
    margin: 0;
    padding: 0;
    text-decoration: none;
    box-sizing: border-box;
    overflow-x: hidden;
}

.Header {
    background-color: #3b3b3b;
    padding: 2%;
    font-family: 'Montserrat', sans-serif;
    color: whitesmoke;
    font-weight: 100;
}

.Footer {
    background-color: #3b3b3b;
    padding: 2%;
    font-family: 'Montserrat', sans-serif;
    color: whitesmoke;
    font-weight: 100;
    margin-top: 50px;
    bottom: 0;
}

.footerLink {
    display: inline-block;
    vertical-align: middle;
    width: 10%;
}

.headerTitle {
    font-size: xx-large;
}

.LinkItem {
    display: inline-block;
    margin-left: 10vw;
    font-family: 'Montserrat', sans-serif;
    color: whitesmoke;
    color: white;
    height: 100%;
    font-size: larger;
    transition: .2s;
}

    .LinkItem:hover {
        color: gray;
        transition: .2s;
    }

.fileLetter {
    font-size: large;
    position: absolute;
    font-family: 'Montserrat', sans-serif;
    color: rgb(162, 105, 32);
    margin-left: 5%;
}

.rankNumber {
    font-size: large;
    position: absolute;
    font-family: 'Montserrat', sans-serif;
    color: rgb(162, 105, 32);
    float: left;
    margin-top: -9%;
    margin-left: -6%;
}

/*.timer {
    font-size: large;
    position: absolute;
    font-family: 'Montserrat', sans-serif;
    color: rgb(162, 105, 32);
    float: left;
    margin-top: -9%;
    margin-left: -18%;
    border: 2px solid grey;
}*/

#Board {
    width: 100%;
    height: 100%;
    border: 0.5px solid grey;
    border-radius: 2px;
    display: block;
    margin: 0 auto;
    font-size: 0;
}

.Container {
    display: block;
    height: 40vw;
    width: 40vw;
    margin: auto;
    position: relative;
    left: 0;
    right: 0;
    margin-top: 5vh;
    overflow: visible;
}

.CapturedPiecesContainer {
    display: block;
    height: 20vw;
    width: 40vw;
    margin: auto;
    position: relative;
    padding-top: 10px;
    overflow: hidden;
}

.WhitePiecesCaptured {
    float: left;
    width: 40%;
    display: block;
    height: 100%;
    border-radius: 8px;
    background: #f8f8f8;
}

.BlackPiecesCaptured {
    float: right;
    width: 40%;
    display: block;
    height: 100%;
    border-radius: 8px;
    background: #f8f8f8;
}

.blackSquare {
    width: 12.5%;
    height: 12.5%;
    background-color: #d99d43;
    display: inline-block;
    margin: 0;
    padding: 0;
}

.whiteSquare {
    width: 12.5%;
    height: 12.5%;
    background-color: #ffe3b8;
    display: inline-block;
}

.tint {
    width: 12.5%;
    height: 12.5%;
    display: inline-block;
    /*background-image: url("Images/Tint.png");*/
    -webkit-box-shadow: inset 0 0 15px #0f0;
}

.moveIndicator {
    width: 12.5%;
    height: 12.5%;
    display: inline-block;
    /*background-image: url("Images/MoveIndicator.png");*/
}

.kingInCheck {
    width: 12.5%;
    height: 12.5%;
    display: inline-block;
    background-image: url("Images/KingInCheck.png");
}

@keyframes PopUp {

    from {
        opacity: 0;
        top: 0;
    }

    to {
        opacity: 1;
        top: 10%;
    }
}

/*popup*/
#PopUp {
    top: 10%;
    width: 30vw;
    height: auto;
    padding-bottom: 3%;
    border-radius: 10px;
    display: block;
    margin: auto;
    position: absolute;
    left: 0;
    right: 0;
    z-index: 10;
    background-color: #f2f2f2;
    box-shadow: 1px 1px 5px 5px rgba(0, 0, 0, 0.4);
    animation-name: PopUp;
    animation-duration: 1s;
}

.PopUpHeader {
    position: relative;
    background-color: chocolate;
    height: auto;
    padding: 5%;
    color: white;
    width: 100%;
    text-align: center;
}

.PopUpBody {
    position: relative;
    display: block;
    color: white;
    height: auto;
    text-align: center;
}

.PopUpText {
    color: white;
    position: relative;
    top: 20%;
    font-family: 'Montserrat', sans-serif;
}

.PopUpBodyText {
    color: #595959;
    position: relative;
    top: 20%;
    font-family: 'Montserrat', sans-serif;
}

.ChooseSideButton {
    background-color: chocolate;
    border: none;
    outline: none;
    border-radius: 5px;
    padding: 10px;
    color: white;
    position: relative;
    margin-top: 10px;
    transition: 0.2s;
    height: auto;
    margin-left: 5px;
    margin-right: 5px;
    font-family: 'Montserrat', sans-serif;
}

    .ChooseSideButton:hover {
        background-color: #d99d43;
        cursor: pointer;
        transition: 0.2s;
    }

    .ChooseSideButton:active {
        transform: scale(0.95);
    }

.DifficultyButton {
    background-color: chocolate;
}

    .DifficultyButton:focus:hover {
        background-color: #008000;
    }

    .DifficultyButton:focus {
        background-color: #00ff00;
    }



/*Pawn promotion*/
#Promotion {
    font-size: 0;
    top: 15%;
    width: 20vw;
    height: 5vw;
    border-radius: 8px;
    display: block;
    margin: auto;
    position: absolute;
    left: 0;
    right: 0;
    background-color: #f2f2f2;
    box-shadow: 1px 1px 5px 5px rgba(0, 0, 0, 0.4);
}

.PromotionOptions {
    font-size: 0;
    height: 100%;
    width: 25%;
    position: relative;
    display: inline-flex;
    overflow: hidden;
}

.buttonsContainer {
    display: block;
    position: relative;
    margin: auto;
    width: 75%;
    padding-top: 25px;
}

.resignButton {
    width: auto;
    background-color: chocolate;
    overflow: hidden;
    padding: 10px;
    position: relative;
    display: inline-block;
    margin: auto;
    outline: none;
    border: none;
    border-radius: 5px;
    font-size: larger;
    color: white;
    font-family: 'Roboto', sans-serif;
    transition: 0.2s;
    margin-top: -8px;
}

    .resignButton:hover {
        background-color: #d12b1f;
        transition: 0.2s;
        cursor: pointer;
    }

    .resignButton:active {
        transform: scale(0.95);
    }

.viewBoardButton {
    background-color: chocolate;
    border: none;
    outline: none;
    border-radius: 5px;
    padding: 10px;
    color: white;
    margin-top: 10px;
    transition: 0.2s;
    font-family: 'Montserrat', sans-serif;
    display: block;
    width: auto;
    float: right;
    margin-right: 5vw;
    cursor: pointer;
}


.drawButton {
    width: auto;
    background-color: chocolate;
    overflow: hidden;
    padding: 10px;
    margin-top: 10px;
    display: inline-block;
    position: relative;
    margin: auto;
    outline: none;
    border: none;
    border-radius: 5px;
    font-size: larger;
    color: white;
    font-family: 'Roboto', sans-serif;
    transition: 0.2s;
}

    .drawButton:hover {
        background-color: #5e5e5e;
        transition: 0.2s;
        cursor: pointer;
    }

    .drawButton:active {
        transform: scale(0.95);
    }

.squareHover {
    cursor: default;
}

    .squareHover:hover {
        cursor: pointer;
    }

.name {
    float: right;
    font-weight: 300;
    font-size: larger;
    color: lightgray;
    padding-top: 1.5vh;
}

nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
    list-style: none;
    min-height: 11vh;
    background-color: #3b3b3b;
    font-family: 'Montserrat', sans-serif;
}

.footer-links {
    display: flex;
    justify-content: space-around;
    width: 50%;
    vertical-align: middle;
    z-index: 0;
}

@media screen and (max-width: 1000px) {
    .Container {
        width: 80vw;
        height: 80vw;
    }

    .CapturedPiecesContainer {
        width: 80vw;
        height: 40vw;
    }

    #PopUp {
        width: 60vw;
    }

    .resignButton {
        font-size: small;
    }

    .drawButton {
        font-size: small;
    }

    .LinkItem {
        display: inline-flex;
        padding-left: 3vh;
        font-size: small;
        margin-left: 5vw;
    }

    .headerTitle {
        font-size: x-large;
    }

    .PopUpBodyText {
        font-size: large;
    }

    .PopUpText {
        font-size: large;
    }

    #Promotion {
        width: 40vw;
        height: 10vw;
    }

    .name {
        font-size: medium;
    }

    .footer-links {
        width: 75%;
    }
}

@media screen and (max-width: 800px) {
    .footer-links {
        width: 100%;
    }
}


/*board themes*/
.BrownThemeBlack {
    /*background-color: #d99d43;*/
    background-color: #ff3399;
}

.BrownThemeWhite {
    background-color: #ffcce6;
}

.BlueThemeBlack {
    background-color: #51aff3;
}

.BlueThemeWhite {
    background-color: #b9e2ff;
}

.GreenThemeBlack {
    background-color: #ffff00;
}

.GreenThemeWhite {
    background-color: #ffffb3;
}



.blueButton {
    background-color: #ff3399;
    border: none;
    outline: none;
    border-radius: 5px;
    padding: 15px;
    position: relative;
    margin-top: 10px;
    transition: 0.2s;
    height: auto;
    margin-left: 5px;
    margin-right: 5px;
    cursor: pointer;
}

.brownButton {
    background-color: #51aff3;
    border: none;
    outline: none;
    border-radius: 5px;
    padding: 15px;
    position: relative;
    margin-top: 10px;
    transition: 0.2s;
    height: auto;
    margin-left: 5px;
    margin-right: 5px;
    cursor: pointer;
}

.greenButton {
    background-color: yellow;
    border: none;
    outline: none;
    border-radius: 5px;
    padding: 15px;
    position: relative;
    margin-top: 10px;
    transition: 0.2s;
    height: auto;
    margin-left: 5px;
    margin-right: 5px;
    cursor: pointer;
}



    .brownButton:focus, .blueButton:focus, .greenButton:focus {
        border: 2px solid black;
        transition: .2s;
    }

.signupButton {
    width: auto;
    background-color: chocolate;
    overflow: hidden;
    padding: 10px;
    position: relative;
    display: inline-block;
    margin: auto;
    outline: none;
    border: none;
    border-radius: 5px;
    font-size: larger;
    color: white;
    font-family: 'Roboto', sans-serif;
    transition: 0.2s;
    margin-left: 48%;
    margin-top: 4px;
}

    .signupButton:hover {
        background-color: #d12b1f;
        transition: 0.2s;
        cursor: pointer;
    }

.userloginbutton {
    width: auto;
    background-color: chocolate;
    overflow: hidden;
    padding: 10px;
    position: relative;
    display: inline-block;
    margin: auto;
    outline: none;
    border: none;
    border-radius: 5px;
    font-size: larger;
    color: white;
    font-family: 'Roboto', sans-serif;
    transition: 0.2s;
    /*margin-left: 74%;
    margin-top: 4px;*/
}

    .userloginbutton:hover {
        background-color: #d12b1f;
        transition: 0.2s;
        cursor: pointer;
    }

.loginButton {
    width: auto;
    background-color: chocolate;
    overflow: hidden;
    padding: 10px;
    position: relative;
    display: inline-block;
    margin: auto;
    outline: none;
    border: none;
    border-radius: 5px;
    font-size: larger;
    color: white;
    font-family: 'Roboto', sans-serif;
    transition: 0.2s;
    margin-left: 3%;
}

    .loginButton:hover {
        background-color: #d12b1f;
        transition: 0.2s;
        cursor: pointer;
    }

.loginidButton {
    width: auto;
    background-color: chocolate;
    overflow: hidden;
    padding: 10px;
    position: relative;
    display: inline-block;
    margin: auto;
    outline: none;
    border: none;
    border-radius: 5px;
    font-size: larger;
    color: white;
    font-family: 'Roboto', sans-serif;
    transition: 0.2s;
}

    .loginidButton:hover {
        background-color: #d12b1f;
        transition: 0.2s;
        cursor: pointer;
    }

.logout {
    width: auto;
    background-color: chocolate;
    overflow: hidden;
    padding: 10px;
    position: relative;
    display: inline-block;
    margin: auto;
    outline: none;
    border: none;
    border-radius: 5px;
    font-size: larger;
    color: white;
    font-family: 'Roboto', sans-serif;
    transition: 0.2s;
    margin-left: 75%;
}

    .logout:hover {
        background-color: #d12b1f;
        transition: 0.2s;
        cursor: pointer;
    }

.cancelButton {
    width: auto;
    background-color: chocolate;
    overflow: hidden;
    padding: 10px;
    position: relative;
    display: inline-block;
    margin: auto;
    outline: none;
    border: none;
    border-radius: 5px;
    font-size: larger;
    color: white;
    font-family: 'Roboto', sans-serif;
    transition: 0.2s;
    /*margin-left: 25%;*/
    margin-top: 5px;
}

    .cancelButton:hover {
        background-color: #d12b1f;
        transition: 0.2s;
        cursor: pointer;
    }

@keyframes signPopUp {

    from {
        opacity: 0;
        top: 0;
    }

    to {
        opacity: 1;
        top: 10%;
    }
}

#signPopUp {
    top: 10%;
    width: 30vw;
    height: auto;
    /*padding-bottom: 3%;*/
    border-radius: 10px;
    display: block;
    margin: auto;
    position: relative;
    left: 0;
    right: 0;
    z-index: 10;
    background-color: #b3d9ff;
    box-shadow: 1px 1px 5px 5px rgba(0, 0, 0, 0.4);
    animation-name: PopUp;
    animation-duration: 1s;
}

@media screen and (max-width: 1000px) {
    #signPopUp {
        width: 60vw;
    }
}

@keyframes loginPopUp {

    from {
        opacity: 0;
        top: 0;
    }

    to {
        opacity: 1;
        top: 10%;
    }
}

#loginPopUp {
    top: 10%;
    width: 30vw;
    height: auto;
    /*padding-bottom: 3%;*/
    border-radius: 10px;
    display: block;
    margin: auto;
    position: relative;
    left: 0;
    right: 0;
    z-index: 10;
    background-color: #b3d9ff;
    box-shadow: 1px 1px 5px 5px rgba(0, 0, 0, 0.4);
    animation-name: PopUp;
    animation-duration: 1s;
}

@media screen and (max-width: 1000px) {
    #loginPopUp {
        width: 60vw;
    }
}

.signdetails {
    position: relative;
    background-color: chocolate;
    height: auto;
    padding: 4%;
    color: white;
    width: 100%;
    text-align: center;
    font-size: 30px;
}

.logindetails {
    position: relative;
    background-color: chocolate;
    height: auto;
    padding: 4%;
    color: white;
    width: 100%;
    text-align: center;
    font-size: 30px;
}

.bottomtopTimer {
    /*margin-left:20%;*/
    text-align: center;
    font-size: 30px;
}

.signupgoogle {
    width: auto;
    background-color: chocolate;
    overflow: hidden;
    padding: 10px;
    position: relative;
    display: inline-block;
    margin: auto;
    outline: none;
    border: none;
    border-radius: 5px;
    font-size: larger;
    color: white;
    font-family: 'Roboto', sans-serif;
    transition: 0.2s;
    /*margin-left: 48%;
    margin-top: 4px;*/
}

    .signupgoogle:hover {
        background-color: #d12b1f;
        transition: 0.2s;
        cursor: pointer;
    }

.logingoogle {
    width: auto;
    background-color: chocolate;
    overflow: hidden;
    padding: 10px;
    position: relative;
    display: inline-block;
    margin: auto;
    outline: none;
    border: none;
    border-radius: 5px;
    font-size: larger;
    color: white;
    font-family: 'Roboto', sans-serif;
    transition: 0.2s;
    /*margin-left: 48%;
    margin-top: 4px;*/
}

    .logingoogle:hover {
        background-color: #d12b1f;
        transition: 0.2s;
        cursor: pointer;
    }
