@import url('https://fonts.googleapis.com/css2?family=VT323&display=swap');

:root {
  --wood-dark: #4a2810;
  --wood-light: #855e42;
  --parchment: #fdf5e6;
  --grass-green: #567d46;
  --stamina-yellow: #f4c430;
}

body {
  background-color: #2a2a2a;
  background-image: radial-gradient(#333 1px, transparent 1px);
  background-size: 20px 20px;
  font-family: 'VT323', monospace;
  margin: 0;
  padding: 20px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* --- THE MAIN QUEST LOG (Mobile Friendly) --- */
.game-menu, .container { 
  /* Using .container as backup, but .game-menu is preferred */
  background-color: var(--parchment);
  border: 4px solid var(--wood-dark);
  box-shadow: inset 0 0 0 4px var(--wood-light), 5px 5px 0px rgba(0,0,0,0.5);
  
  /* Mobile Responsive Widths */
  width: 90%;            /* Takes up 90% of screen on phone */
  max-width: 450px;      /* Stops getting too big on desktop */
  
  padding: 40px 20px 20px 20px; /* Top padding clears space for the title tag */
  position: relative;
  margin: 0 auto;
  text-align: center;
}

/* HIDE DEFAULT LISTMONK LOGO */
.logo, img[src*="logo"] {
  display: none !important;
}

/* THE "HARVEST BUDDY" TAG (Now perfectly centered) */
.game-menu::after, .container::after {
  content: "Harvest Buddy";
  position: absolute;
  top: -24px; /* Pulls it up to sit on the border */
  left: 50%;
  transform: translateX(-50%);
  
  background: var(--wood-dark);
  color: var(--stamina-yellow);
  border: 2px solid var(--wood-light);
  padding: 5px 15px;
  font-size: 1.4rem;
  letter-spacing: 1px;
  white-space: nowrap;
  box-shadow: 0 4px 0 rgba(0,0,0,0.2);
}

/* INPUT FIELDS (Inventory Slots) */
input {
  width: 100%;
  box-sizing: border-box; /* Fixes padding overflow issues */
  background: #fff8e7;
  border: 2px solid var(--wood-light);
  padding: 12px;
  font-family: 'VT323', monospace;
  font-size: 1.2rem;
  color: var(--wood-dark);
  margin-bottom: 15px;
  outline: none;
}

input:focus {
  border-color: var(--grass-green);
  background: #fff;
}

/* BUTTON (Action) */
button {
  width: 100%;
  background: var(--grass-green);
  border: 2px solid #fff;
  outline: 3px solid var(--wood-dark);
  color: #fff;
  font-family: 'VT323', monospace;
  font-size: 1.5rem;
  padding: 10px;
  cursor: pointer;
  text-transform: uppercase;
  margin-top: 10px;
}

button:active {
  transform: translateY(2px);
  outline-width: 2px;
}

/* LINKS (Make them look like game text) */
a {
  color: var(--wood-light);
  text-decoration: none;
  border-bottom: 1px dashed var(--wood-light);
  margin: 0 10px;
  font-size: 1.1rem;
  transition: color 0.2s;
}

a:hover {
  color: var(--grass-green);
  border-bottom-style: solid;
}

/* FOOTER CLEANUP (Removes the box from the 'Powered By' text) */
.footer, .tiny {
  margin-top: 20px;
  color: #666;
  font-size: 0.9rem;
  text-align: center;
  border: none !important;
  box-shadow: none !important;
  background: none !important;
}