@use "../reset";
@use "../variable";
@use "../components/navbar";

/* Style each tag in an html */
/* describe to chatgpt what you want, good at css, or css reference */

/* font: sans-serif for headers, serif for paragraphs, mono for whatever */

@import url("https://fonts.googleapis.com/css2?family=Cutive+Mono&family=EB+Garamond:ital,wght@0,400..800;1,400..800&display=swap");

body {
	background-color: variable.$primary;
	color: variable.$secondary;
}

h1,
h2,
h3,
h4,
h5 {
	font-family: variable.$font-header;
}

p {
	font-family: variable.$font-body;
}

.title-text {
	font-size: 30px;
	margin-bottom: 0px;
}

img {
	width: 10%;
	height: auto;
	margin-top: 5px;
}

.form-submit {
	background-color: variable.$formcolor;

	&:hover {
		background: variable.$hovercolor;
		cursor: pointer;
	}
}

form {
	input,
	textarea {
		font-family: variable.$font-body;
	}
}

.todo-input {
	text-align: left;
	margin-top: 30px;
}

label,
input,
button {
	display: block;
	width: 100%;
	padding: 0;
	border: none;
	outline: none;
	box-sizing: border-box;

	&::placeholder {
		color: variable.$secondary;
	}
}

label {
	margin-bottom: 4px;

	&:nth-of-type(2) {
		margin-top: 12px;
	}
}

input {
	background: variable.$white;
	padding: 10px;
	padding-left: 20px;
	height: 50px;
	font-size: 14px;
	border-radius: 50px;
	box-shadow:
		inset 6px 6px 6px #cbced1,
		inset -6px -6px 6px variable.$white;
}

.form-submit {
	color: variable.$white;
	font-family: variable.$font-body;
	font-size: 16px;
	margin: 20px auto;
	height: 40px;
	width: 100px;
	border-radius: 20px;
	cursor: pointer;
	display: block;
}

.container {
	display: flex;
	flex-direction: column;
	align-content: space-around;
	align-items: center;
	justify-content: flex-end;
	flex-wrap: nowrap;
}

.todo-container {
	max-width: 300px;
	font-family: variable.$font-body;
	background-color: variable.$primary;
	border: 4px solid hsl(345, 100%, 91%);
	border-radius: 30px;
	box-shadow: 6px 4px 10px variable.$black;
	position: relative;
	padding: 20px;
	background-image: url("/images/polka.jpg");
	background-size: cover;
	background-repeat: no-repeat;
	background-position: center;

	.inner-todo {
		background-color: variable.$primary;
		padding: 20px;
		border-radius: 20px;
	}

	h1 {
		font-size: 25px;
		font-family: variable.$font-header;
		color: variable.$formprimary;
		margin-top: 10px;
		font-weight: bold;
	}
}

ol {
	padding: 0;
	margin: 0;

	li {
		color: variable.$formprimary;
		margin: 10px;
		background-color: variable.$white;
		padding: 20px;
		border-radius: 20px;
		text-align: left;
		font-family: variable.$font-body;
		min-width: 250px;
		display: flex;
		flex-direction: row;
		justify-content: space-between;

		i {
			font-size: 20px;
		}

		button {
			background-color: variable.$white;
			color: rgb(61, 61, 61);
			cursor: pointer;
			width: 15px;
		}
	}
}

.decor {
	position: absolute;
	top: 50px;
	left: -50px;

	img {
		width: 100px;
	}
}
