body {
    font-family: 'Arial', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #f5f5f5;
    color: #333;
    margin: 0;
}

.game-container {
    text-align: center;
    border: 2px solid #333;
    border-radius: 8px;
    background-color: #fff;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

h1 {
    margin-bottom: 20px;
    font-size: 24px;
}

.grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 20px auto;
}

.grid div {
    display: grid;
    grid-template-columns: repeat(5, 60px);
    grid-gap: 5px;
    margin-bottom: 5px;
}

.grid div div {
    width: 60px;
    height: 60px;
    border: 2px solid #ccc;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 36px;
    font-weight: bold;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.green {
    background-color: #6aaa64;
    color: white;
    border: 2px solid #6aaa64;
}

.yellow {
    background-color: #c9b458;
    color: white;
    border: 2px solid #c9b458;
}

.gray {
    background-color: #787c7e;
    color: white;
    border: 2px solid #787c7e;
}

#guess-input {
    padding: 10px;
    font-size: 24px;
    width: 70px;
    text-align: center;
    margin-top: 10px;
}

button {
    padding: 10px 20px;
    margin: 10px;
    font-size: 18px;
    cursor: pointer;
    border: none;
    border-radius: 4px;
    background-color: #333;
    color: white;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #555;
}

#message {
    margin-top: 10px;
    font-size: 18px;
}

@media (max-width: 400px) {
    .grid {
        grid-template-columns: repeat(5, 50px);
    }

    .grid div {
        width: 50px;
        height: 50px;
        font-size: 28px;
    }

    #guess-input {
        width: 60px;
        font-size: 20px;
    }

    button {
        font-size: 16px;
    }

    h1 {
        font-size: 20px;
    }

    #message {
        font-size: 16px;
    }
}
