@font-face {
    font-family: "icon";
    src: url(fonts/icon.ttf) format("truetype");
}

@font-face {
    font-family: "Montserrat";
    src: url(fonts/Montserrat-VariableFont_wght.ttf) format("truetype");
}

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

.none {
    display: none;
}

.flex {
    display: flex;
}

html {
    font-size: 15px;
}

/* scroolbar */
::-webkit-scrollbar {
    width: 3px;
    height: 3px;
}

::-webkit-scrollbar-track {
    box-shadow: inset 0 0 5px #00000030;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #00000030;
}

/* Global */

body {
    font-family: Montserrat, sans-serif;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 0.8rem;
    color: #00000090;
    background-color: #9dafbf;
    max-width: 1200px;
    margin: auto;
    height: 99vh;
    min-height: 34rem;
}

h1,
h3,
h6 {
    padding: 0 1rem;
}

h1 {
    font-size: 1.7rem;
}

.notif {
    opacity: 80%;
    font-weight: 300;
}

.icon.red {
    color: #700b35;
}

.acc {
    color: #3c7594;
}

a:any-link {
    color: inherit;
    text-decoration: none;
}

/* ---- Icon button ---- */
.icon {
    font-family: icon;
    padding: 0 0.5rem;
    font-size: 1.5rem;
    text-align: center;
    font-weight: 400;
    font-variation-settings: "FILL" 1;
}

.fill {
    color: #00000090;
}

/* form buuton input */

.log,
.log form,
.settings {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    width: 100%;
}

.log form {
    align-items: flex-start;
}

.log form div,
.settings form div {
    width: 100%;
}

form,
.bulle,
li,
::-webkit-scrollbar-thumb {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 2rem;
    border: none;
    background-color: #ffffff20;
    box-shadow: 0px 2px 8px #00000040;
    width: 100%;
    height: fit-content;
    padding: 0;
}

form.no {
    background-color: transparent;
    box-shadow: none;
}

.settings form label,
h3,
p {
    display: flex;
    align-items: center;
}

.bulle {
    padding: 0.4rem 0.6rem;
    gap: 1rem;
    width: fit-content;
}

button,
input {
    font-family: Montserrat, sans-serif;
    border: none;
    background-color: transparent;
    border-radius: 2rem;
    cursor: pointer;
    color: inherit;
    font-size: 1rem;
}

label {
    text-align: right;
}

input::placeholder {
    color: #000000;
    opacity: 80%;
}

input:focus,
input:active,
input:-internal-autofill-selected {
    border: none;
    background-color: #00000010;
    outline-width: 0px;
}

input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
input[type="submit"] {
    font-size: 1rem;
    margin-left: 0.2rem;
    padding: 0.4rem 0.6rem;
    width: 100%;
}

input[type="number"] {
    width: 3rem;
}

.saisie button[type="submit"] {
    padding: 0 0.6rem;
}

/* date */
input[type="date"] {
    text-align: right;
    font-size: 0.8rem;
    padding: 0;
    opacity: 70%;
    border-radius: 0;
}

.saisie input[type="date"] {
    width: fit-content;
}

input[type="text"],
input[type="date"]:focus,
input[type="date"]:active,
input[type="date"]:-internal-autofill-selected {
    background-color: #00000000;
}

input[type="date"]::-webkit-calendar-picker-indicator {
    font-size: 1.2rem;
    font-weight: 200;
    opacity: 80%;
    position: relative;
    right: 0;
    padding: 0 0 0 0.4rem;
}

/*radio*/
input[type="radio"] {
    display: none;
    transform: scale(3.5);
}

input[type="radio"] + label {
    margin: 0.5rem;
}

input[type="radio"]:checked + label {
    border: 0.2rem outset #ffffff80;
}

/*header */
article,
header {
    display: grid;
    justify-self: center;
    border-radius: 2rem;
    background-color: #ffffff20;
    padding: 1rem;
    width: 100%;
    box-shadow: 0px 2px 8px #00000040;
}

header {
    grid-template-columns: 1fr auto;
    box-sizing: border-box;
}

header nav {
    display: flex;
    justify-content: end;
    align-items: center;
    gap: 0.5rem;
}

/* pop up ------*/
.popUp {
    position: absolute;
    height: cal (100vh - 10rem);
    max-width: 1200px;
    width: 90%;
    z-index: 100;
    top: 8rem;
}
.popUp div {
    flex-direction: column;
    gap: 1rem;
    width: fit-content;
    height: fit-content;
    margin: auto;
    padding: 2rem;
    text-align: center;
}

.popUp div div {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
    padding: 1rem 0;
}
.popUp form {
    gap: 1rem;
    flex-direction: column;
}

.popUp input {
    padding: 1rem;
}

