* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    font-family: 'Open Sans', sans-serif;
}

header a {
    text-decoration: underline;
    color: black;
}

header h1 {
    background-color: #DFECF1;
    text-align: center;
    padding: 1rem 0;
    margin-top: 0;
    margin-bottom: 3rem;
}

main div {
    width: 80%;
    margin-left: auto;
    margin-right: auto;
}

.active {
    color: black;
    text-decoration: none;
}

.finished {
    color: darkgray;
    text-decoration: line-through;
}

.input-container {
    display: flex;
    justify-content: center;
    margin-bottom: .5rem;
}

.input-container-font {
    font-size: 1.25rem;
    text-align: center;
}

#priority {
    width: 20%;
    height: 50px;
}

#taskname {
    width: 40%;
    height: 50px;
}

#deadline {
    width: 20%;
    height: 50px;
}

.hint {
    text-align: center;
    margin-top: 0;
    margin-bottom: 2rem;
}

.table-container {
    overflow-x: auto;
    margin-bottom: 1rem;
}

table {
    min-width: 80%;
    margin-left: auto;
    margin-right: auto;
    border-collapse: collapse;
}

table th {
    width: 20%;
    height: 50px;
    padding: 0;
    font-size: 1.2rem;
}

table th:nth-child(even) {
    border-left: 2px dotted black;
    border-right: 2px dotted black;
}

table td {
    font-size: 1.125rem;
    padding: .5rem;
}

.tdOptionsContainer {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
}

.icon {
    width: 20px;
    height: 20px;
    display: block;
}

.filter-font {
    font-size: .8rem;
}

.filter-selected {
    border: 1px solid lightgray;
}

.footer-container {
    display: flex;
    width: 50%;
    margin-left: auto;
    margin-right: auto;
    justify-content: space-between;
    align-items: center;
    border: 1px solid lightgray;
    padding: 0 2rem;
}

.footer-container ul {
    margin: 0;
}

.footer-container ul li {
    display: inline-block;
    margin: .2rem;
    padding: .2rem .5rem;
    cursor: pointer;
}

.footer-container ul li:hover {
    border: 1px solid lightgray;
}

.footer-container button {
    background: white;
    border: none;
}

.footer-container button:hover {
    text-decoration: underline;
    cursor: pointer;
}

@media screen and (max-width: 1440px) {
    main div {
        width: 100%;
    }
    .footer-container {
        width: 70%;
    }
}

@media screen and (max-width: 834px) {
    #priority {
        width: 20%;
    }
    #taskname {
        width: 50%;
    }
    #deadline {
        width: 30%;
    }
}

@media screen and (max-width: 667px) { 
    .footer-container {
        width: 100%;
    }
    table th {
        min-width: 150px;
    }
}

@media screen and (max-width: 568px) { 
    .input-container {
        flex-direction: column;
    }
    #priority {
        width: 100%;
    }
    #taskname {
        width: 100%;
    }
    #deadline {
        width: 100%;
    }
    .footer-container {
        flex-direction: column;
    }
    .filter-font {
        padding: .5rem;
    }
}