:root {
  --colorblack: hsl(0, 0%, 0%);
  --colorwhite: hsl(0, 0%, 100%);
  --colorgrey: hsl(200, 5%, 50%);
  --colorred: hsl(0, 100%, 50%);
  --colorpurple: hsl(270, 100%, 50%);
  --colorblue: hsl(210, 100%, 50%);
  --colorgrey-dark: hsl(200, 5%, 20%);
  --colorgrey-light: hsl(200, 5%, 80%);
  --color-ligthgreen: hsl(157.71, 100%, 50.39%);;

  --clr-foreground: var(--colorwhite);
  --clr-background: var(--colorblack);
}

body {
  background-color: var(--clr-background);
  background-attachment: fixed;
  background-position: center;
  color: var(--clr-foreground);
}

nav {
  width: 30rem;
  margin-left: 6rem;
  margin-top: 4rem;
  text-align: center;
}

.section__form {
  display: flex;
  flex-wrap: wrap;
}

nav h1 {
  font-size: xx-large;
}

form {
  width: 30rem;
  margin-left: 6rem;
  margin-top: 3em;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

form .Categorie {
  margin-bottom: 0rem;
  font-size: 1.2rem;
}

form select {
  font-size: medium;
  border-style: none;
  border-radius: 1rem;
  color: var(--clr-background);
}

form select[name="Cat"] {
  margin-top: 0.5rem;
}

form input,
select {
  font-size: medium;
  border-style: none;
  display: inline-block;
  height: 2rem;
}

form input[name="description"] {
  height: 15rem;
}

form input {
  padding-left: 1rem;
  border-radius: 1rem;
}

input[name="description"]::placeholder {
  position: absolute;
  top: 1rem;
  left: 1rem;
}

form input[type="submit"] {
  background-color: var(--color-ligthgreen);
  color: var(--clr-background);
  font-weight: bold;
  transition: 0.3s ease-in-out;
}

form input[type="submit"]:hover{
  cursor: pointer;
  background-color: var(--clr-background);
  color: var(--color-ligthgreen);
}

form h3 {
  color: var(--clr-foreground);
  border-bottom-style: solid;
  border-width: 1px;
  height: 1.5em;
}
