html {
  font-size: 62.5%;
}

* {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  width: 100%;
}

@font-face {
  font-family: "Roboto", sans-serif;
  src: url("https://fonts.googleapis.com/css2?family=Roboto&display=swap");
}

body {
  font-size: 1.6rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  background-image: url(../../ressources/tp-todolist/DSC_1680.JPG);
  background-size: cover;
  background-repeat: no-repeat;
  font-family: "Roboto", sans-serif;
}

h1 {
  font-size: 3.5rem;
  color: rgb(15, 31, 72);
  border-bottom: 5px double rgb(15, 31, 72);
}

#form {
  width: 100%;
  display: flex;
  justify-content: center;
}

#champ {
  width: 60%;
  height: 3rem !important;
  border-radius: 1.2rem;
  padding-left: 4vw;
  border: none;
  background-color: rgba(9, 33, 48, 0.24);
  margin-bottom: 2vh;
}

#champ::placeholder {
  color: rgba(0, 0, 0, 0.61);
}

#champ:hover {
  cursor: pointer;
  background-color: rgba(158, 206, 238, 0.24);
}

button {
  border: 1px rgb(184, 8, 8) solid;
  border-radius: .5rem;
  background-color: #dd9c74;
  font-weight: bolder;
  margin-top: 1.5rem;
  line-height: 2.5rem;
  color:rgb(184, 8, 8);
}

button:hover {
  cursor: pointer;
  border: 1px rgb(230, 186, 186) solid;
  background-color: #4a1c00;
  color:rgb(230, 186, 186);
}

section {
  width: 100%;
  background-color: rgba(0, 0, 0, 0.224);
  overflow-y: auto;
  padding: 1rem;
  display: flex;
}

.wrap {
  width: 60%;
  margin: auto;
}

/* div qui englobe la div .carte et div .suprList */
#liste, .supr {
  display: flex;
  flex-direction: column;
  margin: auto;
  width: 60vw;
  height: 35vh;
  overflow-y: auto;
  /* pour que les éléments avec la scrollbar ne bougent pas quand elle apparait */
  scrollbar-gutter: stable; 
  scrollbar-width: thin; /* rend la scrollbar plus fine  */
}

/* les div qui englobe chaque tache de la todolist ou bien supprimée */
.suprList, .carte {
  width: 100%;
  font-weight: bolder;
  font-size: 1rem;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  margin: 0.5vh 0;
  padding-left: 1.5rem;
  border-radius: .5rem;
  line-height: .5rem;
}

.suprList {
  color: rgba(187, 177, 177, 0.918);
  background-color: #4c1818;
}

/* la div qui englobe la tâche et ses icônes */
.carte {
  background-color: rgba(105, 163, 202, 0.59);
  border-radius: 0.5rem;
}

/* le p qui affiche la tâche */
.tache { 
  color: rgb(5, 245, 213);
  width: 100%;
}

#compteur {
  width: 30%;
}

#compteur p {
  width: 90%;
  margin: auto;
  font-size: 1.2rem;
  color: white;
}

#compteur p span {
  font-weight: bolder;
}

.theme {
  width: 7rem;
  border-radius: 4rem;
  background-color: rgb(145, 111, 142);
  display: flex;
  justify-content: space-between;
  padding: .4rem; 
}

/* icone soleil */
.fa-sun, .fa-moon {
  border-radius: 5rem;
  color: rgb(201, 201, 13);
}

.fa-moon {
  width: 2.65rem;
  padding: .52rem .5rem .5rem .55rem;
}

.fa-sun {
  padding: .52rem .55rem .5rem .5rem;
}

/* icone poubelle */
.fa-trash-o {
  color: rgb(122, 11, 11);
  transform: translateX(-2vw);
  font-size: 1.5rem;
}
/* icone retour */
.fa-reply {
  transform: translate(-2vw);
  font-size: 1.3rem;
}

/* icone valider */
.fa-check-square-o  {
  color: rgb(10, 97, 10);
  transform: translate(-1vw, 0.25vh);
  font-size: 1.5rem;
}

.fa-trash-o:hover,
.fa-check-square-o:hover {
  cursor: pointer;
  color: rgba(255, 255, 255, 0.535);
}

.fa-reply:hover {
  cursor: pointer;
  color: rgba(10, 255, 235, 0.535);
}

/* les class ajoutées en js */

/* cacher icone valider lorsqu'on a déjà validé et qu'on veut supprimer */
.checkIcone {
  color: rgb(248, 188, 7);
}

/* raye la ligne de la liste lorsqu'on a validé notre tache */
.fait {
  text-decoration: line-through rgb(19, 0, 53);
  background-color: rgba(205, 104, 158, 0.706);
}

/* theme icone */
.light {
  background-color: #1e4d86;
}
/* theme sombre compteur */
.darkCompteur {
  color: rgb(209, 192, 192) !important;
}
/* theme sombre police todolist */
.darktodolist {
  color: rgb(37, 18, 179) !important;
}
