* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* :root {
   font-size: 20px; 
} */

img {
    width: 100%;
    height: auto;
}

.background {
    display: grid;
    position: relative;
    height: 100vh;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: 1fr 1fr;
    gap: 10px;
}

.background div {
    height: 100%;
    width: 100%;
    object-fit: cover;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: end;
}

.background>div:nth-of-type(1) {
    grid-area: 1 / 1 / 1 / 1;
    background-image: url(../media/img/montagne.jpeg);
}

.background>div:nth-of-type(2) {
    grid-area: 2 / 1 / 3 / 2;
    background-image: url(../media/img/australia.jpeg);
}

.background>div:nth-of-type(3) {
    grid-area: 1 / 2 / 3 / 3;
    background-image: url(../media/img/zoo.jpeg);
}

.menu+div {
    grid-area: 1 / 3 / 2 / 4;
    background-image: url(../media/img/savane.jpg);
}

.background>div:last-of-type {
    grid-area: 2 / 3 / 3 / 4;
    background-image: url(../media/img/savaneNuit.webp);
}

.menu {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.animaux {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    width: 100%;
    height: 900%;
}

.animaux button {
    width: 80%;
    margin: auto;
    height: 70%;
    background-color: rgba(255, 255, 255, 0.426);
    border-radius: 30px;
    background-size: cover;
    background-position: center;
    background-size: 100%;
    background-repeat: no-repeat;
}

p {
    color: black;
    font-size: 2em;
    /* transform: translateX(0%) translateY(0%); */
}

.animaux button:nth-of-type(1) {
    grid-area: 1 / 1 / 1 / 1;
    background-image: url(../media/img/parentOurs.gif);
}

.animaux button:nth-of-type(2) {
    grid-area: 1 / 3 / 2 / 4;
    background-image: url(../media/img/parentLion.gif);
}

.animaux button:nth-of-type(3) {
    grid-area: 2 / 2 / 3 / 3;
}

.animaux button:nth-of-type(4) {
    grid-area: 3 / 1 / 4 / 2;
    background-image: url(../media/img/parentKoala.gif);
}

.animaux button:nth-of-type(5) {
    grid-area: 3 / 3 / 4 / 4;
    background-image: url(../media/img/parentGirafe.gif);
}