//  =================
//      Imports
//  =================

@import '../../assets/base/color_variables';    // Color Variables
@import '../../assets/base/fonticons';              // Fonticons Variables
@import '../../assets/base/urls';                   // URLS Variables
@import '../../assets/base/utilities_variables';  // Utilities Variables


#filter {
	box-shadow: none;
	ul {
		li {
			#clear-completed {
				&:active {
					position: $pos-rel;
					float: $align-right;
					margin: 3px;
					padding: 3px 6px;
					background-color: $color_none;
					border: 1px $solid $color_none;
					border-radius: 5px;
				}
			}
		}
	}
}
.block_list {
	padding: 20px 0;
	background-color: $white;
}
.todo-l {
	.btn {
		&:not(:disabled) {
			&:not(.disabled) {
				text-transform: uppercase;
			}
		}
	}
}
ul {
	margin: 0;
	padding: 0;
	list-style: none;
}
.block_list_tags {
	padding-left: 30px;
	height: 139px;
	li {
		color: $color_375;
		float: left;
		margin: 8px 20px 10px 0;
		padding: 5px 10px;
		min-width: 10px;
		background-color: $white;
		text-align: $align-center;
	}
}
.block_list_words {
	li {
		background-color: $white;
		padding: 15px 35px 15px 30px;
		color: $additional-color-11;
		border-bottom: 1px $solid $light-gray;
		font-size: 15px;
		font-weight: 600;
	}
}
.js-remove {
	float: $align-right;
	font-style: normal;
	color: $color_56;
	&:hover {
		cursor: pointer;
	}
}
.ply-ok {
	background-color: $color_55;
	color: $white;
	font-weight: normal;
}
button {
	outline: none;
}
input[type="checkbox"] {
	outline: none;
}
.hidden {
	display: none;
}
#todoapp {
	position: $pos-rel;
	width: 100%;
	box-shadow: none;
	input {
		&::-webkit-input-placeholder {
			font-style: italic;
			font-weight: 300;
			color: $color_375;
		}
		&::-moz-placeholder {
			font-style: italic;
			font-weight: 300;
			color: $color_375;
		}
		&::input-placeholder {
			font-style: italic;
			font-weight: 300;
			color: $color_375;
		}
	}
	h1 {
		position: $pos-abs;
		top: -155px;
		width: 100%;
		font-size: 100px;
		font-weight: 100;
		text-align: $align-center;
		color: $color_593;
		-webkit-text-rendering: optimizeLegibility;
		-moz-text-rendering: optimizeLegibility;
		text-rendering: optimizeLegibility;
	}
}
.edit {
	position: $pos-rel;
	margin: 0;
	width: 100%;
	font-size: 24px;
	font-family: inherit;
	font-weight: inherit;
	line-height: 1.4em;
	border: 0;
	outline: none;
	color: inherit;
	padding: 6px;
	border: 1px $solid $color_299;
	-webkit-box-shadow: inset 0 -1px 5px 0 rgba(0, 0, 0, 0.2);
	box-shadow: inset 0 -1px 5px 0 rgba(0, 0, 0, 0.2);
	-webkit-box-sizing: border-box;
	box-sizing: border-box;
	-webkit-font-smoothing: antialiased;
	-moz-font-smoothing: antialiased;
	font-smoothing: antialiased;
}
#new-todo {
	padding: 16px 16px 16px 60px !important;
	border: none !important;
	background: $white;
	color: $additional-color-11 !important;
	position: $pos-rel;
	margin: 0;
	width: 100%;
	font-size: 22px;
	font-family: inherit;
	font-weight: inherit;
	line-height: 1.4em;
	outline: none;
	border: 1px $solid $light-gray;
	-webkit-box-sizing: border-box;
	box-sizing: border-box;
	-webkit-font-smoothing: antialiased;
	-moz-font-smoothing: antialiased;
	font-smoothing: antialiased;
}
#main {
	position: $pos-rel;
	z-index: 2;
	border-top: 1px $solid $light-gray;
	label[for="toggle-all"] {
		background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="40" height="40" viewBox="-10 -18 100 135"><circle cx="50" cy="50" r="50" fill="#a2a3a3" stroke="#fff" stroke-width="3"/></svg>');
	    background-repeat: no-repeat;
	    background-position: center left;
	    width: 60px;
	    height: 34px;
	    font-size: 0;
	    position: absolute;
	    top: -49px;
	    left: 1px;
	}
	#toggle-all {
		&:checked {
			&+label[for="toggle-all"] {
				background-image: url('data:image/svg+xml;utf8,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%2240%22%20height%3D%2240%22%20viewBox%3D%22-10%20-18%20100%20135%22%3E%3Ccircle%20cx%3D%2250%22%20cy%3D%2250%22%20r%3D%2250%22%20fill%3D%22none%22%20stroke%3D%22%23bddad5%22%20stroke-width%3D%223%22/%3E%3Cpath%20fill%3D%22%235dc2af%22%20d%3D%22M72%2025L42%2071%2027%2056l-4%204%2020%2020%2034-52z%22/%3E%3C/svg%3E');
			}
		}
	}
}
#toggle-all {
	position: $pos-abs;
	top: -53px;
	left: -9px;
	width: 60px;
	height: 34px;
	text-align: $align-center;
	border: none;
}
#todo-list {
	margin: 0;
	padding: 0;
	list-style: none;
	li {
		position: $pos-rel;
		font-size: 20px;
		border-bottom: 1px $solid $light-gray;
		background-color: $white;
		color: $additional-color-11;
		.toggle {
			text-align: $align-center;
			width: 40px;
			height: auto;
			position: $pos-abs;
			top: 0;
			bottom: 0;
			margin: auto 0;
			border: none;
			-webkit-appearance: none;
			appearance: none;
			&:checked {
				&+label {
					background-image: url('data:image/svg+xml;utf8,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%2240%22%20height%3D%2240%22%20viewBox%3D%22-10%20-18%20100%20135%22%3E%3Ccircle%20cx%3D%2250%22%20cy%3D%2250%22%20r%3D%2250%22%20fill%3D%22none%22%20stroke%3D%22%23bddad5%22%20stroke-width%3D%223%22/%3E%3Cpath%20fill%3D%22%235dc2af%22%20d%3D%22M72%2025L42%2071%2027%2056l-4%204%2020%2020%2034-52z%22/%3E%3C/svg%3E');
				}
			}
		}
		label {
			white-space: pre-line;
			word-break: break-all;
			padding: 15px 60px 15px 15px;
			margin-left: 45px;
			display: block;
			line-height: 1.2;
			-webkit-transition: color 0.4s;
			transition: color 0.4s;
			background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="40" height="40" viewBox="-10 -18 100 135"><circle cx="50" cy="50" r="50" fill="#a2a3a3" stroke="#fff" stroke-width="3"/></svg>');
		    background-repeat: no-repeat;
		    background-position: center left;
		}
		.destroy {
			display: none;
			position: $pos-abs;
			top: 0;
			right: 10px;
			bottom: 0;
			width: 40px;
			height: 40px;
			margin: auto 0;
			font-size: 26px;
			color: $color_63;
			margin-bottom: 11px;
			-webkit-transition: color 0.2s ease-out;
			transition: color 0.2s ease-out;
			background: none;
			border: none;
			&:hover {
				color: $color_591;
			}
			&:after {
				content: '×';
			}
		}
		&:hover {
			.destroy {
				display: block;
			}
		}
		.edit {
			display: none;
		}
	}
	li.editing {
		padding: 0;
		.edit {
			display: block;
			width: 100%;
			padding: 13px 17px 12px 17px;
			margin: 0 0 0 0;
			border: none;
			background-color: $color_590;
		}
		.view {
			display: none;
		}
		&:last-child {
			margin-bottom: -1px;
		}
	}
	li.completed {
		label {
			color: $color_592;
			text-decoration: line-through;
		}
	}
}
.view {
	label {
		margin-bottom: 0px;
	}
}
#todo-footer {
	position: $pos-rel;
	float: left;
	width: 100%;
	padding: 28px 10px;
	text-align: $align-center;
	color: $additional-color-4;
	background-color: $white;
	&:before {
		content: '';
		position: $pos-abs;
		right: 0;
		bottom: 0;
		left: 0;
		height: 50px;
		overflow: hidden;
	}
}
#filters {
	li {
		a {
			position: $pos-rel;
			float: left;
			color: inherit;
			margin: 3px;
			padding: 3px 10px;
			text-decoration: none;
			border: 1px $solid $color_none;
			border-radius: 4px;
			&:hover {
				border-color: $color_375;
			}
		}
		a.selected {
			border-color: $color_375;
			border-color: $additional-color-11;
			color: $additional-color-11;
		}
	}
}
#clear-completed {
	position: $pos-rel;
	float: $align-right;
	margin: 3px;
	padding: 3px 6px;
	background-color: $color_none;
	border: 1px $solid $color_none;
	border-radius: 5px;
	&:hover {
		background-color: $color_47;
		border: 1px $solid;
		color: $white;
		border-color: $white;
	}
}
#info {
	margin: 65px auto 0;
	color: $color_363;
	font-size: 10px;
	text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
	text-align: $align-center;
	p {
		line-height: 1;
	}
	a {
		color: inherit;
		text-decoration: none;
		font-weight: 400;
		&:hover {
			text-decoration: underline;
		}
	}
}
input[type=file] {
	&:focus {
		outline: none;
	}
}
input[type=checkbox] {
	&:focus {
		outline: none;
	}
}
input[type=radio] {
	&:focus {
		outline: none;
	}
}
/*
    Hack to remove background from Mobile Safari.
    Can't use it globally since it destroys checkboxes in Firefox
*/
@media screen and (-webkit-min-device-pixel-ratio:0) {
	#toggle-all {
		background: none;
		-webkit-appearance: none;
		appearance: none;
	}
	#todo-list {
		li {
			.toggle {
				background: none;
				height: 40px;
			}
		}
	}
}
@media screen and (max-width: 1199px) {
	#new-todo {
		padding: 19px 19px 19px 44px !important;
		font-size: 16px;
	}
	#toggle-all {
		top: -48px;
	}
	#todo-list {
		li {
			font-size: 16px;
			label {
				padding: 15px 15px 15px 15px;
				margin-left: 25px;
			}
		}
	}
	#todo-footer {
		padding: 20px 2px;
	}
	#filters {
		li {
			a {
				margin: 1px;
				padding: 1px 3px;
				font-size: 12px;
			}
		}
	}
	#clear-completed {
		margin: 1px;
		padding: 1px 3px;
		font-size: 12px;
	}
	#filter {
		ul {
			li {
				#clear-completed {
					&:active {
						margin: 1px;
						padding: 1px 3px;
						font-size: 12px;
					}
				}
			}
		}
	}
}
