@import url('https://fonts.googleapis.com/css2?family=Kalam:wght@300;400;700&display=swap');

* {
  margin: 0;
  padding: 0;
}

body {
  background-image: url(fond.png);
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
}

header {
  width: 100%;
  display: flex;
  height: 200px;
  justify-content: center;
  align-items: center;
}


.header-container {
  width: 80%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.group {
  position: relative;
  width: 100%;
  margin-right: 70px;
}

.input {
  width: 100%;
  height: 70px;
  line-height: 28px;
  padding-left: 20px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.30);
  border: 2px solid transparent;
  backdrop-filter: blur(10px);
  outline: none;
  z-index: 0;
  font-family: kalam;
  color: #0d0c22;
  transition: .3s ease;
}

.input::placeholder {
  color: #9e9ea7;
  font-family: 'Kalam', cursive;
  font-size: 1.2rem;
}

.input:focus,
input:hover {
  outline: none;
  border-color: #DFDBFE;
  background-color: #fff;
  box-shadow: 0 0 0 4px rgb(234 76 137 / 10%);
}


header button {
  position: relative;
  padding: 12px 35px;
  background: #DFDBFE;
  font-size: 1.3rem;
  font-weight: 500;
  color: #181818;
  border: 3px solid#DFDBFE;
  border-radius: 10px;
  box-shadow: 0 0 0 #fec1958c;
  transition: all 0.3s ease-in-out;
  cursor: pointer;
  height: 70px;
  font-family: 'Kalam', cursive;
  text-align: center;
}

