* {
  padding: 0;
  margin: 0;
}

body {
  height: 100vh;
  width: 100%;
  background-color: wheat;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-around;
  overflow: hidden;
  animation: animation-begin 0.5s linear 0s both;
}
.win-content {
  animation: animation-finish 0.5s linear 0s both;
}

.all-page {
  width: 40%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-around;
}

#selection-list {
  width: 100%;
  height: 20%;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  position: relative;
  z-index: 1;
}

.to-find {
  width: 40%;
  height: 30%;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
}
#button-div {
  display: flex;
  width: 40%;
  justify-content: space-around;
  margin: 15px 5px;
  min-height: 70px;
  align-items: center;
}
.button {
  width: 100px;
  height: 30px;
  padding: 5px;
  transition: all 0.2s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: cadetblue;
  font-size: 20px;
  text-decoration: none;
  font-weight: 500;
  border-radius: 10px;
}
.button:hover {
  background-color: tomato;
  color: darkcyan;
  cursor: pointer;
  height: 70px;
  border-radius: 20px;
}
.rotate-scale-down {
  animation: rotate-scale-down 5s linear 4s infinite;
}
.rotate-scale-down:hover {
  animation: none;
}

.not-visible > * {
  opacity: 0;
}

#choices {
  width: 40%;
  height: 30%;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
}

#result {
  width: 100%;
  height: 75%;
  display: flex;
  justify-content: space-between;
  z-index: 1;
}

#list-try {
  height: 100%;
  width: 40%;
  display: flex;
  /* align-items: center; */
  flex-direction: column;
  justify-content: space-evenly;
}

#result-try {
  height: 100%;
  width: 40%;
  display: flex;
  /* align-items: center; */
  flex-direction: column;
  justify-content: space-evenly;
}

.chat,
.chien,
.licorne {
  position: absolute;
  width: 200px;
  height: 200px;
  /* display: none; */
  background-size: cover;
}
div {
  transition: all 0.2s ease-in-out;
}

.win-animation {
  background-color: cornflowerblue;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  text-align: center;
  border-radius: 30px;
  animation: win-animation 0.2s linear 0s both;
}

.win-animation > button {
  background-color: wheat;
  border-radius: 30px;
  border: 2px solid black;
  cursor: pointer;
  animation: button-win-animation 0.2s linear 0s both;
  transition: all 0.4s ease-in-out;
}
.win-animation > button:hover {
  background-color: rgb(240, 171, 44);
}

.chat {
  /* background-image: url("./assets/chat.jpg"); */
  top: 100%;
  right: 50%;

  animation: move-to-top 5s linear 3s infinite;
  z-index: -5;
}

.chien {
  /* background-image: url("./assets/licorne.jpg"); */
  top: 50%;
  transform: translate(0, -50%);
  left: -15%;
  animation: move-to-right 5s linear 1s infinite;
  z-index: -5;
}

.licorne {
  top: 25%;
  right: -15%;
  animation: move-to-left 5s linear 2s infinite;
  transform: scaleX(1);
  z-index: -5;
  /* background-image: url("./assets/chien.png"); */
}

@keyframes rotate-scale-down {
  0% {
    transform: scale(1) rotateZ(0);
  }
  10% {
    transform: scale(0.5) rotateZ(180deg);
  }
  20% {
    transform: scale(1) rotateZ(360deg);
  }
  100% {
    transform: scale(1) rotateZ(360deg);
  }
}

@keyframes move-to-left {
  0% {
    top: 25%;
    right: -15%;
  }
  20% {
    top: 15%;
    right: 35%;
  }
  40% {
    top: 30%;
    right: 70%;
  }
  60% {
    top: 10%;
    right: 100%;
    transform: scaleX(1);
  }
  70% {
    top: 10%;
    right: 100%;
    transform: scaleX(-1);
  }
  99% {
    top: 100%;
    right: -15%;
    transform: scaleX(-1);
  }
  100% {
    top: 15%;
    right: -15%;
    transform: scaleX(-1);
  }
}

@keyframes move-to-top {
  0% {
    top: 100%;
    right: 50%;
    transform: scaleX(-1);
  }
  10% {
    right: 50%;
    top: 80%;
  }
  40% {
    transform: scaleX(-1);
    right: 60%;
    top: 80%;
  }
  41% {
    transform: scaleX(1);
    top: 80%;
    right: 60%;
  }
  60% {
    transform: scaleX(1);
    top: 80%;
    right: 30%;
  }
  61% {
    transform: scaleX(-1);
  }
  69% {
    top: 100%;
  }
  70% {
    transform: scaleX(-1);
    top: 100%;
  }
  100% {
    top: 1100%;
    transform: scaleX(-1);
  }
}

@keyframes move-to-right {
  0% {
    left: -15%;
    transform: rotate(0);
  }
  10% {
    left: 0%;
    transform: rotate(90deg) scaleX(1);
  }
  11% {
    transform: rotate(90deg) scaleX(-1);
    left: 0%;
  }
  20% {
    top: 45%;
    transform: rotate(90deg) scaleX(-1);
  }
  21% {
    top: 45%;
    transform: rotate(90deg) scaleX(1);
  }
  40% {
    top: 50%;
    transform: rotate(90deg) scaleX(1);
  }
  49% {
    left: 0%;
  }
  50% {
    left: -15%;
    transform: rotate(90deg);
  }
  51% {
    transform: rotate(0deg);
  }
}
@keyframes win-animation {
  0% {
    height: 0vh;
    width: 0%;
    font-size: 1px;
  }

  100% {
    height: 70vh;
    width: 28%;
    font-size: 50px;
  }
}
@keyframes button-win-animation {
  0% {
    width: 0;
    height: 0px;
    font-size: 0px;
  }

  100% {
    width: 200px;
    height: 100px;
    font-size: 30px;
  }
}
@keyframes animation-finish {
  0% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
}
@keyframes animation-begin {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}
