/* Variables */
:root {
    --font-primary: sans-serif;

    --color-white: #ffffff;
    --color-black: #333333;
    --color-light: #f1f1f1;
    --color-dark: #444444;

    --color-primary: rgb(68, 218, 128);
    --color-red: rgb(223, 64, 64);
}

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

html, body {
    font-family: var(--font-primary);
    font-size: 62.5%;
}

/* Universal Button Template */
.btn {
    background-color: var(--color-light);
    color: var(--color-dark);
    font-family: var(--font-primary);
    font-size: 1.6rem;
    text-transform: uppercase;
    width: 14rem;
    height: 4rem;
    padding: 1rem;
    border-radius: 2rem;
    border: none;
    outline: none;
}

.btn:hover {
    cursor: pointer;
    filter: brightness(95%);
}

.btn:active {
    filter: brightness(90%);
}

.btn-primary {
    background-color: var(--color-primary);
    color: #ffffff;
}

.btn-negative {
    background-color: var(--color-red);
    color: #ffffff;
}

/* Modals */
.modal-background {
    background-color: #000000;
    width: 100vw;
    height: 100vh;
    position: absolute;
    top: 0;
    left: 0;
    opacity: .8;
    display: none;
    z-index: 100;
}

.settings-inner-modal {
    background-color: #000000;
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    opacity: .8;
    display: none;
    z-index: 150;
}

.settings-inner-container {
    background-color: transparent;
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 160;
}

.settings-inner-container--box {
    background-color: var(--color-white);
    color: var(--color-black);
    width: 80%;
    max-width: 50rem;
    padding: 5rem;
    border-radius: .5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}

