
body {
	position: relative;
	background-color: #FDFCF6;
}

#pageContainer {
	
}


#pageHeader {
	max-width: 420px;
	margin: 1em auto 0.5em;
	text-align: center;
	position: relative;
}

h1#pageHeader::after {
    content: " (Ideal for Desktop)";
    font-size: 0.5em;
	position: absolute;
    bottom: -4px;
    right: 8%;
}

#startPuzzleButton {
	position: absolute;
	top: 5px;
	left: 0;
}

#gameOptionsMenu {
	margin-top: 0.7em;
	float: right;
}

#gameOptionsMenu .menu #loggedInUserOptionsHeader.header {
	margin-bottom: 0;
}


.puzzleActionsContainer {
	width: calc(100vw - 2em);
    max-width: 420px;
}

.puzzleActionsContainer.top {
	padding-top: 1em;
	margin: 0 auto 1em auto;
}

.puzzleActionsContainer.bottom {
	padding-bottom: 1em;
	margin: 1em auto 0 auto;
}

#puzzleOptionsContainer {
	border-top: 2px solid #DDD;
	padding-top: 2em;
	margin: 1em auto 6em auto;
	width: calc(100vw - 2em);
    max-width: 420px;
	text-align: center;
}

#puzzleOptionsContainer > * {
	text-align: left;
	
}


#cancelNewPuzzleEntryButton.hidden,
#startNewPuzzleDropdown.hidden,
#saveNewPuzzleDropdown.hidden {
	display: none;
}


#keyboardInstructions {
	border-top: 2px solid #DDD;
	padding-top: 2em;
	margin: 1em auto 6em auto;
	width: calc(100vw - 2em);
    max-width: 420px;
	text-align: center;

	margin-bottom: 20em !important;
	/* padding-bottom: 20em !important; */
}

#keyboardInstructions > * {
	text-align: left;
}

#puzzleOptionsContainer > .optionSet {
	margin-bottom: 2em;
}

#puzzleOptionsContainer > .optionSet.disabled {
	cursor: not-allowed;
}

#puzzleOptionsContainer > .optionSet.disabled > * {
	pointer-events: none;
	opacity: 0.4;
}

#puzzleOptionsContainer > .optionSet p {
	font-size: 0.8em;
	font-weight: bold;
	padding: 2px 0 0 3px;
	margin: 0 0 0 !important;
}

#keyboardInstructions > .optionSet {
	margin-bottom: 1.5em;
}

#keyboardInstructions #keyboardArrowKeys {
	width: 100px;
	display: inline-block;
}

#keyboardInstructions #keyboardArrowKeys > .icon {
	float: left;
	margin: 0;
	color: #555;
	font-size: 2em;
}

#keyboardInstructions #keyboardArrowKeys > .icon.invisible {
	visibility: hidden; /* still takes space */
}


#keyboardInstructions .arrowKeyInstructions .text {
	display: inline-block;
	height: 42px;
	vertical-align: middle;
}

#keyboardInstructions .backspaceKey,
#keyboardInstructions .deleteKey,
#keyboardInstructions .zeroKey {

	border: 2px solid #555;
	color: #555;

	border-top-left-radius: 10px 5px;
	border-bottom-right-radius: 10px 5px;

	border-top-right-radius: 5px;
	border-bottom-left-radius: 5px;
	position: relative;

	display: inline-block;

	padding: 3px 12px;
}

#keyboardInstructions .deleteKey,
#keyboardInstructions .zeroKey {
	vertical-align: bottom;
	height: 33.64px;
}

#keyboardInstructions .zeroKey {
	padding: 5px 10px 3px 10px;
}


#keyboardInstructions .backspaceKey .backArrow {
	position: absolute;
	bottom: -1px;
	left: 15px;
}

#keyboardInstructions .backspaceKey .icon {
	transform: scale(2, 1);
}

#keyboardInstructions .backspaceKey span {
	font-size: 0.65em;
	vertical-align: super;
}

#keyboardInstructions .deleteKey span {
	font-size: 0.65em;
}


#keyboardInstructions .emptyKeyInstructions .key:hover {
	color: #FFF;
	background-color: #555;
}









