#startWithAllahHelp{
    background: white;
    position: fixed;
    padding: 40px 60px;
    box-shadow: 0px 0px 10px grey;
    border: 1px solid #f1f1f1;
    left: 50%;
    top: 50%;
    transform: translate(-50%,-50%);
}

*{
    padding: 0px;
    margin: 0px;
    outline: none;
    user-select: none;
}
body{
}
#LoadPage{
    width: 100%;
    height: 100%;
    background: rgba(64,64,64,0.7);
    display: block;
    position: fixed;
    left: 0px;
    top: 0px;
}
#LoadPageSelection{
    width: 80%;
    height: 90%;
    left: 10%;
    top: 5%;
    position: absolute;
    background: white;
}
#startButton{
    position: absolute;
    width: 100%;
    height: 60px;
    bottom: 0px;
    left: 0px;
    background-color: #08d33a;
    color: white;
    font-size: 20px;
    border: none;
    padding: 0px;
}
#startButton:hover{
    background-color: #087422;
    color: white;
    cursor: pointer;
}
#guideTextinloadpagesellection{
    width: 100%;
    background: #c1c1c1;
    height: 20px;
    padding: 10px 0px;
    text-align: center;
    position: absolute;
}

#getusername {
    position: absolute;
    width: 94%;
    height: 100%;
    left: 0px;
    border: none;
    background: #00000000;
    font-size: 20px;
    padding:0px 3%;
    text-align: center;
}

#getusernameDiv {
    position: absolute;
    width: 80%;
    top: 120px;
    left: 10%;
    height: 50px;
    border-left: none;
    border-right: none;
    border-top: none;
    background-image: linear-gradient(white, #fafafa);
    font-size: 20px;
    border-radius: 5px 5px 0px 0px;
}
#getusernameDiv::after {
    content:"";
    position: absolute;
    top: 50px;
    left: 0px;
    height: 3px;
    width: 100%;
    background: gray;
    border-radius: 0px 0px 2px 2px;

 }
#getusernameLabel{
    position: absolute;
    top: 115px;
    font-size: 10px;
    left: 50%;
    transform: translate(-50%,0);
    z-index: 1;
}
#selectdificulty{
    position: absolute;
    bottom: 80px;
    width: 100%;
    height: 120px;
    left: 0%;
    text-align: center;
}
.sp1{
    background-color: #c1c1c1;
    display: inline-block;
    width: 55px;
    text-align: center;
    font-size: 25px;
    line-height: 55px;
    border-radius: 27.5px;
    color: white;
    cursor: pointer;
    margin: 4px;

}
.sp1:hover{
    background-color: #afafaf;
    display: inline-block;
    width: 55px;
    text-align: center;
    font-size: 25px;
    line-height: 55px;
    border-radius: 27.5px;
    color: white;
    cursor: pointer;

}
.selectedspan{
    background-color: #009900;
}
.selectedspan:hover{
    background-color: #00ae00;
}

#selectdificultyLabel{
    position: absolute;
    bottom: 200px;
    font-size: 10px;
    left: 50%;
    transform: translate(-50%,-10px);
}

/* game board */
#gameboard{
    position: fixed;
    width: 100%;
    height: 100%;
    left: -100%;
    top: 0%;
    background: rgba(64,64,64,0.7);
}
#gameplayboard{
    position: absolute;
    width: 60%;
    height: 67%;
    top: 16%;
    left: 20%;
    background: white;
}
#gameplayboard>img{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    width: 150px;
    height: 100px;
}
#gbfooter{
    position: absolute;
    bottom: 0px;
    text-align:center;
    width: 100%;
    line-height: 40px;
    background-color: #f1f1f1;
    color: #383838;
    font-size: 12px;
}
#gbheader{
    position: absolute;
    top: 0px;
    width: 100%;
    background: #f9f9f9;
}
#settingbtn{
    position: absolute;
    width: 24px;
    height: 24px;
    padding: 6px;
    border-radius: 18px;
    border: 1px solid #f1f1f1;
    top: 27px;
    right: 20px;
    cursor: pointer;
    background: #f1f1f1;
}
#settingbtn:hover{
    background: #ffffff;
}
#diffValue{
    position: absolute;
    width: 100px;
    height: 24px;
    padding: 6px;
    top: 30px;
    right: 140px;
    font-size: 10px;
    text-align: right;
}
#alValue{
    position: absolute;
    width: 100px;
    height: 24px;
    padding: 6px;
    top: 42px;
    right: 135px;
    font-size: 10px;
    text-align: right;
}
#gbheader>span{
    line-height: 70px;
    width: 30%;
    position: absolute;
}
#timesp{
    right: 50px;
    font-size: 48px;
    text-align: right;
    padding:10px 20px;
}
#usernamesp{
    left: 50px;
    padding: 10px 32px;
    font-size: 24px;
}
#gbsection{
    position: absolute;
    width: 400px;
    height: 520px;
    bottom: 50px;
    left: 50%;
    transform: translate(-50%,0);
}
#gamepad{
    position: absolute;
    width: 400px;
    height: 400px;
    overflow: hidden;
}
.gamerc{
    float: left;
    width: 36.3px;
    height: 36.3px;
    display: block;
    overflow: hidden;
    cursor: pointer;
    z-index: 100;
}
.gamerc>span{
    margin: 2px;
    background: #f0f0f0;
    width: 32.3px;
    height: 32.3px;
    position: absolute;
    border-radius: 16.15px;
    border: 1px solid #a4a4a4;
    z-index: 101;
}

