*,
*::after,
*::before {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 62.5%;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    border: none;
    font: inherit;
}

ul {
    list-style-type: none;
}

body {
    font-family: 'Heebo', sans-serif;
    font-size: clamp(1.4rem, 2.5vw, 1.6rem);
}

header {
    position: sticky;
    top: 0;
    background-color: #CA5646;
}

nav,
.menu-container,
.counter-container {
    display: flex;
}

nav {
    height: 5rem;
    justify-content: space-between;
    align-items: center;
    margin-inline: 6rem;
}

.menu-container {
    align-items: baseline;
    gap: 2.8rem;
}

.counter-container {
    align-items: baseline;
    gap: 1rem;
    color: #fff;
}

.counter-container p {
    font-size: 1.5rem;
}

main {
    margin: 2.7rem auto;
    max-width: 60%;
}

.today-tasks-section.blur,
.completed-tasks-section.blur {
    filter: blur(1.5px);
    transition: 0.5s;
}

.date-container span {
    color: gray;
    font-size: clamp(1.2rem, 2.5vw, 1.4rem);
}

.tasks-container {
    margin-top: 1.5rem;
}

.task-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.task-container {
    height: 5.5rem;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
}

.text-container,
.task-type-container {
    display: flex;
    gap: 1rem;
}

.text-container {
    align-items: center;
    padding-bottom: 1.5rem;
    padding-left: .7rem;
}

.routine-delete-button {
   color: #C27775; 
}

.personal-delete-button {
    color: #DEA263;
}

.work-delete-button {
    color: #BEA6A1;
}

.routine-delete-button:hover,
.work-delete-button:hover,
.personal-delete-button:hover {
    color: gray;
}

.task-type-container {
    font-size: 1.3rem;
    align-items: center;
    padding-top: 2rem;
    padding-right: 1rem;
    color: gray;
}

.rounded-checkbox {
    width: 1.7rem;
    height: 1.7rem;
    background-color: white;
    border-radius: 50%;
    vertical-align: middle;
    appearance: none;
    -webkit-appearance: none;
    outline: none;
    cursor: pointer;
}

.rounded-checkbox:hover{
    background-color: #ccc;
}

.routine-task-container {
    border: 1px solid #C27775;
}

.routine-task-container .rounded-checkbox {
    border: 2.5px solid #C27775;
}

.routine-task-container .rounded-checkbox:checked {
    background-color: #C27775;
}

.personal-task-container {
    border: 1px solid #DEA263;
}

.personal-task-container .rounded-checkbox {
    border: 2.5px solid #DEA263;
}

.personal-task-container .rounded-checkbox:checked {
    background-color: #DEA263;
}

.work-task-container {
    border: 1px solid #BEA6A1;
}

.work-task-container .rounded-checkbox {
    border: 2.5px solid #BEA6A1;
}

.work-task-container .rounded-checkbox:checked {
    background-color: #BEA6A1;
}

.completed-tasks-section {
    margin-top: 4rem;
}

.add-task-button {
    position: fixed;
    bottom: 5rem;
    right: 5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4.3rem;
    height: 4.3rem;
    border-radius: 50%;
    background-color: #CA5646;
}

.nav-container {
    display: none;
    position: fixed;
    top: 5rem;
    left: 0;
    width: 23rem;
    height: 100%;
    overflow-x: hidden;
    z-index: 1;
    transition: 0.5s;
    background-color: #FAFAFA;
}

.nav-container.active {
    display: block;
}

.nav-list {
    display: grid;
    margin-top: 12rem;
    margin-left: 6rem;
    font-size: 2rem;
    gap: 3rem;
}

.nav-list li:hover {
    text-decoration: line-through;
    color: gray;
}

.add-task-section {
    display: none;
    position: fixed;
    top: 12rem;
    left: 31%;
    min-height: 19rem;
    width: 38vw;
    border-radius: 8px;
    background-color: #fff;
    box-shadow: 10px 10px 30px 15px rgba(206, 203, 203, 0.75);

    font-size: 1.3rem;
}

.add-task-section.active {
    display: block;
}

.todo-form {
    display: flex;
    flex-direction: column;
    margin: 1.5rem;
    gap: 1.5rem;
}

.form-radio-container p {
    padding-bottom: .2rem;
}

.form-button-container {
    display: flex;
    gap: .8rem;
    justify-content: end;
}

.form-cancel-button,
.form-add-task-button {
    height: 2.7rem;
    border-radius: 5px;
}

.form-cancel-button {
    width: 6rem;
}

.form-add-task-button {
    width: 7.5rem;
    color: #fff;
    background-color: #CA5646;
}

.form-text-container label {
    padding-right: 1rem;
}

.form-text-container input {
    max-width: 15rem;
    padding: .6rem;
    outline: none;
    border: none;
    border-bottom: 1px solid black;
}

.form-text-container input:focus,
.form-text-container input:active {
    border-bottom: 2.5px solid black;
}

.form-radio-container label {
    padding-left: .3rem;
}

.completed-tasks-list-container {
    margin-top: 1.3rem;
}

.completed-tasks-popup-container {
    display: none;
    position: fixed;
    bottom: 3%;
    left: 45%;
    box-shadow: 2px 3px 27px -3px rgba(194,182,182,0.75);
    border-radius: 5px;
}

.completed-tasks-popup-container.active {
    display: block;
}

.completed-tasks-popup-flex {
    display: flex;
    align-items: center;
    gap: 3rem;
    font-size: 1.2rem;
    padding: .7rem 1rem;
}

.default-todo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 2rem;
}

.default-todo-container h4 {
    padding-top: 2rem;
    max-width: 30%;
    font-size: clamp(1.3rem, 2.5vw, 1.4rem);
    line-height: 2rem;
}

@media (max-width: 1440px) {
    .add-padding-to-main-when-hamburger-is-active {
         padding-left: 12rem;
    }
}

@media (max-width: 768px) {
    .nav-container {
        width: 100%;
    }

    .nav-list {
        place-items: center;
        margin-left: 0;
        font-size: 2.3rem;
    }
}

@media (max-width: 815px) {
    .add-task-section {
        width: 50vw;
        left: 25%;
    }
}

@media (max-width: 665px) {
    .form-button-container {
        flex-direction: column;
    }
}

@media (max-width: 614px) {
    .form-text-container {
        display: flex;
        flex-direction: column;
    }

   nav {
        margin-inline: 3.5rem;
   }

   .default-todo-container h4 {
        max-width: 60%;
   }
}

@media (max-width: 425px) {
    nav {
        margin-inline: 2rem;
    }

    .add-task-section {
        width: 60vw;
        left: 20%;
    }

    .add-task-button {
        bottom: 3rem;
        right: 3rem;
    }
}