/* Variables */
:root {
	--primary: #6D45B9;
    --green: rgb(71, 128, 98);
	--business: rgb(16, 79, 120);
    --drkGreen: #3E5E58;
    --title:#273A36;
    --pink: rgb(189, 54, 146);
	--personal: var(--pink);
	--light:#F7F7F7;
	--grey: #888;
	--dark: #5b758e;
	--danger: #D51F1F;
    --edit: #5b758e;
    --backBlue: #104F78;

	--shadow: 0 1px 3px rgba(0, 0, 0, 0.1);

	--business-glow: 0px 0px 4px rgba(16, 79, 120, 0.75);
	--personal-glow: 0px 0px 4px rgba(189, 54, 146, 0.75);
    --green-glow: 0px 0px 4px rgba(71, 128, 98 0.75);
}
/* End of Variables */

/* Resets */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	font-family: 'open sans', sans-serif;
}

input:not([type="radio"]):not([type="checkbox"]), button {
	appearance: none;
	border: none;
	outline: none;
	background: none;
	cursor: initial;
}
/* End of Resets */

body {
    width: 100%;
    height: 100vh;
	background: var(--green);
	color: var(--dark);
}

.app{
    max-width: 50rem;
    background-color: var(--light);
    border: 0.15rem solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(20px);
    margin: 0 auto;
    margin-top: 5rem;
    margin-bottom: 2rem;
    border-radius: 0.8rem;
    padding: 2rem 0 3rem;
}

section {
	margin-top: 3.5rem;
	margin-bottom: 2rem;
	padding-left: 1.5rem;
	padding-right: 1.5rem;
}

.greeting{
    display: grid;
    grid-template-columns: repeat (6, 1fr);
    grid-template-rows: repeat (2, 1fr);
    grid-gap: 0.5rem;
    grid-template-areas: 
    "b1 b1 b2 b2 b2 b2"
    "b3 b3 b2 b2 b2 b2"; 
    margin-bottom: 0;
    padding-bottom: 0;
}

#todoImage {
    grid-area: b2;
    width: 22rem;
    margin-top: -8.5rem;
    margin-left: -15rem;
}


h2 {
    margin-top:4.5rem;
    color: var(--title);
}
h3 {
	color: var(--dark);
	font-size: 1rem;
	font-weight: 400;
	margin-bottom: 0.5rem;
    margin-top: 0;
    padding-top: 0;
}

h4 {
	color: var(--grey);
	font-size: 0.875rem;
	font-weight: 700;
	margin-bottom: 0.5rem;
}

.greeting .title {
	display: flex;
}

.greeting .title input {
	margin-left: 0.5rem;
	flex: 1 1 0%;
	min-width: 0;
}

.greeting .title, 
.greeting .title input {
	color: var(--backBlue);;
	font-size: 2rem;
	font-weight: 700;
    z-index: 1;
}

#name {
    grid-area: b3;
    color: var(--pink);;
	font-size: 2rem;
	font-weight: 700;
}

.create-todo {
    margin-top: 1rem;
    padding-top: 0;
}

.create-todo input[type="text"] {
	display: block;
	width: 100%;
	font-size: 1.125rem;
	padding: 1rem 1.5rem;
	color: var(--dark);
	background-color: #FFF;
	border-radius: 0.5rem;
	box-shadow: var(--shadow);
	margin-bottom: 1.5rem;
}

.create-todo .options {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	grid-gap: 1rem;
	margin-bottom: 1.5rem;
}

.create-todo .options label {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	background-color: #FFF;
	padding: 1rem;
	box-shadow: var(--shadow);
	border-radius: 0.5rem;
	cursor: pointer;
}

input[type="radio"],
input[type="checkbox"] {
	display: none;
}

.bubble {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	border-radius: 999px;
	border: 2px solid var(--business);
	box-shadow: var(--business-glow);
}

.bubble.personal {
	border-color: var(--personal);
	box-shadow: var(--personal-glow);
}

.bubble::after {
	content: '';
	display: block;
	opacity: 0;
	width: 0px;
	height: 0px;
	background-color: var(--business);
	box-shadow: var(--business-glow);
	border-radius: 999px;
	transition: 0.2s ease-in-out;
}

.bubble.personal::after {
	background-color: var(--personal);
	box-shadow: var(--personal-glow);
}

input:checked ~ .bubble::after {
	width: 10px;
	height: 10px;
	opacity: 1;
}

.create-todo .options label div {
	color: var(--dark);
	font-size: 1.125rem;
	margin-top: 1rem;
}

.create-todo input[type="submit"] {
	display: block;
	width: 100%;
	font-size: 1.125rem;
	padding: 1rem 1.5rem;
	color: #FFF;
	font-weight: 700;
	text-transform: uppercase;
	background-color: var(--green);
	border-radius: 0.5rem;
	cursor: pointer;
	transition: 0.2s ease-out;
}

.create-todo input[type="submit"]:hover {
	opacity: 0.75;
}

.todo-list .list {
	margin: 1rem 0;
}

.todo-list .todo-item {
	display: flex;
	align-items: center;
	background-color: #FFF;
	padding: 1rem;
	border-radius: 0.5rem;
	box-shadow: var(--shadow);
	margin-bottom: 1rem;
}

.todo-item label {
	display: block;
	margin-right: 1rem;
	cursor: pointer;
}

.todo-item .todo-content {
	flex: 1 1 0%;
}

.todo-item .todo-content input {
	color: var(--dark);
	font-size: 1.125rem;
}

.todo-item .actions {
	display: flex;
	align-items: center;
}

.todo-item .actions button {
	display: block;
	padding: 0.5rem;
	border-radius: 0.25rem;
	color: #FFF;
	cursor: pointer;
	transition: 0.2s ease-in-out;
}

.todo-item .actions button:hover {
	opacity: 0.75;
}

.todo-item .actions .edit {
	margin-right: 0.5rem;
	background-color: var(--backBlue);
}

.todo-item .actions .delete {
	background-color: var(--pink);
}

.todo-item.done .todo-content input {
	text-decoration: line-through;
	color: var(--grey);
}

