:root {
    --border-color: #219EBC;
    --dialog-background: #8ECAE6;

    --menu-background: #f5f5f5;
    --menu-border-color: #023047;
    --menu-font-color: #219EBC;
    --menu-selected-background: #8ECAE6;
;

}

* {
    box-sizing: border-box;
}
body {
    padding: 0;
    margin: 0;
    overflow: hidden;
    background-color: #3A3A50;
}



.game-container {
    position: relative;
    width: 1020px;
    height: 576px;
    margin: 0 auto;
   
    /* outline: 1px solid white; */

    transform:  translateY(10%)

    
}

.game-container canvas {
    image-rendering: pixelated;
    margin: auto;
    transform:  scale(3.5) translateY(30%);

   
}

/* Mobile Controls */
.controller {
  display: none; /* Hidden by default on desktop */
}

@media (max-width: 1024px) {
  body {
    margin: 0;
    padding: 0;
    overflow: hidden;
    background-color: #3A3A50;
    height: 100vh;
    display: flex;
    flex-direction: column;
  }

  .game-container {
    position: relative;
    width: 100%;
    height: 70vh;
    margin: 0;
    transform: none;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .game-container canvas {
    /* Reset all transformations first */
    transform: none;
    margin: 0;
    /* Apply only a simple scale */
    transform: scale(1);
  }

  .controller {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    height: 30vh;
  }

  .d-pad {
    display: flex;
    flex-wrap: wrap;
    width: 180px;
    height: 180px;
    position: relative;
  }

  .d-pad-button {
    position: absolute;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.8);
    border: 2px solid #219EBC;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
  }

  .d-pad-button.up { top: 0; left: 60px; }
  .d-pad-button.right { top: 60px; left: 120px; }
  .d-pad-button.down { top: 120px; left: 60px; }
  .d-pad-button.left { top: 60px; left: 0; }

  .action-button {
    width: 90px;
    height: 90px;
    background: rgba(255, 255, 255, 0.8);
    border: 2px solid #cc9b63;
    border-radius: 50%;
    font-size: 20px;
  }

  /* Text message positioning for mobile */
  .TextMessage {
    width: 80%;
    left: 10%;
    bottom: 35vh;
    font-size: 14px;
    padding: 10px;
  }
}