* {
    padding: 0;
    margin: 0;
    font-family: "Life Savers", serif;
    font-weight: 800;
    font-style: normal;
    text-align: center;
    color: #F0E7D5;
}

html {
    height: 100%;
    margin: 0;
    padding: 0;
}

/*svg background*/

  .st0 {
    fill: #394989;
  }

  .st1 {
    fill: #2c3868;
  }

  .st2 {
    stroke: #7f90d4;
    stroke-width: 10px;
  }

  .st2, .st3, .st4 {
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .st3 {
    stroke: #4a5fb1;
    stroke-width: 20px;
  }

  .st4 {
    stroke: #394989;
    stroke-width: 3px;
  }

  .st5 {
    fill: #7f90d4;
  }

  .st6 {
    fill: #4a5fb1;
  }

/*game*/
body {
    background-color: #212842;
    

}

svg {
    left: 0;
    z-index: -1; /* keeps it in the background */
    position: fixed;   /* stays in place even on scroll */
    height: auto;
    bottom: 0;
  }
  


/*animation styles */


#purple1{
    animation: wavemaker 38s ease-in-out infinite alternate-reverse;
}
#purple2{
    animation: wavemaker 38s ease-in-out infinite alternate;
}

#purple4{
    animation: wavemaker 40s ease-in-out infinite alternate-reverse;
}

@keyframes wavemaker {
    0% {
        transform: translateX(-1vw);
    }
    100% {
        transform: translateX(-11vw);
    }
}

.titre {
    padding-top:3%;
    font-size: 180%;
    text-shadow: hsl(0, 0%, 0%) 3px 3px;
}

.gagnant {
    color: white;
    font-size: 25px;
    text-align: center;
    margin-top: 1em;
    margin-bottom: 1em;
}


.case {
    border-radius: 10px;
    margin-right: 1rem;
    margin-bottom: 0.5rem;
}

#grille {
    margin: 0 auto;
    display: grid;
    grid-template-columns: 33% 33% 33%;
    grid-template-rows: 33% 33% 33%;
    max-width: 320px;
}

#grille .case:hover {
    background-color: hsl(240, 27%, 55%);
    opacity: .6;
}

#grille .case {
    background-color: #F0E7D5;
    border: 1px solid rgb(0, 0, 0);
    min-width: 100px;
    min-height: 100px;
    display: grid;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    background-size: contain;
}

#message { 
    position: fixed;
    top: 31.5%;
    left: 50%;
    transform: translate(-50%, -50%);
    height: 150px;
    width: 150px;
    border-radius: 50%;
    background: hsla(235, 53%, 55%, 0.917);
    display: grid;
    justify-content: center;
    align-items: center;
    color: #F0E7D5 ;
    text-shadow: hsl(0, 0%, 0%) 3px 3px;
    text-align: center;
    padding: 1rem;
    font-size: 1.5rem;
    transition: opacity 0.3s ease;
}


#message.hidden {
    opacity: 0;
    pointer-events: none;
}

#message p {
    text-align: center;
    align-self: center;
}

#replay {
    font-size: 150%;
    color: #212842;
    background-color: hsl(9, 76%, 60%);
    border: 3px;
    border-radius: 5px;
    padding: 1%;
    cursor: pointer;
    margin-top: 5vh;
}

#replay {
    transition-duration: 0.3s;
}

#replay:hover {
    transform: scale(1.08);
    color: #F0E7D5;
}


/* Mobile */
      @media screen and (min-width: 480px) {
        #message {
    position: fixed;
    top: 35%;
    left: 50%;
    transform: translate(-50%, -50%);
    height: 200px;
    width: 200px;
    border-radius: 50%;
    font-size: 2rem;

        }

}

/* Mobile */
@media screen and (min-width: 480px) {
    .background {
        margin-top: -60vh;
        background-size: cover;
        background-blend-mode: normal;
        background-repeat: no-repeat;
    }
    
}


