* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  list-style: none;
  outline: none;
  user-select: none;
}
body {
  height: 100vh;
  overflow: hidden;
  background: rgb(230, 230, 230);
  cursor: crosshair;
}
#accueilPseudo {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 11;
  width: 80vw;
  max-width: 900px;
  background: red;
  padding: 50px;
  border-radius: 50px;
  font-size: 4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: rgb(167, 157, 23);
  background: white;
  text-align: center;
}
#choisePseudo,
#validPseudo {
  font-size: 2rem;
  padding: 20px;
  border: 1px solid rgb(167, 157, 23);
  border-radius: 30px;
  background: none;
  color: rgb(167, 157, 23);
  transition: 0.2s;
}
#validPseudo:hover {
  transform: scale(1.05);
  cursor: pointer;
}
#choisePseudo {
  margin: 40px auto;
}
#welcome {
  background: white;
  position: absolute;
  min-height: 500px;
  width: 90vw;
  max-width: 1000px;
  left: 50%;
  top: -250px;
  transform: translate(-50%, -50%);
  border-radius: 50px;
  padding: 30px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-around;
  opacity: 0;
}
h1 {
  font-size: 3rem;
  text-align: center;
  text-transform: uppercase;
  color: rgb(167, 157, 23);
}
#welcomePseudo {
  font-size: 2.5rem;
  color: rgb(36, 207, 165);
  text-shadow: 2px 2px 8px #b3b171;
}
#rewritePseudo {
  cursor: pointer;
  font-size: 1rem;
}
h2 {
  font-size: 1.5rem;
  font-weight: normal;
  text-align: center;
}
.difficultContainer {
  width: 100%;
  display: flex;
  justify-content: space-around;
}
.difficultContainer input {
  display: none;
}
.difficultContainer label {
  font-weight: bold;
  letter-spacing: 2px;
  color: rgb(36, 207, 165);
  padding: 20px;
  box-shadow: 0 0 20px 0 black;
  border-radius: 300px;
  cursor: pointer;
  text-transform: uppercase;
  transition: 0.3s;
}
.difficultContainer input:checked + label {
  background: rgb(146, 117, 56);
  text-shadow: 0 0 5px black;
  animation: difficult 3s infinite linear;
}
@keyframes difficult {
  33% {
    transform: rotate(20deg);
  }
  67% {
    transform: rotate(-20deg);
  }
  100% {
    transform: rotate(0deg);
  }
}

button {
  font-size: 1.5rem;
  text-transform: uppercase;
  background: rgb(34, 34, 34);
  color: white;
  border: none;
  padding: 20px;
  border-radius: 30px;
  cursor: pointer;
  box-shadow: 0 0 20px 0 black;
  transition: 0.5s;
}
button:hover {
  transform: scale(1.03);
  color: black;
  background: none;
}
section {
  display: flex;
  justify-content: space-around;
  align-items: flex-start;
  filter: blur(4px);
}
.bubble {
  position: absolute;
  border-radius: 300px;
  top: 1200px;
  transform: translate(-50%, -50%);
  filter: hue-rotate(0deg);
  box-shadow: 0px 0px 20px 0px black;
  opacity: 0;
}
@keyframes animbubble {
  to {
    top: -100px;
    left: var(--left);
    filter: hue-rotate(1080deg);
    opacity: 1;
  }
}
h3 {
  display: flex;
  flex-direction: column;
  font-size: 8rem;
  text-align: center;
  margin-top: 20px;
  padding: 20px;
  border: 1px solid rgba(128, 128, 128, 0.452);
  border-radius: 100px;
  color: rgba(255, 251, 0, 0.555);
}
h3 span {
  font-size: 4rem;
  color: rgba(128, 128, 128, 0.555);
  margin-top: 10px;
}
#timeDécompte {
  color: rgba(128, 128, 128, 0.555);
  position: absolute;
  left: 50%;
  top: 20%;
  font-size: 6rem;
  transform: translate(-50%, -50%);
}
#end {
  z-index: 10;
  background: white;
  position: absolute;
  min-height: 300px;
  width: 90vw;
  max-width: 800px;
  border-radius: 50px;
  padding: 30px;
  left: 50%;
  top: -250px;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  transition: 2s;
}
h4 {
  text-transform: uppercase;
  font-weight: bold;
  letter-spacing: 3px;
  font-size: 2rem;
  text-align: center;
  color: rgb(190, 30, 30);
}
ul {
  margin: 20px auto;
}
ul p {
  color: rgb(36, 207, 165);
  text-shadow: 2px 2px 8px #b3b171;
  font-size: 1.5rem;
}
ul i {
  color: rgb(190, 30, 30);
}
ul span {
  color: rgb(167, 157, 23);
  text-shadow: none;
}
span em {
  color: rgb(190, 30, 30);
  font-size: 1rem;
}
@media screen and (max-width: 970px) {
  #timeDécompte {
    top: 35%;
  }
}
@media screen and (max-width: 790px) {
  #accueilPseudo {
    font-size: 2rem;
  }
  #choisePseudo,
  #validPseudo {
    font-size: 1.2rem;
    max-width: 100%;
  }
  h1 {
    font-size: 2rem;
  }
  button {
    font-size: 1rem;
  }
}
@media screen and (max-width: 550px) {
  body {
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
  }
  .difficultContainer {
    flex-direction: column;
    align-items: center;
  }
  .difficultContainer label {
    margin: 10px auto;
    font-size: 0.8rem;
    padding: 12px;
  }
  h3 {
    font-size: 3rem;
  }
  h3 span {
    font-size: 2rem;
  }
  #timeDécompte {
    font-size: 3.5rem;
  }
  ul p {
    font-size: 1.2rem;
  }
  span em {
    font-size: 0.7rem;
  }
}
