* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --lightpurple: #A18AFF;
    --pinkpurple: #CF94FE;
    --lightgrey: #DDDDDF;
    --darkgrey: #61606b;
    --hoverpurple: rgb(190, 116, 250);
    --pink: #FD99AF;
    --lightblue: #3FD4F4;
    --dandelion: #FAC608;
}

body {
    font-family: "Roboto", system-ui;
    display: flex;
    flex-direction: row;
}

header {
    width: 20%;
    background-color: white;
}

nav {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.info-container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding-bottom: 2.3em;
    padding-top: 1.4em;
    width: 100%;
    padding-right: 1em;
}

.info-container img {
    width: 80px;
    border-radius: 50%;
}

#name {
    color: var(--lightpurple);
}

#text-title {
    color: var(--darkgrey);
}

hr {
    border: 1px solid var(--lightpurple);
    width: 70%;
}

.sidebar-task-section-container {
    display: grid;
    grid-template-rows: 130px 10px 100px;
    grid-row-gap: 100px;
    margin-top: 4em;
    color: var(--darkgrey);
}

.task-heading-text {
    display: flex;
    flex-direction: row;
    gap: 25px;
}

.task-heading-text i {
    color: var(--pinkpurple);
}

.individual-section-container {
    font-size: 1.3em;
    cursor: pointer;
}

.category-content {
    display: flex;
    flex-direction: row;
    gap: 10px;
    margin-top: 1em;
    align-items: center;
    justify-content: center;
}

.category-content i {
    color: transparent;
}

.sub-task-section-text {
    list-style-type: none;
}

.sub-task-section-text li {
    padding: 5px;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    gap: 10px;
}

.category-btn {
    height: 15px; 
    width: 15px;  
    border-radius: 50%;
}

.pink {
    background-color: var(--pink);
}
.lightblue {
    background-color: var(--lightblue);
}
.dandelion {
    background-color: var(--dandelion);
}

.add-filter {
    color: var(--lightgrey);
}

.add-filter i {
    color: white;
    background-color: var(--lightgrey);
    border-radius: 50%;
    font-size: 0.6em;
    padding: 2px 2px;
}

main {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-direction: column;
    height: 100vh;
    background-color: var(--lightpurple);
    width: 80%;
    gap: 4em;
    padding-top: 4em;
}

.title {
    width: 55%;
    text-align: left;
    padding-left: 10px;
}

h1 {
    color: white;
    font-size: 3em;
}

#enter-new-task {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 55%;
    gap: 10px;
}

.input-text-container {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: white;
    width: 90%;
    height: 50px;
    border-radius: 15px;
    padding: 10px 15px;
}

.category-btn-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    font-size: 1.2em;
}

#input-task {
    border: 1px solid red;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    background-color: white;
    height: 50px;
    border-radius: 15px;
    border: none;
    padding: 10px 15px;
    font-size: 1.2em;
    color: var(--darkgrey);
}

#input-task::placeholder {
    color: var(--lightgrey);
}

button:hover {
    cursor: pointer;
}

#submit {
    height: 50px;
    width: 50px;
    border-radius: 50%;
    border: none;
    background-color: white;
    font-size: 1.3em;
    color: var(--pinkpurple);
    transition: all 0.3s ease;
}

#submit:hover {
    color: var(--hoverpurple);
}

#tasks {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 15px;
    width: 55%;
}

.task {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: white;
    padding: 10px 15px;
    height: 50px;
    width: 95%;
    border-radius: 12px;
}

.task-content {
    display: flex;
    flex-direction: row;
    gap: 10px;
    align-items: center;
    justify-content: center;
}

.task-content input[type=text] {
    border: none;
    color: var(--darkgrey);
    font-size: 1.2em;
}

input:focus {
    outline: none;
}

.btn-container {
    display: flex;
    flex-direction: row;
    gap: 10px;
}

.btn-container button {
    border: none;
    font-size: 1.2em;
    background-color: transparent;
    color: var(--pinkpurple);
    transition: all 0.3s ease;
}

.btn-container button:hover {
    color: var(--hoverpurple);
}

@media (max-width: 1024px) {
    body {
        flex-direction: column;
    }

    header {
        width: 100%;
    }

    main {
        width: 100%;
    }

    .title, #enter-new-task, #tasks {
        width: 90%;
    }

    h1 {
        font-size: 2.5em;
    }

    #submit {
        height: 40px;
        width: 40px;
    }
}

@media (max-width: 768px) {
    .info-container img {
        width: 60px;
    }

    h1 {
        font-size: 2em;
    }

    #input-task {
        font-size: 1em;
    }

    #submit {
        height: 35px;
        width: 35px;
        font-size: 1em;
    }

    .task {
        padding: 5px 10px;
        height: 45px;
    }

    .task-content input[type=text] {
        font-size: 1em;
    }

    .btn-container button {
        font-size: 1em;
    }
}

@media (max-width: 480px) {
    .info-container img {
        width: 50px;
    }

    h1 {
        font-size: 1.5em;
    }

    #input-task {
        font-size: 0.9em;
    }

    #submit {
        height: 30px;
        width: 30px;
        font-size: 0.9em;
    }

    .task {
        padding: 5px 10px;
        height: 40px;
    }

    .task-content input[type=text] {
        font-size: 0.9em;
    }

    .btn-container button {
        font-size: 0.9em;
    }
}
