@font-face {
    font-family: smallFont;
    src: url(../pixelfont.ttf);
}
  canvas {
   /* width: 50vw; /* or whatever % of viewport width you want */
   /* height: auto; /* maintains aspect ratio */
    display: block;
    /*margin: 0 auto; /* center horizontally */
  }

  html, body {
    margin: 0;
    padding: 0;
    overflow: hidden; /* Prevents scrolling issues */
    height: 100%; /* Make sure the body takes full height */
    background: rgb(27, 13, 14);
  }
  
  /* Navbar styling */
#navbar {
    position: fixed;
    top: 0;
    width: 100%;
    height: 55px;
    /*background: rgb(27, 13, 14);*/
    padding: 12px 20px;
    /*box-shadow: 0 20px 20px rgba(0,0,0,0.3);*/
    z-index: 1000;
    display: flex;
    gap: 20px;
    border-radius: 2px #52ab39;
  }
  
  #gem-counter {
  font-family: smallFont;
  font-size: 55px;
  color: #f5b800;
  margin-left: auto;
  padding-right: 60px;
  }
  
  /* Popup styling */
  .popup {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
    z-index: 9999;
  }
  
  .popup-content {
    background: #fff;
    padding: 20px;
    max-width: 400px;
    border-radius: 10px;
    text-align: center;
    position: relative;
  }
  
  .close-button {
    position: absolute;
    top: 10px; right: 15px;
    cursor: pointer;
    font-size: 20px;
  }
  
  #popup-img {
    max-width: 100%;
    margin-top: 10px;
    border-radius: 8px;
  }

  #gameContainer {
    position: absolute;
    top: 0px;
    width: 100vw;
    height: auto;
  }

  button {
    font-family: smallFont;
    font-size: 25px;
    padding: 2px 20px;
    border: 4px solid rgb(165, 89, 76);
    background-color: rgb(196, 122, 81);
    margin-top: 0px;
}
