* {
  padding: 0;
  margin: 0;
}
body {
  background: linear-gradient(-45deg, #52eeba, #3c9de7, #0dd9e8, #23d5ab);
  background-size: 400% 400%;
  font-family: monospace;
  animation: gradient 15s ease infinite;
  height: 100vh;
  overflow: hidden;
}
/* animation background */
@keyframes gradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}
/* chrono */
#chronotime {
  display: flex;
  justify-content: center;
  transition: 0.3s;
  font-family: "fredoka one", cursive;
  font-weight: 800;
  cursor: pointer;
  animation-duration: 1s;
  transform: scale(12deg);
}
#chronotime:active {
  color: #26e300;
}

#logo {
  width: 12%;
  border-bottom-right-radius: 25px;
  transition: 0.5s;
}
/* scramble */
#mouvements {
  transition: 0.5s;
  color: #0f4858;
  padding-bottom: 5%;
  display: flex;
}
/* div de gauche (temps) */
#div_time {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(5px) saturate(200%);
  border: 1px solid rgba(255, 255, 255, 0.3);
  width: 400px;
  height: 250px;
  animation-name: example;
  animation-duration: 3s;
  animation-iteration-count: infinite;
  overflow: auto;
}
/* div de droite (moyennes) */

#div_avg {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(5px) saturate(200%);
  border: 1px solid rgba(255, 255, 255, 0.3);
  width: 400px;
  height: 250px;
  animation-name: example;
  animation-duration: 3s;
  animation-iteration-count: infinite;
  overflow: auto;
}
/* div parent des div time et div avg */
#div_parent {
  display: flex;
  transition: 0.5s;
  justify-content: space-evenly;
}
/* animation en continue des div time et div avg (effet de zoom)  */
@keyframes example {
  0% {
    width: 380px;
    height: 180px;
  }
  50% {
    width: 350px;
    height: 160px;
  }
  100% {
    width: 380px;
    height: 180px;
  }
}

@keyframes hey {
  0% {
    font-size: 16px;
  }
  50% {
    font-size: 16.4px;
  }
  100% {
    font-size: 16px;
  }
}

h4 {
  animation-name: hey;
  animation-duration: 3s;
  font-size: 15px;
  transition: 0.5s;
  animation-iteration-count: infinite;
}
/* tableau de la div_time */
#tableau1 {
  background-color: rgb(0, 97, 126);
  color: white;
  width: 100%;
  font-weight: 800;
}
/* tableau de la div_avg */
#tableau2 td {
  text-align: center;
  padding: 5px;
  font-weight: 800;
}
h5 {
  text-align: center;
  font-size: 13px;
  padding-top: 1px;
  color: white;
  background-color: #017128;
}
th {
  background-color: rgb(0, 97, 126);
  color: white;
  width: 1%;
}
#tableau1:hover {
  cursor: pointer;
}
/* -------------------------------RESPONSIVE----------------------------------- */
/* en format mobile, la adiv parent passe en column */
@media screen and (max-width: 768px) {
  #div_parent {
    flex-direction: column;
    align-items: center;
  }
  #logo {
    width: 200px;
  }
}
@media screen and (max-width: 500px) {
  #mouvements {
    flex-wrap: wrap;
  }
}

@media screen and (max-width: 500px) {
  h4 {
    animation: none;
    padding-bottom: 8%;
    padding-top: 9%;
  }
}
