* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: all .3s ease;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
}

html {
    font-size: 62.5%;
}

body {
    animation: gradientBG 5s ease-in-out infinite;
    background-size: 400% 400%;
    background-image: linear-gradient(to right, #feead2, #fffafa);
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.container {
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.content {
    width: 45rem;
    height: 60rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('../img/background.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 3rem;
    box-shadow: 2px 8px 24px 0 rgba(0, 0, 0, .3);
}

.list {
    width: 85%;
    height: 90%;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 2px solid #73aaa1;
    border-radius: 3rem;
    background-color: #fef7ed;
    overflow: hidden;
}

.header-section {
    margin-bottom: 1.5rem;
}

.lists-section {
    flex-grow: 1;
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    max-height: 100%;
    overflow: hidden;
}

h1 {
    color: #73aaa1;
    font-size: 3rem;
    text-align: center;
    margin-bottom: 5%;
}

.menu {
    display: flex;
    justify-content: center;
    gap: 0.1rem;
}

.menu button {
    color: #ffffff;
    width: 100%;
    font-size: 1.4rem;
    padding: 0.5rem;
    border: none;
    transition: 0.3s;
    background-color: #f89552;
}

.menu button:hover {
    cursor: pointer;
    background-color: #558a7f;
}

.input-area {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.input-area textarea,
.input-area input[type="text"] {
    width: 100%;
    font-size: 1.4rem;
    resize: none;
    padding: 1rem;
    border: 1px solid #cccccc;
    border-radius: 0.5rem;
    box-sizing: border-box;
}

.buttons {
    display: flex;
    justify-content: center;
    gap: 0.1rem;
}

.buttons button {
    color: #ffffff;
    width: 100%;
    font-size: 1.4rem;
    padding: 0.5rem;
    border: none;
    transition: 0.3s;
    background-color: #f89552;
}

.buttons button:hover {
    cursor: pointer;
    background-color: #558a7f;
}

.task-section {
    flex-grow: 1;
    overflow-y: auto;
    max-height: 100%;
    margin-top: 1rem;
}

.task-section::-webkit-scrollbar {
    width: 5px;
}

.task-section::-webkit-scrollbar-thumb {
    background-color: #558a7f;
    border-radius: 4px;
}

.task-section::-webkit-scrollbar-track {
    background: transparent;
}

.task-section ul {
    list-style: none;
}

.task-section ul li {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    padding: 0.8rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
    background-color: #ffffff;
}

.task-section ul li:hover {
    background-color: snow;
}

.task-section ul li.completed {
    opacity: 0.6;
    text-decoration: line-through;
}

.task-section ul li .task-text {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 1.4rem;
}

.task-section ul li div {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.task-section ul li button {
    color: #c0392b;
    font-size: 1.6rem;
    border: none;
    background-color: transparent;
    margin-left: .8rem;
}

.hidden {
    display: none;
}

/* responsividade  */

@media screen and (max-width: 550px) {
    .content {
        width: 100%;
        min-height: 100dvh;
        border-radius: 0;
    }

    .list {
        width: 95%;
        height: 95%;
    }
}