.wordle-container {
    max-width: 600px;
    margin: 50px auto;
    padding: 20px;
    text-align: center;
}

.mobile-keyboard-input {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
}

.wordle-container h1 {
    margin-bottom: 30px;
    color: #333;
}

.entry-row {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 30px;
}

.previous-guess-row {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
}

.letter-boxes {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.letter-boxes.previous-guess {
    margin-bottom: 0;
}

.letter-box-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.letter-box {
    width: 60px;
    height: 60px;
    border: 2px solid #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: bold;
    text-transform: uppercase;
    background-color: white;
    transition: all 0.2s;
    cursor: pointer;
}

.letter-box.focused {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.3);
}

.letter-box.white {
    background-color: #e8e8e8;
    border-color: #999;
    color: #333;
}

.letter-box.yellow {
    background-color: #c9b458;
    border-color: #c9b458;
    color: white;
}

.letter-box.green {
    background-color: #6aaa64;
    border-color: #6aaa64;
    color: white;
}

.letter-box.locked {
    cursor: not-allowed;
    opacity: 0.8;
    box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.2);
}

.button-group {
    display: flex;
    gap: 5px;
    margin-top: 5px;
}

.instructions {
    text-align: center;
    margin-top: 20px;
    margin-bottom: 10px;
    color: #666;
    font-size: 14px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.state-button {
    width: 27px;
    height: 27px;
    border: 1px solid #ccc;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
    font-weight: bold;
    transition: all 0.2s;
}

.state-button.yellow-btn {
    background-color: #c9b458;
    color: white;
}

.state-button.yellow-btn:hover {
    background-color: #b8a347;
}

.state-button.green-btn {
    background-color: #6aaa64;
    color: white;
}

.state-button.green-btn:hover {
    background-color: #5a9a54;
}

.state-button.white-btn {
    background-color: #e8e8e8;
    border-color: #999;
    color: #333;
}

.state-button.white-btn:hover {
    background-color: #d8d8d8;
}

.add-guess-btn {
    width: 30px;
    height: 30px;
    border: 2px solid #2563eb;
    border-radius: 4px;
    background-color: #2563eb;
    color: white;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 1;
    margin-top: 15px;
}

.add-guess-btn:hover {
    background-color: #1d4ed8;
    border-color: #1d4ed8;
}

.delete-guess-btn {
    width: 30px;
    height: 30px;
    border: 1px solid #999;
    border-radius: 4px;
    background-color: #f0f0f0;
    color: #666;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 1;
    margin-top: 15px;
}

.delete-guess-btn:hover {
    background-color: #e74c3c;
    border-color: #e74c3c;
    color: white;
}

.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
    margin-bottom: 20px;
}

.filter-btn {
    padding: 8px 20px;
    border: 2px solid #ccc;
    border-radius: 4px;
    background-color: #e0e0e0;
    color: #333;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-btn.unused-btn {
    background-color: #f0f0f0;
}

.filter-btn.both-btn {
    background-color: #c0c0c0;
}

.filter-btn.used-btn {
    background-color: #e0e0e0;
    font-style: italic;
}

.filter-btn.active {
    border-color: #333;
    font-weight: bold;
}

.filter-btn:hover {
    border-color: #666;
}

.results {
    margin-top: 20px;
}

.results h2 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #333;
}

.word-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.word, .used-word {
    padding: 8px 12px;
    background-color: #f0f0f0;
    border-radius: 4px;
    font-size: 16px;
}

.used-word {
    font-style: italic;
    background-color: #e0e0e0;
    color: #666;
}

/* Mobile responsive styles */
@media (max-width: 480px) {
    .wordle-container {
        padding: 15px 10px;
        margin: 20px auto;
    }

    .entry-row,
    .previous-guess-row {
        gap: 8px;
    }

    .letter-boxes {
        gap: 6px;
    }

    .letter-box {
        width: 50px;
        height: 50px;
        font-size: 28px;
        border-width: 2px;
    }

    .add-guess-btn,
    .delete-guess-btn {
        width: 28px;
        height: 28px;
        font-size: 18px;
        margin-top: 11px;
    }

    .state-button {
        width: 24px;
        height: 24px;
    }

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

    .instructions {
        font-size: 12px;
        padding: 0 5px;
    }

    .filter-buttons {
        gap: 8px;
        flex-wrap: wrap;
    }

    .filter-btn {
        padding: 6px 12px;
        font-size: 13px;
    }
}
