
@media only screen and (max-width: 320px){html{font-size: 9px;} }
@media only screen and (min-width: 320px) and (max-width: 352px){html{font-size: 10px;} }
@media only screen and (min-width: 352px) and (max-width: 384px){html{font-size: 11px;} }
@media only screen and (min-width: 384px) and (max-width: 416px){html{font-size: 12px;} }
@media only screen and (min-width: 416px) and (max-width: 448px){html{font-size: 13px;} }
@media only screen and (min-width: 448px) and (max-width: 480px){html{font-size: 14px;} }
@media only screen and (min-width: 480px) and (max-width: 512px){html{font-size: 15px;} }
@media only screen and (min-width: 512px) and (max-width: 544px){html{font-size: 16px;} }
@media only screen and (min-width: 544px) and (max-width: 576px){html{font-size: 17px;} }
@media only screen and (min-width: 576px) and (max-width: 608px){html{font-size: 18px;} }
@media only screen and (min-width: 608px) and (max-width: 640px){html{font-size: 19px;} }
@media only screen and (min-width: 640px){html{font-size: 20px;} }


html {
    background:url("http://ob9qd20l4.bkt.clouddn.com/bg3.jpg") repeat center center;
    font-family: Arial;
    margin:0;
    padding:0;
}


header {
    display: block;
    margin: 1.5rem auto 0.5rem;
    width: 21rem;
    text-align: center;
    position: relative;
    font-size:1rem;
    opacity: 0.9;
}

header #new_game_button {
    position: absolute;
    left:0px;
    top:0.25rem;
    width: 5rem;
    padding: 1.4rem 1rem;
    background-color: #8f7a66;
    color: white;
    border-radius: 0.5rem;
    text-decoration: none;
}

header #come_back_button{
    position: absolute;
    right:0px;
    top:0.25rem;
    width: 5rem;
    padding: 1.4rem 1rem;
    background-color: #8f7a66;
    color: white;
    border-radius: 0.5rem;
    text-decoration: none;
}

header #new_game_button:hover ,#come_back_button:hover{
    background-color: #9f8b77;
}

header p {
    display: block;
    width:4rem;
    margin: 0 auto;
    font-size:1.5rem;
    padding: 1.4rem 1rem;
    background-color: #8f7a66;
    color: white;
    border-radius: 0.5rem;
}

#grid_container {
    width: 23rem;
    height: 23rem;
    padding: 1rem;
    margin: 0px auto;
    background-color: #bbada0;
    border-radius: 0.5rem;
    position: relative;
    opacity: 0.9;
}

.grid_cell {
    width: 5rem;
    height: 5rem;
    border-radius: 0.3rem;
    background-color: #ccc0b3;
    position: absolute;// 生成绝对定位的元素,相对于 static 定位以外的第一个父元素进行定位。---变为块，脱离文档流
}

.number_cell {
    border-radius: 0.3rem;
    font-weight: bold;
    font-size: 3rem;
    line-height: 5rem;
    text-align: center;
    position: absolute;
}