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

:root {
	font-size: 62.5%;
	--main: #13325b;
	--bg: #f8f8f4;
	--bg-light: #f6f6f3;
	--complete: #008f66;
	--delete: #b10631;
	--error: #c50737;
	--edit: #2d7ac8;
	--font-light: #fffcf4;
	--font-dark: #131616;
	--font-disabled: #4f525c;
	--hover: #0a5ac2;
	--hover-light: #c2c8d0;
	--main-gradient: linear-gradient(340deg, #073c83 0%, #13325b 100%);
}

body {
	display: flex;
	justify-content: center;
	margin-top: 10%;
	margin-bottom: 10%;
	font-family: "Montserrat", sans-serif;
	background-color: var(--bg);
}
/* HEADER */
.todo-app__header-input-box {
	display: flex;
	justify-content: center;
	align-items: center;
}
.todo-app__header-title {
	width: 100%;
	margin-bottom: 20px;
	font-size: 3.6rem;
	color: var(--font-light);
	text-transform: uppercase;
}

.fas {
	pointer-events: none;
}

.todo-app {
	width: min(800px, 90%);
	border-radius: 24px;
	background: #fff;
	box-shadow: 0px 0px 10px 4px rgba(82, 82, 82, 0.4);
	text-align: center;
}

.todo-app__header {
	border-radius: 24px 24px 0 0;
	padding: 40px;
	background-image: var(--main-gradient);
}

.todo-app__header-input {
	width: 80%;
	padding: 0.8em 1.6em;
	margin-right: 1.6em;
	font-size: 1.6rem;
	border: none;
	border-radius: 24px;
	color: var(--font-dark);
	background-color: var(--bg-light);
}
.todo-app__header-input:focus {
	outline: 2px solid var(--complete);
}
.todo-app__header-btn {
	padding: 0.8em 1.6em;
	font-size: 1.6rem;
	border: none;
	border-radius: 24px;
	color: var(--font-dark);
	background-color: var(--bg-light);
	cursor: pointer;
	transition:
		color 0.3s,
		background-color 0.3s;
}
.todo-app__header-btn:focus {
	outline: none;
}
.todo-app__header-btn:hover,
.todo-app__header-btn:focus {
	color: var(--font-light);
	background-color: var(--hover);
}
/* FILTER BUTTONS */
.todo-app__filters {
	display: flex;
	justify-content: flex-start;
	align-items: center;
	height: 72px;
	width: 100%;
	padding: 2em;
	background-color: var(--main);
}
.todo-app__filters-btn {
	margin-left: 1em;
	padding: 0.8em 1.6em;
	border-radius: 24px;
	font-size: 1.6rem;
	border: none;
	color: var(--font-dark);
	background-color: var(--bg-light);
	cursor: pointer;
	transition:
		color 0.3s,
		background-color 0.3s;
}

.todo-app__filters-btn:first-child {
	margin-left: 0;
}
.todo-app__filters-btn:focus {
	outline: none;
}
.todo-app__filters-btn:hover,
.todo-app__filters-btn:focus {
	color: var(--font-light);
	background-color: var(--hover);
}

/* LIST */
.todo-app__list-error-info {
	font-size: 1.6rem;
	margin-top: 20px;
	color: var(--error);
}

.todo-app__list {
	padding: 20px 0;
}

.todo-app__list-title {
	margin-bottom: 16px;
	font-size: 2rem;
	text-transform: uppercase;
	color: var(--font-dark);
}

.todo-app__list li {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin: 15px;
	padding: 0.6em 0.6em 0.6em 1.2em;
	font-size: 1.6rem;
	border-radius: 16px;
	text-align: left;
	list-style: none;
	background-color: var(--bg-light);
}
.todo-app__list span {
	flex: 1;
	word-break: break-word;
	overflow-wrap: anywhere;
}

.tools {
	display: inline-block;
	flex-shrink: 0;
}

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

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

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

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

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

.completed {
	font-size: 1.2rem;
	color: var(--font-disabled);
	text-decoration: line-through;
	font-style: italic;
}
/* POPUP */

.popup {
	display: none;
	justify-content: center;
	align-items: center;
	flex-direction: column;
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: min(800px, 90%);
	color: var(--font-light);
	background: var(--main-gradient);
	border-radius: 24px;
	z-index: 10;
}
.popup-shadow.active {
	content: "";
	position: fixed;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.85);
}

.popup-title {
	padding: 20px;
	font-size: 2rem;
}

.popup__body-info {
	padding-bottom: 0.2em;
	color: var(--font-light);
	border-bottom: 2px solid var(--error);
	margin-bottom: 20px;
}

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

.popup__body-input {
	width: 100%;
	padding: 10px 20px;
	border: none;
	border-radius: 24px;
	color: var(--font-dark);
	background-color: var(--bg-light);
}

.popup__body-btn {
	width: 30%;
	display: inline-block;
	padding: 0.8em 1.6em;
	margin: 2.6em;
	border: none;
	border-radius: 24px;
	color: var(--font-dark);
	background-color: var(--bg-light);
	cursor: pointer;
	transition:
		color 0.3s,
		background-color 0.3s;
}

.popup__body-btn:hover {
	color: var(--font-light);
	background-color: var(--hover);
}

@media (max-width: 768px) {
	.todo-app__header-input-box {
		flex-direction: column;
	}
	.todo-app__header-btn {
		margin-top: 1.2em;
		width: 40%;
	}
	.todo-app__header-input {
		margin-right: 0;
	}
	.todo-app__filters-btn {
		font-size: 1.4rem;
	}
	.todo-app__filters {
		padding: 1em;
	}
}
@media (min-width: 769px) {
	.todo-app__header-input-box {
		flex-direction: row;
	}
	.todo-app__header-btn {
		width: 20%;
		margin-top: 0;
	}
}
@media (max-width: 576px) {
	.todo-app__header-btn {
		width: 50%;
	}
	.todo-app__filters {
		/* flex-direction: column; */
		height: 110px;
		flex-wrap: wrap;
		justify-content: center;
	}
	.todo-app__filters-btn {
		flex-wrap: wrap;
		margin-bottom: 0.6em;
	}
	.popup__body-btn {
		margin: 0.2em;
		width: 40%;
	}
	.popup__body-input {
		margin-bottom: 1em;
	}
}
