|
body { |
|
font-family: Arial, sans-serif; |
|
margin: 0; |
|
display: flex; |
|
justify-content: center; |
|
align-items: center; |
|
min-height: 100vh; |
|
background-color: #faf8ef; |
|
} |
|
|
|
.container { |
|
text-align: center; |
|
} |
|
|
|
.score-container { |
|
font-size: 1.5em; |
|
margin-bottom: 20px; |
|
} |
|
|
|
.game-board { |
|
display: grid; |
|
grid-template-columns: repeat(4, 100px); |
|
grid-gap: 10px; |
|
background-color: #bbada0; |
|
padding: 10px; |
|
border-radius: 5px; |
|
} |
|
|
|
.tile { |
|
width: 100px; |
|
height: 100px; |
|
background-color: #eee4da; |
|
color: #776e65; |
|
font-size: 2.5em; |
|
font-weight: bold; |
|
display: flex; |
|
justify-content: center; |
|
align-items: center; |
|
border-radius: 5px; |
|
} |
|
|
|
.tile.tile-2 { |
|
background-color: #eee4da; |
|
} |
|
|
|
.tile.tile-4 { |
|
background-color: #ede0c8; |
|
} |
|
|
|
.tile.tile-8 { |
|
background-color: #f2b179; |
|
color: white; |
|
} |
|
|
|
.tile.tile-16 { |
|
background-color: #f59563; |
|
color: white; |
|
} |
|
|
|
.tile.tile-32 { |
|
background-color: #f67c5f; |
|
color: white; |
|
} |
|
|
|
.tile.tile-64 { |
|
background-color: #f65e3b; |
|
color: white; |
|
} |
|
|
|
.tile.tile-128 { |
|
background-color: #edcf72; |
|
color: white; |
|
} |
|
|
|
.tile.tile-256 { |
|
background-color: #edcc61; |
|
color: white; |
|
} |
|
|
|
.tile.tile-512 { |
|
background-color: #edc850; |
|
color: white; |
|
} |
|
|
|
.tile.tile-1024 { |
|
background-color: #edc53f; |
|
color: white; |
|
} |
|
|
|
.tile.tile-2048 { |
|
background-color: #edc22e; |
|
color: white; |
|
} |
|
|
|
.instructions { |
|
margin-top: 20px; |
|
font-size: 1em; |
|
color: #776e65; |
|
} |
|
|