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

body {
    height: 100vh;
    background: linear-gradient(#232323 50%, #1a1a1a 50%);
}

.app {
    font-family: "Poppins", sans-serif;
    width: min(95vw, 31.25em);
    position: absolute;
    margin: auto;
    left: 0;
    right: 0;
    top: 1.875em;
}

.container {
    padding: 2em 2.5em;
    background-color: #f1f8fb;
    box-shadow: 0 1em 2em rgba(0, 0, 0, 0.3);
    border-radius: 0.8em;
    border: 3px solid rgb(69, 175, 106);
}

@media (max-width: 535px){
    .app {
        width: 97vw;
    }
    .container {
        padding: 2em 1em;
    }
}

#wrapper {
    position: relative;
    display: grid;
    grid-template-columns: 8fr 4fr;
    gap: 1em;
}

#wrapper input {
    width: 100%;
    background-color: transparent;
    color: #111111;
    font-size: 0.9em;
    border: none;
    border-radius: 2px;
    padding: 1em 0.5em;
    border-bottom: 2px solid #1a1a1a32;
}

#wrapper input:focus {
    outline: none;
    border-color: rgb(5, 47, 20);
}

#wrapper button {
    position: relative;
    border-radius: 0.5em;
    font-weight: 500;
    font-size: 1em;
    border: none;
    outline: none;
    color: #ffffff;
    cursor: pointer;
    background-color: rgba(5, 47, 20, 0.914);
}

#tasks {
    margin-top: 1em;
    border-radius: 0.5em;
    width: 100%;
    position: relative;
    padding: 1em 0.5em;
}

.task {
    background-color: #ffffff;
    padding: 0.7em 1em;
    display:  grid;
    grid-template-columns: 1fr 8fr 2fr 2fr;
    gap: 1em;
    border-radius: 0.5em;
    box-shadow: 0 0.5em 1em rgba(0, 0, 0, 0.05);
    align-items: center;
    cursor: pointer;
}

.task:not(:first-child) {
    margin-top: 2em;
}

.task input[type="checkbox"] {
    position: relative;
    appearance: none;
    height: 20px;
    width: 20px;
    border-radius: 50%;
    border: 2px solid #e1e1e1;
}

.task input[type="checkbox"]:before{
    content: "";
    position: absolute;
    transform: translate(-50%, -50%);
    top: 50%;
    left: 50%;
}

.task input[type="checkbox"]:checked {
    background-color: #5a95ff;
    border-color: #5a95ff;
}

.task input[type="checkbox"]:checked:before {
    position: absolute;
    content: "\f00c";
    color: #ffffff;
    font-size: 0.8em;
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
}

.task span {
    font: 0.9em;
    font-weight: 400;
    word-break: break-all;
}

.task button {
    color: #ffffff;
    width: 100%;
    padding: 1em 0;
    border-radius: 0.5em;
    border: none;
    cursor: pointer;
    outline: none;
}

.edit {
    background-color: #5a95ff;
}

.checkEdit {
    background-color: #5a94ffae;
}

.delete {
    background-color: #ff5c5c;
}

.checkDelete {
    background-color: #ff5c5c94;
}

#pending-tasks {
    color: #5a95ff;
    font-family: 'Times New Roman', Times, serif;
    letter-spacing: 1.5px;
}

.completed {
    text-decoration: line-through;
    color: #a0a0a0;
}

#error {
    text-align: center;
    background-color: #ff5c5c;
    color: white;
    font-weight: 500;
    margin-top: 1.5em;
    border-radius: 5px;
    display: none;
    padding: 10px 0;
}