body {
  margin: 0;
  background-color: #222;
  overflow: hidden; /* prevent scrollbars from canvas overflow */
  font-family: 'Press Start 2P', sans-serif;
}

#gameCanvas {
  position: fixed; /* covers the screen */
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  object-fit: cover
}

#inventoryButton {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 10vh;
  height: 10vh;
  font-size: 5vh;
  border: 1px solid black;
  border-radius: 8px;
  z-index: 1001;
}

.menu {
  position: absolute;
  top: 11vh; /* directly under the inventory button */
  left: 10px;
  width: 22.5vw;
  max-height: 60vh;
  display: flex;
  flex-direction: column;
  border: 1px solid black;
  border-radius: 8px;
  padding: 10px;
  background-color: white;
  overflow: hidden;
  z-index: 1000;
}

.hidden {
  display: none;
}

#itemsContainer {
  flex: 1;
  overflow-y: auto;
  margin-bottom: 10px;
}

#items {
  display: flex;
  flex-wrap: wrap;
  column-gap: 10px;
  row-gap: 10px; 
}

#items button {
  border: 1px solid black;
  padding: 1.5vh;
  cursor: pointer;
  margin: 0;
  border-radius: 8px;
}

#items button:hover{
  background-color: rgba(0, 153, 255, 0.486);
}


#itemDetailsContainer {
  padding: 0px;
  text-align: center;
  border-top: 1px solid black;
  padding-top: 10px;
  flex-shrink: 0; 
}

#container {
  position: absolute;
  bottom: 0%;
  left: 1%;
  width: 100vw;
  color: white;
  text-align: left;

  display: flex;
  gap: 2em;
}
#playerStats {
  position: absolute;
  top: 1%;
  width: 100vw;
  text-align: center;
  color: white;
  z-index: 2000;
  pointer-events: none;
}

.fish-item.selected {
  background-color: rgba(0, 153, 255, 0.486); /* or any color you like */
  color: orange; /* optional for contrast */
  border: 2px solid orange !important;
}

#tipsContainer {
  position: absolute;
  bottom: 0%;
  right: 1%;
  width: 100vw;
  color: white;
  text-align: right;
}

.Keys, #currentLocation, #weather, #statusText, #fishCountText, #money {
  font-size: clamp(0.6rem, 1vw, 2.5vh);
}

#controllsForMobile {
  visibility: hidden;
}
#controllsForMobileW {
  position: absolute;
  left: 80px;
  bottom: 80px;
}
#controllsForMobileA {
  position: absolute;
  left: 10px;
  bottom: 10px;
}
#controllsForMobileS {
  position: absolute;
  left: 80px;
  bottom: 10px;
}
#controllsForMobileD {
  position: absolute;
  left: 150px;
  bottom: 10px;
}
#controllsForMobileF {
  position: absolute;
  left: 250px;
  bottom: 10px;
}
#controllsForMobile button{
  height: 10vh;
  width: 10vh;
}

@media (max-width: 768px) {
  #controllsForMobile {
  visibility:visible;
}  
}

