  body {
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
    background: #f2f4f8;
  }
  
  #app {
    background-image: url('../assets/images/background.jpg'); 
    background-size: 100% 100%;
    display: flex;
    flex-direction: column;
    height: 100vh;
    /* background-color: #393939; */
  }
  
  /* Top Bar */
  .top-bar {
    background: #0f62fe;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    font-size: 1.25rem;
    font-weight: bold;
    gap: 20px;
    flex-wrap: nowrap;
  }

  .left-info,
  .right-resources {
    display: flex;
    gap: 20px;
    align-items: center;
  }

  .right-resources > div {
    white-space: nowrap; /* keep each resource label and count on one line */
  }

  .tooltip {
    position: relative; /* make label position absolute relative to this */
    display: inline-block;
  }

  .tooltip:hover .label {
    display: block;
  }

  .resources.label {
    display: none; /* hide by default */
    position: absolute;
    top: 100%; /* position below the tooltip */
    transform: translateX(-90%);
    background-color: black;
    color: #fff;
    padding: 4px 8px;
    font-size: 1rem;
    width: 350px; /* fixed width for tooltip */
    border-radius: 4px;
    /* white-space: nowrap; */
    z-index: 100;
  }

  .building.label {
    display: none;
    position: absolute;
    top: 2.5rem;
    transform: translateX(-30%);
    background-color: rgba(0,0,0,0.7);
    color: #fff;
    padding: 4px 8px;
    font-size: 1rem;
    border-radius: 4px;
    white-space: nowrap;
    pointer-events: none;
    z-index: 20;
  }

  /* .resources:hover .label {
    display: block;
  } */

  /* Grid Layout */
  .main-grid {
    flex: 1;
    display: grid;
    grid-template-columns: 200px 1fr;
    grid-template-rows: auto;
    overflow: hidden;
    /* margin: 0 0 0 auto; */
    align-self: center;
    /* border-right: 10px solid #161616; */
  }
  
  /* Side Menu */
  .side-menu {
    /* background: #161616; */
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 10px;
    width: 200px;
    box-sizing: border-box;
  }

  .top-buttons,
  .bottom-buttons {
    display: flex;
    flex-direction: column;
  }

  .side-menu button {
    background-image: url('../assets/images/sideBar.png'); 
    background-size: 100% 100%;
    margin: 5px 0;
    padding: 10px 20px;
    /* background: #393939; */
    border: none;
    cursor: pointer;
    /* border-radius: 5px; */
    text-align: left;
    transition: background 0.3s;
    font-size: 1rem;
    /* background-color: #161616; */
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
  }
  
  .side-menu button:hover {
    /* background: #525252; */
    background-image: url('../assets/images/sideBarHover.png'); 
    /* filter: brightness(0.5); */
    /* color: white; */
    font-size: bold;
    text-shadow: 2px 2px 10px rgba(255, 255, 255, 0.3);
  }
  
  /* Game Area */
  .game-content {
    background: #f4f4f4;
    color: #161616;
    overflow-y: auto;
  }
  
  /* Footer */
  .footer {
    background: #0f62fe;
    color: white;
    text-align: center;
    font-size: 12px;
  }
  