Spaces:
Running
Running
| * { | |
| margin: 0; | |
| padding: 0; | |
| box-sizing: border-box; | |
| } | |
| body { | |
| font-family: Arial, sans-serif; | |
| background-color: #faf8ef; | |
| display: flex; | |
| justify-content: center; | |
| align-items: center; | |
| min-height: 100vh; | |
| } | |
| .container { | |
| text-align: center; | |
| } | |
| h1 { | |
| font-size: 48px; | |
| color: #776e65; | |
| margin-bottom: 20px; | |
| } | |
| .score-container { | |
| display: flex; | |
| justify-content: space-between; | |
| align-items: center; | |
| margin-bottom: 20px; | |
| } | |
| .score-box { | |
| background-color: #bbada0; | |
| padding: 10px 20px; | |
| border-radius: 5px; | |
| color: white; | |
| } | |
| #new-game { | |
| background-color: #8f7a66; | |
| color: white; | |
| border: none; | |
| padding: 10px 20px; | |
| border-radius: 5px; | |
| cursor: pointer; | |
| font-size: 16px; | |
| } | |
| .grid-container { | |
| background-color: #bbada0; | |
| padding: 10px; | |
| border-radius: 5px; | |
| display: inline-block; | |
| } | |
| .grid-row { | |
| display: flex; | |
| } | |
| .grid-cell { | |
| width: 100px; | |
| height: 100px; | |
| background-color: #cdc1b4; | |
| margin: 5px; | |
| border-radius: 5px; | |
| display: flex; | |
| justify-content: center; | |
| align-items: center; | |
| font-size: 36px; | |
| font-weight: bold; | |
| color: #776e65; | |
| } | |
| .tile { | |
| background-color: #eee4da; | |
| } | |
| .tile-2 { background-color: #eee4da; } | |
| .tile-4 { background-color: #ede0c8; } | |
| .tile-8 { background-color: #f2b179; color: white; } | |
| .tile-16 { background-color: #f59563; color: white; } | |
| .tile-32 { background-color: #f67c5f; color: white; } | |
| .tile-64 { background-color: #f65e3b; color: white; } | |
| .tile-128 { background-color: #edcf72; color: white; } | |
| .tile-256 { background-color: #edcc61; color: white; } | |
| .tile-512 { background-color: #edc850; color: white; } | |
| .tile-1024 { background-color: #edc53f; color: white; } | |
| .tile-2048 { background-color: #edc22e; color: white; } |