:root {
    --background: #101114;
    --primary-color: #1C1D20;
    --secondary-color: #4a4d57;
    --accent-color: #66ff00;
    --text-color: #f9f9f9;
}

* {
    padding: 0;
    margin: 0;
}

html {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 16pt;
    color: var(--text-color);
}

body {
    min-height: 100vh;
    padding: 10px;
    background-color: var(--background);

    display: flex;
    flex-direction: column;
    align-items: center;
}

h1 {
    margin-top: 30px;
    margin-bottom: 20px;
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    color: var(--accent-color);
    background-color: black;
    padding: 10px 80px;
    border-radius: 50px;
    border: solid 2px var(--accent-color);
}

.wrapper {
    width: 800px;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex-grow: 1;

    background: rgba(255,255,255,0.02);
    padding: 10px 20px;
    border-radius: 20px;
}

#todo-input {
    box-sizing: border-box;
    padding: 12px 20px;
    width: 100%;
    background: none;
    border: 2px solid rgba(255, 255, 255, 0.626);
    border-radius: 1000px;
    font: inherit;
    color: var(--text-color);
    caret-color: var(--accent-color);
}

#todo-input:focus {
    outline: none;
}

form {
    position: relative;
}

#add-button {
    position: absolute;
    top: 0;
    right: 0;
    background-color:  rgb(33, 47, 248);;
    height: 100%;
    padding: 0 30px;
    border: none;
    border-radius: 1000px;
    font: inherit;
    font-weight: 600;
   
    color: white;
    cursor: pointer;
}

.todo {
    margin-top: 6px;
    margin-bottom: 6px;
    padding: 0 16px;
    background-color: var(--primary-color);
    border-radius: 15px;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    transition: transform 0.15s ease, box-shadow 0.15s ease;    
    animation: todoAppear 0.25s ease;
}

@keyframes todoAppear {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.todo:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.6);
}

.todo .todo-text {
    padding: 12px;
    flex-grow: 1;
}

.edit-input {
    padding: 12px;
    margin: 10px 0;
    flex-grow: 1;
    border-radius: 8px;
    border: 2px solid var(--accent-color);
    background: transparent;
    color: var(--text-color);
    font: inherit;
}

.icon-button {
    padding: 6px;
    background: rgba(0, 0, 0, 0.6);
    border: none;
    border-radius: 8px;
    margin-left: 6px;
    cursor: pointer;
}

.icon-button:hover {
    background: #222;
}

.delete-button svg {
    fill: rgb(243, 59, 59);
    transition: 300ms ease;
}

.delete-button:hover svg {
    fill: #ff0033;
}


.edit-button svg {
    fill: rgb(254, 152, 35);
}

.custom-checkbox {
    border: 2px solid var(--accent-color);
    border-radius: 50%;
    min-height: 20px;
    min-width: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    transition: 200ms ease;
    cursor: pointer;
}

input[type="checkbox"]:checked~.custom-checkbox {
    background-color: var(--accent-color);
}

input[type="checkbox"]:checked~.custom-checkbox svg {
    fill: var(--primary-color);
}

input[type="checkbox"]:checked~.todo-text {
    text-decoration: line-through;
    color: var(--secondary-color);
}

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

footer {
    text-align: center;
    margin-top: auto;
    padding: 30px 20px;
    font-size: small;
}

.group-header {
display: flex;
align-items: center;
gap: 10px;
padding: 8px;
background: black;
border-radius: 12px;
margin-top: 10px;
}

.group-name {
flex-grow: 1;
font-weight: 800;
}

.group-list {
margin-left: 0px;
}

.material-symbols-outlined {
    font-size: 20px;
    color: var(--text-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.delete-button .material-symbols-outlined {
    color: rgb(224, 30, 17);
}

.edit-button .material-symbols-outlined:hover {
    color: orange;
}

.group-header .material-symbols-outlined {
    color: var(--text-color);
}

.delete-group .material-symbols-outlined {
    color: white;
}

.delete-group .material-symbols-outlined {
    color: rgb(224, 30, 17);
}

.edit-group .material-symbols-outlined {
    color: white;
}

.edit-group .material-symbols-outlined:hover {
    color: orange;
}

.add-todo .material-symbols-outlined {
    color: white;
    font-weight: 900;
}

.add-todo {
    background-color: rgb(33, 47, 248);
    border-radius: 50px;
}

.add-todo:hover {
    background-color: rgb(50, 63, 248);
}


#todo-list,
.group-list {
    list-style: none;
    padding-left: 0;
}

.toggle {
    transition: transform 0.2s ease;
    cursor: pointer;
}

.toggle.open {
    transform: rotate(180deg);
}

.add-input {
    margin-top: 6px;
    margin-bottom: 6px;
    width: calc(100% - 10px);
    resize: none;
}

@media(max-width: 500px) {
    html {
        font-size: 12pt;
    }


    #add-button {
        position: unset;
        width: 100%;
        margin-top: 10px;
        padding: 15px;
        height: auto;
    }

    h1 {
        margin-top: 15px;
        margin-bottom: 15px;
        font-size: 8vw;
    }
.add-input {
    width: 90vw;
    margin: 8px 0;
}

}