body {
    font-family: Arial, Helvetica, sans-serif;
    text-align: center;
}

hr {
    width: 500px;
}

#board {
    width: 400px;
    height: 400px;
    background-color: #cdc1b5;
    border: 6px solid #bbada0;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    box-sizing: border-box;
    padding: 5px;
    gap: 5px;
}

.tile {
    width: calc(25% - 3.75px); /* (100% / 4) - gap adjustment */
    height: calc(25% - 3.75px);
    background-color: #cdc1b5;
    font-size: 40px;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    border-radius: 3px;
}

/* colored tiles */
.x2 {
    background-color: #eee4da;
    color: #727371;
}

.x4 {
    background-color: #ece0ca;
    color: #727371;
}

.x8 {
    background-color: #f4b17a;
    color: white;
}

.x16{
    background-color: #f59575;
    color: white;
}

.x32{
    background-color: #f57c5f;
    color: white;
}

.x64{
    background-color: #f65d3b;
    color: white;
}

.x128{
    background-color: #edce71;
    color: white;
}

.x256{
    background-color: #edcc63;
    color: white;
}

.x512{
    background-color: #edc651;
    color: white;
}

.x1024{
    background-color: #eec744;
    color: white;
}

.x2048{
    background-color: #ecc230;
    color: white;
}

.x4096 {
    background-color: #fe3d3d;
    color: white;
}

.x8192 {
    background-color: #ff2020;
    color: white;
}

.score-container {
    margin: 20px;
}

.score-box {
    display: inline-block;
    background-color: #bbada0;
    padding: 10px 20px;
    margin: 0 10px;
    border-radius: 3px;
    color: white;
    min-width: 100px;
}

.score-label {
    font-size: 14px;
    margin-bottom: 5px;
}

.score-value {
    font-size: 24px;
    font-weight: bold;
}

#resetBtn {
    background-color: #8f7a66;
    color: #f9f6f2;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 3px;
    cursor: pointer;
    margin: 20px;
}

#resetBtn:hover {
    background-color: #9f8a76;
}