*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
body {
    font-family: sans-serif;
    overflow-x: hidden;
}

::-webkit-scrollbar {
    width: .5em;
  }
  
::-webkit-scrollbar-thumb {
    background: rgb(24, 130, 216);
    border-radius: 100px;
}
  
::-webkit-scrollbar-thumb:hover {
    background: rgb(12, 110, 190);
}
  
::-webkit-scrollbar-track {
    background: #eaebec;
}
  


input, textarea {
    padding: .5rem .7rem;
    font-size: 1.2rem;
    font-family: sans-serif;
}

textarea {
    margin-bottom: 1.5rem;
    min-height: 70px;
    max-height: 150px;
    min-width: 100%;
    max-width: 40vw;
}

li {
    margin-bottom: .5rem;
}

table {
    margin: 3rem 0;
    font-family: arial, sans-serif;
    border-collapse: collapse;
    width: 100%;
    display: flex;
    align-items: center;
    border: 2px solid #000;
    
}
@media screen and (max-width: 680px) { table { overflow-x: auto; } }

table::-webkit-scrollbar { height: .4rem }

tbody {
    width: 100%;
}

td, th {
    border: 1px solid #ddd;
    text-align: left;
    padding: 8px;
    text-align: center;
    width: 100vw;
}

th {
    padding: 1.5rem;
    cursor: pointer;
    background: #2196F3;
    color: #fff;
    border-top: 0;
    border-bottom-width: 3px;
    border-bottom-color: #000;
}

th:first-child { border-left: 0; }
th:last-child { border-right: 0; }


th.show {
    background:rgb(8, 119, 211);
}

tr:nth-child(odd) {
    background-color: #eee;
}

.incompleted-todos {
    color: #FFFFFF;
    margin-bottom: 2rem;
    font-size: 2rem;
}

.search {
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 4rem;
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: #fff;
    border-bottom: 1px solid rgba(30,30,30, .4);
}

.search.scroll {
    box-shadow: 0 1px 3px #000;
    border-bottom: 0
}

.select-priority {
    cursor: pointer;
    padding: .5rem .7rem;
    font-size: 1rem;
    flex-grow: 1;

}

.search-input {
    font-size: 1rem;
    margin-right: .5rem;
}

.add-todo-container {
    width: 100%;
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #2196F3;
    flex-direction: column;
    min-height: 400px;
}

.add-todo {
    display: flex;
    flex-direction: column;            
}

.add-todo-options {
    display: flex;
    margin-bottom: 1.5rem;
    min-width: 350px;
    width: 40vw;
}

.add-todo-input {
    width: 30vw;
}

.button {
    position: relative;
    background-color: #4CAF50;
    border: none;
    font-size: 1.3rem;
    color: #FFFFFF;
    padding: .5rem;
    text-align: center;
    -webkit-transition-duration: 0.4s; /* Safari */
    transition-duration: 0.4s;
    text-decoration: none;
    overflow: hidden;
    cursor: pointer;
}

.button:after {
    content: "";
    background: #f1f1f1;
    display: block;
    position: absolute;
    padding-top: 300%;
    padding-left: 350%;
    margin-left: -20px;
    margin-top: -120%;
    opacity: 0;
    transition: all 0.8s
}

.button:active:after {
    padding: 0;
    margin: 0;
    opacity: 1;
    transition: 0s
}

.todo-table-container {
    padding: 1rem 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.delete-todo:hover {
    color: rgb(189, 44, 44);
}

.completed-container {
    position: relative;
}

.completed-todo-container {
    display: flex;
    align-items: center;
}

.completed-text {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
}

.completed-todo-container .checkmark {
    margin: 0 0 0 1rem;
}

.change-select {
    width: 100%;
    height: 100%;
    border: 0;
    background-color: transparent;
    outline: 0;
    text-align-last: center;
    text-align: center;
    cursor: pointer;
    font-size: 1rem;
}


.container {
    display: flex;
    align-items: center;
}

.container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

/* Create a custom checkbox */
.checkmark {
    position: relative;
    height: 25px;
    width: 25px;
    background-color: #ccc;
    display: flex;
    cursor: pointer;
    order: -1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 .5rem;
}

/* On mouse-over, add a grey background color */
.container:hover input ~ .checkmark {
    background-color: #888;
}

/* When the checkbox is checked, add a blue background */
.container input:checked ~ .checkmark {
    background-color: #2196F3;
}

/* Create the checkmark/indicator (hidden when not checked) */
.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

/* Show the checkmark when checked */
.container input:checked ~ .checkmark:after {
    display: block;
}

/* Style the checkmark/indicator */
.container .checkmark:after {
    left: 10px;
    top: 5px;
    width: 6px;
    height: 14px;
    border: solid white;
    border-width: 0 3px 3px 0;
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
}