.close-inner-modal-container {
    width: 4rem;
    height: 4rem;
    position: absolute;
    top: 2rem;
    right: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.close-inner-modal-container:hover {
    cursor: pointer;
}

.close-inner-modal-container i {
    color: var(--color-dark);
    font-size: 3rem;
}

.settings-inner-container--box h2 {
    font-size: 3rem;
    text-align: center;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.settings-inner-container--box p {
    font-size: 1.8rem;
    font-weight: 100;
    text-align: center;
    line-height: 1.5;
    margin-top: 1.5rem;
}

.settings-inner-container--box input {
    background-color: var(--color-light);
    color: var(--color-black);
    font-family: var(--font-primary);
    font-size: 2rem;
    width: 100%;
    max-width: 30rem;
    margin-top: 3rem;
    padding: 1rem 2rem;
    border: .1rem solid transparent;
    outline: none;
}

.settings-inner-container--box input:focus {
    border: .1rem solid var(--color-dark);
}

.settings-inner-container--box input::placeholder {
    font-family: var(--font-primary);
    color: var(--color-dark);
    font-weight: 100;
    opacity: .5;
}

.settings-inner-container--box .button-container {
    width: 100%;
    max-width: 32rem;
    margin-top: 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Settings Modal */
.settings-modal {
    background-color: var(--color-white);
    width: 50rem;
    max-width: 50rem;
    height: 100vh;
    position: absolute;
    top: 0;
    right: 0;
    display: none;
    flex-direction: column;
    overflow: hidden;
    z-index: 110;
}

.close-settings-modal {
    width: 3rem;
    height: 3rem;
    position: absolute;
    top: 2rem;
    right: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.close-settings-modal:hover {
    cursor: pointer;
}

.close-settings-modal i {
    font-size: 3rem;
}

.settings-modal--header {
    width: 100%;
    height: 10rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.settings-modal--header p {
    color: var(--color-primary);
    font-size: 3rem;
    font-weight: 900;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: .2rem;
}

.settings-modal--container {
    width: 100%;
    padding: 0 5rem;
    flex: 1;
    overflow-y: scroll;
}

.settings-modal--inner-container {
    width: 100%;
}

.settings-header {
    border-bottom: .2rem solid var(--color-primary);
    display: flex;
    justify-content: center;
    align-items: center;
}

.settings-header:not(:first-child) {
    margin-top: 4rem;
}

.settings-header p {
    font-size: 2rem;
    font-weight: 600;
    text-align: center;
    padding-bottom: 1rem;
}

.settings-content {
    margin-top: 1rem;
    display: grid;
    grid-column-gap: .5rem;
    grid-row-gap: 1rem;
    grid-template-columns: repeat(3, auto);
    grid-template-rows: repeat(3, auto);
}

.settings-content p {
    background-color: var(--color-light);
    font-size: 1.6rem;
    padding: 1rem;
    display: flex;
    justify-content: left;
    align-items: center;
}

.settings-content i {
    font-size: 1.2rem;
    margin-right: .5rem;
}

.settings-edit:hover {
    cursor: pointer;
    filter: brightness(95%);
}

.settings-edit:active {
    filter: brightness(95%);
}

.colours {
    background-color: var(--color-light);
    grid-column-start: 2;
    grid-column-end: 4;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
}

.colour-box {
    background-color: var(--color-dark);
    width: 3.5rem;
    height: 3.5rem;
    border: .5rem solid var(--color-light);
    border-radius: 50%;
}

.colour-box:hover {
    cursor: pointer;
    filter: brightness(95%);
}

.colour-green {
    background-color: rgb(68, 218, 128);
}
.colour-orange {
    background-color: rgb(255, 165, 0);
}
.colour-blue {
    background-color: rgb(80, 170, 218);
}
.colour-pink {
    background-color: rgb(247, 167, 180);
}
.colour-purple {
    background-color: rgb(112, 112, 216);
}

.colour-active {
    border: .5rem solid var(--color-dark)
}

.stats-section {
    height: 14rem;
    margin-top: 1rem;
    display: grid;
    grid-gap: 1rem;
    grid-template-columns: repeat(4, auto);
}

.stat-box {
    background-color: var(--color-light);
    color: var(--color-dark);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.stat-box--number {
    font-size: 4rem;
}

.stat-box--text {
    font-size: .8rem;
    font-weight: 600;
    text-align: center;
    text-transform: uppercase;
    margin-top: 2rem;
}

.stat-box--text p:first-child {
    margin-bottom: .4rem;
}

.summary-stats {
    width: 100%;
    height: 10rem;
    margin-top: 1rem;
    display: flex;
    justify-content: space-between;
}

.summary-stats--box {
    background-color: var(--color-light);
    width: 49%;
    height: 100%;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
}

.stats-icon i {
    font-size: 3rem;
}

.stats-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.stats-text--number {
    font-size: 4rem;
}

.stats-text--text {
    font-size: .8rem;
    font-weight: 600;
    text-align: center;
    text-transform: uppercase;
    margin-top: 1rem;
}

.stats-text--text p:first-child {
    margin-bottom: .4rem;
}

.recent-box--empty {
    height: 10rem;
    justify-content: center;
}

.recent-box--empty-inner {
    height: 100%;
    font-size: 1.8rem;
    font-style: italic;
    display: flex;
    justify-content: center;
    align-items: center;
}

.recent-box {
    width: 100%;
    margin-top: 3rem;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.recent-box--item {
    width: 100%;
    margin: 2rem auto;
}

.recent-box p {
    font-size: 1.6rem;
    text-align: center;
    line-height: 1.5;
}

.recent-box--item p {
    font-size: 2rem;
    font-weight: 600;
    margin: 0 2rem;
    padding: 1rem;
    border: .1rem solid var(--color-primary);
}

.progress-container {
    height: 10rem;
}

.progress-container--stats {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
}

.progress-stats-box {
    width: 40%;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

.progress-stats-box p:first-child {
    font-size: 1.4rem;
    font-weight: 600;
    margin-right: 1rem;
}

.progress-stats-box p:last-child {
    font-size: 3rem;
    font-weight: 600;
    transform: translateY(.5rem);
}

.progress-bar {
    background-color: var(--color-light);
    width: 100%;
    height: 4rem;
    margin: 2rem auto;
    border-radius: 2rem;
    overflow: hidden;
}

.progress-bar-inner {
    background-color: var(--color-primary);
    width: 0%;
    height: 100%;
}

.progress-quote-generator {
    font-size: 1.6rem;
    font-style: italic;
    line-height: 1.5;
    text-align: center;
}

.reset-button-container {
    margin-top: 10rem;
    margin-bottom: 8rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.reset-btn {
    font-family: var(--font-primary);
    font-size: 1.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .1rem;
    min-width: 10rem;
    padding: 2rem 4rem;
    border: none;
    border-radius: 3rem;
    outline: none;
    transition: all .3s;
}

.reset-btn:hover {
    cursor: pointer;
    filter: brightness(95%);
}

.reset-btn:active {
    filter: brightness(90%);
}


.settings-modal--footer {
    width: 100%;
    height: 10rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.settings-modal--footer p {
    color: var(--color-dark);
    font-size: 1.8rem;
}





/* Add Button (Small Screens) */
.add-btn-container {
    width: 6rem;
    height: 6rem;
    position: fixed;
    bottom: 3rem;
    right: 3rem;
    display: none;
    z-index: 70;
}

.add-btn-small {
    background-color: var(--color-primary);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: none;
    outline: none;
    transition: all .3s;
}

.add-btn-small i {
    color: #ffffff;
    font-size: 2.5rem;
}

.add-btn-small:hover {
    cursor: pointer;
    filter: brightness(95%);
}

.add-btn-small:active {
    filter: brightness(90%);
}

/* Main Container */
.container {
    background-color: var(--color-light);
    color: var(--color-dark);
    width: 100vw;
    height: 100vh;
    overflow-y: scroll;
}

/* Navigation */
.nav {
    background-color: var(--color-white);
    width: 100%;
    height: 10rem;
    padding: 0 5rem;
    position: sticky;
    top: 0;
    left: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all .3s;
    z-index: 30;
}

.header h1 {
    color: var(--color-dark);
    font-size: 3rem;
    font-weight: 100;
}

.options {
    width: 10rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.options i {
    font-size: 2.5rem;
}

.options--toggle {
    width: 4rem;
    height: 4rem;
    overflow: hidden;
}

.options--toggle-inner {
    width: 4rem;
    height: 4rem;
    transition: linear .1s;
}

.toggle-box {
    width: 4rem;
    height: 4rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.toggle-box:hover {
    cursor: pointer;
}

.options--settings {
    width: 4rem;
    height: 4rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.options--settings:hover {
    cursor: pointer;
}

/* List Container */
.list-container {
    background-color: var(--color-light);
    width: 100vw;
    padding: 4rem 5rem;
}

.list {
    background-color: var(--color-white);
    width: 100%;
    max-width: 54rem;
    min-height: 50rem;
    margin: 0 auto 3rem auto;
    padding: 4.5rem 5rem;
    border-radius: .5rem;
    box-shadow: rgba(0, 0, 0, 0.16) 0px 10px 36px 0px, rgba(0, 0, 0, 0.06) 0px 0px 0px 1px;
}

.list h1 {
    color: var(--color-primary);
    font-size: 3.5rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: .2rem;
    line-height: 1.5;
    margin-top: 2rem;
}

.summary {
    background-color: var(--color-light);
    color: var(--color-dark);
    width: 80%;
    margin: 4.5rem auto;
    margin-bottom: 3rem;
    padding: 3rem;
}

.summary p {
    font-size: 1.6rem;
    font-weight: 100;
    text-align: center;
    line-height: 1.5;
}

.summary p:not(:first-child) {
    margin-top: 1rem;
}

.input-container {
    width: 80%;
    height: 4.2rem;
    margin: 0 auto;
    display: flex;
}

.input-container input {
    background-color: var(--color-light);
    color: var(--color-black);
    font-family: var(--font-primary);
    font-size: 1.8rem;
    padding: 1rem 2rem;
    border: .1rem solid transparent;
    outline: none;
    flex: 1;
}

.input-container input:focus {
    border: .1rem solid var(--color-dark);
}

.input-container input::placeholder {
    font-family: var(--font-primary);
    color: var(--color-dark);
    font-size: 1.6rem;
    font-weight: 100;
    opacity: .5;
}

.input-container button {
    background-color: var(--color-primary);
    color: #ffffff;
    min-width: 10rem;
    text-transform: uppercase;
    font-weight: 600;
    font-size: 1.4rem;
    border: none;
    outline: none;
}

.input-container button:hover {
    cursor: pointer;
    filter: brightness(95%);
}

.input-container button:active {
    filter: brightness(90%);
}

/* Empty List Display */
.empty-list-display {
    width: 80%;
    height: 20rem;
    margin: 3rem auto 0 auto;
    padding: 4rem 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: .1rem solid var(--color-dark);
    border-style: dashed;
    border-radius: .5rem;
    /* display: none; */
}

.empty-list-display i {
    font-size: 4rem;
    opacity: .5;
    margin-bottom: 2rem;
}

.empty-list-display p {
    font-size: 1.8rem;
    font-style: italic;
    text-align: center;
    line-height: 1.5;
    opacity: .5;
}

/* List Item Container */
.list-item-container {
    width: 80%;
    margin: 3rem auto 0 auto;
    display: none;
    flex-direction: column;
}

/* Filter Items */
.filter-items {
    width: 100%;
    height: 4rem;
    margin: 0 auto 3rem auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.filter-box {
    background-color: var(--color-light);
    color: gray;
    height: 4rem;
    font-size: 1.5rem;
    font-weight: 600;
    border: .1rem solid transparent;
    display: flex;
    justify-content: center;
    align-items: center;
}

.filter-box:hover {
    border: .1rem solid lightgray;
    cursor: pointer;
}

.filter-box:not(:first-child), .filter-box:not(:last-child) {
    margin: 0 .1rem;
}

.filter-box--icon {
    width: 4rem;
}

.filter-box--text {
    flex: 1;
}

.filter-box--small {
    padding: 2rem;
}

.fa-exchange-alt {
    transform: rotate(90deg);
}

.filter-active {
    background-color: var(--color-primary);
    color: white;
    border: .1rem solid var(--color-primary);
}

.filter-active:hover {
    cursor: default;
    border: .1rem solid var(--color-primary);
}

.filter-items-main {
    display: flex;
}

.filter-items-small {
    display: none;
}

/* To-Do Item Container */
.to-do-item-container {
    width: 120%;
    transform: translateX(-10%);
    display: flex;
    flex-direction: column;
}

.to-do-item-container-reverse {
    flex-direction: column-reverse;
}

/* To-Do Item */
.to-do-item {
    width: 100%;
    margin: .5rem 0;
    padding: 2rem;
    transition: all .3s;
    position: relative;
    display: flex;
    overflow: hidden;
}

.to-do-item:hover {
    transform: scale(105%);
    box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
    z-index: 20;
}

.to-do-item-background {
    background-color: transparent;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    opacity: .1;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    transition: all .3s;
    z-index: 10;
}

.to-do-item i {
    color: #808080;
    font-size: 2rem;
    padding: 1rem;
    transition: all .2s;
}

.to-do-item i:hover {
    cursor: pointer;
    filter: brightness(90%);
}

.to-do-item i.fa-check-circle:hover {
    cursor: default;
    filter: brightness(100%);
}

.star-container {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: -10%;
    display: none;
    justify-content: left;
    align-items: center;
    overflow: hidden;
}

.star-container i {
    color: var(--color-primary);
    font-size: 10rem;
    opacity: .2;
    transform: rotate(20deg);
}

.item-content-main {
    display: flex;
    align-items: center;
    flex: 1;
    z-index: 20;
}
.item-content-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 20;
}

.to-do-item--checkbox i {
    color: var(--color-primary);
    font-size: 2.4rem;
}

.to-do-item--content {
    margin: 0 1rem;
    flex: 1;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.content-text {
    width: 100%;
}

.content-text--to-do {
    width: 100%;
    font-size: 1.8rem;
    line-height: 1.5;
    padding-bottom: 1rem;
    border-bottom: .1rem solid var(--color-primary);
}

.content-text--date {
    font-size: 1.2rem;
    padding-top: 1rem;
    line-height: 1.5;
}



/* Change background on completion */
.item-complete .to-do-item-background {
    background-color: var(--color-primary); 
}

/* Add border on prioritised */
.item-priority {
    border: .2rem solid var(--color-primary);
}

.item-priority .star-container {
    display: flex;
}


/* Universal List Styling */
.emphasis {
    font-weight: 600;
}

.highlight {
    color: var(--color-primary);
}

.highlight-negative {
    color: var(--color-red);
}


/* ↔️ Media Queries ↔️ */
@media only screen and (max-width: 600px) {
    .settings-modal {
        width: 100vw;
        max-width: 100vw;
    }
    .settings-modal--footer {
        height: 6rem;
    }
    .settings-modal--footer p {
        font-size: 1.2rem;
    }
    .nav {
        padding: 0 3rem;
    }
    .options {
        width: 8rem;
    }
    .list-container {
        height: calc(100vh - 8rem);
        padding: 0;
    }
    .list {
        min-width: 100%;
        min-height: 100%;
        padding: 1rem 5rem;
        border-radius: 0;
        box-shadow: none;
    }
    .to-do-item {
        padding: 2rem .5rem;
    }
}

@media only screen and (max-width: 500px) {
    .btn {
        font-size: 1.6rem;
        text-transform: uppercase;
        max-width: 12rem;
        height: 4rem;
        margin: 0 .2rem;
        border-radius: 2rem;
        border: none;
        outline: none;
    }
    .settings-inner-container--box {
        width: 100%;
        height: 100%;
        padding: 4rem;
        border-radius: 0;
    }
    .close-inner-modal-container {
        display: none;
    }
    .settings-inner-container--box input::placeholder {
        font-size: 1.6rem;
    }
    .settings-modal--container {
        padding: 0 2rem;
    }
    .settings-header:not(:first-child) {
        margin-top: 2rem;
    }
    .settings-header p {
        font-size: 1.8rem;
    }
    .settings-content p {
        font-size: 1.4rem;
    }
    .stats-section {
        height: 12rem;
    }
    .stat-box--number {
        font-size: 3rem;
    }
    .stats-text--number {
        font-size: 3rem;
    }
    .stats-text--text p:first-child {
        margin-bottom: .2rem;
    }
    .recent-box--empty {
        height: 8rem;
    }
    .recent-box--empty-inner {
        font-size: 1.6rem;
    }
    .recent-box {
        margin-top: 1rem;
    }
    .recent-box p {
        font-size: 1.2rem;
        padding: 0 2rem;
    }
    .recent-box--item p {
        font-size: 1.4rem;
        margin: 0 2rem;
        padding: 1rem;
        border: .1rem solid var(--color-primary);
    }
    .progress-bar {
        width: 80%;
    }
    .progress-stats-box p:first-child {
        font-size: 1.2rem;
        transform: translateY(.2rem);
    }
    .progress-stats-box p:last-child {
        font-size: 2rem;
    }
    .progress-bar {
        height: 3rem;
    }
    .progress-quote-generator p {
        font-size: 1.2rem;
    }
    .reset-button-container {
        margin-top: 6rem;
        margin-bottom: 6rem;
    }
    .colour-box {
        width: 2.4rem;
        height: 2.4rem;
    }
    .colour-active {
        border: .2rem solid var(--color-dark)
    }
    .reset-btn {
        font-size: 1.4rem;
    }
    .add-btn-container {
        display: flex;
    }
    .header h1 {
        font-size: 2.5rem;
    }
    .nav {
        height: 8rem;
        padding: 0 2rem;
    }
    .list h1 {
        font-size: 3rem;
        margin-top: 0;
    }
    .summary {
        width: 100%;
        margin: 3rem auto;
    }
    .input-container {
        display: none;
    }
    .empty-list-display {
        width: 100%;
    }
    .list-item-container {
        width: 100%;
    }
    .filter-items-main {
        display: none;
    }
    .filter-items-small {
        display: flex;
    }
    .filter-box--icon {
        flex: 1;
    }
    .to-do-item-container {
        width: 100%;
        min-height: 20rem;
        transform: translateX(0);
    }
    .to-do-item {
        flex-direction: column;
        padding: 1.5rem;
    }
    .item-content-icons {
        width: 90%;
        margin: .5rem 0 0 10%;
    }
}
