body {
    margin: 0px;
    display: flex;
    align-items: center;
    height: auto;
    justify-content: center;
    flex-direction: column;
    box-sizing: border-box;
    background-color: #1A2B3C;
}
html{
    scroll-behavior: smooth;
}

nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #1A2B3C;
    font-family: 'Rajdhani';
    font-weight: bold;
    font-size: 22px;
    position: sticky;
    box-sizing: border-box;
    overflow: hidden;
    top: 0;
    width: 100%;
    height: 60px;
    padding: 0px 20px;
    z-index: 1;
}

nav a {
    display: flex;
    align-items: center;
    color: white;
    text-decoration: none;
    /* padding-left: 25px;   */
}
.input-container {
    width: 200px;
    display: flex;
    align-items: center;
}

#export-btn {
    color: rgb(255, 255, 255);
    background-color: transparent;
    border: 2px solid #58f07c;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.33s ease;
}

/* Masquer le texte natif de l'input file */
input[type="file"] {
    color: transparent;
}

input[type="file"]::-webkit-file-upload-button {
    visibility: hidden;
}

input[type="file"]::before {
    content: "IMPORT";
    display: inline-block;
    color: white;
    padding: 8px 16px;
    background-color: transparent;
    border: 2px solid #58f07c;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    margin: 0px 15px;
    transition: 0.33s ease;
}

.fa-circle-check{
    font-size: 16.5px;
    margin-left: 1px;
    color: #57cc99;
}

/* HOME */
.home {
    display: flex;
    box-sizing: border-box;
    height: auto;
    background-color: rgb(243, 243, 243);
}

.home img {
    max-width: 35%;
}

.pres {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.pres h1 {
    font-family: 'Russo One';
    font-size: 7vw;
    margin-top: 29px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
    margin: 0;
}

.pres h2 {
    font-family: 'Rajdhani';
    font-weight: bold;
    font-size: 35px;
    text-align: center;
    margin: 20px 0px;
}

.pres p {
    font-family: 'Rajdhani';
    font-weight: bold;
    font-size: 25px;
    width: 70%;
    color: black;
    text-align: center;
    padding: 0;
    margin: 15px 0px;
}


.btn-app {
    background: #57cc99;
    width: 200px;
    margin-top: 10px;
    height: auto;
    color: #fff;
    padding: 10px 20px 10px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
    border-radius: 5px;
    border: none;
    box-shadow: inset 2px 2px 2px 0px rgba(255, 255, 255, .5), 7px 7px 20px 0px rgba(0, 0, 0, .1), 4px 4px 5px 0px rgba(0, 0, 0, .1);
    margin-bottom: 30px;
}

.btn-app:hover {
    background-color: #80ed99;
}

.btn-app:active {
    top: 2px;
}

/* TODO  */
#todo {
    display: flex;
    justify-content: center;
    display: none;
    /* background-color: coral; */
    min-height: 750px;
    width: 90%;
    height: auto;
    border-radius: 10px;
    margin: 25px 0 25px 0;
}

.todo-menu {
    display: flex;
    flex-direction: column;
    width: 25%;
    background-color: rgb(255, 255, 255);
    padding: 20px;
    border-radius: 5px;
    margin: 10px;
    border: 2px solid gray;
}

.todo-menu h2 {
    margin: 40px 0 0 0;
}


#list-cat {
    margin-top: 15px;
}

#form1 {
    /* background-color: darkkhaki; */
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    /* background-color: #a4a4a4; */
    min-height: 150px;
}

.fa-list {
    margin-right: 10px;
}

#form1 label {
    font-family: Aldrich;
    font-size: 21px;
}

form input {
    background-color: rgb(222, 222, 222);
    height: 25px;
    padding: 10px;
    border-radius: 5px;
    border: none;
    outline: none;
    font-size: 16px;
}

form button {
    height: 45px;
    padding: 10px;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 15px;
    border-radius: 10px;
    border: none;
    color: white;
    background-color: black;
}

form button:hover {
    color: rgb(151, 255, 170);
    transition: 0.25s;
}

.headList {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* background-color: #5d7d9d; */
    margin: 20px 0 15px 0;
    padding: 0px 10px 0 10px;
    color: black;
    border-top: 2px solid black;
    border-bottom: 2px solid black;
}

.headList p {
    font-family: Aldrich;
    font-size: 21px;
    /* font-weight: bold; */
}


.number-list {
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Russo one';
    font-size: 25px;
    background-color: white;
    border: 2px solid black;
    border-radius: 50%;
    height: 20px;
    width: 20px;
    margin-left: 10px;
    padding: 10px;
}

.delete-btn {
    font-family: 'FontAwesome';
    font-size: 18px;
    border: none;
    background-color: transparent;
}

.delete-btn:hover {
    font-size: 18px;
    color: rgb(255, 36, 36);
    transition: 0.25s;
    border: none;
    background-color: transparent;
}

.todoCat {
    height: 35px;
    background-color: rgb(207, 207, 207);
    margin-bottom: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    font-size: 19px;
    font-family: 'Rajdhani';
    font-weight: bold;
    text-transform: uppercase;
    border-radius: 5px;
}

.todoCat:hover {
    background-color: rgb(70, 70, 70);
    color: white;
    transition: 0.25s;
    box-shadow: rgba(50, 50, 93, 0.25) 0px 6px 12px -2px, rgba(0, 0, 0, 0.3) 0px 3px 7px -3px;
}

#title-div {
    background-color: rgb(255, 255, 255);
    height: auto;
    width: 65%;
    padding: 20px;
    margin: 10px;
    border-radius: 5px;
    border: 2px solid rgb(155, 155, 155);

}

