
#wordContainer {
    margin: 20px 0;
    font-size: 24px;
}

#feedback {
    margin-top: 20px;
    font-weight: bold;
}

body {
    font-family: Arial, sans-serif;
    margin: 0; /* Adjusted to 0 to remove default margin */
    padding: 20px; /* Add padding to body to maintain spacing around the app */
    box-sizing: border-box; /* Include padding in the calculation of width/height */
}

#anagramApp {
    margin: 0 auto; /* Ensure centering */
    max-width: 100%;
    box-sizing: border-box; /* Ensure padding doesn't affect the total width */
}

input, button {
    margin: 10px 0;
    display: block;
}

#anagramDisplay {
    font-size: 24px;
    margin: auto;
}

.tilesContainer {
    display: flex;
    flex-wrap: nowrap; /* Adjust this to ensure horizontal layout */
    overflow-x: auto; /* Allows horizontal scrolling if the container width is exceeded */
    margin-bottom: 20px;
}

#letterTiles {
    display: flex;
    justify-content: center; /* Adjust this if tiles should be centered */
    gap: 2px; /* Maintain a small gap between tiles */
    padding: 0; /* Consider removing padding or adjusting as necessary */
    width: 100%; /* Ensure the container spans the full width */
    box-sizing: border-box; /* Include padding and border in the width calculation */
    flex-wrap: wrap; /* Allow wrapping as a fallback */
}

.letterTile {
    user-select: none;
    margin: 2px;
    padding: 2px;
    background-color: #f0f0f0; /* Green background */
    border: 1px solid #fdfdfd; /* Darker green border for contrast */
    color: #070505; /* White text for readability */
    cursor: grab;
    text-align: center;
    font-size: 20px;
    max-width: 200px;
}


.dragOver {
    border-color: #000;
}



/* Existing styles remain unchanged */


    #letterTiles {
        flex-wrap: nowrap; /* Keep tiles in a single line */
        overflow-x: auto; /* Allow horizontal scrolling if necessary */
        justify-content: flex-start; /* Align tiles to the start */
    }

    .letterTile {
        /* Removed the max-width property */
        padding: 5px;
        /* Ensure the height is consistent to maintain a uniform layout */
        height: 40px; 
        /* Adjustments to font size and padding are now handled by JavaScript */
    }

    input, button {
        width: 100%; /* Full width to utilize the available space */
        padding: 8px; /* Sufficient padding for easy interaction */
        margin: 5px 0; /* Standardize margin for a clean layout */
        box-sizing: border-box; /* Include padding and border in the width */
    }

    button {
        flex-grow: 1; /* Allow buttons to fill available horizontal space */
        margin: 5px; /* Optionally reduce margin to fit all buttons in a single line */
    }

    /* Adjust the app container padding on smaller screens to reduce side spacing */
    #anagramApp {
        padding: 0 5px;
    }


