body {
	background: rgb(131,58,180);
	background: linear-gradient(135deg, rgba(131,58,180,1) 0%, rgba(253,29,29,1) 50%, rgba(252,176,69,1) 100%);
	background-size: 300% 300%;
	margin: 0;
	font-family: 'Poiret One', sans-serif;
	color: #fff;
}
h1 {
	font-size: 8em;
	margin: 0;
}
.container {
	display: flex;
	flex-flow: column;
	align-items: center;
    justify-content: space-evenly;
	height: 100vh;
	padding: 0 2em;
	transition: opacity 0.3s ease 0s;
}
.sudoku {
	display: grid;
	grid-template-columns: repeat(9, 1fr);
	grid-template-rows: repeat(9, 1fr);
	grid-column-gap: 5px;
	grid-row-gap: 5px;
	aspect-ratio: 1;
	padding: 5px;
}
.sub-block {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	grid-template-rows: repeat(3, 1fr);
	grid-column-gap: 5px;
	grid-row-gap: 5px;
/*	aspect-ratio: 1;*/
}
.sub-block-1 { grid-area: 1 / 1 / 4 / 4; }
.sub-block-2 { grid-area: 1 / 4 / 4 / 7; }
.sub-block-3 { grid-area: 1 / 7 / 4 / 10; }
.sub-block-4 { grid-area: 4 / 1 / 7 / 4; }
.sub-block-5 { grid-area: 4 / 4 / 7 / 7; }
.sub-block-6 { grid-area: 4 / 7 / 7 / 10; }
.sub-block-7 { grid-area: 7 / 1 / 10 / 4; }
.sub-block-8 { grid-area: 7 / 4 / 10 / 7; }
.sub-block-9 { grid-area: 7 / 7 / 10 / 10; }

.sub-block:nth-child(odd) > .number{
	background: rgba(255, 255, 255, 0.2);
}
.number {
	display: flex;
  	align-items: center;
  	justify-content: center;
	border: 1px solid transparent;
	border-radius:  5px;
	font-size: 2.5rem;
}
.number:nth-child(1) { grid-area: 1 / 1 / 2 / 2; }
.number:nth-child(2) { grid-area: 1 / 2 / 2 / 3; }
.number:nth-child(3) { grid-area: 1 / 3 / 2 / 4; }
.number:nth-child(4) { grid-area: 2 / 1 / 3 / 2; }
.number:nth-child(5) { grid-area: 2 / 2 / 3 / 3; }
.number:nth-child(6) { grid-area: 2 / 3 / 3 / 4; }
.number:nth-child(7) { grid-area: 3 / 1 / 4 / 2; }
.number:nth-child(8) { grid-area: 3 / 2 / 4 / 3; }
.number:nth-child(9) { grid-area: 3 / 3 / 4 / 4; }

input.number {
	-webkit-appearance: none;
	background: none;
	color: white;
	border-color: white;
	text-align: center;
	font-family: 'Poiret One', sans-serif;
	font-size: 2.5rem;
	caret-color: transparent;
	transition: all 0.5s ease 0s;
}
input[type=number]::-webkit-inner-spin-button, 
input[type=number]::-webkit-outer-spin-button { 
  -webkit-appearance: none; 
}
input.number:hover {
	cursor: pointer;
	background: rgba(255,255,255,0.5) !important;
}
input.number:focus {
	outline: none;
	background: rgba(255,255,255,0.5) !important;
}
input.number.correct {
	color: green;
	border-color: green;
	-webkit-box-shadow:0px 0px 24px 5px rgba(45,255,196,0.5);
	-moz-box-shadow: 0px 0px 24px 5px rgba(45,255,196,0.5);
	box-shadow: 0px 0px 24px 5px rgba(45,255,196,0.5);
	transition: all 0.5s ease 0s;
}
input.number.incorrect {
	color: red;
	border-color: red;
	transition: all 0.5s ease 0s;
}
button {
	color: white;
	border:1px solid;
	border-radius: 5px;
	background: none;
	font-family: 'Poiret One', sans-serif;
	font-size: 2rem;
	padding: 0px;
}
button:hover {
	background: rgba(255,255,255,0.2);
	cursor: pointer;
}
#sudoku-buttons{
	display: flex;
	justify-content: space-between;
	padding: 5px;
}
#new-puzzle, #check-solution{
	aspect-ratio: 1;
}
.ui-dialog{
	position: absolute;
	border: 1px solid;
	border-radius: 5px;
	background: rgba(255,255,255,0.2);
	font-size: 1.5rem;
	padding: 5px;
}
.ui-dialog-titlebar, .ui-dialog-content, .ui-dialog-buttonpane{
	margin: 5px;
}
.ui-dialog-titlebar{
	border-bottom: 1px solid;
    padding-bottom: 10px;
}
.ui-dialog-titlebar-close{
	display: none;
}
.ui-dialog-content{
	padding: 20px 0;
}
.ui-dialog-buttonset{
	border-top: 1px solid;
    padding-top: 10px;
	display: flex;
	justify-content: space-between;
}
.ui-dialog-buttonset button{
	padding: 5px;
}

@media screen and (max-width: 500px) {
	.number, input.number {
		font-size: 1.8rem;
	}
	#sudoku-buttons button {
		font-size: 1.5rem;
	}
}

/* Gradient Animation */
body {
    -webkit-animation: GradientScroll 60s ease infinite;
    -moz-animation: GradientScroll 60s ease infinite;
    -o-animation: GradientScroll 60s ease infinite;
    animation: GradientScroll 60s ease infinite;
}

@-webkit-keyframes GradientScroll {
    0%{background-position:0% 50%}
    50%{background-position:100% 50%}
    100%{background-position:0% 50%}
}
@-moz-keyframes GradientScroll {
    0%{background-position:0% 50%}
    50%{background-position:100% 50%}
    100%{background-position:0% 50%}
}
@-o-keyframes GradientScroll {
    0%{background-position:0% 50%}
    50%{background-position:100% 50%}
    100%{background-position:0% 50%}
}
@keyframes GradientScroll {
    0%{background-position:0% 50%}
    50%{background-position:100% 50%}
    100%{background-position:0% 50%}
}