html,body
{
    #width: 100%;
    height: 100%;
    border: 0px;
    overflow: auto;
}

body
{
    #margin: 0px;
    #padding: 0px;
    ##background: #E10A04 url('/inc/sudoku/backgroundx.png') repeat-x;
    #font-family: Arial;
    #color: #FFAEAE;
    #font-size: 16px;
}

table,tr,td,div
{
    margin: 0px;
    padding: 0px;
    border: 0px;
}

#DHlist {
	border: 1px solid #aaa;
	width: 80%;
	margin: 0 auto; /* 水平居中 */
}

tr:nth-child(even) {
	background: #f4f4f4;
}

th {
	background: #eee;
}
#list {
	border: 1px solid #aaa;
	width: 100%;
}
b
{
    color: #000000; ##FFFFFF;
    font-weight: bold;
}

#Main,#Content,#Footer
{
    width: 95%;
    margin: 0 auto;
}

a
{
    color: #FFAEAE;
    text-decoration: none;
}

a:hover
{
    color: #FFFFFF;
    text-decoration: none;
}

#Content
{
    float: left;
}

#Column1
{
    width: 95%;
    float: left;
}

#sudokuBoard
{
    width: 362px;
    #margin-left: 8px;
    margin-top: 12px;
    margin-bottom: 12px;
    #float: left;
    box-shadow: 0px 0px 30px #680301;
    -moz-box-shadow: 0px 0px 30px #680301;
    -webkit-box-shadow: 0 0 30px #680301;
}

#Column2
{
    width: 95%;
    margin-left: 8px;
    #float: left;
}

td.boardCellGroupA,td.boardCellGroupB
{
    background-color: #7AB380;
}

td.boardCellGroupA td.boardCell
{
    width: 37px;
    height: 37px;
    border: 1px solid #8D9F7F;
    background-color: #45833b;
}

td.boardCellGroupB td.boardCell
{
    width: 37px;
    height: 37px;
    border: 1px solid #B19897;
    background-color: #71885E;
}

.staticValue
{
    font-family: Segoe UI, Arial;
    text-align: center;
    vertical-align: middle;
    font-size: 28px;
    color: #3F2D2D;
}

.staticValue,.editValue
{
    width: 35px;
    height: 35px;
    padding: 0px;
    margin: 0px;
    border: 1px solid #4e8146;
}

.editValue:hover
{
    background: #7AB380;
}

label
{
    position: relative;
    color: #333333;
}

select
{
    font-family: Arial;
    color: #999999;
    font-weight: normal;
    font-size: 16px;
    border-top: solid 1px #CCCCCC;
    border-left: solid 1px #E2E3EA;
    border-bottom: solid 1px #FFFFFF;
    border-right: solid 1px #E2E3EA;
    margin: 3px 0px;
    min-width: 100px;
    background: #FDFDFD;
}

.editValue input
{
    font-family: Segoe UI, Arial;
    font-size: 28px;
    color: #FFFFFF;
    width: 37px;
    /*height: 37px;*/
    padding: 0px;
    border: 0px;
    background: none !important;
    text-align: center;
    vertical-align: middle;
    position: relative;
    left: -1px;
}

input[type="submit"]
{
    font-family: Arial;
    font-size: 18px;
    color: #FFFFFF;
    text-transform: uppercase;
    border: 0px;
    min-width: 162px;
    min-height: 34px;
    #background: url('/inc/sudoku/submitBackground.png') repeat-x;
    margin: 8px 0px;
    cursor: pointer;
}

input[type="submit"].gameControls
{
    font-family: Arial;
    font-size: 16px;
    color: #FFFFFF;
    text-transform: uppercase;
    border: 0px;
    min-width: 28px;
    min-height: 28px;
    background: url('/inc/sudoku/submitSmallBackground.png') repeat-x;
    margin: 8px 0px;
    padding: 2px 16px;
    cursor: pointer;
}

input[type="submit"].gameControlsDark
{
    font-size: 16px;
    color: #FFFFFF;
	background-color: #222;
    text-transform: uppercase;
    border: 0px;
    min-width: 28px;
    min-height: 28px;
    margin: 8px 0px;
    padding: 2px 16px;
    cursor: pointer;
}

input[type="submit"].gameControlsepm
{
    font-size: 16px;
    color: #333333;
	background-color: #CCE8CF;
    text-transform: uppercase;
    border: 0px;
    min-width: 28px;
    min-height: 28px;
    margin: 8px 0px;
    padding: 2px 16px;
    cursor: pointer;
}

.gameControlSet
{
    #height: 46px;
    #position: relative;
    #top: 8px;
	margin-top: 8px;
	margin-bottom: 8px;
}

#buttonSolve
{
    margin-top: 119px;
    color: #FFAEAE;
}

#youWon
{
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0px;
    right: 0px;
}

#youWon div
{
    width: 360px;
    background: #19321C;
    font-size: 40px;
    color: #FFFFFF;
    text-align: center;
    padding: 40px;
    margin: 150px auto 0px auto;
}

small
{
    font-size: 14px;
    color: #FFFD7B;
}

.noErrors
{
    #font-size: 18px;
    font-weight: bold;
    color: #FF0000;
}

.errorsFound
{
    font-size: 18px;
    font-weight: bold;
    color: #FF0000;
}

.error
{
    border: 1px solid #FF0000;
}

/* 监听操作系统主题深色模式 */
@media (prefers-color-scheme: dark) {
	body,html {
		background: #0f0f0f;
		color: #eee;
	}
	tr:nth-child(even) {
		background: #242424;
	}
	th {
		background: #242424;
	}
	a:link {
		color: #eee;
		text-decoration: none;
	}
	a:visited {
		color: #eee;
		text-decoration: none;
	}
	a:hover {
		color: #d2d2d2;
		text-decoration: underline;
	}
	a:active {
		color: #00F;
		text-decoration: underline;
	}
}


/*定义竖屏 css*/
@media screen and (orientation:portrait){
	#DHlist {
		width: 98%;
	}
}