:root {
	--white: #fff;
	--light-grey: #f5f6f7;
	--dark-grey: #0a0a23;
	--yellow: #f1be32;
	--golden-yellow: #feac32;
}

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

body {
	background-color: var(--dark-grey);
}

main {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
}

h1 {
	color: var(--light-grey);
	margin: 20px 0 40px 0;
}

.todo-app {
	background-color: var(--white);
	width: 300px;
	height: 350px;
	border: 5px solid var(--yellow);
	border-radius: 8px;
	padding: 15px;
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.btn {
	cursor: pointer;
	width: 100px;
	margin: 10px;
	color: var(--dark-grey);
	background-color: var(--golden-yellow);
	background-image: linear-gradient(#fecc4c, #ffac33);
	border-color: var(--golden-yellow);
	border-width: 3px;
}

.btn:hover {
	background-image: linear-gradient(#ffcc4c, #f89808);
}

.large-btn {
	width: 80%;
	font-size: 1.2rem;
	align-self: center;
	justify-self: center;
}

.close-task-form-btn {
	background: none;
	border: none;
	cursor: pointer;
}

.close-icon {
	width: 20px;
	height: 20px;
}

.task-form {
	display: flex;
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	background-color: var(--white);
	border-radius: 5px;
	padding: 15px;
	width: 300px;
	height: 350px;
	flex-direction: column;
	justify-content: space-between;
	overflow: auto;
}

.task-form-header {
	display: flex;
	justify-content: flex-end;
}

.task-form-body {
	display: flex;
	flex-direction: column;
	justify-content: space-around;
}

.task-form-footer {
	display: flex;
	justify-content: center;
}

.task-form-label,
#title-input,
#date-input,
#description-input {
	display: block;
}

.task-form-label {
	margin-bottom: 5px;
	font-size: 1.3rem;
	font-weight: bold;
}

#title-input,
#date-input,
#description-input {
	width: 100%;
	margin-bottom: 10px;
	padding: 2px;
}

#confirm-close-dialog {
	padding: 10px;
	margin: 10px auto;
	border-radius: 15px;
}

.confirm-close-dialog-btn-container {
	display: flex;
	justify-content: center;
	margin-top: 10px;
}

.discard-message-text {
	font-weight: bold;
	font-size: 1.5rem;
}

#tasks-container {
	height: 100%;
	overflow-y: auto;
}

.task {
	margin: 5px 0;
}

.hidden {
	display: none;
}

@media (min-width: 576px) {
	.todo-app,
	.task-form {
		width: 400px;
		height: 450px;
	}

	.task-form-label {
		font-size: 1.5rem;
	}

	#title-input,
	#date-input {
		height: 2rem;
	}

	#title-input,
	#date-input,
	#description-input {
		padding: 5px;
		margin-bottom: 20px;
	}
}
