/* TEST 01 */
/* reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* layout */
body {
  display: flex;
  flex-direction: column;
  align-items: center;
  /* WERSJA TEST 01: tło na całej stronie */
  background: url('https://www.mzpro.pl/wp-content/uploads/2025/06/tlo-splotu-3d-low-poly-z-plytkiej-glebi-ostrosci-scaled.jpg') center/cover no-repeat;
  background-size: cover;
  font-family: sans-serif;
  min-height: 100vh;
  padding: 20px 0;
  position: relative;
}

/* Modal startowy */
#modal {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
#modal-content {
  background: #111;
  color: #fff;
  padding: 30px;
  border: 4px solid #0f0;
  border-radius: 8px;
  text-align: center;
  max-width: 90%;
}
#modal-content h2 {
  margin-bottom: 15px;
  font-size: 1.5rem;
}
#modal-content p {
  margin-bottom: 20px;
  line-height: 1.4;
}
#start-btn {
  padding: 10px 20px;
  background: #0f0;
  color: #111;
  font-family: 'Courier New', monospace;
  font-size: 1rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

/* Scoreboard */
#score-container {
  background: #111;
  color: #0f0;
  font-family: 'Courier New', monospace;
  font-size: 1.5rem;
  padding: 5px 20px;
  border: 4px solid #0f0;
  border-radius: 8px;
  box-shadow: 0 0 20px #0f0;
  margin-bottom: 15px;
}

/* Gra z tłem za ramką */
#game-wrapper {
  position: relative;
}
#game-container {
  background: transparent;
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 30px;
  width: calc(600px + 40px);
}

/* Canvas */
#gameCanvas {
  background: #111;
  border: 6px solid red;
  border-radius: 8px;
  display: block;
  margin: 0 auto;
}

/* Leaderboard */
#leaderboard-container {
  width: 350px;
  text-align: center;
  margin-bottom: 30px;
}
#leaderboard-table {
  width: 100%;
  border-collapse: collapse;
  background: #222;
  color: #fff;
  font-family: 'Courier New', monospace;
  border: 4px solid #0f0;
  border-radius: 8px;
  overflow: hidden;
}
#leaderboard-table caption {
  caption-side: top;
  padding: 12px;
  font-size: 1.4rem;
  color: #fff;
  background: #0f0;
  color: #111;
  font-family: Arial, sans-serif;
  font-weight: bold;
}
#leaderboard-table th,
#leaderboard-table td {
  border: 1px solid #444;
  padding: 8px;
}
#leaderboard-table th {
  background: #333;
}
#leaderboard-table tr:nth-child(odd) {
  background: #2a2a2a;
}

/* Stopka */
#footer {
  background: rgba(255,255,255,0.8);
  width: 100%;
  text-align: center;
  color: #333;
  font-size: 0.9rem;
  font-family: Arial, sans-serif;
  margin-top: 20px;
  padding: 10px 0;
}
#footer img {
  max-width: 150px;
  margin-bottom: 10px;
}
