.color-lines .body {
	padding: 0 10px;
}

.color-lines .game {
	display: grid;
	width: max-content;
	margin: 20px auto;
}

.color-lines .scores {
	display: grid;
	grid-template-columns: 1fr 1fr;
	background-color: #7590AE;
	padding: 6px;
	color: #fff;
}
.color-lines .scores span {
	font-weight: bold;
}
.color-lines .scores>div:last-child {
	text-align: right;
}
.color-lines #topScore.new {
	animation-name: newtopscore;
	animation-duration: 0.5s;
	animation-iteration-count: 5;
}

@keyframes newtopscore {
	0% {
		color: inherit;
	}

	25% {
		color: red;
	}

	50% {
		color: green;
	}

	75% {
		color: #3080D0;
	}
}

.color-lines #points {
	color: red;
	display: none;
	animation: flash 0.5s ease-in infinite;
}
@keyframes flash {
	0% { opacity: 0; }
	50% { opacity: 1; }
	100% { opacity: 0; }
}

.color-lines .table {
	display: inline-grid;
	grid-template-columns: repeat(9, 1fr);
	grid-template-rows: repeat(9, 1fr);
	background: #7590AE; /*#767676; */
	border: 1px solid #ddd;
}
.color-lines .cell {
	width: 36px;
	height: 36px;
	border: 1px solid #ddd;
}
.color-lines .cell img {
	margin: 2px;
	width: 32px;
	height: 32px;
}
.color-lines .cell img.selected {
	opacity: 1;
	animation: rotate 1.5s linear infinite;
}
@keyframes rotate {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

.color-lines #next img {
	width: 24px;
	margin-right: 8px;
}

.color-lines .controls {
	padding: 6px;
	background-color: #7590AE;
	color: #fff;
	display: grid;
	grid-template-columns: 1fr 1fr;
}
.color-lines .controls div:nth-child(2) {
	text-align: right;
	margin-top: 19px;
}

.color-lines .rules {
	margin-bottom: 3em;
}

.color-lines .rules p {
	margin-bottom: 1em;
}

.color-lines h2 {
	line-height: 2em;
	font-size: 130%;
	font-weight: normal;
}

@media screen and (max-width: 360px) {
	.color-lines .cell {
		width: 30px;
		height: 30px;
	}

	.color-lines .cell img {
		margin: 1px;
		width: 28px;
		height: 28px;
	}
}
.color-lines .game-over {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.5);
	justify-content: center;
	align-items: center;
	z-index: 1001;
}

.color-lines .game-over>div {
	background-color: white;
	padding: 20px;
	border-radius: 10px;
	text-align: center;
	color: black;
}
