body {
    font-family: sans-serif;
    background: linear-gradient(to top right, #3d4752, #1983c5, #3d4752, #1983c5);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 600px;
}

.container {
    height: 100%;
    width: 100%;
    display: grid;
    justify-items: center;
    place-items: center;
}

.root {
    background-color: #33333321;
}

.nav-bar {
    color: white;
    height: 60px;
    width: 500px;
    padding: 0 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.input-element {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100px;
    width: 500px;
    gap: 2rem;
    padding: 5px;
}

.task-input {
    height: 35px;
    width: 360px;
    font-size: 14px;
    border-radius: 5px;
    outline: none;
    border: none;
    padding: 0 5px;
}

.main-content {
    max-height: 480px;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: column;
    gap: 1rem;
}

.add-task,
.clear-btn {
    height: 35px;
    width: 120px;
    color: white;
    background: rgba(23, 227, 108, 0.792);
    border-radius: 5px;
    font-size: 16px;
    border: none;
}

.add-task:hover,
.clear-btn:hover {
    background-color: rgba(27, 164, 84, 0.79);
}

.result {
    width: 500px;
    max-height: 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 5px;
    overflow-x: hidden;
    overflow-y: auto;
}

.result-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.task-div {
    font-size: 16px;
    color: white;
    flex-grow: 1;
    padding-right: 10px;
}

.task-done {
    color: white;
    border: none;
    border-radius: 5px;
    padding: 5px 10px;
}

@media only screen and (max-width: 600px) {
    body {
        height: 100vh;
        width: 100vw;
        font-size: 0.6rem;
    }

    .container {
        height: 400px;
        width: 300px;
    }

    .root {
        height: 450px;
        width: 290px;
    }

    .main-content {
        max-height: 420px;
        width: 280px;
        padding: 10px;
        display: flex;
        align-items: center;
        justify-content: space-evenly;
        gap: 10px;
        flex-direction: column;
        margin: -0.3rem;
    }

    .nav-bar {
        height: 70px;
        width: 280px;
        display: flex;
        align-items: center;
        justify-content: space-evenly;
        gap: 0.4rem;
    }

    .input-element {
        height: 80px;
        width: 280px;
    }

    .task-input {
        width: 180px;
    }


    .result {
        width: 280px;
        max-height: 150px;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 12px;
        overflow-x: auto;
        padding: 5px;
    }

    .result-container {
        height: 40px;
        width: 260px;
        display: flex;
        padding: 0 6px;
        justify-content: space-between;
        align-items: center;
        box-shadow: 0px 0px 2px rgb(126, 126, 126);
        flex-shrink: 0;
    }

    .add-task {
        height: 35px;
        width: 100px;
        color: white;
        background: rgba(23, 227, 108, 0.792);
        font-size: 14px;
        outline: none;
    }

    .clearButton {
        height: 100px;
        width: 280px;
        align-items: center;
    }
}

@media (min-width: 600px) and (max-width: 900px) {
    body {
        height: 100vh;
        width: 100%;
    }

    .container {
        height: 800px;
        width: 1200px;
    }

    .root {
        height: 650px;
        width: 600px;
    }

    .nav-bar {
        height: 60px;
        width: 500px;
        margin: 2rem;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .input-element {
        height: 100px;
        width: 500px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 1.2rem;
        padding: 5px;
    }

    .task-input {
        height: 35px;
        width: 360px;
        font-size: 14px;
        outline: none;
        border: none;
        padding: 0 5px;
    }

    .add-task {
        height: 35px;
        width: 100px;
        color: white;
        background: rgba(23, 227, 108, 0.792);
        font-size: 16px;
        outline: none;
    }

    .main-content {
        max-height: 480px;
        padding: 10px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
        flex-direction: column;
    }

    .result {
        width: 500px;
        max-height: 250px;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 12px;
        overflow-y: auto;
        padding: 5px;
    }

    .result-container {
        height: 40px;
        width: 470px;
        display: flex;
        padding: 0 6px;
        justify-content: space-between;
        align-items: center;
        box-shadow: 0px 0px 2px rgb(126, 126, 126);
        flex-shrink: 0;
    }

    .task-div {
        height: 30px;
        display: flex;
        align-items: center;
    }


    .clear {
        height: 100px;
        width: 500px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .clear-btn {
        height: 40px;
        width: 200px;
        color: white;
        background: rgba(23, 227, 108, 0.792);
        font-size: 16px;
        outline: none;
        cursor: pointer;
        border: none;
    }
}
