* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.butterfly-kids-regular {
    font-family: "Butterfly Kids", cursive;
    font-weight: 400;
    font-style: normal;
}

.gorditas-regular {
    font-family: "Gorditas", serif;
    font-weight: 400;
    font-style: normal;
}

header{
    background-color: #B83434;
        min-height: 15vh;
        border-radius: 5rem 5rem 2rem 2rem;
        margin: 2rem;
        padding: 2rem;
}


body {
    text-align: center;
    background-color:rgb(179, 221, 100);
    font-family: "Butterfly Kids", cursive;
    
   
}

#pommes {
display: grid;
grid-template-columns: 1fr 1fr 1fr;
padding-bottom: 5vh;
justify-items: center;

    
}

#pommero {
    width: 50%;
    display: inline-block
}

#pommero {
    animation-name: rougebouge1;
    animation-duration: 5s;
    animation-fill-mode: forwards;
    animation-iteration-count: infinite;
}

@keyframes rougebouge1 {
    0% {
        transform: translateX(0px);
    }

    50% {
        transform: rotateZ(50deg);
    }

    75% {
         transform: rotateZ(-50deg);
         }

    100% {
        transform: rotate (180deg);
    }
}

#pommeve {
    width: 50%;
    display: inline-block
   
}

#pommeve {
    animation-name: vertbouge;
    animation-duration: 5s;
    animation-fill-mode: forwards;
    animation-iteration-count: infinite;
}

@keyframes vertbouge {
    0%  {
        transform: translateX(0px);
    }

    50% {
        transform: rotateZ(50deg);
    }

    75% {
        transform: rotateZ(-50deg);
    }

    100% {
        transform: rotate (180deg);
    }
}

#pommero1 {
    width: 50%;
    display: inline-block
}

#pommero1 {
    animation-name: rougebouge2;
    animation-duration: 5s;
    animation-fill-mode: forwards;
    animation-iteration-count: infinite;
}

@keyframes rougebouge2 {
    0% {
        transform: translateX(0px);
    }

    50% {
        transform: rotateZ(50deg);
    }

    75% {
        transform: rotateZ(-50deg);
    }

    100% {
        transform: rotate (180deg);
    }
}



#retry {
    font-family: "Gorditas", serif;
    width: 12em;
    height: 3em;
    border-radius: 20em;
    color: #B83434;
    text-align: center;
    font-size: 20px;
    background-color: rgb(239, 247, 176);
}

#retry:hover {
    background: #B83434;
    color: rgb(239, 247, 176);
    width: 12em;
    height: 3em;        
}

#retry {
    transition: transform 0.5s;
}

#retry:hover {
    transform: scale(0.9);
}



#tarte {
    background-image: url(../img/pie.png);
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    height: 40rem;
}


/*#home {
    font-size: 30px;
    color: rgb(239, 247, 176);
}*/

#message {
    font-family: "Gorditas", serif;
    color: rgb(238, 248, 160);
    padding-bottom: 10vh;
    text-align: center;
}

h1 {
font-size: 60px;
color: rgb(239, 247, 176);
}

button {
    justify-self: center;
    margin-top: 3vmin;
    display: grid;
}



#grille {
    justify-self: center;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    padding-top: 18vh;
}

#grille .case{
    background-color:none ;
    border: #BB9038 2px;
    display: grid;
    place-items: center;
    min-width:  100px;
    min-height: 100px;
    font-size: 50px;
    margin: 1px;
    background-size: contain;
    
}



/*#grille .case:hover{
background-color:rgb(239, 246, 187);
background-color: rgb(206, 240, 142);
rgb(241, 91, 91) 4px;
}*/

#grille .case:hover {
    background-color: rgb(239, 246, 187);
}

#message img{
max-width: 30vmin;
}

#message {
    font-size: 5vh;
}

#écran {
    font-family: "Gorditas", serif;
    width: 100%;
    height: 100vh;
    font-size: 10vh;
    position: absolute;
    color: #f6dcaa;
    top: 0px;
    left: 0px;
    align-content: center;
    transition: all 0.7s cubic-bezier(0.075, 0.82, 0.165, 1);
    background-image:url(../img/desktop.png);
    
}

.slide-up {
    transform: translateY(-100%);
}

footer {
        background-color: #B83434;
        min-height: 15vh;
        border-radius: 2rem 2rem 5rem 5rem;
        margin: 2rem;
        padding: 2rem;

}



@media screen and (min-width: 400px) {
    #grille {
            justify-self: center;
            display: grid;
            grid-template-columns: repeat(3, 70px);
            grid-template-rows: repeat(3, 70px);
            padding-top: 30vh;
            padding-bottom: 20vh;
    
        }
    
        #grille .case {
            display: grid;
            min-width: 60px;
            min-height: 60px;
            background-size: contain;
            background-position: center;
        }

       #pommes {
        justify-items: center;
       }
}




@media screen and (min-width: 666px) {
   
    #grille {
        grid-template-columns: repeat(3, 90px);
        grid-template-rows: repeat(3, 90px);
        padding-top: 13vh;
        

    }

        #grille .case{
        display: grid;
        min-width: 50px;
        min-height: 50px;
        background-size: contain;
        background-position: center;
    }

     #tarte{
        height: 30rem;
     }

         #écran {

             background-image: url(../img/desktop.png);
    
         }

        footer {
             min-height: 12vh;
    
        }

         #retry {
               
            width: 12em;
            height: 3em;
            font-size: 30px;
                   
        }

        #pommes {
            justify-items: center;
        }

        

}


/*@media screen and (min-width: 888px) {

    #grille {
           
            grid-template-columns: repeat(3, 50px);
            grid-template-rows: repeat(3, 50px);
            padding-top: 10vh;
            padding-left: 2vh;
    
        }
    
        #grille .case {
            display: grid;
            min-width: 50px;
            min-height: 50px;
            background-size: contain;
            background-position: center;
        }

                #tarte {
                    height: 20rem;
                }
        
                #écran {
                    background-image: url(../img/desktop.png);
                    padding-top: 10vh;
        
                }
}
    


