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

.container {
    text-align: center;
}

#board {
    display: grid;
    grid-template-rows: repeat(6, 1fr);
    grid-gap: 5px;
    margin: 10px auto;
    align-items: center;
    justify-content: center;
}

.row {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-gap: 5px;
}

.cell {
    width: 50px;
    height: 50px;
    border: 2px solid #ccc;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    font-weight: bold;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 2px 2px 2px 1px rgb(0, 0, 0, 0.1);
}

.cell.correct, .key.correct {
    background-color: #6aaa64;
    color: white;
}

.cell.present, .key.present {
    background-color: #e1c64d;
    color: white;
}

.cell.absent, .key.absent {
    background-color: #787c7e;
    color: white;
}

#keyboard {
    margin-top: 20px;
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    grid-gap: 5px;
    justify-content: center;
}

.key {
    width: 32px;
    height: 40px;
    border: 2px solid #ccc;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 16px;
    background-color: #fff;
    cursor: pointer;
    border-radius: 10px;
    box-shadow: 2px 2px 2px 1px rgb(0, 0, 0, 0.1);
}

.key:hover {
    background-color: #ddd;
}

#submit {
    grid-column: span 3;
    width: 80px;
    background-color: #3fc033;
    color: white;
    height: 40px;
    border: 2px solid #ccc;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 14px;
    grid-column: span 2;
    border-radius: 10px;
    box-shadow: 2px 2px 2px 1px rgb(0, 0, 0, 0.1);
}

#submit:hover {
    background-color: #41ae41;
    cursor: pointer;
}

#message {
    margin-top: 20px;
    font-size: 16px;
}

#delete {
    width: 80px;
    height: 40px;
    border: 2px solid #ccc;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    grid-column: span 2;
    background-color: #fff;
    color: black;
    border-radius: 10px;
    box-shadow: 2px 2px 2px 1px rgb(0, 0, 0, 0.1);
}

#delete:hover {
    cursor: pointer;
    background-color: #ddd;
}

.sucesso {
    color: lime;   
}

.derrota {
    color: red;   
}

.restart {
    width: 100px;
    background-color: #fff;
    height: 40px;
    border: 1px solid #ccc;
    font-size: 14px;
    border-radius: 10px;
    box-shadow: 2px 2px 2px 1px rgb(0, 0, 0, 0.1);
    margin: 0 auto;
    margin-top: 10px;   
}

.restart:hover {
    background-color: #ddd;
    cursor: pointer;
}

/* Media Queries para smartphones */
@media (max-width: 600px) {
    .cell {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .key {
        width: 30px;
        height: 35px;
        font-size: 14px;
    }

    #submit, #delete {
        width: 70px;
        height: 35px;
        font-size: 14px;
    }

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

@media (max-width: 400px) {
    .cell {
        width: 30px;
        height: 30px;
        font-size: 16px;
    }

    .key {
        width: 25px;
        height: 30px;
        font-size: 12px;
    }

    #submit, #delete {
        width: 60px;
        height: 30px;
        font-size: 12px;
    }

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

#help-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
    cursor: pointer;
    background-color: #fff;
    border-radius: 50%;
    padding: 5px 10px;
    box-shadow: 0 0 5px rgba(0,0,0,0.2);
    transition: background-color 0.3s;
    z-index: 1000;
}

#help-icon:hover {
    background-color: #f0f0f0;
}
