/* RESET RULES
–––––––––––––––––––––––––––––––––––––––––––––––––– */

@charset "utf-8";
@font-face {
    font-family: "Summer";
    src: url(../fonts/Summer%20Font%20Regular.woff);
}

@font-face {
    font-family: "Summer Bold";
    src: url(../fonts/Summer%20Font%20Bold.woff);
}

:root {
    --white: #fff;
    --red: #e31b23;
}

* {
    padding: 0;
    margin: 0;
    border: none;
    outline: none;
    box-sizing: border-box;
}

a {
    color: inherit;
    text-decoration: none;
}

input,
button {
    font-family: inherit;
    font-size: 100%;
    background: none;
}

[type="checkbox"] {
    position: absolute;
    left: -9999px;
}

button,
label {
    cursor: pointer;
}

ol {
    list-style: none;
}

body {
    font: 28px/1.2 "Summer Bold";
    margin: 1.5rem 0;
}

.container {
    max-width: 700px;
    padding: 0 10px;
    margin: 0 auto;
}

h1 {
    text-align: center;
    margin-bottom: 10px;
}


/* MAIN RULES
–––––––––––––––––––––––––––––––––––––––––––––––––– */

.todo-form .form-wrapper,
.todo-form input,
.todo-form button,
.todo-stats,
.todo-stats>div {
    position: relative;
}

.todo-form .form-wrapper.div_btnsub {
    display: flex;
    justify-content: space-between;
}

.todo-form input,
.todo-form button,
.todo-stats>div {
    z-index: 1;
}

.todo-form input,
.todo-form button {
    width: 100%;
    padding: 15px;
}

.todo-form svg,
.todo-stats svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.todo-form button {
    color: var(--white);
    text-transform: uppercase;
    width: 100%;
}

.todo-stats {
    text-align: center;
    padding: 5px 10px;
    margin: 10px 0;
    color: var(--white);
}

.todo-list li {
    display: grid;
    align-items: baseline;
    /* grid-template-columns: auto 20px; */
    grid-template-columns: auto auto;
    grid-column-gap: 10px;
    padding: 0 10px;
}

.todo-list li+li {
    margin-top: 10px;
}

.todo-list .checkbox-wrapper {
    display: flex;
    align-items: baseline;
    width: 100%;
    overflow: hidden;
}

.todo-list .checkbox-wrapper label {
    display: grid;
    margin-right: 10px;
}

.todo-list .checkbox-wrapper svg {
    grid-column: 1;
    grid-row: 1;
    width: 20px;
    height: 20px;
}

.todo-list .checkbox-wrapper .checkmark {
    display: none;
}

.todo-list [type="checkbox"]:checked+label .checkmark {
    display: block;
}


/* .todo-list [type="checkbox"]:checked ~ span {
  text-decoration: line-through;
  opacity: 0.5;
} */

.todo-list .remove-task {
    display: flex;
    padding: 2px;
}

.todo-list .remove-task svg {
    width: 16px;
    height: 16px;
}

.div_btn {
    display: flex;
    justify-content: flex-end;
}

a.clgl {
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


/* MQ STYLES
–––––––––––––––––––––––––––––––––––––––––––––––––– */


/* @media screen and (min-width: 600px) { */

.todo-form {
    display: grid;
    grid-template-columns: 4fr 1fr;
    grid-column-gap: 5px;
}

.todo-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.todo-stats.col-2s {
    grid-template-columns: repeat(2, 1fr);
}


/* } */


/* FOOTER
–––––––––––––––––––––––––––––––––––––––––––––––––– */

.page-footer {
    font-size: 1.2rem;
    text-align: right;
    padding-right: 20px;
    margin-top: 20px;
}

.page-footer span {
    color: var(--red);
}

.btn_click {
    cursor: pointer;
}

.clgl:hover {
    color: inherit;
}

.form-login .form-control {
    font-size: 1em;
    letter-spacing: 1px;
}

.form-login .btn {
    font-size: 0.5em;
    letter-spacing: 1px;
}

.a_link:hover {
    color: inherit;
    text-decoration: none;
}

.modal .form-control {
    font-size: 0.9em;
    letter-spacing: 1px;
}

.modal .btn {
    font-size: 0.7em;
}

#qrcode_div {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
}

.show_sp {
    display: none !important;
}

/* Phân trang */
.pagination>li a,
.pagination>li span{
    color: #000000;
}
.pagination>li a.active,
.pagination>li a:hover{
    background: #000000;
    color: #fff;
}

@media (max-width: 767px) {
    .todo-form button {
        font-size: 0;
    }
    .show_sp {
        font-size: 2rem;
        display: block !important;
    }
    .hide_sp {
        display: none;
    }
}
