<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">/* 
 * wordaholic_style.css
 * Author: Jason Shew
 * Date: 2023-10-04
 * Description: Responsive styles for the Wordaholic game with virtual QWERTY keyboard, ensuring centering, scalability, and larger title.
 */
html {
    display: flex;
    flex-direction: column;
    height: min-content;
    margin: 0 auto;
}

body {
    font-family: 'Arial', sans-serif;
    color: #a4a4a4;
    background-color: #131313;
    margin: 0 auto;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    width: min-content;
    max-width: 600px;
    text-align: center;
    overflow-x: hidden;
}

.centered-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: fit-content;
    max-width: 600px;
    min-width: 280px;
    padding: 2vw;
    background-color: #131313;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin: 1vh auto;
    box-sizing: border-box;
    touch-action: manipulation;
}

/* Title styling */
.wt-text[role="heading"] {
    font-family: 'Arial', sans-serif;
    font-size: 1.5rem;
    font-weight: 900;
    color: #a4a4a4;
    margin: 1rem 0;
}

/* Tile row container */
.tile-row {
    display: flex;
    flex-direction: row;
    justify-content: center;
}

/* Tile styling */
.tile {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 25vw;
    height: 25vw;
    max-width: 75px;
    max-height: 75px;
    min-width: 40px;
    min-height: 40px;
    font-family: 'Fira Mono', monospace;
    font-size: 3.2rem;
    font-weight: bold;
    color: #fff;
    background-color: rgb(100, 100, 100);
    margin: 0.3rem;
    border-radius: 5px;
    box-sizing: border-box;
    transition: background-color 0.3s ease;
    touch-action: manipulation;
}

/* Tile states */
.tile.correct {
    background-color: rgb(8, 180, 37);
}

.tile.misplaced {
    background-color: rgb(255, 192, 0);
}

/* Keyboard container */
.keyboard-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    touch-action: manipulation;
}

/* Letter row (for QWERTY rows) */
.letter-row {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    margin: 0.05rem 0;
}

/* QWERTY row-specific styling */
.letter-row.top-row {
    padding-left: 0px;
    /* No offset for top row */
}

.letter-row.middle-row {
    padding-left: 1.5vw;
}

.letter-row.bottom-row {
    padding-left: 3vw;
}

/* Control container */
.control-container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    margin-top: 0.5rem;
}

/* Keyboard buttons */
.keyboard-button {
    padding: 0.5rem;
    font-size: 1rem;
    font-weight: bold;
    color: #fff;
    background-color: #0872B5;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin: 0.06rem;
    min-width: 2.5rem;
    text-align: center;
    transition: background-color 0.3s ease;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.keyboard-button.touch-hover,
.keyboard-button:hover {
    background-color: #b0b3b8;
}

.keyboard-button:active {
    background-color: #0872B5;
}

/* Ensure buttons have a clear normal state */
.keyboard-button.letter {
    color: #d3d6da;
    /* Light grey, typical for Wordle */
    background-color: #0872B5;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

/* Hover state for mouse interactions */
.keyboard-button.letter:hover:not(.greyed-out) {
    background-color: #b0b3b8;
    color: #131313;
}

/* Greyed-out state for absent letters */
.keyboard-button.letter.greyed-out {
    background-color: #0e5784;
    color: #fff;
    /* Grey background */
    opacity: 0.5;
    /* Reduced opacity */
    cursor: not-allowed;
}

.keyboard-button.letter:active,
.keyboard-button.letter:focus {
    background-color: #0872B5;
    /* Revert to normal or greyed-out background */
    outline: none;
}

.keyboard-button.control {
    padding: 0.5rem 1rem;
    margin: 0.2rem;
}

.keyboard-button:disabled {
    background-color: rgb(150, 150, 150);
    cursor: not-allowed;
}

.keyboard-button.next-game-hidden {
    height: 1.8rem;
    background-color: #131313;
    margin: 0.2rem auto;
    padding: 0 0.5rem;
}

.keyboard-button.next-game-shown {
    height: 1.8rem;
    background-color: #e12909;
    margin: 0.2rem auto;
    padding: 0 0.5rem;
}

.wt-text[role="author"] a {
    font-size: 1rem;
    line-height: 1.2rem;
    font-weight: 400;
    color: rgb(28, 182, 7);
    text-decoration: none;
    display: inline-block;
    margin: 0.2rem auto;
}

.wt-text[role="author"] a:hover {
    text-decoration: underline;
}

.wt-break {
    height: 0.1rem;
}

.popup-message {
    position: fixed;
    top: 28vh;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 15px 25px;
    border-radius: 8px;
    z-index: 1000;
    transition: opacity 0.5s ease-in-out;
    font-size: 16px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.popup-message.error {
    background-color: rgba(200, 0, 0, 1);
}

.popup-message.warning {
    background-color: rgba(212, 146, 5, 1);
}

.popup-message.success {
    background-color: rgba(0, 128, 0, 1);
}

.popup-message.game-over {
    background-color: rgb(45, 44, 44);
}

.popup-message .Wt-dialogheader,
.popup-message .Wt-dialogfooter {
    display: none;
}

.popup-message .Wt-dialogbody {
    padding: 0;
    margin: 0;
}

@media screen and (max-width: 600px) {
    .centered-container {
        width: 95vw;
        padding: 1vw;
    }

    .wt-text[role="heading"] {
        font-size: 1.5rem;
    }

    .tile {
        width: 19vh;
        height: 19vh;
        max-width: 65px;
        max-height: 65px;
        min-width: 40px;
        min-height: 40px;
        font-size: 3rem;
        margin: 0.2rem;
    }

    .keyboard-button.letter {
        width: 2.3rem;
        height: 3rem;
        min-width: 2rem;
        font-size: 1rem;
    }

    .keyboard-button.control {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }

    .wt-pushbutton {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }

    .letter-row.middle-row {
        padding-left: 2vw;
        /* Adjust stagger for smaller screens */
    }

    .letter-row.bottom-row {
        padding-left: 4vw;
    }

    .wt-text[role="author"] a {
        font-size: 0.9rem;
    }
}

@media screen and (max-width: 400px) {
    .tile {
        width: 18vw;
        height: 18vw;
        max-width: 60px;
        max-height: 60px;
        min-width: 25px;
        min-height: 25px;
        font-size: 2.5rem;
    }

    .keyboard-button.letter {
        width: 2rem;
        height: 2.4rem;
        min-width: 1.8rem;
        font-size: 0.9rem;
    }

    .wt-text.word-display {
        font-size: 1.5rem;
        width: 60vw;
        max-width: 120px;
        min-width: 80px;
    }

    .letter-row {
        flex-wrap: wrap;
    }

    .letter-row.middle-row {
        padding-left: 1vw;
    }

    .letter-row.bottom-row {
        padding-left: 2vw;
    }
}

/* Hover state for mouse interactions only */
@media (hover: hover) and (pointer: fine) {
    .keyboard-button.letter:hover:not(.greyed-out) {
        background-color: #b0b3b8;
    }
}</pre></body></html>