/* common */
body {
    width: 100%;
    height: 100%;
    background-color: black;
    background: radial-gradient(#4f4f4f, black);
    color: white;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    align-self: center;
    overscroll-behavior-y: contain;
}
.board-b72b1 {
    touch-action: none;
    box-shadow: 0 0 10px 10px black;
}
.white-1e1d7.highlight-move, .white-1e1d7.highlight2-9c5d2, .white-1e1d7.highlight1-32417 {
    box-shadow: none;
    background-color: #F7C163;
}
.black-3c85d.highlight-move, .black-3c85d.highlight2-9c5d2, .black-3c85d.highlight1-32417 {
    box-shadow: none;
    background-color: #D79536;
}
.highlight-check {
    background-color: red;
}
.white-1e1d7.highlight-square.highlight-check {
    background: repeating-linear-gradient(
        45deg,
        red,
        red 25%,
        #F77663 25%,
        #F77663 50%
    );
}
.black-3c85d.highlight-square.highlight-check {
    background: repeating-linear-gradient(
        45deg,
        red,
        red 25%,
        #D74A36 25%,
        #D74A36 50%
    );
}
.white-1e1d7.highlight-square {
    background-color: #F77663;
}
.black-3c85d.highlight-square {
    background-color: #D74A36;
}
.white-1e1d7.highlight-square.highlight-move, .white-1e1d7.highlight-square.highlight2-9c5d2, .white-1e1d7.highlight-square.highlight1-32417 {
    background: repeating-linear-gradient(
        45deg,
        #F7C163,
        #F7C163 25%,
        #F77663 25%,
        #F77663 50%
    );
}
.black-3c85d.highlight-square.highlight-move, .black-3c85d.highlight-square.highlight2-9c5d2, .black-3c85d.highlight-square.highlight1-32417 {
    background: repeating-linear-gradient(
        45deg,
        #D79536,
        #D79536 25%,
        #D74A36 25%,
        #D74A36 50%
    );
}

/* game */
#menuBar {
    display: flex;
    position: absolute;
    left: 0;
    top: 0;
    padding: 12px;
    width: 100%;
    z-index: 99999;
    white-space: nowrap;
    pointer-events: none;
    white-space: nowrap;
}
#menu {
    position: absolute;
    background-color: white;
    transform-origin: top left;
    margin-top: 0.5rem;
    border-radius: 0.375rem;
    overflow: hidden;
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 10%), 0 4px 6px -2px rgb(0 0 0 / 5%);
}
#menu a {
    display: flex;
    color: #4b4b4b;
    padding: 0.625rem;
    font-weight: bold;
    align-items: center;
}
#menu a:hover {
    background-color: #f0d9b5;
}
#menu a span {
    margin-right: auto;
}
.menu-resign {
    color: #e11d48 !important;
}
.menu-resign:hover {
    color: white !important;
    background-color: #e11d48 !important;
}
#menuBtn {
    pointer-events: auto;
}
#status {
    text-shadow: 0 0 2px black;
}
#status span {
    display: inline-flex;
    overflow: hidden;
    margin: auto 0;
    animation:
        typing 0.5s steps(30, end);
}
@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}
h1 {
    color: #f0d9b5;
    display: inline;
}
#board {
    max-width: 80vh;
    max-height: 80vh;
    width: 100%;
    pointer-events:auto;
}
#promotion-dialog {
    display: none;
    background-color: grey;
    box-shadow: 0 0 5px 5px black;
    white-space: nowrap;
    overflow: visible;
}
#promotion-dialog img {
    display: inline-block;
    width: 25%;
    height: auto;
    border: none;
}
#promotion-dialog a:focus,img:focus {
    outline: none;
}
.loading {
    width: 100%;
    height: 100%;
    margin: auto;
    vertical-align: middle;
}

/* creator */
.panel {
    background-color: #4f4f4f;
    box-shadow: 0 0 10px 10px black;
    width: 100%;
    margin-bottom: 15px;
    padding: 15px;
}
#editor {
    max-width: 90vh;
    max-height: 90vh;
    width: 100%;  
}
.spare-pieces-7492f {
    background-color: #4f4f4f;
    box-shadow: 0 0 10px 10px black;
    width: 100%;
}
.spare-pieces-7492f img {
    display: inline-block;
}
.spare-pieces-top-4028b {
    margin-bottom: 15px;
}
.spare-pieces-bottom-ae20f {
    margin-top: 15px;
}
#en-passant-square {
    background-color: #4f4f4f;
}
