body {
    font-family: Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 20px;
    padding-top: 50px;
    height: 100vh;
    background-color: #f4f4f4;
    flex-direction: column; /* Stack elements vertically */
	touch-action: manipulation;
}

#game-container {
    text-align: center;
    background: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start; /* Ensure everything starts at the top */
    height: 100%;  /* Ensures it fills available vertical space */
    max-height: 100vh; /* Limits the max height to the viewport height */
    position: relative;
}

#logo {
    width: 100%; /* Makes sure the image width fills the container */
    max-height: 50%; /* Ensures the logo does not take up too much space */
    position: relative;
    top: 0; /* Aligns the image to the top */
    margin-bottom: 10px; /* Adds space below the image */
}

#result {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-grow: 1; /* Allows the result section to take up remaining space */
    justify-content: flex-start; /* Keeps the results grid at the top of its section */
    margin-top: 10px;  /* Adjust as necessary */
}

#guess-tiles {
    display: flex;
    justify-content: center;
    margin-bottom: 20px; /* Adjust spacing for better fit */
}

.guess-row {
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
}


/*.tile {
    width: 100px;
    height: 100px;
    background-color: gray;  /* Default background for empty tiles 
    color: white;
    text-align: center;
    line-height: 50px;
    font-size: 24px;
    border-radius: 5px;
    margin: 2px;
}

.tile.empty {
    background-color: #ccc; /* Gray for empty tiles */
}*/

.correct {
    background-color: green;
}

.wrong-position {
    background-color: yellow;
}

.incorrect {
    background-color: gray;
}


#guess-tiles {
    display: flex;
    justify-content: center;
    margin-top: 5px;  /* Reduced space above guess tiles */
    margin-bottom: 5px;  /* Reduced space below guess tiles */
}

#timer {
    font-size: 24px;
    margin-bottom: 20px;
}

#guess-input {
    width: 80%;
    height: 40px;
    font-size: 24px;
    text-align: center;
    margin-bottom: 20px;
}

#keyboard-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 20px 0;
    position: sticky;
    bottom: 0;
	background-color: #f0f0f0; 
	transform: scale(1.3);
}

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

.small-key {
    width: 50px; /* Normal size for desktop */
    height: 50px; /* Normal size for desktop */
    margin: 2px;
    font-size: 24px; /* Normal font size for desktop */
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.1s ease-in-out;
	transition: background-color 0.6s;
}

.big-key {
    width: 100px; /* Normal size for desktop */
    height: 50px; /* Normal size for desktop */
    margin: 2px;
    font-size: 24px; /* Normal font size for desktop */
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.1s ease-in-out;
	transition: background-color 0.6s;
}

.big-key:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.big-key.enabled {
    background-color: #4CAF50;
    color: white;
}

.guessed {
    background-color: #ccc;
}

#result div {
    margin-top: 1px;
}

#result span {
    display: inline-block;
    width: 60px;
    height: 60px;
    line-height: 60px;
    font-size: 36px;
    text-align: center;
    margin: 2px;
    border-radius: 5px;
    text-transform: uppercase;
}

.correct {
    background-color: green;
    color: white;
}

.wrong-position {
    background-color: #b5a300;
    color: black;
}

.incorrect {
    background-color: gray;
    color: white;
}

/* Improved responsiveness for mobile */
@media (max-width: 600px) {
.small-key {
    width: 23px; /* Half the current size */
    height: 23px; /* Half the current size */
    font-size: 12px; /* Smaller font size for better readability */
}
.big-key {
    width: 50px; /* Adjust size for mobile */
    height: 26px; /* Adjust size for mobile */
    font-size: 10px; /* Slightly larger font size for better readability */
}
.small-key, .big-key {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
border: 1px solid #ccc; /* Thinner border */
}
    .keyboard-row {
        margin-bottom: 5px; /* Reduce space between rows */
    }


    #guess-input {
        width: 90%; /* Adjust input width for small screens */
        font-size: 26px; /* Larger font for input field on mobile */
    }

    #result span {
        width: 50px; /* Adjust for mobile */
        height: 50px; /* Adjust for mobile */
        line-height: 50px;
        font-size: 24px; /* Adjust font size for mobile */
    }

    #keyboard-container {
        margin-top: 5px;
        margin-bottom: 5px; /* Adjust bottom margin for better spacing */
    }

    /* Ensure the timer and share button look good on mobile */
    #timer {
        font-size: 20px;
    }
}


#guess-tiles {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}


.tile {
    width: 100px;
    height: 100px;
    background-color: gray;  /* Default background for empty tiles */
    color: black;  /* Text color set to  */
    text-align: center;
    line-height: 100px;
    font-size: 60px;
    border-radius: 5px;
    margin: 2px;
	justify-content: center;
    align-items: center;
	transition: background-color 0.6s;
}

.tile.empty {
    background-color: #ccc; /* Gray for empty tiles */
    color: white; /* Ensure text in empty tiles  */
}

.correct {
    background-color: green;
    color: white; /* White text for green background */
}

.wrong-position {
    background-color: #b5a300; /* Darker yellow */
    color: white; /*  text for better contrast on yellow */
}

.incorrect {
    background-color: gray;
    color: white;
}

        .topgrid {
            display: grid;
            grid-template-columns: 1fr 1fr; /* Two equal-width columns */
            gap: 20px; /* Space between columns */
        }




@media (max-width: 600px) {
    .tile {
        width: 50px;
        height: 50px;
        font-size: 24px;
		line-height: 50px;
    }
}


