/* static/style.css */

body {
    font-family: 'Arial';
    margin: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}

h1 {
    text-align: center;
    color: #0056b3;
    margin-bottom: 5px;
    font-size: 1.5em;
}

.separator {
    width: 320px;
    border-bottom: 1px solid gray;
    margin: 10px 0;
    margin-bottom: 10px;
}

#hints-divider {
    width: 320px;
    border-bottom: 1px solid gray;
    margin: 10px 0;
    margin-bottom: 10px;
}

#hints-divider.hidden {
    display: none;
}

#wordleForm {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 90%;
    max-width: 400px;
    margin: 0 auto;
}

.input-row-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 400px;
    align-items: center;
    margin-bottom: 20px;
}

.input-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 10px;
    width: 100%;
}

.input-row label {
    margin-top: 20px;
    margin-bottom: 5px;
    white-space: nowrap;
}

#correct-letters-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 5px;
}

.letter-box {
    width: 40px;
    height: 40px;
    border: none;
    background-color: lightgray; /* Set the background color to light gray */
    margin: 5px;
    text-align: center;
    font-size: 24px;
    text-transform: uppercase;
    line-height: 40px;
    transition: background-color 0.3s, color 0.3s;
    border-radius: 5px; /* Optional: Add rounded corners */
}

.letter-box:focus {
    border-color: green;
    outline: none;
}

.letter-box.filled {
    background-color: green;
    color: white;
}

.input-area {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    width: calc(7 * 45px);
}

.input-field { /* Apply to both elements */
    font-size: 24px; /* Or your desired font size */
}
 
.input-area input[type="text"] {
    width: 500px;
    height: 40px;
    font-size: 24px;
    text-transform: uppercase;
    text-align: center;
    border: none;
    background-color: lightgray; /* Optional: Make background consistent */
    margin: 5px;
    border-radius: 5px; /* Optional: Add rounded corners */
}

button {
    padding: 10px 20px;
    background-color: #0056b3;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 1.25em;
    margin-top: 10px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 30px;
    border-radius: 5px;
    transition: background-color 0.2s ease;
}

button:hover {
    background-color: #004499;
}

button[type="reset"] {
    padding: 10px 15px;
    font-size: 14px;
    background-color: #ADD8E6;
    color: darkblue;
    border: none;
    cursor: pointer;
    margin-top: 10px;
}

#hints {
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically (if needed) */
}

#hints.no-hints-message {
    text-align: center !important; /* !important forces the style */
}

#results-container {
    text-align: center; /* Center the word count and button */
    margin-top: 10px;
}

.hints-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr); /* 3 columns */
    gap: 10px; /* Adjust gap as needed */
    margin-top: 10px;
}

.hints-grid p {
    text-align: center; /* Center text within grid items */
}

.footer {
    text-align: center;
    margin-top: 20px; /* Space above the links */
    padding: 10px; /* Add some padding around the links */
    background-color: #f0f0f0; /* Example background color */
}

.footer a {
    margin: 0 10px; /* Space between the links */
    text-decoration: none; /* Remove underlines from links */
    color: #333; /* Example link color */
}

.footer a:hover {
    color: #007bff; /* Example hover color */
}

/* Media query for mobile devices */
@media (max-width: 600px) {
    .input-field {
        width: 80%; /* Adjust this value as needed */
        max-width: 300px; /* Adjust this value as needed */
    }

    .letter-box {
        width: 80%; /* Adjust this value as needed */
        max-width: 40px; /* Adjust this value as needed */
    }
}