/* colours */
:root {
	--primary: #ffe9d2;
	--secondary: #ffe1c4;
	--title: #ff8816;
}

/* layout styles */
nav {
	background: var(--primary);
	border-bottom: 10px solid var(--secondary);
}
nav a {
	text-transform: uppercase;
	color: var(--title);
}
nav a span {
	font-weight: bold;
}
nav .sidenav-trigger {
	margin: 0;
}
.material-icons.sidenav-trigger {
	cursor: pointer;
}
body {
	/* Might need to change background
	/* background by SVGBackgrounds.com */
	background-color: #ffffff;
	background-image: url('bg.svg');
	overflow: scroll;
}

/* todo styles */
.todos {
	margin-top: 20px;
}
.card-panel.todo {
	border-radius: 8px;
	padding: 10px;
	box-shadow: 0px 1px 3px rgba(90, 90, 90, 0.1);
	display: grid;
	grid-template-columns: 2fr 6fr 1fr;
	grid-template-areas: 'span details delete';
	position: relative;
}

.todo span {
	line-height: 3em;
}
.todo-details {
	grid-area: details;
	margin-top: 6px;
}
.todo-delete {
	grid-area: delete;
	position: absolute;
	bottom: -3px;
	right: 0px;
	cursor: pointer;
}
.todo-delete i {
	font-size: 24px;
}
.todo-edit {
	width: 20px;
	height: 20px;
	grid-area: delete;
	position: absolute;
	bottom: 7px;
	right: 50px;
	cursor: pointer;
}
.todo-edit i {
	width: 20px;
	font-size: 24px;
}
.todo-title {
	font-weight: bold;
}
.todo-detail {
	padding-top: 1em;
	font-size: 0.8em;
}

/* form-styles */
.add-btn {
	background: var(--title) !important;
}
input {
	box-shadow: none !important;
	-webkit-box-shadow: none !important;
}
.side-form button {
	background: var(--title);
	box-shadow: 1px 1px 3px rgba(90, 90, 90, 0.2);
}
.edit-form button {
	background: var(--title);
	box-shadow: 1px 1px 3px rgba(90, 90, 90, 0.2);
}

form .input-field {
	margin-top: 30px;
}

/* Login form */
input[type='text'],
input[type='password'] {
	width: 100%;
	padding: 12px 20px;
	margin: 8px 0;
	display: inline-block;
	border: 1px solid #ccc;
	box-sizing: border-box;
}
.wrapper {
	/* Might need to change background */
	/* background by SVGBackgrounds.com */
	background-color: #ffffff;
	background-image: url('bg.svg');
	overflow: scroll;
	display: flex;
	justify-content: center;
}
button {
	background-color: var(--title);
	color: white;
	padding: 14px 20px;
	border: none;
	cursor: pointer;
	width: 100%;
	border-radius: 5px;
}
.login-btn {
	position: absolute;
	width: 125px;
	bottom: 65%;
	border-radius: 5px;
}
.register-btn {
	position: absolute;
	width: 125px;
	bottom: 60%;
	border-radius: 5px;
}

button:hover {
	opacity: 0.65;
}

.close {
	position: absolute;
	right: 25px;
	top: 0;
	color: #000;
	font-size: 35px;
	font-weight: bold;
}

.close:hover,
.close:focus {
	color: var(--title);
	cursor: pointer;
}

/* Hide nav buttons, add button, loggin message when page reloads  */
.logged-in {
	display: none;
}
.logged-out {
	display: none;
}
#add-btn {
	display: none;
}
#logout-msg {
	display: none;
}

@media screen and (min-width: 993px) {
	.right.hide-on-med-and-down {
		padding-right: 40px;
	}
}

@media screen and (max-width: 993px) {
	.container {
		width: 80%;
	}
	html {
		font-size: 14.5px;
	}
	.hide-on-med-and-down {
		display: block !important;
	}
	#nav-mobile > li:nth-child(3) > a {
		padding-right: 40px;
	}
	.modal.open {
		width: 450px;
	}
}

@media screen and (max-width: 620px) {
	#nav-mobile > li:nth-child(3) > a {
		padding-right: 30px;
	}
	.modal.open {
		width: 300px;
		display: flex;
		justify-content: center;
	}
}
@media screen and (max-width: 515px) {
	.login-btn {
		width: 100px;
	}
	nav ul a {
		font-size: 0.8rem;
		padding: 0 7px;
	}
	.modal.open {
		width: 250px;
	}
}
@media screen and (max-width: 425px) {
	#logo {
		display: none;
		margin: 0 auto;
	}

	.right.hide-on-med-and-down {
		padding-right: 40px;
	}
}
@media screen and (max-width: 350px) {
	.login-btn {
		width: 85px;
	}
	.todo-delete i {
		font-size: 20px;
	}
	.todo-edit i {
		font-size: 20px;
	}
	.todo-edit {
		bottom: 3px;
		right: 30px;
	}
	.right.hide-on-med-and-down {
		padding-right: 15px;
	}
}