.star-1 {
  position: absolute;
  top: 20%;
  left: 20%;
  width: 25px;
  height: auto;
  filter: drop-shadow(0 0 0 #fffdef);
  z-index: -5;
  transition: all 1s cubic-bezier(0.05, 0.83, 0.43, 0.96);
}

.star-2 {
  position: absolute;
  top: 45%;
  left: 45%;
  width: 15px;
  height: auto;
  filter: drop-shadow(0 0 0 #fffdef);
  z-index: -5;
  transition: all 1s cubic-bezier(0, 0.4, 0, 1.01);
}

.star-3 {
  position: absolute;
  top: 40%;
  left: 40%;
  width: 5px;
  height: auto;
  filter: drop-shadow(0 0 0 #fffdef);
  z-index: -5;
  transition: all 1s cubic-bezier(0, 0.4, 0, 1.01);
}

.star-4 {
  position: absolute;
  top: 20%;
  left: 40%;
  width: 8px;
  height: auto;
  filter: drop-shadow(0 0 0 #fffdef);
  z-index: -5;
  transition: all 0.8s cubic-bezier(0, 0.4, 0, 1.01);
}

.star-5 {
  position: absolute;
  top: 25%;
  left: 45%;
  width: 15px;
  height: auto;
  filter: drop-shadow(0 0 0 #fffdef);
  z-index: -5;
  transition: all 0.6s cubic-bezier(0, 0.4, 0, 1.01);
}

.star-6 {
  position: absolute;
  top: 5%;
  left: 50%;
  width: 5px;
  height: auto;
  filter: drop-shadow(0 0 0 #fffdef);
  z-index: -5;
  transition: all 0.8s ease;
}

button:hover {
  background: transparent;
  color: #DFDBFE;
  box-shadow: 0 0 25px #fec1958c;
}

button:hover .star-1 {
  position: absolute;
  top: -80%;
  left: -30%;
  width: 25px;
  height: auto;
  filter: drop-shadow(0 0 10px #fffdef);
  z-index: 2;
}

button:hover .star-2 {
  position: absolute;
  top: -25%;
  left: 10%;
  width: 15px;
  height: auto;
  filter: drop-shadow(0 0 10px #fffdef);
  z-index: 2;
}

button:hover .star-3 {
  position: absolute;
  top: 55%;
  left: 25%;
  width: 5px;
  height: auto;
  filter: drop-shadow(0 0 10px #fffdef);
  z-index: 2;
}

button:hover .star-4 {
  position: absolute;
  top: 30%;
  left: 80%;
  width: 8px;
  height: auto;
  filter: drop-shadow(0 0 10px #fffdef);
  z-index: 2;
}

button:hover .star-5 {
  position: absolute;
  top: 25%;
  left: 115%;
  width: 15px;
  height: auto;
  filter: drop-shadow(0 0 10px #fffdef);
  z-index: 2;
}

button:hover .star-6 {
  position: absolute;
  top: 5%;
  left: 60%;
  width: 5px;
  height: auto;
  filter: drop-shadow(0 0 10px #fffdef);
  z-index: 2;
}

.fil0 {
  fill: #fffdef;
}

input[type="date"]::-webkit-inner-spin-button,
input[type="date"]::-webkit-calendar-picker-indicator {

  position: absolute;
  right: 20px;
  z-index: 1;
  background-image: url(icons8-calendar.svg);
  width: 30px;
  height: 30px;

}

input[type="date"]::-webkit-datetime-edit {

  position: absolute;
  right: 20px;
  z-index: 1;
  opacity: 0;
  width: 30px;
  height: 30px;
}

input[type="date"] {
  background-color: transparent;
  border: none;
  position: absolute;
  right: -20px;
  top: 20px;
  z-index: 1;
  width: 15%;
  height: 30px;
}

main {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  height: 70%;
  overflow-y: scroll;
  scrollbar-width: none;
  gap: 20px;
}

main::-webkit-scrollbar {
  display: none;
}

.task {
  display: flex;
  justify-content: space-between;
  width: 80%;
  height: fit-content;
  border-radius: 10px;
  background: rgba(223, 219, 254, 0.90);
  font-family: 'Kalam', cursive;
  font-size: 1.2rem;
  align-items: center;
  box-shadow: 0px 6px 10px 0px rgba(255, 255, 255, 0.30);
  backdrop-filter: blur(5px);
  transition: 0.5s;
  padding-top: 20px;
  padding-bottom: 20px;
}

.task:hover {
  transform: scale(1.02);
}

.debut {
  display: flex;
  padding-left: 30px;
  gap: 40px;
}

.container {
  display: flex;
  flex-direction: column;
}

.date {
  font-family: 'Kalam', cursive;
  font-size: 1rem;
}

.check {

  cursor: pointer;
  position: relative;
  margin: auto;

  -webkit-tap-highlight-color: transparent;
  transform: translate3d(0, 0, 0);

}


.check svg {
  position: relative;
  z-index: 1;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke: rgb(20, 22, 44);
  stroke-width: 1.5;
  transform: translate3d(0, 0, 0);
  transition: all 0.2s ease;
  width: 30px;
  height: 30px;
}

.check svg path {
  stroke-dasharray: 60;
  stroke-dashoffset: 0;
}

.check svg polyline {
  stroke-dasharray: 22;
  stroke-dashoffset: 66;
}

.check:hover:before {
  opacity: 1;
}

.check:hover svg {
  stroke: var(--accent-color, #FFF);
}

.cbx2:checked+.check svg {
  stroke: var(--accent-color, #FFF);
}

.cbx2:checked+.check svg path {
  stroke-dashoffset: 60;
  transition: all 0.3s linear;
}

.cbx2:checked+.check svg polyline {
  stroke-dashoffset: 42;
  transition: all 0.2s linear;
  transition-delay: 0.15s;
}

.buttonP {

  border-radius: 50%;
  background-color: rgb(20, 22, 44);
  border: none;
  font-weight: 600;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.164);
  cursor: pointer;
  transition-duration: 0.3s;
  overflow: hidden;
  position: relative;
  width: 50px;
  height: 50px;
  padding: 0;
  gap: 2px;
  margin-right: 20px;
}

.svgIcon {
  width: 12px;
  transition-duration: 0.3s;
}

.svgIcon path {
  fill: white;
}

.buttonP:hover {
  transition-duration: 0.3s;
  background-color: rgb(255, 69, 69);
  align-items: center;
  gap: 0;
}

.bin-top {
  transform-origin: bottom right;
}

.buttonP:hover .bin-top {
  transition-duration: 0.5s;
  transform: rotate(160deg);
}

footer {
  width: 100%;
  display: flex;
  justify-content: center;

}

.footer-container {
  margin-top: 15px;
  margin-bottom: 15px;
  width: 80%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.btn {
  background: transparent;
  position: relative;
  padding: 5px 5px;
  display: flex;
  align-items: center;
  font-family: 'Kalam', cursive;
  font-size: 1.2rem;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid #DFDBFE;
  border-radius: 10px;
  outline: none;
  overflow: hidden;
  color: #DFDBFE;
  transition: color 0.3s 0.1s ease-out;
  text-align: center;
  width: 30%;
  height: 50px;
  display: flex;
  justify-content: center;
}

@media screen and (max-width:1123px) {

  .btn {
    font-size: 1.1rem;
    width: 150px;
  }
}

.btn::before {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  margin: auto;
  content: '';
  border-radius: 50%;
  display: block;
  width: 20em;
  height: 20em;
  left: -5em;
  text-align: center;
  transition: box-shadow 0.5s ease-out;
  z-index: -1;
}

.btn:hover {
  color: rgb(20, 22, 44);
  border: 1px solid #DFDBFE;
}

.btn:hover::before {
  box-shadow: inset 0 0 0 10em #DFDBFE;
}


:root {
  --arrow-bg: rgba(255, 255, 255, 0.6);
  --arrow-icon: url(https://upload.wikimedia.org/wikipedia/commons/9/9d/Caret_down_font_awesome_whitevariation.svg);

  --select-bg: rgba(255, 255, 255, 0.5);
}


/* <select> styles */
select {
  /* Reset */
  appearance: none;
  border: 0;
  outline: 0;
  font: inherit;
  /* Personalize */
  width: 20rem;
  padding: 1rem 4rem 1rem 1rem;
  background: var(--arrow-icon) no-repeat right 0.8em center / 1.4em,
    linear-gradient(to left, var(--arrow-bg) 3em, var(--select-bg) 3em);
  color: white;
  border-radius: 0.25em;
  box-shadow: 0 0 1em 0 rgba(0, 0, 0, 0.2);
  cursor: pointer;
  font-family: 'Kalam', cursive;
  font-size: 1rem;

}

option {
  background-color: #0d0c22;
  font-family: 'Kalam', cursive;
  font-size: 1rem;
}

.bas_droit {
  display: flex;
  width: 50%;
  justify-content: flex-end;
  gap: 5%;
}


@media screen and (max-width:945px) {
  header {
    height: 150px;
  }

  .input {
    height: 50px;
  }

  header button {
    height: 50px;
  }

  input[type="date"] {
    right: -10px;
    top: 12px;
  }
}

@media screen and (max-width:817px) {

  header {
    height: 150px;
  }

  .group {
    width: 60%;
  }

  .input {
    height: 50px;
    width: 100%;
  }


  input[type="date"] {
    right: -20px;
    top: 12px;
    padding-left: 40px;
  }

  select {
    padding: 1rem 2rem 1rem 1rem;
    width: 40%;
  }

  .btn {
    font-size: 0.9rem;
    width: 200px;
  }

}

@media screen and (max-width:500px) {

  main {
    height: 100%;
  }

  header {
    height: 150px;
  }

  .header-container {
    width: 90%;
  }

  header button {

    padding: 5px 10px;

    font-size: 1rem;

    font-family: 'Kalam', cursive;

  }

  .group {
    width: 100%;
    margin-right: 40px;
  }

  .input::placeholder {
    color: #9e9ea7;
    font-family: 'Kalam', cursive;
    font-size: 0.9rem;
  }


  input[type="date"] {
    right: -30px;
    top: 12px;
    padding-left: 40px;
  }

  input[type="date"]::-webkit-inner-spin-button,
  input[type="date"]::-webkit-calendar-picker-indicator {
    width: 20px;
    height: 20px;

  }

  select {
    padding: 1rem 2rem 1rem 1rem;
    width: 40%;
  }

  .btn {
    font-size: 0.9rem;
    width: 200px;
  }

  .task {
    width: 90%;
    padding-top: 10px;
    padding-bottom: 10px;
    font-size: 1rem;
  }

  .date {
    font-size: 0.8rem;
  }

  .buttonP {
    width: 35px;
    height: 35px;

  }

  .check svg {
    width: 20px;
    height: 20px;
  }

  .debut {

    padding-left: 14px;
    gap: 15px;
  }

  .footer-container {
    width: 90%;
  }

  .bas_droit {
    display: flex;
    flex-direction: column;
    width: 50%;
    gap: 10px;
    align-items: flex-end;

  }

  .btn {
    width: 85%;
    height: 40px;
  }

  select {
    width: 60%;
  }

}