html {
    font-size: 10px;
}

body {
    font-family: "Montserrat", Arial, Helvetica, sans-serif;
    font-size: 1.6rem;
    overflow-x: hidden;
}

.layout {
    width: 100%;
    min-height: 100%;
    background-color: #fffbc7;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: absolute;
}

.layout__main {
    width: 50rem;
}

.main__title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
}

.main__form {
    width: 100%;
}

.form__input {
    font-size: 1.4rem;
    color: #ddd;
    font-weight: 600;
    width: 100%;
    outline: none;
    background-color: #24273D;
    border: none;
    border-radius: 5px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.form__input::placeholder {
    color: #ddd;
    font-weight: 500;
}

.form__list {
    list-style: none;
    border-radius: 5px;
}

.list__item {
    color: #ddd;
    padding: 1.5rem;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    background-color: #24273D;
    border-bottom: 1px solid #363A59;
    transition: all 300ms ease;
}

.list__item--completed .task__text {
    color: #777;
    text-decoration: line-through;
}

.list__task {
    flex-basis: 80%;
    display: flex;
    flex-direction: row;
    gap: 1rem;
}

.task__text {
    font-size: 1.4rem;
    font-weight: 500;
    transition: all 300ms linear;
    cursor: pointer;
}

.task__check {
    width: 2rem;
    height: 2rem;
    background-color: #9D9EA7;
    border-radius: 50%;
    border: none;
    appearance: none;  /*para que no salga en checkbox en cuadrado*/
    cursor: pointer;
}

.task__check:checked  {
    background-color: #93d193;
    background-image: url('../img/check.svg');
    background-size: contain;
}

.list__delete {
    color: #ddd;
    padding: 1rem;
    border-radius: 5px;
    transition: all 300ms linear;
    cursor: pointer;
}

.list__delete:hover {
    background-color: #444;
}