/* poetry.css */
/* 📜 Reset di base per il body */
html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden; /* Evita barre di scorrimento */
}

/* 📜 Overlay Poesia */
#poetryOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  font-family: 'Press Start 2P', cursive;
  font-size: 12px;
  line-height: 1.6;
  padding: 0; /* Nessun padding */
  box-sizing: border-box;
  z-index: 25; /* Al livello delle poesie, sotto la sigaretta */
  overflow: hidden;
  pointer-events: none;
}

/* 📜 Titolo Poesia */
#poetryOverlay #poem-title {
  font-size: 16px;
  margin-bottom: 20px;
  text-align: center;
}

/* 📜 Corpo Testo */
#poetryOverlay #poem-text {
  white-space: pre-wrap;
  text-align: center;
  width: 100vw;
  height: 100vh;
  margin: 0 auto;
}

/* 📜 Canvas Poesia */
#poetry-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 25; /* Al livello delle poesie, sotto la sigaretta */
}

/* 📜 Finestra Poesie Recenti */
#recentPoemsContainer {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 20px;
  border-radius: 10px;
  z-index: 40; /* Sopra i pulsanti e il menu, sotto i popup principali */
  max-width: 80%;
  max-height: 80%;
  overflow-y: auto;
  display: none;
  font-family: 'Press Start 2P', cursive;
}

.recent-poems-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.recent-poems-header h4 {
  margin: 0;
  font-size: 16px;
}

.close-recent-poems {
  background: none;
  border: none;
  color: white;
  font-size: 20px;
  cursor: pointer;
  padding: 5px;
}

.close-recent-poems:hover {
  color: red;
}

.recent-poem-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  border-bottom: 1px solid #444;
  cursor: pointer;
}

.recent-poem-item:hover {
  background: rgba(255, 255, 255, 0.1);
}

.poem-info {
  flex: 1;
}

.poem-star {
  font-size: 20px;
  cursor: pointer;
  padding-left: 10px;
}

.poem-star:hover {
  color: yellow;
}