@import url('https://fonts.googleapis.com/css2?family=Arima:wght@100..700&family=Gochi+Hand&display=swap');

* {
    font-family: Gochi hand, sans-serif;
    color: #2e2e2e;
    letter-spacing: 1px;
}


body {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #f8f5f3
}

h1 {
    font-size: 2rem;
}

p {
    font-size: 1.2rem;
}

/* title  */
.header-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* actions-tasks container */
.tasks-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 50%;
}

/* search */
.search-task-container {
    width: 90%;
    display: flex;
    justify-content: center;
    padding: 0 2rem;

}


/* tasks container and it's items */
.task-img {
    width: 40%;
}

.tasks-list-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 90%;
    border-radius: 10px;
}

.task {
    background-color: #e1ad7d80;
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    margin: 0.5rem;
    border-radius: 10px;
    padding: 1rem;
}

.task-contents {
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
}

.task-title {
    width: 70%;
}

.done-task {
    color: gray;
    text-decoration: line-through;
}

.checkbox {
    width: 5%;
    margin: 0.2rem;

}

.checkbox:checked {
    accent-color: #535353;
}

/* buttons */
.btn {
    align-items: center;
    background-color: #fee6e3;
    border: 2px solid #111;
    border-radius: 10px;
    color: #111;
    cursor: pointer;
    display: flex;
    font-size: 16px;
    height: 48px;
    justify-content: center;
    line-height: 24px;
    padding: 0 0.5rem;
    position: relative;
    text-align: center;
}

.btn:after {
    background-color: #111;
    border-radius: 8px;
    content: "";
    display: block;
    height: 48px;
    left: 0;
    width: 100%;
    position: absolute;
    transform: translate(8px, 8px);
    transition: transform .2s ease-out;
    z-index: -1;
}

.btn:hover:after {
    transform: translate(0, 0);
}

.btn:active {
    background-color: #ffdeda;
    outline: 0;
}

/* input */
input {
    background-color: #ffffff00;
    color: #161616;
    width: 100%;
    padding: 0.5rem;
    outline: 2px solid transparent;
    width: 100%;
    border: none;
    border-bottom: 1px solid #111;
    margin: 1rem;
}

/* add */

.add-task-container {
    background-color: #f8f5f3;
    position: sticky;
    bottom: 0;
    width: 90%;
    display: flex;
    justify-content: center;
    padding: 1rem;
    border-radius: 10px;
}

/* edit */

.new-title-input {
    background-color: #ffffff00;
}

.popup-container {
    box-sizing: border-box;
    background-color: rgba(0, 0, 0, 0.3);
    opacity: 1;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.popup-content {
    background-color: #f8f5f3;
    border-radius: 10px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
    padding: 15px 25px;
    width: 60%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

.popup-container p {
    line-height: 24px;
    margin: 10px;
}

.popup-img {
    max-width: 60%;
}

@media (max-width: 700px) {
    .task-img {
        width: 70%;
    }
    .tasks-section {
        width: 100vw;
    }
    .header-section{
        width: 100vw;
    }
}