body {
    font-family: Arial, sans-serif;
    background-color: #f0f2f5;
    margin: 0;
    direction: rtl;
    text-align: right;
    overflow-x: hidden;
}

.container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 20px;
}

h1 {
    color: #4a90e2;
    font-size: 1.8em;
}

p.description {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.2em;
}

input {
    width: calc(100% - 60px);
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1.1em;
    box-sizing: border-box;
    display: inline-block;
}

#clear-button {
    width: 40px;
    padding: 12px;
    margin-bottom: 20px;
    background-color: #e74c3c;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1.1em;
    cursor: pointer;
    display: inline-block;
}

.keyboard {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 20px;
}

.key {
    width: 50px;
    height: 50px;
    margin: 5px;
    background-color: #4a90e2;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1.1em;
    cursor: pointer;
}

/* Specific styles for the "مسافة" and "حذف" buttons */
.key.special-key {
    background-color: #e74c3c;
    /* Red background */
}

#results {
    margin-top: 20px;
}

.result-item {
    background-color: #fff;
    padding: 15px;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 15px;
    font-size: 1.1em;
}

.highlight {
    background-color: #ffeb3b;
}

#suggestions {
    position: absolute;
    background-color: white;
    border: 1px solid #ccc;
    max-height: 150px;
    overflow-y: auto;
    width: calc(100% - 60px);
    z-index: 1000;
    display: none;
    text-align: right;
    direction: rtl;
    margin-bottom: 10px;
}

.suggestion-item {
    padding: 10px;
    cursor: pointer;
}

.suggestion-item:hover {
    background-color: #eee;
}

@media (max-width: 600px) {
    body {
        padding: 10px;
    }

    h1 {
        font-size: 1.5em;
    }

    p.description {
        font-size: 1.1em;
    }

    input {
        padding: 10px;
        font-size: 1em;
    }

    .key {
        display: none;
    }

    .result-item {
        padding: 10px;
        font-size: 1.5em;
        margin-bottom: 10px;
    }

    #suggestions {
        width: 100%;
    }
}