/* Mobile First (small screens) */
.container {
  width: 90%;
  max-width: 500px;
  margin: 40px auto;  
  height: auto;
}

.game {
  width: 100%;
  height: auto;
  gap: 5px;
}

.box {
  width: 30%;
  aspect-ratio: 1/1;
  font-size: 3rem;
}

.reset,.newgame {
  width: 80%;
  max-width: 300px;
  font-size: 18px;
}

/* Medium devices (tablets) */
@media (min-width: 600px) {
  .box {
    font-size: 3rem;
  }

  .reset,
  .newgame {
    font-size: 20px;
    width: 200px;
  }
}

/* Large devices (desktop) */
@media (min-width: 992px) {
  .container {
    max-width: 500px;
    margin-top: 100px;
  }

  .box {
    font-size: 4.5rem;
  }

  .reset,
  .newgame {
    font-size: 23px;
  }
}

/* For small screens */
@media (max-width: 576px) {
  .msg {
    font-size: 2rem;
    text-align: center;
    line-height: 1.3;
  }

  .newgame {
    width: 80%;
    font-size: 18px;
  }

  .cat {
    width: 150px;
    height: 150px;
    margin-top: 40px;
  }
}

/* Tablets */
@media (min-width: 577px) and (max-width: 768px) {
  .msg {
    font-size: 3rem;
  }

  .cat {
    width: 180px;
    height: 180px;
  }
}

/* Default for small screens */
.game {
  display: grid;
  grid-template-columns: repeat(3, 1fr); 
  gap: 8px;  
  width: 100%;
  max-width: 500px; 
  margin: auto;
}

.box {
  width: 100%;          
  aspect-ratio: 1 / 1;  
  font-size: 4rem;    
}

/* Tablets */
@media (min-width: 577px) and (max-width: 768px) {
  .box {
    font-size: 3rem;
  }
}

/* Larger screens */
@media (min-width: 769px) {
  .box {
    font-size: 4.5rem;
  }
}

