@font-face {
	font-family: 'RubikMono';
	src: url(RubikMono.ttf); 
}

@font-face {
	font-family: 'Neucha';
	src: url(Neucha.ttf); 
}

@font-face {
	font-family: 'Antonio';
	src: url(Antonio.ttf); 
}

[data-num="0"]{background-color:#847875;}
[data-num="1"]{background-color:#c77b58;}
[data-num="2"]{background-color:#ae5d40;}
[data-num="3"]{background-color:#79444a;}
[data-num="4"]{background-color:#ba9158;}
[data-num="5"]{background-color:#927441;}
[data-num="6"]{background-color:#b3a555;}
[data-num="7"]{background-color:#4b726e;}
[data-num="8"]{background-color:#574852;}
[data-num="9"]{background-color:#4d4539;}

*{
    font-size: 0;
    line-height: 0;
    margin: 0;
    padding: 0;
    cursor: default;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none; 
    user-select: none;
}

body{
    background-color: #2C3639;
}

span, p{
    font-family: 'RubikMono';
}

span{
    display: block;
    position: relative;    
    white-space: nowrap;    
    text-align: center;
}

.WrapBackground, #WrapScreen{
    display: block;
    position: fixed;
    margin: auto;
    inset: 0;
}

.WrapBackground{
    background: repeating-linear-gradient(45deg, 
    #2C3639 .5%,
    #303a3d .5% 1%,
    #2C3639 1% 1.5%);    
}

#WrapScreen{
    background-color: #DCD7C9;
    box-shadow: 0 0 10px 10px rgba(0, 0, 0, .15);
    border-radius: 10px;
}

#WrapScreen.lang-tr span, #WrapScreen.lang-tr p{
    font-family: 'Antonio';
}

#GameScreen, #BaseScreen{
    display: none;
    position: absolute;
    inset: 0;
}

.header, .content, .footer{
    display: block;
    position: absolute;
    inset: 0;
    margin: auto;
}

.header{
    bottom: auto;
    background: repeating-linear-gradient(45deg, 
    #DCD7C9 .5%,
    #d8d3c4 .5% 1%,
    #DCD7C9 1% 1.5%);
    border-radius: 10px;
}

.content, .footer{
    top: auto;
    border-top: #cac1a9 solid 1px;
}

.content{
    bottom: auto;
}

.menu, .bottom-menu{    
    display: flex;
    flex-direction: row;
    align-items: safe center;
    height: 100%;
    width: 80%;
    margin: auto;    
}

.menuitem{
    font-size: 24px;
    margin: auto;
    border-radius: 5px;
}

.bottom-menu span{
    margin: auto;    
    width: 45%;
    border-radius: 5px;
    color: #fff;
    text-transform: uppercase;
}

#WrapScreen.lang-tr .bottom-menu span{
    letter-spacing: 2px;
}

#BackGameButton{
    background-color: #ae5d40;
}

#NewGameButton{
    background-color: #4b726e;
}

#RateGameButton{
    background-color: #79444a;
}

.menubutton, .bottom-menu span{    
    box-shadow: 0 0 3px 3px rgba(0, 0, 0, .1);
}

.menubutton, .menubutton *, .bottom-menu span{    
    cursor: pointer;
}

.menuitem svg{
    display: block;
    position: relative;
    fill: #fff;
    width: 60%;
    height: 60%;
    margin: 20%;
}

.icon-timer svg{
    fill: #4d4539;    
}

.icon-timer, .timer-value{
    border: 1px dashed #79444a;
}

.icon-help{
    background-color: #ae5d40;
}

.icon-refresh{
    background-color: #4b726e;
}

.icon-pause{
    background-color: #847875;
}

.icon-sound{
    background-color: #927441;  
}

svg.icon-sound-on{
    display: none;
}

svg.icon-sound-off{
    display: block;
}

#ButtonSound.active svg.icon-sound-on{
    display: block;
}

#ButtonSound.active svg.icon-sound-off{
    display: none;
}

#ShortHelp, #WrapScreen.lang-tr #ShortHelp{
    font-family: 'Neucha';
    display: inline-block;
    position: absolute;    
    text-align: center;
    color: #847875;
    text-transform: uppercase;
    margin: auto;
    inset: 50% 5%;
    margin-top: -3%;
}

#TimerValue, #WrapScreen.lang-tr #TimerValue{
    font-family: 'RubikMono';
    box-sizing: border-box;
    color: #79444a;
    border: 1px dashed #79444a;
}

#GameName{
    display: block;
    position: absolute;
    inset: 0;
    color: #574852;
}

#Text, #adText, #WrapScreen.lang-tr #Text, #WrapScreen.lang-tr #adText{
    font-family: 'Neucha';
    display: block;
    margin: 3%;
    text-align: center;
    color:#847875;
}

#adText{
    position: absolute;
    inset: auto 0 0 0;
}

#GameStatusName{
    width: 80%;
    color: #79444a;
    margin: 5% auto;
}

#GameRating{
    margin: 2% auto;
    text-align: center;
}

#GameRating span{
    display: inline-block;
    color: #4b726e;
}

#GameRatingValue{
    padding-left: 2%;
}

.icon-content{
    position: absolute;
    inset: 0;
}

.icon-content svg{
    display: block;
    position: absolute;
    fill: #847875;
    margin: -20% auto auto -20%;
    width: 40%;
    inset: 50%;
}

#GameBoard{
    display: block;
    position: absolute;
    inset: 1%;
}

.playing-cell{
    display: inline-block;
    position: relative;    
    width: 9%;
    height: 9%;
    margin: .5%;
    opacity: .15;
}

.playing-cell.active, .playing-cell.active *{
    opacity: 1;
    cursor: pointer;
}

.playing-cell.remove, .playing-cell.remove *{
    opacity: 0;
}

.playing-cell span, #WrapScreen.lang-tr .playing-cell span{
    font-family: 'RubikMono';
    border-radius: 5px;
    margin: 0 auto;
    text-shadow: 1px 1px #d2c9a5;
    color: #fff;
}

.playing-cell.first span{
    border-radius: 15%;
    box-shadow: 0px 0px 0px 3px #fff, 0px 0px 5px 1px #000;
    text-shadow: 0px 0px 20px #fff;
}