@font-face {
    font-family: "font-normal";
    src: url(salma-pro-medium-narrow.medium.otf);
}

@font-face {
    font-family: "font-backup";
    src: url(classica.book.ttf);
}

@keyframes menu_fade {
    from {
        left: -700px;
    }
    to {
        left: 0px;
    }
}

@keyframes float_in_screen {
    0% { 
        visibility: visible;
        box-shadow: grey 7px 7px 1px;
        left: -600px;
    }
    100% {
        visibility: visible;
        box-shadow: grey 7px 7px 1px;
        left: 0px;
    }
}

@keyframes fade_select {
    0% {
        bottom: 0px;
        right: 0px;
    }
    100% {
        bottom: 7px;
        right: 7px;
        box-shadow: grey 14px 14px 1px;
    }
}

@keyframes button_click {
    0% { }
    100% {
    box-shadow: grey 7px 7px 1px;

    }
}

@keyframes pieces_appear {
    from {
        color: #ffffff00;
        text-shadow: transparent 0px 0px 2px;
    }
    to {

    }
}

html, body {
    display: flex;
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: center;
    margin: 0%;
    padding: 0%;
    font-family: font-normal;
    background-color: lightgrey;
}

#board {
    width: 100%;
    height: -webkit-fill-available;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    filter: brightness(0.50) saturate(0.6);
}

#board .row {
    display: flex;
    flex-direction: row;
    min-height: 90px !important;
}

#board .cell:nth-child(even) {
    background-color: rgb(151 107 61);
}

#board .cell:nth-child(odd) {
    background-color: wheat;
}

#board .row:nth-child(even)>.cell:nth-child(odd) {
    background-color: rgb(151 107 61);
}

#board .row:nth-child(even)>.cell:nth-child(even) {
    background-color: wheat;
}

body { overflow: hidden; }

#board .cell {
    min-width: 90px;
}

.cell div {
    position: relative;
    transition: top 0.6s, left 0.6s;
    left: 0px;
    top: 0px;
}

#board .cell>div {
    width: 100%;
    height: 100%;
    font-size: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pieces_appear 01s linear 0s 1 normal forwards;
}


.white {
    color: white;
    text-shadow: black 0px 0px 2px;
}

.black { color: black; text-shadow: white 0px 0px 2px; }


#menu {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: absolute;

    width: 100%;
    max-width: 570px;
    height: 100%;

    background-color: rgb(213 213 213);
    box-shadow: #242424 4px 0px 10px;
    overflow: auto;
    left: -700px;

    animation: menu_fade 0.7s linear 0.35s 1 normal forwards;
}

#menu th {
    background-color: rgb(195 195 195);
    padding: 6px;
    color: black;
    font-size: 1.1em;
    font-weight: bold;
}

#menu td {
    padding: 15px 10px;
    text-align: center;
}

#menu td:first-child { padding: 0ch; padding: 20px 0px; }

.version {
    color: deepskyblue;
    text-decoration: none;
    font-weight: 800;
    margin: 0% !important;
    display: inline;
}

td:first-child p.version { font-size: 22px; }

table {
    border-spacing: 0px 11px;
    border-collapse: separate;
    max-width: 95%;
}

#table_container {
    height: max-content;
    min-height: 310px;
    overflow: auto;
    overflow-x: visible;
    max-width: 95%;
    display: flex;
    flex-direction: column;
    align-items: center;
}


#menu table tr:not(tr:first-child):hover {
	animation: fade_select 350ms ease-in-out 0s 1 normal forwards;
    position: relative;
    cursor: pointer;
}

table tr {
    background-color: rgb(255, 255, 255);

    visibility: hidden;
    box-shadow: none;
    position: relative;
}

.selected td:first-child {
    border-left: blue 5px solid;
    padding-left: 10px;
}

.selected td:first-child p { color: blue; }

#info_container {
    width: 100%;
    max-width: 90%;
    height: 550px;
    margin: 20px 0px 40px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    height: max-content;
}

#info {
    margin-bottom: 60px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;

}

#info h2 { margin-bottom: 0px; font-size: 1.7em; }

#info > div {
    width: 100%;
    height: 50px;
    margin: 10px 0px;
}

#info div .barText {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    height: max-content;
}

.barText h3 { margin: 0%; }
.barText span { width: 100px; }
.barText span:last-child { text-align: end; }

#info div .max {
    width: calc(100% - 8px);
    height: 50%;
    margin: 0%;
    background: linear-gradient(90deg, rgb(255, 0, 0), yellow, #33c131);
    border: #000000 2px solid;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
}

#info div .current {
    width: 6px;
    height: 140%;
    margin: 0%;
    background-color: #000000;
    position: relative;
    transition: left 1.5s;
    min-width: 6px;
    left: 0%;
}

#info > div > div {
    height: 100%;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
}

#info > div > div > div {
    height: 120%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-end;
    margin-right: 7px;
}

.good {
    position: relative;
    top: -5px;
}

a#start {
    display: inline-block;
    padding: 15px 0px;
    font-size: 24px;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    outline: none;
    color: #fff;
    background-color: #4CAF50;
    border: none;
    border-radius: 5px;
    box-shadow: grey 7px 7px 1px;
    align-self: center;
    justify-self: flex-end;
    position: relative;
    bottom: 0px;
    width: 100%;
}


#start:active {
    background-color: #3e8e41;
    box-shadow: 0 5px #666;
}

#start span { color: white; }

#info div p {
    margin: 0%;
    height: min-content;
    font-size: 0.6em;
    display: none;
}

#description {
    transition: height 1s;
    height: 80px;
}