#fixMeNotes {
	position: absolute;

	top: 10px;
	right: 10px;

	background-color: #ffe3b0;
	padding: 24px;

	width: 200px;
}

#initialNumberLockContainer,
#skipOverLockedNumbersContainer {
	margin-bottom: 2em;
}

.clearBoth {
	clear: both;
}


#savePuzzleModal #puzzleDifficultyLabel {
	color: #FFF;
}

#savePuzzleModal #puzzleDifficultyLabel.easy {
	background-color: #83BB3A;
}

#savePuzzleModal #puzzleDifficultyLabel.medium {
	background-color: #FFA11F;
}

#savePuzzleModal #puzzleDifficultyLabel.hard {
	background-color: #FF245B;
}

#savePuzzleModal .header,
#savePuzzleModal .actions {
	text-align: center;
}

#savePuzzleModal .content {
	padding: 2% 15%;
}





#puzzleCompleteModal,
#loadSavedPuzzleModal,
#puzzleCompleteModal .actions,
#loadSavedPuzzleModal .actions {
	text-align: center;
}



#savedPuzzleStatesContiner {
	border: 1px solid #999;
}

#puzzleStateName {
	margin: 24px 0;
}

#puzzleStateName div {
	font-weight: bold;
}

#inputInfo {
	font-style: italic;
}

#puzzleModeBorder {
	position: relative;
	border: 1px solid #DDD;
	padding: 1.5em;
	border-radius: 4px;
	min-width: calc(542px + 3em);
}

#puzzleInputModeContainer,
#cellInputModeContainer {
	margin: 18px 0;
}

#puzzleInputModeContainer button,
#cellInputModeContainer button {
	border: 1px solid #333;
    border-radius: 2px;
    padding: 2px 6px;
}

#puzzleInputModeContainer .active,
#cellInputModeContainer .active {
	background-color: #BBB;
}

#puzzleInputModeContainer {
	position: absolute;
	top: -2em;
	left: 1.5em;
	background-color: #FFF;
	padding: 0 1.5em;
}

#puzzleContainer {
	text-align: center;
}



#puzzle {
	width: calc(100vw - 2em);
	max-width: 420px;
	display: inline-block;
	position: relative;
	padding: 2px 0 2px 2px;
	border: 2px solid #fdfcf6;
}


#puzzleClearButton {
	top: -2px;
	left: -34px;
}

#puzzleResetButton {
	top: 42px;
	left: -34px;
}





#puzzleClearButton,
#puzzleResetButton,
#userPuzzleIndicator {
	display: none;
	position: absolute;
	border-top-left-radius: 4px;
	border-bottom-left-radius: 4px;
	cursor: pointer;
	padding: 6px 4px;
}

#userPuzzleIndicator {
	top: 78px;
	height: 159px;
	width: 28px;
	right: -30px;
	padding-top: 0.25em;
	color: #fdfcf6;
	border-radius: unset;
	border-top-right-radius: 4px;
	border-bottom-right-radius: 4px;
}

#userPuzzleIndicator > div {
    position: absolute;
    top: 83px; 
    right: -50px;
    rotate: 90deg;
    width: 130px;
}



#puzzleClearButton > .icon,
#puzzleResetButton > .icon,
#userPuzzleIndicator > .icon {
	color: #fdfcf6;
	padding: 1px 2px 8px 7px;
	height: 22px;
	width: 21px;
}

#puzzleResetButton > .icon {
	padding-left: 4px;
}

#userPuzzleIndicator > .icon {
	padding-left: 0;
}





#puzzleClearButton.newPuzzleEntryMode,
#puzzleResetButton.newPuzzleEntryMode {
	display: block;
	background-color: #513445;
}

#puzzleClearButton.easy,
#puzzleResetButton.easy,
#userPuzzleIndicator.easy {
	display: block;
	background-color: #83bb3a;
}

#puzzleClearButton.medium,
#puzzleResetButton.medium,
#userPuzzleIndicator.medium {
	display: block;
	background-color: #ffa11f;
}

#puzzleClearButton.hard,
#puzzleResetButton.hard,
#userPuzzleIndicator.hard {
	display: block;
	background-color: #ff245b;
}



