.nonograms .info {
	margin: 20px auto;
	text-align: center;
}
.nonograms .body {
	position: relative;
	padding: 1em;
}

.nonograms #board {
	position: relative;
	margin: 4px auto;
}

.nonograms .message {
	display: none;
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	background-color: #fff;
	text-align: left;
	padding: 1em;
	z-index: 100;
}

.nonograms .message .head {
	margin-bottom: 12px;
}

.nonograms .message h2 {
	margin: 0;
	padding: 0;
	font-size: 1.2em;
	float: left;
}

.nonograms .message .close {
	float: right;
}

.nonograms .message .close::before {
	content: "❌ ";
}

.nonograms #gameOver {
	display: none;
	position: absolute;
	text-align: center;
	margin: 0 auto;
	align-items: center;
	cursor: pointer;
}

.nonograms #board table {
	border-collapse: collapse;
	border: 2px solid #404040;
	background: #ffffff;
	line-height: 10px;
	user-select: none;
	-moz-user-select: none;
}

.nonograms #board tr {
	height: 18px;
}

.nonograms #board td,
.nonograms #board th {
	border: 1px solid #404040;
	min-width: 19px;
}

.nonograms #board th div {
	cursor: pointer;
}

.nonograms #board th {
	padding: 1px;
}

.nonograms #board th span {
	cursor: pointer;
	padding: 0 3px;
}

.nonograms #board th {
	vertical-align: middle;
	text-align: right;
	font-size: 15px;
}

.nonograms #board tr.nums {
	border-bottom: 2px solid #404040;
}

.nonograms #board tr.nums th {
	text-align: center;
	vertical-align: bottom;
	border-bottom: 2px solid #404040;
}

.nonograms #board th div {
	cursor: pointer;
	padding: 3px 0;
}

.nonograms #board .c5 {
	border-left: 2px solid #404040;
}

.nonograms #board .r5 {
	border-top: 2px solid #404040;
}

.nonograms #board .cr5 {
	border-left: 2px solid #404040;
	border-top: 2px solid #404040;
}

.nonograms #board .bt {
	border-top: 2px solid #404040;
}

.nonograms .nums {
	font-weight: bolder;
	cursor: default;
	color: #000;
}

.nonograms .numdone {
	color: #ff0000;
}

.nonograms .linia {
	background: #D1E2EF;
}
.nonograms .button {
	border: 2px solid;
	border-color: #80b0e0;
	background: #f0f0ff;
	color: #000;
	text-align: center;
	cursor: pointer;
	padding: 2px 4px;
}

.nonograms .button:hover {
	color: #0000ff;
}

.nonograms .rules {
	margin-bottom: 5em;
}
.nonograms .rules p {
	margin-bottom: 1em;
}
.nonograms .rules h2 {
	line-height: 2em;
	font-size: 130%;
	font-weight: normal;
}
.nonograms summary {
	cursor: pointer;
}
