#grille {
    width: 38em;
    height: 38em;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    border: solid 1em black;
    background-color: #B4B4B4;
    padding: 1em;
    z-index: 200;
    margin: 0 auto; /* Center horizontally */
        transform: translateY(65%);
}


#grille .case {
    border: solid black 1em;
    display: grid;
    place-items: center;
    height: 10em;
    width: 10em;
    margin: 1px;
    background-size: contain;
    z-index: 100;
  background-size: contain;      /* scale image to fit inside */
  background-repeat: no-repeat;  /* don’t tile */
  background-position: center;   /* center in the square */
}

#grille .case:hover {
    background: pink;
}


section {
    justify-self: center;
    justify-content: center;
    margin-top: 28vw;
    margin-right: 0vw;
}
nav {
    justify-content: center;
    justify-self: center;
    margin-top: 5vw;
}


body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    flex-direction: column;
    background-image: url('img/justbackground.svg');
    background-size: cover;
    background-repeat: repeat;
    background-position: center;
}

#skeleton {
    position: absolute;
    left: 50%;
    top: 55%;
    transform: translate(-50%, -35%);
    z-index: -1;
    width: 60em;
    height: auto;
    padding-top: 6vw;
}

#replay {
    margin-top: 2em;
    padding: 0.5em 1em;
    font-size: 2em;
    background-color: #4CAF50;
    color: white;
    border-radius: 5px;
    cursor: pointer;
    transform: translateY(10vw);
}

#figma{
    margin-top: 2em;
    padding: 0.5em 1em;
    font-size: 2em;
    background-color: #ffffff;
    color: white;
    border-radius: 5px;
    cursor: pointer;
    transform: translateY(-10vw);
}
#title{
    color: white;
    text-align: center;
    /* transform: translateY(0vw); */
  font-family: "Libertinus Keyboard", system-ui;
  font-weight: 400;
  font-style: normal;
  font-size: 5vw;
  border-width: 2vw;
  border: black;
-webkit-text-stroke: 2px black;

}



/* For Mobile */
@media (max-width: 1100px) {
    #grille {
        width: 60vw;
        height: 50vw;
        border-width: 0.7em;
        padding: 0.5em;
        display: flex;
        flex-wrap: wrap;
        align-content: flex-start;
        justify-content: center;
        transform: translateX(2%);
         transform: translateY(10%);
    }
    #grille .case {
        width: calc(33.33% - 4px); /* 3 per row */
        height: calc(33.33% - 4px); /* 3 per column */
        border-width: 0.5em;
        margin: 2px;
        box-sizing: border-box;
    }
    #skeleton {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        width: 100vw;
        height: auto;
        z-index: -1;
    }

    #replay {
        transform: translateY(-50px);
        padding: 0.5em 1em;
        font-size: 2em;
        background-color: #4CAF50;
        color: white;
        border-radius: 5px;
        cursor: pointer;
    }

    body {
        background-size: cover; /* Ensures the background covers the screen */
        background-repeat: repeat;
        background-position: center; /* Centers the background */
    
    }

    #title{
          color: white;
    text-align: center;
    transform: translateY(-5vw);
  font-family: "Libertinus Keyboard", system-ui;
  font-weight: 400;
  font-style: normal;
  font-size: 13vw;
  border-width: 2vw;
  border: black;
-webkit-text-stroke: 1px black;


    }
}