#puzzle.newPuzzleEntryMode {
	border: 2px solid #513445;
}
#puzzle.newPuzzleEntryMode::before {
	content: "New Puzzle Entry";
	background-color: #513445;
	color: #FFF;
	position: absolute;
	padding:4px 6px;
	top: 44px;
    right: -76px;
	rotate: 90deg;
	border-top-left-radius: 4px;
	border-top-right-radius: 4px;
}


#puzzle.playingMode.easy {
	border: 2px solid #83bb3a;
}
#puzzle.playingMode.easy::after {
	content: "EASY";
	background-color: #83bb3a;
	color: #FFF;
	position: absolute;
	padding:4px 6px;
	top: 7px;
	right: -38px;
	rotate: 90deg;
	border-top-left-radius: 4px;
	border-top-right-radius: 4px;
}



#puzzle.playingMode.medium {
	border: 2px solid #ffa11f;
}
#puzzle.playingMode.medium::after {
	content: "MEDIUM";
	background-color: #ffa11f;
	color: #FFF;
	position: absolute;
	padding:4px 6px;
	top: 19.5px;
    right: -50px;
	rotate: 90deg;
	border-top-left-radius: 4px;
	border-top-right-radius: 4px;
}



#puzzle.playingMode.hard {
	border: 2px solid #ff245b;
}
#puzzle.playingMode.hard::after {
	content: "HARD";
	background-color: #ff245b;
	color: #FFF;
	position: absolute;
	padding:4px 6px;
	top: 10px;
	right: -40px;
	rotate: 90deg;
	border-top-left-radius: 4px;
	border-top-right-radius: 4px;
}








#puzzle > .cell {
	float: left;
	font-size: 2em;
	margin: 0;
	padding: 0;
	border: 1px solid #DDD;
	width: calc((100% - 2px) / 9);
	height: 1.6em;
	position: relative;
	z-index: 0;
	background-color: #fefdf9; /* #fdfcf6; */ /* off-white */
}



#puzzle .numberInput {
	height: calc(100% - 2px);
	margin: 1px;
	border-radius: 0;
	border: 0;
	text-align: center;
	box-shadow: none;
	width: calc(100% - 2px);
	background: transparent;
	padding-left: 0;
	padding-right: 0;

	transition: color 0.7s, box-shadow 0.7s;

	-moz-appearance: textfield;

	position: relative;
	z-index: 1;
}

#puzzle.PickACellMode .numberInput {
	cursor: pointer;
}



#puzzle .numberInput::-webkit-inner-spin-button,
#puzzle .numberInput::-webkit-outer-spin-button {
	-webkit-appearance: none; 
	margin: 0;
}


#puzzle > .cell.given {
	background-color: #EFEFEF;
}

#puzzle > .cell.activeRow {
	background-color: #ffffeb;
}

#puzzle > .cell.given.activeRow,
#puzzle > .cell.given.activeColumn {
	background-color:  #f2f2e8; /* #fbfbef */
}

#puzzle > .cell.locked {
	pointer-events: none;
}


#puzzle > .cell.like-number {
	background-color: rgba(71, 9, 44, 0.1);
}


#puzzle > .cell.activeColumn {
	background-color: #ffffeb;
}

#puzzle > .cell.activeColumn.activeRow {
	background-color: #fcf8ec;
}


#puzzle > .cell:not(.empty).editing {
	background-color: rgba(71, 9, 44, 0.05) !important;
	/* background-color: transparent !important; */
}


#puzzle > .cell > .numberInput.conflict {
	color: #B00;
	box-shadow: inset 0 0 5px 0 #B00;

	transition: color 0.7s, 'box-shadow' 0.7s
}


#puzzle > .cell > .numberInput.conflictArea {
	background-color: #fcf2f2 !important;
}


#puzzle > .cell.solved > .numberInput {
	color: #909;
}

#puzzle > .cell.auto-solved > .numberInput {
	background-color: #b8d0c9;
}



#puzzle .cell.column2,
#puzzle .cell.column5 {
	border-right: 1px solid #666;
}
#puzzle .cell.column3,
#puzzle .cell.column6 {
	border-left: 1px solid #666;
}



