/*
But : Stylise la page index.html
Auteur : Alexandre Haymoz
Date : 14.06.2022
Version : 1.0
*/

* {
  margin: 0;
  padding: 0;
}

body {
  width: 100%;
  height: 100vh;
  background-color: #181716;
  margin: 0;
  position: relative;
  overflow: hidden;
}
/* Container qui contient le texte et le bouton */
.container {
  width: 100%;
  display: flex;
  font-family: "Josefin Slab", Helvetica;
  flex-direction: column;
  color: white;
  text-align: center;
  justify-content: center;
  align-items: center;
  height: 100vh;
}
/* Formatage du texte */ 
#pa {
  font-size: 4rem;
}

#pb {
  font-size: 1.5rem;
}

#pc {
  font-size: 3.5rem;
}

#pd {
  font-size: 3.5rem;
}

#pe {
  font-size: 3rem;
}
#pa,
#pb,
#pc,
#pd,
#pe {
  text-shadow: 2px 2px 4px #666;
}
/* Logo qui permet de revenir à la page d'accueil */
#logo {
  position: absolute;
  top: 32px;
  left: 50px;
  width: 210px;
  height: auto;
  filter: invert(100%);
}
/* Bouton principale de la page */ 
button {
  padding: 15px 25px;
  font-size: 24px;
  text-align: center;
  cursor: pointer;
  outline: none;
  color: #fff;
  background-color: #04aa6d;
  border: none;
  border-radius: 15px;
  box-shadow: 0 9px #999;
}

button:hover {
  background-color: #3e8e41;
}

button:active {
  background-color: #3e8e41;
  box-shadow: 0 5px #666;
  transform: translateY(4px);
}
/* Création des étoiles */ 
.star {
  position: absolute;
  background-color: white;
  animation: flyby infinite 3s;
  transform: translate(-50%, -50%);
  width: 25px;
  height: 25px;
  border-radius: 25px;
  top: 0;
  left: 0;
}

.star-1 {
  top: 145%;
  left: 80%;
  animation-delay: 1.3s;
}

.star-2 {
  top: 130%;
  left: 108%;
  animation-delay: 1s;
}

.star-3 {
  top: 108%;
  left: 130%;
  animation-delay: 0.6s;
}

.star-4 {
  top: 80%;
  left: 145%;
  animation-delay: 1.8s;
}

.star-5 {
  top: 50%;
  left: 150%;
  animation-delay: 2s;
}

.star-6 {
  top: 19%;
  left: 145%;
  animation-delay: 2.9s;
}

.star-7 {
  top: -8.7%;
  left: 130%;
  animation-delay: 0.8s;
}

.star-8 {
  top: -30.9%;
  left: 108%;
  animation-delay: 2.1s;
}

.star-9 {
  top: -45%;
  left: 80%;
  animation-delay: 0.04s;
}

.star-10 {
  top: -50%;
  left: 50%;
  animation-delay: 0.5s;
}

.star-11 {
  top: -45%;
  left: 19%;
  animation-delay: 3.4s;
}

.star-12 {
  top: -30%;
  left: -9%;
  animation-delay: 0.9s;
}

.star-13 {
  top: -9%;
  left: -30%;
  animation-delay: 3.2s;
}

.star-14 {
  top: 19%;
  left: -45%;
  animation-delay: 4.1s;
}

.star-15 {
  top: 50%;
  left: -50%;
  animation-delay: 1.8s;
}

.star-16 {
  top: 80.9%;
  left: -45.1%;
  animation-delay: 4.4s;
}

.star-17 {
  top: 108%;
  left: -30%;
  animation-delay: 3.1s;
}

.star-18 {
  top: 130%;
  left: -8.7%;
  animation-delay: 2.6s;
}

.star-19 {
  top: 145.1%;
  left: 19%;
  animation-delay: 4.5s;
}

.star-20 {
  top: 150%;
  left: 50%;
  animation-delay: 0.27s;
}
/* Animation des étoiles */ 
 @keyframes flyby {
  100% {
    transform: translate(-50%, -50%) scale(0) rotate(360deg);
    top: 50%;
    left: 50%;
  } 
} 
