/* --------------------------------------------
   Base Styles
--------------------------------------------- */
body {
  margin: 0;
  overflow: hidden;
  background: black;
  font-family: 'Courier New', monospace;
  color: #e0e0e0;
}

body.menu-open canvas {
  pointer-events: none;
}

canvas {
  display: block;
}

/* --------------------------------------------
   Menu Overlay - Minimalist and Clean
--------------------------------------------- */
.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 400px;
  height: 100vh;
  padding: 50px 40px;
  background: rgba(20, 20, 20, 0.4); /* semi-transparent dark */
  border-right: 1px solid #444;
  display: flex;
  flex-direction: column;
  gap: 24px;
  justify-content: center;
  text-align: left;
  font-size: 16px;
  box-shadow: 5px 0 15px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  pointer-events: all;
}

.menu-overlay.hidden {
  display: none;
}

/* --------------------------------------------
   Menu Headings
--------------------------------------------- */
.menu-overlay h1,
.menu-overlay h2 {
  font-size: 24px;
  color: #f5f5f5;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid #444;
  font-weight: 500;
}

/* --------------------------------------------
   Buttons
--------------------------------------------- */
.menu-overlay button {
  font-size: 16px;
  padding: 12px 20px;
  background: transparent;
  color: #f0f0f0;
  border: 1px solid #888;
  border-radius: 4px;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s ease;
}

.menu-overlay button:hover {
  background: #222;
  border-color: #bbb;
}

/* --------------------------------------------
   Labels & Sliders (Settings Menu)
--------------------------------------------- */
label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  color: #ccc;
}

input[type="range"] {
  width: 100%;
  height: 6px;
  border-radius: 4px;
  accent-color: #ccc;
  background: #1a1a1a;
}

/* --------------------------------------------
   Scrollable Credits Box
--------------------------------------------- */
.scrollable {
  max-height: 300px;
  overflow-y: auto;
  background: rgba(30, 30, 30, 0.7);
  border: 1px solid #333;
  border-radius: 4px;
  padding: 12px;
  font-size: 14px;
  color: #ccc;
  line-height: 1.6;
}

.scrollable a {
  color: #cccccc;
  text-decoration: underline;
}

.scrollable ul {
  list-style-type: disc;
  padding-left: 20px;
}

.scrollable h3 {
  font-size: 15px;
  margin-top: 16px;
  color: #eee;
}

/* --------------------------------------------
   Poem Overlay (Paper Style Note)
--------------------------------------------- */
#poem-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

#poem-overlay.hidden {
  display: none;
}

#poem-overlay .paper {
  position: relative;
  width: 500px;
  height: 250px;
  padding: 2rem;
  overflow-y: auto;
  background: url("./assets/paper.jpg") no-repeat center center;
  background-size: cover;
  background-color: #fdf8e1;
  color: #000;
  font-size: 1.1rem;
  font-family: "Courier New", monospace;
  white-space: pre-wrap;
  text-align: center;
  line-height: 1.5;
  border: 1px solid #222;
  border-radius: 4px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.4);
}

#poem-overlay #close-poem {
  position: absolute;
  top: 10px;
  right: 12px;
  font-size: 1.5rem;
  font-weight: bold;
  background: none;
  border: none;
  color: #333;
  cursor: pointer;
}

/* --------------------------------------------
   Tutorial Prompt Box (Top Center)
--------------------------------------------- */
#tutorial-prompt {
  position: fixed;
  top: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.75);
  padding: 12px 24px;
  color: #ffffff;
  font-size: 1rem;
  font-family: 'Courier New', monospace;
  border: 1px solid #ffffff;
  border-radius: 6px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 9999;
}

#tutorial-prompt.show {
  opacity: 1;
}

/* --------------------------------------------
   Hover Label (For Fridge Meat)
--------------------------------------------- */
#hover-label {
  position: fixed;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.85);
  color: white;
  padding: 6px 14px;
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
  border: 1px solid white;
  border-radius: 4px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: 9999;
}

#hover-label.visible {
  opacity: 1;
}