#puzzle .cell.row2,
#puzzle .cell.row5 {
	border-bottom: 1px solid #666;
}
#puzzle .cell.row3,
#puzzle .cell.row6 {
	border-top: 1px solid #666;
}


/*  $cells.filter(':not([data-row="3"])').addClass('overlayed') */

#puzzle .cell.overlayed {
	box-shadow: inset 0px 0px 70px -20px #000;
}


/*  $cells.filter('[data-row="3"]').addClass('floatedAboveOverlay') */

#puzzle .cell.floatedAboveOverlay {
	position: relative;
	z-index: 100;
}


#puzzle .cell.excludedFromSolution {
	box-shadow: inset 0 0 5px 0 #B00;
}

#puzzle .cell.adjacentRowSolution > input {
	color: #B00;
}

#puzzle .cell.suggestedSolution {
	box-shadow: inset 0 0 5px 0 #060;
	background-color: #ecffec;
}

#puzzle .cell.suggestedSolution > .numberInput {
	color: #090;
}


#solutionSuggestionField {
	border: 1px solid #34212c;
	border-radius: 4px;
	padding: 1em;
}

#solutionSuggestionField > label {
	font-weight: bold;
}

#solutionSuggestionField .optionSeparator {
	margin: 10px calc(50% - 10px);
}

#solutionSuggestionField .ui.input {
	margin-top: 6px;
}

#solutionSuggestionField .input label {
	padding: 9px;
	font-weight: bold;
}



@keyframes fadeOutAndInFrames {
    0% {
        display: block;
        opacity: 1;
    }

	49% {
		display: block;
        opacity: 0;
	}

	50% {
		display: none;
        opacity: 0;
	}

    51% {
        display: block;
        opacity: 0;
    }

    100% {
        display: block;
        opacity: 1;
    }
}

#puzzle .cell > .numberInput.repeatingFade {

	animation: fadeOutAndInFrames 2s infinite;

}


#pageOverlay {
	display: none;
	background-color: rgba(0, 0, 0, 0.5);
	z-index: 5;
	position: absolute;
	top: 0;
	left: 0;
	width: calc(100% * 7);
	height: calc(100% * 7);
}

#pageOverlay.active {
	display: block;
}



/*  ANNOTATIONS  */

.cell > .annotationBlock {
	width: 100%;

	position: absolute;

	top: 0;
	left: 0;

	margin: 0;
	padding: 3px 0 0 0;
}

#puzzle .annotation {
	position: absolute;
	width: 31%;
	height: 31%;
	font-family: Arial, sans-serif;
	font-size: 0.5em;
	color: transparent;
	cursor: default;
	line-height: 1em;
}

#puzzle .cell.empty .annotation.selected {
	color: #572752;
}

#puzzle .annotation.top {
	top: 3%;
}

#puzzle .annotation.middle {
	top: 35%;
}

#puzzle .annotation.bottom {
	top: 67%;
}

#puzzle .annotation.left {
	left: 3%;
}

#puzzle .annotation.center {
	left: 35%;
}

#puzzle .annotation.right {
	left: 67%;
}


#puzzle.showAnnotations .annotation {
	color: #555;
}




#puzzle.annotationMode .numberInput {
	pointer-events: none;
	z-index: 0;
}


#puzzle.annotationMode .cell.empty .annotation:hover {
	color: #FDFCF6 !important;
	background-color: #8e8487;
}

#puzzle.annotationMode .cell.empty .annotation.selected:hover {
	color: #482542 !important;
}


#puzzle.annotationMode .cell.empty:hover .annotation:not(.selected) {
	color: #c1bab9;
}













/* - - - - - - - - - - - - - - - - - */

/*   NONAD OVERLAY    */

#nonadOverlay {
    height: calc(3.2em * 3 + 2px);
    width: calc((100% / 3) + 1px);
    opacity: 0.3;
    z-index: 100;
    position: absolute;
	pointer-events: none;
	display: none;

	transition: 'opacity' 0.7s;
}

#nonadOverlay.active {
	display: block;
}

#nonadOverlay.nonad0 {
	top: 2px;
	left: 1px;
}