/* main ---*/
main {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex: 1;
    width: 100%;
    z-index: 2;
}

/* saisie */

.saisie,
.listT {
    align-items: center;
    height: fit-content;
    justify-content: space-between;
}

.saisie,
.listT,
.listT div {
    display: flex;
    gap: 0.5rem;
}

.saisie form {
    padding: 0.4rem;
}

/*SETTINGS TAB */

#setDiv {
    display: none;
    grid-template-rows: calc(100vh - 11.5rem);
    z-index: 1;
}

.settings {
    overflow: hidden;
    min-height: 23.5rem;
}

.scrollS {
    overflow-y: auto;
}

section {
    width: 100%;
    display: flex;
}

div.scrollSV {
    overflow: auto;
}

.settings form {
    flex-direction: column;
    gap: 0.2rem;
    align-items: flex-start;
}

hr {
    opacity: 50%;
}

/* cat tab */
.setBtn2 {
    height: 2.5rem;
    width: 2.8rem;
    z-index: 1;
    align-items: flex-end;
    flex-direction: column;
}

.listT .setDiv2 {
    display: none;
    width: fit-content;
    z-index: 3;
    justify-content: center;

    form,
    div {
        display: grid;
        grid-template-rows: auto auto;
        grid-template-columns: auto auto;
        padding: 0.5rem;
    }
}

/* LISTE DE TACHES */

.list {
    overflow: auto;
    border-radius: 1rem;
}

.list .icon {
    padding: 0;
}

.cont {
    display: grid;
    grid-template-rows: auto 1fr;
    overflow: hidden;
    row-gap: 0.5rem;
    height: 100%;
}

ol {
    display: grid;
    row-gap: 0.5rem;
    padding: 0.4rem 0.3rem;
}

li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.4rem 0.8rem;
    font-size: 0.9rem;
}

li div,
li form,
form div,
footer a {
    display: flex;
    align-items: center;
}

li div {
    gap: 0.5rem;
}

li form {
    background-color: transparent;
    box-shadow: none;
    border-radius: 0;
    justify-content: end;
}

li form input[type="date"] {
    max-width: fit-content;
}

.arrow {
    gap: 0;
}

#doneL {
    opacity: 60%;
}

.done {
    text-decoration-line: line-through;
}
#notifArea {
    padding: 0 1rem;
    font-size: 0.8rem;
}

/* footer */
footer {
    opacity: 50%;
    font-size: 0.8rem;
    display: flex;
    align-self: center;
    z-index: 1;
    position: relative;
    height: 2.5rem;
}

/* ---- medias ---- */
@media (min-width: 768px) {
    html {
        font-size: 16px;
    }

    .saisie,
    header {
        flex-direction: row;
    }

    li form input {
        font-size: 0.8rem;
        max-width: fit-content;
        padding: 0rem;
    }
}

/* color*/

.whiteBtn {
    background-color: #9dafbf;
    color: #3c7594;
}

.white {
    background-color: #9dafbf;
}

.blueBtn {
    color: #2f5e87;
}

.blue {
    background-color: #749abb;

    .acc,
    .icon.acc {
        color: #2f5e87;
    }
}

.dark,
.pink,
.green {
    color: #ffffffc9;
    input::placeholder,
    .fill,
    input,
    h6,
    a:any-link,
    form,
    .icon,
    input[type="date"]::-webkit-calendar-picker-indicator {
        color: #ffffff90;
        color-scheme: dark;
        color: inherit;
    }
    input:focus,
    input:active,
    input:-internal-autofill-selected {
        border: none;
        background-color: #00000010;
        outline-width: 0px;
    }

    .icon.red {
        color: #ff5f6f;
    }

    .darkBtn {
        color: #859ae5;
    }

    .pinkBtn {
        color: #bd668d;
    }

    .blueBtn {
        color: #2f5e87;
    }

    .greenBtn {
        color: #55abba;
    }

    .whiteBtn {
        background-color: #9dafbf;
        color: #3c7594;
    }
}

.darkBtn {
    color: #859ae5;
}

.dark {
    background-color: #0b101b;

    .acc,
    .icon.acc {
        color: #859ae5;
    }
}

.pinkBtn {
    color: #bd668d;
}

.pink {
    background-color: #601234;

    .acc,
    .icon.acc {
        color: #bd668d;
    }
}

.greenBtn {
    color: #55abba;
}

.green {
    background-color: #0b525f;

    .acc,
    .icon.acc {
        color: #55abba;
    }
}

@media print {
    body {
        visibility: hidden;
    }

    #list {
        visibility: visible;
        position: absolute;
        padding: 0 1.5rem;
        color: #000000;
        box-shadow: none;
        border-radius: 0;
    }
}
