/* body {
  margin: 0;
}

#ui {
  margin: 0;
  position: absolute;
  top: 10px;
  left: 10px;
}

h1 {
  color: whitesmoke;
} */





#game-container {
    display: grid;
    grid-template-columns: repeat(60, 60px);
    grid-template-rows: repeat(28, 60px);
    gap: 2px;
  }
  
  
  
  
  .cell {
    position: relative; /* Đảm bảo có thể sử dụng z-index */
    width: 60px;
    height: 60px;
    border: 1px solid #000;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    background-image: url('background.jpeg');
    background-size: cover;
  }
  .player {
    /* background-color: green; */
    background-image: url('player3.gif');
    background-size: cover;
  }
  
  .enemy {
    /* background-color: red; */
    background-image: url('enemies4.gif');
    background-size: cover;
    z-index: 10;
  }
  
  .exit {
    /* background-color: blue; */
    background-image: url(exit.gif);
  }
  
  
  
  .obstacle {
    background-color: brown;
    color: white;
    background-image: url('chuongngaivat.jpeg');
    background-size: cover;
    z-index: 1; /* Đặt z-index thấp hơn */
  }
  
  /* .path {
    background-image: url('path.jpeg');
    position: relative;
    z-index: 2; 
  } */
  .path {
    background-color: rgba(0, 255, 0, 0.3); /* Tô màu xanh nhạt cho đường đi */
    position: relative;
    z-index: 2000; /* Đảm bảo rằng ô đường đi có z-index cao hơn các ô khác */
  }
  
  
  .cell.path {
    /* background-color: rgba(0, 255, 0, 0.3);  */
    background-image: url('path.jpeg');
    z-index: 1000 ; /* Cao hơn các lớp khác */
  }
   
  html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: hidden; /* Loại bỏ cuộn */
  }
  
  .main-page {
    width: 100vw;
    height: 100vh;
    background-image: url('index_background.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    position: relative;
  }
  
  .player-element {
    position: absolute;
    top: 45%;
    border-radius: 200px;
    border: 1px solid #fff;
    width: 200px;
    height: 200px;
    background-image: url('player3.gif');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
  }
  
  
  .btn-start {
    width: 300px;
    height: 200px;
    background-image: url('start_btn-removebg-preview.png');
    background-repeat: no-repeat;
    background-size: 300px;
    background-position: center;
    float: right;
    margin-top: 40px;
    margin-right: 150px;
    animation: scaleUpDown 1.5s ease-in-out infinite;
  }
  .btn-start2 {
    width: 400px;
    height: 300px;
    background-image: url('Mulai_Tombol_Permainan_Beralih_Efek_Stereo_Ikon__Permainan__Tombol__Saklar_PNG_Transparan_Clipart_dan_File_PSD_untuk_Unduh_Gratis-removebg-preview.png');
    background-repeat: no-repeat;
    background-size: 300px;
    background-position: center;
    float: right;
    margin-top: 40px;
    margin-right: 150px;
    animation: scaleUpDown 1.5s ease-in-out infinite;
  }
  
  /* Keyframes cho animation */
  @keyframes scaleUpDown {
    0%, 100% {
      transform: scale(1); /* Kích thước ban đầu */
    }
    50% {
      transform: scale(1.2); /* To lên 20% */
    }
  }
  
  #btn_start {
    --bg: #e77e3c;
      --text-color: #fff;
      position: relative;
      width: 150px;
      border: none;
      background: var(--bg);
      color: var(--text-color);
      padding: 1em;
      font-weight: bold;
      text-transform: uppercase;
      transition: 0.2s;
      border-radius: 5px;
      opacity: 1;
      letter-spacing: 1px;
      box-shadow: #a76623 0px 7px 2px, #000 0px 8px 5px;
      float: right;
      position: absolute;
      right: 225px;
      top: 40%;
      animation: scale 3s ease-in-out infinite;
  }
  
  #btn_start:hover {
    opacity: 1;
    scale: 1.1;
  }
  
  #btn_start:active {
    top: 4px;
    box-shadow: #c0392b 0px 3px 2px,#000 0px 3px 5px;
  }
  
  .second-page {
    position: relative;
    display: flex;
    justify-content: center; /* Căn giữa theo chiều ngang */
    align-items: center;    /* Căn giữa theo chiều dọc */
    height: 100vh;   
  }
  
  #btn_start {
    position: absolute;
    top: 2%;
    left: 50%;
    transform: translateX(-50%);
  }
  
  
  