.scrabble-checker-container {
    max-width: 680px;
    margin: 0 auto 50px;
}

.main {
    border: 2px solid #cfd8dc; /* BlueGray color */
    border-radius: 31px; /* Half of the height */
    height: 62px;
    display: flex;
    align-items: stretch;
    justify-content: center;
    position: relative;
    background-color: #ffffff; /* White background */
}

.scrabble-checker-select-trigger {
    position: relative;
    border-radius: 30px 0 0 30px;
    font-size: 13px;
    padding-left: 24px;
    text-align: left;
    width: 180px;
    background-color: #edf1f6; /* Light grey background */
    border: none;
    cursor: pointer;
    color: #141414;
}

.scrabble-checker-select-trigger  span { 
    font-size: 18px;
    font-weight: 400;
}

.scrabble-checker-select-trigger::after { 
    border-color: #000;
    border-style: solid;
    border-width: 0 2px 2px 0;
    content: "";
    display: block;
    height: 6px;
    position: absolute;
    right: 20px;
    top: calc(50% + 2px);
    transform: rotate(45deg) translateY(calc(-50% - 2px));
    width: 6px;
}

#scrabble-checker-form input {
    border-radius: 0 30px 30px 0;
}

.main__input {
    flex-grow: 1;
    border: none;
    background-color: transparent;
    text-align: center;
    font-size: 1.375rem; /* Adjust size as needed */
    color: #212121; /* Black color text */
    outline: none;
}

.main__submit {
    position: absolute;
    top: 0;
    right: 0;
    background-color: transparent;
    border: none;
    width: 62px; /* Same as main height */
    height: 62px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0 30px 30px 0;
}

.main__submit:hover{ 
    background-color: transparent;
}

.wficon-ds-search {
    /* Include your icon styles here */
}


.dictionary-dropdown {
    display: none;
    position: absolute;
    background-color: #fff;
    min-width: 170px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
}

.dictionary-option {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.dictionary-option:hover {
    background-color: #ddd;
}

#scrabble-result {
    margin-top: 20px;
    padding: 15px;
    border: 1px solid #ddd; 
    border-radius: 8px; 
    background-color: #f9f9f9; 
    color: #333; 
    font-size: 16px;
    line-height: 1.6;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1); 
    display: none;
}

#scrabble-result strong {
    color: #007bff; 
    font-weight: 600;
}

#scrabble-result p {
    display: flex;
    gap: 5px;
    align-items: center;
    justify-content: center;
    margin: 0 0 10px;
    font-size: 18px; 
}

#scrabble-result .icon {
    font-size: 24px; 
    color: green; 
}

#scrabble-result .icon.invalid {
    color: red; 
}



@media (max-width: 480px) {
    .main {
        flex-direction: row; 
        flex-wrap: wrap; 
        border-radius: 15px; 
        align-items: center; 
    }

    .scrabble-checker-select-trigger, .main__input, .main__submit {
        height: auto; 
    }

    .scrabble-checker-select-trigger {
        border-radius: 15px 0 0 15px;
        padding: 10px; 
        font-size: 12px; 
        width: auto; 
        flex-grow: 1;
    }

    .scrabble-checker-select-trigger span {
        font-size: 14px; 
    }

    input[type=search].main__input {
        flex-grow: 2; 
        border: none; 
        font-size: 16px; 
        padding: 6px 0px; 
        margin: 0; 
        text-align: left; 
        border-radius: 0; 
    }

    .main__submit {
        position: relative; 
        width: 50px; 
        height: 50px; 
        padding: 0; 
        border-radius: 0 15px 15px 0; 
        flex-shrink: 0; 
    }

    .dictionary-dropdown {
        width: 100%; 
        left: 0; 
    }

    .dictionary-option {
        padding: 12px; 
    }


    .scrabble-checker-select-trigger::after { 
        right: 10px;
    }
}

@media (max-width: 370px) {
    .scrabble-checker-select-trigger::after { 
        right: 5px;
    }
}
