/* freecell.css */
body {
  background: #0b6623;
  color: white;
  font-family: sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px;
}

.board { display: flex; justify-content: center; margin-bottom: 20px; }

.cell, .pile {
  position: relative;
  width: 60px;
  height: 90px;
  border: 2px solid #fff;
  border-radius: 6px;
  background: rgba(255,255,255,0.1);
  cursor: pointer;
  margin-right: 10px;
}
.cell:last-child, .pile:last-child { margin-right: 0; }

.top-row .cell:nth-child(4) { margin-right: 30px; } /* gap between free cells and foundations */

.tableau {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 900px;
  gap: 6px;
  margin-bottom: 20px;
}

.card {
  width: 60px;
  height: 90px;
  border: 1px solid #000;
  border-radius: 6px;
  background: white;
  color: black;
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 4px;
  font-size: 14px;
  font-weight: bold;
  box-shadow: 1px 2px 4px rgba(0,0,0,0.3);
}

.card.selected {
  transform: translateY(8px);
  border: 2px solid #ff9800;
  z-index: 20;
}

.hearts, .diamonds { color: red; }
.clubs, .spades { color: black; }

#game-container {
    position: relative;
    padding-bottom: 200px; /* enough space for tallest possible pile */
}
footer {
    clear: both;
    margin-top: 20px;
}