body {
  margin: 0;
  padding: 0;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  font-family: Inter, system-ui, sans-serif;
  background: url('https://p4.wallpaperbetter.com/wallpaper/691/850/420/portrait-display-video-games-vintage-retro-games-wallpaper-preview.jpg');
  background-size: cover;
  background-position: center;
}
  @media (min-width: 768px) {
  body {
    background: url('https://p4.wallpaperbetter.com/wallpaper/691/850/420/portrait-display-video-games-vintage-retro-games-wallpaper-preview.jpg') no-repeat center center fixed;
    background-size: contain;
    background-position: center;
    background-color: black;
  }
}

h1 {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 1rem;
  font-weight: bold;
  text-transform: uppercase;
}

h2 {
  font-size: 1.85rem;
  margin-bottom: 1rem;
  font-weight: bold;
  text-transform: uppercase;
  text-align: center;
}

p {
  font-size: 1rem;
  text-align: left;
  margin-right: 1rem;
  margin-left: 1rem;
}

#app {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#start-screen {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgb(0, 0, 0);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  cursor: pointer;
}

.start-content p {
    text-align: center;
}

canvas {
  border: 2px solid #fff;
  margin-bottom: 10px;
  background-color: black;
}

#tetris-canvas {
  background-color: rgba(0, 0, 0, 0.85); /* semitransparente */
  border: 2px solid #333;
  box-shadow: 0 0 20px #000;
  display: block;
  margin: 0 auto;
}

#hud {
  margin-top: 20px;
  color: white;
  font-size: 1.2rem;
  display: flex;
  gap: 20px;
  align-items: center;
  text-shadow: 2px 2px 4px #000;
}

#hud strong {
  font-weight: bold;
  background: rgba(0, 0, 0, 0.6);
  padding: 6px 12px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.6);
}

#pause-btn,
#restart-btn {
  padding: 8px 16px;
  font-size: 1rem;
  border: none;
  background-color: #222;
  color: white;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 0 10px #000;
  transition: background 0.3s ease;
}

#pause-btn:hover,
#restart-btn:hover {
  background-color: #444;
}

#pause-screen {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
}

#pause-screen p {
  font-size: 1rem;
  text-align: center;
}

#game-over-screen {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgb(0, 0, 0);
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
}

#game-over-content {
  background: rgba(0, 0, 0, 0.85);
  padding: 2rem;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 300px;
  max-width: 90%;
}

#game-over-screen p {
    margin-left: 0;
    text-align: left;
}