*{
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
body{
background-color:  #f5f0e2;
background-image: url(../img/background.png);
background-blend-mode: normal;
background-size: contain;
}

#message {
    text-align: center;
    /* font-size: 30px;
    margin-bottom: 20px; */
    padding: 15px;
}

#logo img{
  margin: auto;
  display: block;
width: 35%;
height: 35%;
}
.case {
    background-size: contain;
    background-repeat: no-repeat;
}
#grille{
    background-color: rgb(255, 244, 224);
      width: 47vmin;
    height: 47vmin;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    margin: auto;
    border: solid #7a4801 1vmin;
}

#grille .case{
    border: solid #7a4801 1vmin;
    /* border-radius: 5px; */
    display: grid;
    place-items: center;
}
#grille .case:hover{
    background-color: #ac8c6c;
    cursor: pointer;
}
h1{
    font-family:Verdana, Geneva, Tahoma, sans-serif;
    font-weight:bold;
    font-style: normal;
    text-align: center;
    color: #7a4801;
    text-shadow:  2px 3px 3px #ac8c6c;
    font-size: 5vmin;
    padding: 15px;
    
}
p{
    padding: 10px;
    font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
    text-align:center;
    font-size: 17px;
    color: #7a4801;
    font-weight: bolder;
}
a{
    text-decoration: none;
    color: rgb(245, 230, 220);
}
img{
    margin: auto;
    display: block;
    width: 15%;

}
#message img{
    max-width: 45vmin;
}
nav{
    padding: 20px;
    text-align: center;
}
button {
display: block;
margin: auto;
height: 40px;
width: 150px;
background-color: rgb(128, 70, 0);
border: 1px solid #ac8c6c;
border-radius: 40px;
font-size: 18px;
color: rgb(245, 232, 220);
font-family: "Bebas Neue", sans-serif;

}

#gagnant1,
#gagnant2,
#nul {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(40, 27, 10, 0.7);
    display: grid;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s ease;
    z-index: 1000;
}

#gagnant1.active,
#gagnant2.active,
#nul.active {
    opacity: 1;
    pointer-events: auto;
}

.yay {
    display: flex;
    flex-direction: column;
    align-items: center;
}

img#yay {
    width: 35vmin;
display: block;
margin: auto;
}

img#tie {
width: 70vmin;
display: block;
margin: auto;
}


figure {
    position: relative;
    display: inline;
}
 @media screen and (max-width: 768px) {
    img{
        width: 30%;
    }
    #grille{
        width: 50%;
    }
  
}