#form2 {
    /* background-color: #80ed99; */
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.form2-contain {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 45%;
    /* background-color: fuchsia; */
}

.form2Title {
    font-family: 'Russo one';
    text-align: center;
    text-transform: uppercase;
    font-size: 45px;
    width: 50%;
}

.list-title {
    margin: 25px 0px 25px 0;
    font-family: Aldrich;
}

#myName {
    background-color: rgb(222, 222, 222);
    height: 30px;
    border-radius: 5px;
    border: none;
}

.head-contain {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-family: Aldrich;
    font-size: 21px;
    margin: 20px 0px 20px 0;
}

.fa-circle-plus {
    font-size: 25px;
    margin-right: 10px;
}

#add-Item {
    height: 45px;
    background-color: black;
    color: white;
    margin-bottom: 15px;
}

#add-Item:hover {
    color: rgb(151, 255, 170);
    transition: 0.25s;
}

.div-items {
    background-color: rgb(207, 207, 207);
    margin: 20px 0 20px 0px;
    /* height: 30px; */
    padding: 10px;
    color: black;
    display: flex;
    align-items: center;
    border-radius: 5px;
}

.div-items:hover {
    box-shadow: rgba(50, 50, 93, 0.25) 0px 6px 12px -2px, rgba(0, 0, 0, 0.3) 0px 3px 7px -3px;
}

.div-items button {
    border: none;
    height: 25px;
    width: 25px;
}

.contain-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Rajdhani';
    font-weight: bold;
    font-size: 20px;
    width: 100%;
}

.left-item {
    display: flex;
    justify-content: flex-start;
    overflow: hidden;
    height: auto;
    width: 95%;
    word-wrap: break-word;
}

.left-item-text {
    overflow: hidden;
    white-space: normal;
    word-wrap: break-word;
}

.delItem {
    font-family: 'FontAwesome';
    background-color: transparent;
    border: none;
    font-size: 19px;
}

.delItem:hover {
    color: red;
    transition: 0.25s;
}

.img-select{
    width: 100%;
}

.title-select{
    font-family: 'Russo one';
    font-size: 50px;
    text-align: center;
    margin: 10px 0 10px 0;
}

/* // FOOTER */
footer{
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #1A2B3C;
    font-family: 'Rajdhani';
    font-size: 18px;
    width: 100%;
    color: #909090;
}

footer a{
    text-decoration: none;
    color: white;
    margin: 5px;
    margin-left: 10px;
}

footer a:hover{
    color: rgb(151, 255, 170);
}


.contact{
    display: flex;
    flex-direction: column;
    margin: 10px;
}

/* CHECKBOX */
input[type=checkbox] {
    position: relative;
    margin-right: 15px;
}

input[type=checkbox]:before {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    border: 2px solid #555555;
    border-radius: 6px;
    background-color: white;
}

input[type=checkbox]:checked:after {
    content: "";
    display: block;
    width: 5px;
    height: 10px;
    top: 48%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
    border: solid rgb(5, 139, 0);
    border-width: 0 2px 2px 0;
    position: absolute;
    margin-left: 3px;
}

  /* Message d'importation */
  #import-message {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    color: white;
    background-color: #505050;
    margin-top: 20px;
    width: 250px;
    padding: 8px 16px;
    border-radius: 8px;
    margin-bottom: 75px;
    border: 2px solid rgb(0, 0, 0);
    font-family: 'Rajdhani';
    font-weight: bold;
    font-size: 18px;
    visibility: hidden;
  }
    
  /* Optionnel : Style de l'animation de disparition du message */
  #import-message p.hide {
    animation: fadeOut 0.5s ease-in-out forwards;
  }

  .fa-check{
    margin-bottom: 10px;
    color: white;
    padding: 10px;
    background-color: #58f07c;
    border-radius: 25px;
    font-weight: bold;
  }
  
/* RESPONSIVE */
@media only screen and (min-width: 319px) and (max-width: 450px)  {
    .home{
        display: flex;
        min-height: 500px;
        justify-content: center;
    }
    .home img {
        width: 40%;
        height: 80vh;
        object-fit: cover;
    }
    .pres {
        display: flex;
        padding: 5px;
        box-sizing: border-box;
    }
    .pres h1{
      max-width: 85%;
      font-size: 25px;
      margin: 15px;
    }
    .pres h2{
        max-width: 80%;
        font-size: 20px;
        font-weight: bold;
    }
    .pres p{
        margin: 5px;
        width: 95%;
        font-size: 15px;
    }
    .btn-app{
        font-size: 16px;
        min-height: 40px;
        padding: 5px;
        margin: 15px;
        text-transform: uppercase;
    }

    /* TODO CONTAIN */
    #todo{
        flex-wrap: wrap;
        width: 100%;
    }
    .todo-menu{
        width: 88%;
        height: auto;
        margin: 0;
        padding: 10px;
        margin-bottom: 10px;
    }

    .list-cat{
        width: 75%;  
    }

    #form1 label{
        font-size: 16px;
    }

    .delete-btn {
        color: rgb(49, 49, 49);
    }

    /* DIV TITLE */
    #title-div {
       width: 88%;
       margin: 0;
       padding: 10px;
    }

    .form2Title{
        width: 35%;
        font-size: 25px;
    }

    .form2-contain{
        width: 60%;
    }

    .title-select{
        font-size: 30px;
    }

    .delItem{
        color: rgb(49, 49, 49);
    }
  }