#nonadOverlay.nonad1 {
	top: 2px;
	left: calc((100% / 3) - 2px);
}

#nonadOverlay.nonad2 {
	top: 2px;
	right: 3px;
}

#nonadOverlay.nonad3 {
	top: calc((3.2em * 3) + 1px);
	left: 0px;
}

#nonadOverlay.nonad4 {
	top: calc((3.2em * 3) + 1px);
	left: calc((100% / 3) - 2px);
}

#nonadOverlay.nonad5 {
	top: calc((3.2em * 3) + 1px);
	right: 3px;
}

#nonadOverlay.nonad6 {
	top: calc((3.2em * 6) + 1px);
	left: 1px;
}

#nonadOverlay.nonad7 {
	top: calc((3.2em * 6) + 1px);
	left: calc((100% / 3) - 2px);
}

#nonadOverlay.nonad8 {
	top: calc((3.2em * 6) + 1px);
	right: 3px;
}



#nonadOverlay > .cornerBracket {
	height: 12px;
	width: 12px;
	position: absolute;

	transition: 'border-color' 0.7s;
}

#nonadOverlay > .cornerBracket.top {
	top: -4px;
	border-top: 3px solid #34212c;
}

#nonadOverlay > .cornerBracket.right {
	right: -4px;
	border-right: 3px solid #34212c;
}

#nonadOverlay > .cornerBracket.bottom {
	bottom: -4px;
	border-bottom: 3px solid #34212c;
}

#nonadOverlay > .cornerBracket.left {
	left: -4px;
	border-left: 3px solid #34212c;
}


#nonadOverlay.conflict {
	opacity: 0.9;
}
#nonadOverlay.conflict > .cornerBracket {
	border-color: #B00;
}


/*     END OF NONAD OVERLAY    */

/* - - - - - - - - - - - - - - - - - */









.puzzleOption {
	margin: 3px 6px;
	padding: 3px;
}

.puzzleOption:hover {
	background-color: #f2faff;
}

.puzzleOption > button {
	margin: 0 6px;
}


#enforceNumberRulesCheckbox~label::before,
#annotationModeCheckbox~label::before {
	background-color: rgb(93, 27, 87, 0.05);
}

#enforceNumberRulesCheckbox:focus~label::before,
#enforceNumberRulesCheckbox:hover~label::before,
#annotationModeCheckbox:focus~label::before,
#annotationModeCheckbox:hover~label::before {
    background-color: rgb(93, 27, 87, 0.15);
}

#enforceNumberRulesCheckbox:checked~label::before,
#annotationModeCheckbox:checked~label::before {
    background-color: #5d1b57; /* #34212c */
}

#puzzleActions {
	border-top: 1px solid #EEE;
	border-bottom: 2px solid #BBB;
	padding: 18px 0;
	margin: 18px 0 24px 0;
}

#numbersRemainingList {
	margin: 0;
	padding: 0;
	height: 62px;
}

#numbersRemainingList > li {
	float: left;
	width: 60px;
	height: 60px;
	list-style: none;
	border: 1px solid #DDD;
	color: #DDD;
    padding: 22px 24px;
}

#numbersRemainingList > li.active {
	color: #555;
	padding: 20px 21px;
	font-size: 2em;
	background-color: #d9e8e8;
}




@media only screen and (max-device-width: 520px) {

	#puzzleClearButton {
		top: -34px;
		left: -2px;
		border-bottom-left-radius: unset;
		border-top-right-radius: 4px;
	}


	#puzzleClearButton .icon,
	#puzzleResetButton .icon {
		width: 24px;
	}


	#puzzleResetButton {
		top: -34px;
		left: 46px;
		border-bottom-left-radius: unset;
		border-top-right-radius: 4px;
	}


	#puzzle.playingMode.easy::after {
		top: -29px;
		right: -2px;
		rotate: unset;
	}

	#puzzle.playingMode.medium::after {
		top: -29px;
		right: -2px;
		rotate: unset;
	}


	#puzzle.playingMode.hard::after {
		top: -29px;
		right: -2px;
		rotate: unset;
	}


	#puzzleContainer {
		margin-top: 3.5em
	}
	

}



