* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

:root {
	--accent-dark-blue: #00415a;
	--deep-dark: rgb(26, 26, 26);
	--light-dark: rgb(79, 82, 92);
	--dark-blue: #045de9;
	--light-blue: #09c6f9;
	--light: #ddd;
	--color: #fff;
	--edit-green: rgb(15, 179, 69);
	--delete-red: tomato;
}

body {
	display: flex;
	justify-content: center;
	margin: 120px;
	font-family: 'Montserrat', sans-serif;
	background: var(--accent-dark-blue);
}

h1 {
	color: var(--color);
	margin-bottom: 20px;
	text-transform: uppercase;
	text-shadow: 1px 3px 3px var(--deep-dark);
}

.fas {
	pointer-events: none;
}

.todo {
	width: 80vw;
	border-radius: 5px;
	background: var(--color);
	box-shadow: 4px 4px 5px var(--light-dark);
	text-align: center;
}

.header {
	border-radius: 5px 5px 0 0;
	padding: 40px;
	background-image: linear-gradient(
		340deg,
		var(--dark-blue) 0%,
		var(--light-blue) 100%
	);
}

.todo-input {
	width: 80%;
	padding: 10px 20px;
	margin-right: 20px;
	border: none;
	border-radius: 5px;
	color: var(--light-dark);
	background-color: var(--color);
	transition: filter 0.3s;
}

.todo-input:hover {
	filter: drop-shadow(0px 4px 4px rgba(0, 0, 0, 0.4));
}

.error-info {
	margin-top: 20px;
	color: var(--dark-blue);
}

.btn-add {
	padding: 10px 22px;
	border: none;
	border-radius: 5px;
	color: var(--deep-dark);
	background-color: var(--color);
	text-transform: uppercase;
	cursor: pointer;
	filter: drop-shadow(0px 4px 4px rgba(0, 0, 0, 0.4));
	transition: color 0.3s, background-color 0.3s;
	margin-top: 10px;
}

.btn-add:hover {
	color: var(--color);
	background-color: var(--light-dark);
}

.todolist {
	padding: 20px 0;
}

.todolist h3 {
	text-transform: uppercase;
	margin-bottom: 16px;
	filter: drop-shadow(0px 4px 4px var(--light-dark));
}

.todolist li {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-weight: 500;
	margin: 15px;
	padding-left: 20px;
	text-align: left;
	list-style: none;
	background-color: var(--light);
	filter: drop-shadow(0px 4px 4px rgba(0, 0, 0, 0.4));
}

.tools {
	display: inline-block;
}

.tools button {
	padding: 15px 10px;
	border: none;
	background-color: transparent;
	cursor: pointer;
	transition: background-color 0.3s;
}

.tools button:hover {
	background-color: var(--light);
}

.complete {
	color: var(--dark-blue);
}

.edit {
	font-weight: bold;
	color: var(--edit-green);
}

.delete {
	color: var(--delete-red);
}

.completed {
	font-size: 12px;
	color: var(--light-dark);
	text-decoration: line-through;
	font-style: italic;
}

.popup {
	display: none;
	justify-content: center;
	align-items: center;
	flex-direction: column;
	position: fixed;
	bottom: 20px;
	left: 50%;
	transform: translateX(-50%);
	width: 80vw;
	color: var(--color);
	background-color: var(--light-dark);
	border-radius: 5px;
}

.popup h3 {
	padding: 20px;
}

.popup-info {
	color: var(--color);
	margin-bottom: 20px;
}

.popup-body {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	width: 90%;
	padding: 10px;
}

.popup-input {
	width: 80%;
	padding: 10px 20px;
	border: none;
	border-radius: 5px;
	color: var(--light-dark);
	background-color: var(--color);
}

.popup-btn {
	width: 30%;
	display: inline-block;
	padding: 10px 5px;
	margin: 20px;
	border: none;
	border-radius: 5px;
	color: var(--deep-dark);
	background-color: var(--color);
	text-transform: uppercase;
	cursor: pointer;
	transition: color 0.3s, background-color 0.3s;
}

.popup-btn:hover {
	color: var(--color);
	background-color: var(--dark-blue);
}
