body {
  margin: 1rem;
  background: #8acdea;
}

h1,
h2,
.jeu,
.canvas {
  text-align: center;
}

h1 {
  font-size: 6rem;
}
h2 {
  font-size: 4rem;
}

#test {
  min-width: 20vw;
  height: 2.5rem;
  -webkit-padding-start: 1rem;
  padding-inline-start: 1rem;
  font-size: 1rem;
  border-radius: 0.375rem;
  border: 1px solid #e2e8f0;
  margin: 0.5rem;
}

button {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1.2;
  border-radius: 0.375rem;
  font-weight: 600;
  height: 2.5rem;
  font-size: 1rem;
  -webkit-padding-start: 1rem;
  padding-inline-start: 1rem;
  -webkit-padding-end: 1rem;
  padding-inline-end: 1rem;
  color: #f18f01;
  background-color: #006e90;
}

.jeu {
  margin: 2rem 1rem 0;
}

#reponse,
#search {
  display: flex;
  justify-content: center;
  align-items: center;
}

#search,
#indices > div {
  flex-direction: column;
}

#reponse p {
  font-size: 4rem;
  margin: 0.5rem 0.5rem;
  color: #f18f01;
}

#indices {
  position: absolute;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  z-index: 3;
}

#indices h2 {
  padding: 3vh;
}

#indices > div {
  display: flex;
  height: 80%;
  align-items: center;
  justify-content: space-evenly;
}

#addLetter,
#addCategorie,
#error {
  margin-top: 1rem;
}

#newGame {
  position: absolute;
  top: 3rem;
}

#score {
  position: absolute;
  right: 3rem;
  top: 8rem;
}

#texts,
#accents {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #ac3931;
  font-size: 1.75rem;
  margin-top: 1rem;
}

#myCanvas {
  height: 190px;
  width: 200px;
}

.canvas {
  color: #ac3931;
}

#categorie,
#accents,
.croix,
input[type="checkbox"],
#indices {
  display: none;
}

#indiceBtn {
  height: 50px;
  width: 50px;
  position: absolute;
  top: 2.5rem;
  right: 3.5rem;
  z-index: 5;
}

.croix {
  font-size: 1.5rem;
  color: black;
}

.toggle {
  width: 50vh;
}

.toggle div {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
}

input[type="checkbox"] {
  height: 0;
  width: 0;
}

label {
  cursor: pointer;
  text-indent: -9999px;
  width: 40px;
  height: 20px;
  background: grey;
  display: block;
  border-radius: 100px;
  position: relative;
}

label:after {
  content: "";
  position: absolute;
  top: 1px;
  left: 1px;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 90px;
  transition: 0.3s;
}

input:checked + label {
  background: #bada55;
}

input:checked + label:after {
  left: calc(100% - 1px);
  transform: translateX(-100%);
}

label:active:after {
  width: 26px;
}

@media screen and (max-width: 850px) {
  h1 {
    font-size: 4.5rem;
  }

  h2 {
    font-size: 3rem;
  }

  #newGame,
  #score {
    top: 6.5rem;
  }

  #indiceBtn {
    top: 1rem;
    right: 1rem;
  }
}

@media screen and (max-width: 450px) {
  h1 {
    font-size: 3rem;
  }

  h2 {
    font-size: 2rem;
  }

  #newGame {
    top: 6rem;
  }

  #parties {
    position: absolute;
    top: 4.5rem;
    right: 2rem;
  }

  .jeu {
    margin-top: 4.5rem;
  }

  .cate,
  .lett {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
  input,
  button,
  #texts,
  #parties,
  #accents {
    font-size: 1rem;
  }

  #reponse p {
    font-size: 2rem;
  }

  #indiceBtn {
    height: 35px;
    width: 35px;
  }

  button {
    line-height: 1;
    height: 1.5rem;
    padding: 15px;
    -webkit-padding-start: 0.75rem;
    padding-inline-start: 0.75rem;
    -webkit-padding-end: 0.75rem;
    padding-inline-end: 0.75rem;
  }
}

@media screen and (max-width: 350px) {
  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  input,
  button,
  #texts,
  #parties,
  #accents {
    font-size: 0.75rem;
  }

  #indiceBtn {
    height: 25px;
    width: 25px;
  }

  #indiceBtn img {
    height: 15px;
  }
}
