* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    height: 100vh;
    width: 100vw;
    background-color:whitesmoke;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    overflow: hidden;
}

.game-board {
    display: grid;
    grid-template-columns: repeat(4, 100px);
    grid-template-rows: repeat(4, 100px);
    background-color:#bbada0;
    padding: 10px;
    border-radius: 10px;
    gap: 10px;
}

@media (max-width : 500px) {
    .game-board {
        display: grid;
        grid-template-columns: repeat(4, 85px);
        grid-template-rows: repeat(4, 85px);
    }
}

@media (max-width : 400px) {
    .game-board {
        display: grid;
        grid-template-columns: repeat(4, 70px);
        grid-template-rows: repeat(4, 70px);
    }
}

.tiles {
    height: 100%;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #cdc1b4;
    font-size: 24px;
    font-weight: bold;
    color: #776e65;
    border-radius: 8px;
}

.tile-2 {
    background-color: #ede0c8;
}

.tile-4 {
    background-color: #f4cd85;
}

.tile-8 {
    background-color: #f8b840;
}

.tile-16 {
    background-color: #f19616;
    color: #ffffff;
}

.tile-32 {
    background-color: #ede0c8;
}

.tile-64 {
    background-color: #f4cd85;
}

.tile-128 {
    background-color: #f8b840;
}

.tile-256 {
    background-color: #f19616;
    color: #ffffff;
}

.tile-512 {
    background-color: #f4cd85;
}

.tile-1024 {
    background-color: #f8b840;
}

.tile-2048 {
    background-color: #f19616;
    color: #ffffff;
}

.game-info{
    text-align: center;
    margin: 20px;
    font-size: 1.5rem;
    font-weight: bold;
    color: #979593;
}

button {
    padding: 10px;
    border: 2px solid black;
    font-size: 16px;
    background-color: #776e65;
    color: wheat;
    font-weight: bold;
    border-radius: 10px;
}

.move {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-size: 1.3rem;
    font-weight: bold;
    color: #776e65;
}

.box {
    border: 3px solid #979593;
    padding: 5px;
    color: #776e65;
    margin: 20px;
    font-size: 1.3rem;
}

