html,
body {
    margin: 0;
    height: 100%;
}

#wrap {
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

#chess {
    position: relative;
    width: 722px;
    height: 800px;
    background-image: url(../images/bg.jpg);
}

#chess img {
    position: absolute;
    -webkit-transition: .1s linear;
    transition: .1s linear;
    pointer-events: none;
}

#chess img.selected {
    -webkit-transform: scale(1.1);
    transform: scale(1.1);
    z-index: 1;
}

#sideBar {
    width: 147px;
    position: fixed;
    display: none;
    border: 1px rgb(23, 32, 233) solid;
    right: 3px;
    top: 3px;
    bottom: 3px;
}

#regret,
#restart {
    display: inline-block;
    color: rgb(23, 32, 233);
    background-color: white;
    line-height: 30px;
    padding: 0 8px;
    border-radius: 4px;
    text-decoration: none;
    border: 1px solid rgb(13, 25, 187);
    margin: 6px;
}

#regret:hover,
#restart:hover {
    background-color: rgb(113, 125, 233);
    border: 1px solid rgb(113, 125, 233);
    color: white;
}

#regret:active,
#restart:active {
    background-color: rgb(163, 185, 253);
}

#history {
    overflow: auto;
    position: absolute;
    top: 44px;
    bottom: 0;
    width: 100%;
}

#button {
    text-align: center;
}

#loading {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgb(251, 251, 251);
    z-index: 2;
}


#msg {
    position: fixed;
    left: 50%;
    top: 50%;
    margin: -130px 0 0 -105px;
}

#moves {
    padding-left: 50px;
    background-color: white;
    margin-top: 20px;
}

#moves li {
    line-height: 20px;
}

#moves li.red {
    color: rgb(173, 26, 2);
}

#moves li.black {
    color: rgb(22, 123, 127);
}

#win {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, .3);
    display: none;
    transition: 1s ease;
    overflow: hidden;
}

#win.hide {
    transform: scale(0) rotateX(360deg);
}

.table-cell {
    display: table-cell;
    vertical-align: middle;
    text-align: center;
}

.table-cell img {
    animation: show 300ms ease 1;
}

@keyframes show {
    0% {
        transform: translateY(-1000px);
    }
    90% {
        transform: translateY(30px);
    }
    100% {
        transform: translateY(0px);
    }
}