


:root {
	--green: #4c6647;
	--dark-green: #2d4b2a;
	--dusty-green: #a3b18a;
	--lightly-dusty-green: #859170;
	--dark-dusty-green: #6b7a5d;
}


* {
	box-sizing: border-box;
}

body {
	font-family: 'Manrope', sans-serif;
	margin: 0;
	line-height: 1.5;
	color: var(--dark-green);
}

body {
    background: #f1f5f9;
}

.section {
    background: white;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 24px;
}

nav {
	display: flex;
	justify-content: space-around;
	
	font-weight: 900;
	font-size: 1.2rem;
	margin: 2rem 0;
	top: -20px;
	background: linear-gradient(to bottom, var(--dusty-green), var(--dark-green));
	margin-top:0px;
	padding: 20px 0px 20px 0px;
	flex-direction: row;
	
}
nav a {
    list-style-type: none;
    text-decoration: none;
    padding: 1rem;
	
	color: white;
	font-weight: 100;
	font-size: 1.5rem;
	transition: 0.2s;
}

nav a:hover {
	background-color: rgba(128, 128, 128, 0.397);
	border-radius: 4px;
	color: white;
	text-decoration: none;
	font-weight: bold;
	font-size: 1.6rem;
	padding: .8rem;
}
a {
	color: var(--green);
	text-decoration: none;
}



p {
	margin: 0 0 1rem 0;
}
h1, h2, h3, h4, h5, h6{
	margin: 0;
	font-weight: normal;
	color: var(--dark-green);
}
h1 {
	font-weight: 900;
}
button,
input,
textarea,
select {
	font: inherit;
}

.task-input{
	min-width: 50vw;
}

.button-container {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: center;
	margin-top: 20px;
}
.button-link, button {
	margin: 0.5rem;
	padding: 1rem 1.5rem;
	border: 0;
	border-radius: 4px;
	color: #fff;
	background: var(--green);
	cursor: pointer;


}

.button-link:hover, button:hover {
	background: var(--dark-green);
	text-decoration: none;
	font-weight: bold;
	text-decoration: underline;
}

section.hero {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 80vh;
    font-size: 1.5rem;
    flex-direction: column;
    text-align: center;
	/* transition: all 0.3s ease-in-out; */

}
.section {
    background: #f8fafc;
    border: 3px solid #b82323;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 24px;
	width: 80vw;
}
/* 50–99% */
.section.progress-yellow {
    border-color: #eab308;
}

/* 100% */
.section.progress-green {
    background: #f0fdf4;
    border-color: #16a34a;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.section-title {
    margin: 0;
}

.section-progress {
    font-weight: 700;
}

/* Section becomes green when ALL of its tasks are checked */
.section:not(:has(.task input:not(:checked))) {
    background: #f0fdf4;
    border-color: #16a34a;
}

.day-progress {
    margin-bottom: 24px;
}

.day-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;

    font-weight: 800;
}

.day-progress-track {
    width: 100%;
    height: 14px;

    background: #eeeeee;
    border-radius: 999px;

    overflow: hidden;
}

.day-progress-fill {
    height: 100%;
    width: 0%;

    border-radius: 999px;

    background: #ef4444;

    transition:
        width 0.25s ease,
        background-color 0.25s ease;
}

.section-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
}
@media (max-width: 900px) {
	section.hero {
		font-size: 1.2rem;
		min-height: 60vh;
	}
	section.hero .button-container {
		flex-direction: column;
	}
	section.hero .button-link{
		font-size: 1rem;
		margin: 0.5rem 0;
		width: 50vw;
	}

	task {
		font-size: 1rem;
	}
	
	nav {
		flex-direction: column;
		align-items: center;
	}

	.task-input {
		min-width: 75vw;
	}
}

.task {
    display: flex;
    align-items: center;
    gap: 12px;

    padding: 16px;
    margin-bottom: 10px;

    border: 2px solid #e2e8f0;
    border-radius: 12px;
    background: white;

    cursor: pointer;

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        transform 0.1s ease;
	width: auto;
}
.task {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    
    margin-bottom: 10px;
}
.task:hover {
    border-color: #16a34a;
}

.task:active {
    transform: scale(0.99);
}

.task input {
    position: absolute;
    opacity: 0;
}

.task-check {
    width: 22px;
    height: 22px;

    border: 2px solid #94a3b8;
    border-radius: 6px;

    flex-shrink: 0;
}

.task:has(input:checked) {
    background: #f0fdf4;
    border-color: #16a34a;
}

.task:has(input:checked) .task-check {
    background: #16a34a;
    border-color: #16a34a;
}

.task:has(input:checked) .task-name {
    color: #64748b;
    text-decoration: line-through;
}
footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    text-align: center;
    background-color: #f8f9fa;
    padding: 10px;
	color: var(--dark-green);
}