*, *::before, 
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    height: 100vh;
    background: #14101f;
    display: flex;
    align-items: center;
    justify-content: center;
}

.container {
    width: 50%;
    background: #25203a;
    border-radius: 10px;
    padding: 30px 20px;
}

#newtasks {
    position: relative;
}

#newtasks input {
    width: 75%;
    height: 45px;
    font-size: 15px;
    border: none;
    outline: none;
    padding: 12px;
    color: #111111;
    font-weight: 500;
    position: relative;
    border-radius: 5px;
}

#newtasks input:focus {
    outline: none;
    border: 1px solid #00d8ff;
}

#newtasks button {
    position: relative;
    float: right;
    width: 20%;
    height: 45px;
    border-radius: 5px;
    font-weight: 500;
    font-size: 16px;
    background: #00d8ff;
    border: none;
    color: #1d1515;
    cursor: pointer;
    font-weight: bold;
    outline: none;
}

.tasks {
    background: #fff;
    border-radius: 5px;
}

.tasks .task {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 10px;
    border-bottom: 1px solid #ccc;
}

.tasks .task:first-child {
    margin-top: 20px;
}

.tasks .task:last-child {
    border: none;
}

.task span {
    font-size: 15px;
    font-weight: 400;
}

.task button {
    background: #1c182b;
    color: #fe4cff;
    height: 40px;
    width: 40px;
    font-weight: bold;
    border: none;
    cursor: pointer;
    border-radius: 50%;
    outline: none;
}

.completed {
    text-decoration: line-through;
}


@media (max-width: 400px) {

    .container {
        width: 300px;
        padding: 20px 10px;
    }

    #newtasks input {
        width: 65%;
    }

    #newtasks button {
        width: 30%;
    }

    .tasks .task {
        padding: 5px 10px;
    }

    .task button {
        height: 30px;
        width: 30px;
    }

}