/* Added to ensure the game fits the iframe perfectly */
html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  /* Prevents any scrollbars */
}

.game-container {
  position: relative;
  width: 100%;
  height: 100%;
  background: #000;
  display: flex;
  justify-content: center;
  align-items: center;
}

canvas {
  display: block;
  /* Make canvas responsive while maintaining aspect ratio */
  width: 100%;
  height: 100%;
  object-fit: contain;
}

#startButton {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 12px 24px;
  font-size: 20px;
  background: #e11d48;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  display: none;
  color: white;
  font-weight: bold;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: background-color 0.2s;
  z-index: 10;
}

#startButton:hover {
  background: #be185d;
}

#score {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 32px;
  /* Increased from 20px */
  font-family: 'VT323', monospace;
  /* Match game font */
  color: white;
  text-shadow: 2px 2px 0px #000;
  /* Retro shadow */
  font-weight: bold;
  z-index: 10;
}

/* Fullscreen Button */
#fullscreenButton {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.4);
  border: none;
  color: white;
  padding: 8px;
  border-radius: 5px;
  cursor: pointer;
  line-height: 0;
  z-index: 10;
}

#fullscreenButton:hover {
  background: rgba(0, 0, 0, 0.6);
}

#fullscreenButton svg {
  width: 18px;
  height: 18px;
}

/* Back Button */
#backButton {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(0, 0, 0, 0.4);
  border: none;
  color: white;
  padding: 8px 12px;
  border-radius: 5px;
  cursor: pointer;
  font-family: 'VT323', monospace;
  font-size: 18px;
  line-height: 1;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: background 0.2s;
  text-decoration: none;
  /* In case we use an anchor tag */
}

#backButton:hover {
  background: rgba(0, 0, 0, 0.6);
}

#backButton svg {
  width: 16px;
  height: 16px;
}