/* === Global Reset === */
body {
  overflow-y: scroll;
  font-family: Arial, sans-serif;
  background: #222;
  color: #fff;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  text-align: center;
  justify-items: center;
}

#mainContainer {
  display: flex;
  flex-direction: column;
  width: 95vw;
  max-width: 1000px;
  min-height: 100vh;
  /* ⬅️ ensures it always fills the viewport height */
  box-sizing: border-box;
  /* makes padding included in height */
  margin: 0;
  padding: 0;
  background-color: #030303;
  border-radius: 20px;
  text-align: center;
  overflow: visible;
}

/* === Unified Top Menu + Player Status === */
#topMenu {
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1000;
  background-color: #030303;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0;
  gap: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
  border-radius: 0 0 12px 12px;
  overflow: hidden;
}

#screenContainer {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0px;
  overflow-y: hidden;
  width: 100%;
}

.navButtons {
  display: flex;
  flex: 1;
  min-width: 80px;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 800px;
  margin: 0 auto;
}

#topMenu button {
  background: #1f1f1f;
  color: #fff;
  border: 2px solid #444;
  padding: 10px 16px;
  cursor: pointer;
  font-size: 14px;
  border-radius: 12px;
  transition: 0.2s;
  box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

#topMenu button:hover {
  background: #333;
  border-color: #777;
  transform: scale(1.05);
}

#playerStatusBar {
  display: flex;
  justify-content: center;
  gap: 20px;
  background: linear-gradient(to right, #1a1a1a, #111);
  padding: 8px 16px;
  border-radius: 12px;
  color: #fff;
  font-size: 15px;
  font-weight: bold;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  width: 90%;
  max-width: 500px;
}

#playerStatusBar div {
  background: #292929;
  padding: 6px 12px;
  border-radius: 8px;
  font-weight: bold;
  box-shadow: inset 0 0 5px #000;
}

/* === Generic Screen Container === */
.screen {
  display: none;
}

/* === Modal Popup === */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.modalContent {
  background: linear-gradient(to right, #00ff99, #00ccff);
  color: black;
  font-size: 20px;
  padding: 20px 30px;
  border-radius: 15px;
  box-shadow: 0 0 20px rgba(0, 255, 200, 0.5);
  font-weight: bold;
  text-align: center;
}

/* === Utility === */
.hidden {
  display: none;
}



#topMenu #jailReturnBtn {
  display: none;
  justify-content: center;
  background: #c00;
  color: white;
  font-weight: bold;
  border: none;
  padding: 10px 16px;
  border-radius: 8px;
  text-align: center;
}




/* Medium Screens (Tablets) */
@media (max-width: 768px) {
  #mainContainer {
    width: 98vw;
    padding: 0 16px 32px;
  }
}


@media (max-width: 600px) {
  #mainContainer {
    width: 98vw;
    /* Take full screen width */
    border-radius: 0;
    /* Remove corners */
    padding: 0 10px 30px;
    /* Slightly less padding for smaller view */
  }
}



@media (max-width: 480px) {
  #topMenu button {
    font-size: 0;
    /* Hide text */
    width: 40px;
    height: 40px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  #topMenu button::before {
    content: attr(data-icon);
    font-size: 20px;
    display: inline-block;
  }


  #topMenu #jailReturnBtn::before {
    content: "⚠️";
  }
}

/* Remove padding and force full width on tiny screens */
@media (max-width: 400px) {
  #mainContainer {
    padding: 0;
    width: 100vw;
    max-width: 100vw;
  }

  #screenContainer,
  .screen {
    padding: 0;
    margin: 0;
  }
}


@media (max-width: 320px) {
  #mainContainer {
    width: 100vw;
    max-width: 100vw;
    /* Take full screen width */
    border-radius: 0;
    /* Remove corners */
    padding: 0;
    zoom: normal;
    margin: 0;
    /* Slightly less padding for smaller view */
  }
}

