*{
  box-sizing: border-box;
}
body{
  display: flex;
  justify-content: center;
  height: 100vh;
  align-items: center;
  margin: 0;
  background-color: black;
  color: white;

}
.container{
  position: relative;
  text-align: center;
  max-width: 900px;
  padding: 20px;
  background-color: #2d2d2d;
  border-radius: 10px;
  box-shadow: 4px 7px 10px rgba(0,0,0,0.5);
}
h1{
  font-size: 2.5em;
  color: #f9ca24;
}
p{
  font-size: 1.2em;
}
#gamegrid{
  display: grid;
  grid-template-columns: repeat(10,1fr);
  grid-template-rows:repeat(4,1fr) ;
  gap: 13px;
  margin: 2px auto;
  justify-content: center;
  padding: 30px;
}
.cell{
  width: 70px;
  height: 70px;
  cursor: pointer;
  border-radius: 5px;
  /* background-color: rgb(240, 166, 69); */
  transition: background-color 0.3s;
}
.overlap,.lossoverlap{
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  /* display: none; */
  font-size: 2.5em;
  text-align: center;
  color: #f9ca24;
  z-index: 100;
  animation: float 2s ease-in-out infinite;
}
.restartbtn{
  height: 70px;
  width: auto;
  margin-top: 20px;
  padding: 10px;
  background-color: #ff6347;
  color: white;
  cursor: pointer;
  border-radius: 15px;
  font-size:25px !important;
  /* display: none; */

}
@keyframes float {
  0%,
  100%{
    transform: translate(-50%,-60%);
  }
  50%{
    transform: translate(-50%,-40%);
  }
  
}