/* Make the page fill the viewport height */
html, body {
    height: 100%;
}

/* Flex container for sticky footer layout */
.page-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Allow main content to grow and push footer down */


/* Reset & basic styling */
body, h1, h2, p, ul, li {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Lexend, sans-serif;
    line-height: 1.6;
    background: #fafafa;
    color: #03071E;
}

/* Header & Navigation */
.site-header {
    background: #5C0099;
    color: #fff;
    text-align: center;
}

.navbar {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    padding: 0 0;
    font-size: large;
    justify-items: auto;
    margin: 0.6rem auto;
}

.nav-links {
    list-style: none;
    display: flex;
    justify-content: center; /* horizontal centering */

}

.nav-links li a {
    color: #ffffff;
    text-decoration: none;
    font-size: 1rem;
}

/* Main Content */
.site-main {
    flex: 1;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 1rem;
    justify-content: center;

}

.intro {
    text-align: center;
    text-justify: distribute;
}

.description-viewport {
    margin-top: 2rem;
    margin-left: auto;
    margin-right: auto;
    height: 25%;
    width: 95%;
    display: flex; /* makes it a flex container */
    justify-content: center; /* horizontal centering */
}

.description {
}

.description-item {
    color: #03071E;
    margin: 5px;
}

.correct-description-item {
    color: #1FAA00;
    margin: 5px;
}

.board-viewport {
    margin-top: 2rem;
    margin-left: auto;
    margin-right: auto;
    height: 24rem;
    width: 95%;
    display: flex; /* makes it a flex container */
    justify-content: center; /* horizontal centering */
}

.board {
    height: 24rem;
    width: 18rem;
    border: 0 solid #3D0066;
    color: #03071E;
    margin-left: auto;
    margin-right: auto;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: repeat(8, 1fr);
    gap: 2px; /* optional spacing between cells */
    padding: 0;
}

.profile-board {
    height: 3rem;
    width: 15rem;
    border: 0 solid #3D0066;
    color: #03071E;
    margin-left: auto;
    margin-right: auto;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(1, 1fr);
    gap: 2px; /* optional spacing between cells */
    padding: 0;
}

.blank-cell {
    display: flex; /* makes it a flex container */
    justify-content: center; /* horizontal centering */
    align-items: center; /* vertical centering */

    width: 100%;
    height: 100%;
    box-sizing: border-box;
    position: relative;

}

.cell {
    display: flex; /* makes it a flex container */
    justify-content: center; /* horizontal centering */
    align-items: center; /* vertical centering */

    width: 100%;
    height: 100%;

    border-radius: 4px;


    background-color: #ffffff;
    border: 2px solid #3D0066;

    box-sizing: border-box;

    position: relative;

}

.cell-input {
    color: #03071E;
    width: 70%; /* fills most of the cell */
    height: 70%;
    text-align: center; /* centers the character horizontally */
    font-size: 1rem; /* adjust as needed */
    border: none; /* optional: removes default border */
    outline: none; /* optional: removes focus outline */
    background: transparent;
    text-transform: uppercase;

    font-weight: bold;
    padding-top: 0.0rem;
    padding-left: 0.0rem;

}

.cell-label {
    position: absolute;
    top: 1px; /* adjust as needed */
    left: 2px; /* adjust as needed */
    font-size: 0.6rem;
    color: #03071E;
    pointer-events: none; /* label won’t block input */
    font-weight: bold;
}

/* All cells */
.crossword-input {
    transition: background-color 0.15s ease;
}

/* Active word highlight only */
.active-word-cell {
    background-color: #FFD500; /* Replace with your desired hex */
}

.button-viewport {
    margin-top: 2rem;
    margin-left: auto;
    margin-right: auto;
    display: flex; /* makes it a flex container */
    justify-content: center; /* horizontal centering */
    column-gap: 1rem;
    border: none;
    outline: none;
    appearance: none; /* Modern standard */
    -webkit-appearance: none; /* Safari */
    font-family: Lexend, sans-serif;
}

.btn-reset {
    border: none;
    outline: none;
    appearance: none; /* Modern standard */
    -webkit-appearance: none; /* Safari */
    font-weight: bold;
    border-radius: 8px;
    background: #FFD500;
    color: #03071E;
    padding: 6px 12px;
    font-size: 1rem; /* Wordle buttons are bold */
    cursor: pointer; /* Wordle typography spacing */
    transition: background 0.12s ease,
    transform 0.08s ease
}

.btn-submit {
    border: none;
    outline: none;
    appearance: none; /* Modern standard */
    -webkit-appearance: none; /* Safari */
    font-weight: bold;
    border-radius: 8px;
    background: #3D0066;
    color: #fff;
    padding: 8px 12px;
    font-size: 1rem; /* Wordle buttons are bold */
    cursor: pointer; /* Wordle typography spacing */
    transition: background 0.12s ease,
    transform 0.08s ease
}

/* Hover */
.btn-submit:hover {
    background: #5C0099;
}

.btn-reset:hover {
    background: #FFB500;
}


/* Footer */
.site-footer {
    text-align: center;
    padding: 0.5rem 0;
    background: #03071E;
    color: #fff;
    margin-top: 2rem;
    font-size: 0.75rem;
}

