/* Basic reset */ * { box-sizing: border-box; margin:0; padding:0; } body { font-family: Arial, sans-serif; background:#fafafa; display:flex; flex-direction:column; align-items:center; position: relative; overflow: hidden; height: 100vh; } .background { width: 100%; height: 100%; position: fixed; background-image: url('./background.png'); background-size: cover; background-position: center; background-repeat: no-repeat; } /* Header */ header { text-align:center; margin:20px; position: relative; z-index: 1; /* NEW: add a dark translucent overlay behind the text */ background: rgba(0, 0, 0, 0.4); padding: 15px 30px; border-radius: 12px; } /* NEW: style the main heading */ header h1 { font-size: 2.5rem; color: #fff; text-shadow: 0 0 8px rgba(255,255,255,0.8), /* soft outer glow */ 0 0 12px rgba(255,255,255,0.6), 2px 2px 4px rgba(0,0,0,0.7); /* subtle inner shadow */ margin: 0; } /* NEW: give the stats a slight glow as well */ header .stats span { color: #fff; text-shadow: 0 0 4px rgba(255,255,255,0.7); } .stats { margin-top:8px; font-size:0.9rem; } /* Board */ .board { display: grid; gap: 12px; max-width: 800px; width: 100%; grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); } /* Card */ .card { perspective: 1000px; cursor: pointer; } .card-inner { position: relative; width: 100%; padding-top: 100%; /* square */ transform-style: preserve-3d; transition: transform 0.6s; } .card.flipped .card-inner { transform: rotateY(180deg); } .card-face { position: absolute; inset: 0; backface-visibility: hidden; border-radius: 8px; display:flex; align-items:center; justify-content:center; } .card-back { background:#2196F3; } .card-front { background:#fff; transform: rotateY(180deg); border: 2px solid #ddd; }