@import url(fontiran.css); /* لینک فایلی که وظیفه بارگذاری فونت ها را برعهده دارد */
body , *:not(.material-icons){
    font-family: iranyekan  !important;
}
body {
    --background: #c6dfac;
    --number-background: #e1aa94;
    --number-shadow: #c67b5e;
    --symbol-background: #57a455;
    --symbol-shadow: #427b41;
    --text: #f6f6f6;
    --text-fade: #ccc;
    --text-green: #2ecc71;
    --text-red: #d8334a;
    --selected-background: #ddd;
    --selected-shadow: #c8c8c8;
    background-color: var(--background);
    color: var(--text);
    margin: 0;
    font-family: 'Baloo', cursive;
    overflow-x: hidden;
}
body #hidden {
    display: none;
}
.reloadGame {
    position: absolute;
    right: 50%;
    transform: translate(50%);
    top: 10px;
    color:#444;
    background:#f6f6f6;
    border: 1px solid #ccc;
    padding: 4px 30px;
    border-radius: 4px;
}
body #game {
    width: 100vw;
    min-height: 100vh;
    cursor: url(https://s3-us-west-2.amazonaws.com/s.cdpn.io/199011/cursor_default.png), auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    margin-top: 35px;
    transform: scale(1);
}
body #game[cursor][cursor="default"] {
    cursor: url(https://s3-us-west-2.amazonaws.com/s.cdpn.io/199011/cursor_default.png), auto;
}
body #game[cursor][cursor="1"] {
    cursor: url(https://s3-us-west-2.amazonaws.com/s.cdpn.io/199011/cursor_1.png), auto;
}
body #game[cursor][cursor="2"] {
    cursor: url(https://s3-us-west-2.amazonaws.com/s.cdpn.io/199011/cursor_2.png), auto;
}
body #game[cursor][cursor="3"] {
    cursor: url(https://s3-us-west-2.amazonaws.com/s.cdpn.io/199011/cursor_3.png), auto;
}
body #game[cursor][cursor="4"] {
    cursor: url(https://s3-us-west-2.amazonaws.com/s.cdpn.io/199011/cursor_4.png), auto;
}
body #game[cursor][cursor="5"] {
    cursor: url(https://s3-us-west-2.amazonaws.com/s.cdpn.io/199011/cursor_5.png), auto;
}
body #game[cursor][cursor="6"] {
    cursor: url(https://s3-us-west-2.amazonaws.com/s.cdpn.io/199011/cursor_6.png), auto;
}
body #game[cursor][cursor="7"] {
    cursor: url(https://s3-us-west-2.amazonaws.com/s.cdpn.io/199011/cursor_7.png), auto;
}
body #game[cursor][cursor="8"] {
    cursor: url(https://s3-us-west-2.amazonaws.com/s.cdpn.io/199011/cursor_8.png), auto;
}
body #game[cursor][cursor="9"] {
    cursor: url(https://s3-us-west-2.amazonaws.com/s.cdpn.io/199011/cursor_9.png), auto;
}
body #game[cursor][cursor="0"] {
    cursor: url(https://s3-us-west-2.amazonaws.com/s.cdpn.io/199011/cursor_clear.png), auto;
}
body #game #board {
    display: flex;
    flex-direction: column;
    transform: translateX(50px);
    min-width: 420px;
    min-height: 420px;
    max-width: 420px;
    max-height: 420px;
    margin-top: 10px;
}
body #game #board .row {
    display: flex;
    flex-direction: row;
}
body #game #board .row > div {
    width: 50px;
    height: 50px;
    margin: 10px;
}
body #game #board .row > div.number, body #game #board .row > div.symbol, body #game #board .row > div.result {
    user-select: none;
    line-height: 55px;
    text-align: center;
    font-size: 35px;
}
body #game #board .row > div.number, body #game #board .row > div.symbol {
    border-radius: 8px;
}
body #game #board .row > div.number {
    background-color: var(--number-background);
    box-shadow: 0 8px 0 0 var(--number-shadow);
    transition: all 0.25s -0.1s;
}
body #game #board .row > div.number:active {
    transform: translateY(8px);
    box-shadow: 0 0px 0 0 #434596;
}
body #game #board .row > div.symbol {
    background-color: var(--symbol-background);
    box-shadow: 0 8px 0 0 var(--symbol-shadow);
}
body #game #board .row > div.result {
    position: relative;
    font-size: 40px;
}
body #game #board .row > div.result.correct {
    color: var(--text-green);
}
body #game #board .row > div.result.wrong {
    color: var(--text-red);
}
body #game #keyboard {
    width: 500px;
    display: flex;
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
    border-top: 1px solid #ccc;
}
body #game #keyboard .key {
    width: 70px;
    height: 70px;
    line-height: 80px;
    margin: 10px;
    font-size: 52px;
    border-radius: 8px;
    text-align: center;
    user-select: none;
    background-color: var(--number-background);
    box-shadow: 0 8px 0 0 var(--number-shadow);
    transition: all 0.25s -0.1s;
}
body #game #keyboard .key.used {
    background-color: var(--symbol-background);
    box-shadow: 0 8px 0 0 var(--symbol-shadow);
}
body #game #keyboard .key.used:active {
    transform: translateY(8px);
    box-shadow: 0 0px 0 0 var(--symbol-shadow);
}
body #game #keyboard .key.used.selected {
    color: var(--symbol-background);
    background-color: var(--selected-background);
    box-shadow: 0 16px 0 0 var(--selected-shadow);
    transform: translateY(-8px);
}
body #game #keyboard .key.used.selected:active {
    transform: translateY(8px);
    box-shadow: 0 0px 0 0 var(--selected-shadow);
}
body #game #keyboard .key:not(.used):active {
    transform: translateY(8px);
    box-shadow: 0 0px 0 0 var(--number-shadow);
}
body #game #keyboard .key:not(.used).selected {
    color: var(--number-background);
    background-color: var(--text);
    box-shadow: 0 16px 0 0 var(--text-fade);
    transform: translateY(-8px);
}
body #game #keyboard .key:not(.used).selected:active {
    transform: translateY(8px);
    box-shadow: 0 0px 0 0 var(--text-fade);
}
body #winner {
    position: fixed;
    top: 50%;
    left: 0px;
    right: 0px;
    transform: translateY(-50%);
    background-color: #2aba66;
    text-align: center;
}
body #winner .header {
    margin: 40px 0;
    font-size: 60px;
    margin-bottom: -20px;
}
body #winner #new {
    margin-bottom: 30px;
}
body #winner #close {
    position: absolute;
    top: 0px;
    right: 0px;
    padding: 0 14px;
    font-size: 32px;
}
body #winner:not(.show) {
    display: none;
}
@media only screen and (max-width: 600px) {
    #game {
        transform: scale(0.8) !important;
    }
    #game {
        margin-top: -10px !important;
    }
}
@media only screen and (max-width: 415px) {
    #game {
        transform: scale(0.7) !important;
    }
    #game {
        margin-top: -40px !important;
    }
}
@media only screen and (max-width: 360px) {
    #game {
        transform: scale(0.6) !important;
    }
    #game {
        margin-top: -80px !important;
    }
}