#ai_action{
    background: #555;
    color: #ddd;
    width: 130px;
    padding: 10px 20px;
    border-radius: 10px;
    z-index: 200;
    text-align: center;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%,-200%);
}
.hiddenDiv{
    visibility: hidden;
}

#gamecontrol{
    position: absolute;
    bottom: 0px;
    height:100px;
    width: 100%;
    text-align: center;
}

#gamecontrol>button{
    width: 110px;
    height: 54px;
    background: #f4f4f4;
    border-radius: 27px;
    border: 1px solid #a4a4a4;
    margin: 30px 10px;
    cursor: pointer;
    font-size: 16px;
    color: #646464;
}




#gamecontrol>button:hover{
    background: #ffffff;
    color: #232323;
}



/*   SETTING PAGE */
#settingMenu{
    list-style: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-200px);
    width: 300px;
    height: 300px;
}
#settingMenu > li{
    padding: 20px 10px;
    border-bottom: 1px solid #555;
    color: #444;
    line-height: 32px;
}
#settingMenu > li:hover{
    cursor: pointer;
    color: #9c9c9c;
    border-bottom: 1px solid #9c9c9c;
}

#settingMenu > li > img{
    margin-top: 8px;
    float: right;
}
#settingMenu > li > img{
    margin-top: 8px;
    float: right;
}
#settingMenu > li > .optionValue{
    margin-top: 4px;
    float: right;
    font-size: 12px;
}

#saveGame{
    position: absolute;
    bottom: 100px;
    left: 50%;
    transform: translate(-50%,0);
    height: 54px;
    background: #f4f4f4;
    border-radius: 27px;
    border: 1px solid #a4a4a4;
    cursor: pointer;
    font-size: 16px;
    color: #646464;
    padding: 0px 10px;
}

#saveGame:hover{
    background: #ffffff;
    border: 1px solid #aaa;
    color: #555;
    box-shadow: 0px 0px 5px grey;

}

#selectMatrixLengthDiv{
    width: 300px;
    height:400px;
    background: white;
    box-shadow: 1px 1px 5px grey;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    border-radius: 15px;
    border: 1px solid #f1f1f1;
    text-align: center;
    padding: 10px 0px;
}
#selectMatrixLengthDiv > span{
    font-size: 12px;
    height: 20px;
}
#selectMatrixLengthDiv > ul{
    list-style: none;
    border-top: 1px solid #f1f1f1;
    overflow: scroll;
    height: 355px;
}
#selectMatrixLengthDiv > ul > li{
    text-align: left;
    padding: 20px;
    border-bottom: 1px solid #f2f2f2;
    cursor: pointer;
}
#selectMatrixLengthDiv > ul > li:hover{
    background: #fbfbfb;
}
#selectMatrixLengthDiv > button{
    position: absolute;
    bottom: 0px;
    width: 100%;
    left: 0px;
    height: 50px;
    border: none;
    border-top: 1px solid #f1f1f1;
    background: white;
    border-radius: 0px 0px 15px 15px;
}
#selectMatrixLengthDiv > button:hover{
    cursor: pointer;
    background: #f9f9f9;
}
.selected{
    background: #00e200 !important;
    color: white;
}



/* WIN VIEW */
#windiv{
    position: absolute;
    width: 300px;
    height: 160px;
    box-shadow: 0px 0px 10px;
    left: 50%;
    top: 50%;
    transform: translate(-50%,-100%);
    z-index: 1000;
    background: #ffffffcc;
    text-align: center;
}
#windiv > span{
    margin: 20px;
    display: block;
}
#windiv > button{
    position: absolute;
    width: 110px;
    height: 50px;
    bottom: 10px;
    left: 50%;
    transform: translate(-50%,0);
    cursor: pointer;
}