:root {
    --accent-green: #c0e0c0; /* your pale green */
    --accent-yellow: #efef9c; /* your pale yellow */

    --bg: color-mix(in srgb, var(--accent-green) 20%, white);
    --accent-grey: #eee;
    --charcoal: #444;
    --border: #aaa;
    --border-dark: #c0c0c0;
    --radius: 12px;
    --font: Arial, Helvetica, sans-serif;
    --shadow: 0 2px 6px rgba(0,0,0,0.15);
    --ad-bg-yellow: color-mix(in srgb, var(--accent-yellow) 98%, black);
    --ad-bg-green: color-mix(in srgb, var(--accent-green) 40%, white);
}

html {
    overscroll-behavior: none;
    scrollbar-gutter: stable;
}

body {
    margin: 0;
    background: var(--accent-green);
    font-family: var(--font);
    color: var(--text);
    line-height: 1.4;
}

.container {
    display: flex;
    width: 100%;
    padding-bottom: 110px;
    justify-content: center;
}

/* Flex */
/* 1 = grow */
/* 1 = shrink */
/* 780px = target */


.col-b {
    flex: 1 1 780px; /* prefers 780, can shrink */
    max-width: 780px;
    min-width: 360px;
    background: var(--accent-yellow);
    padding: 0 10px 10px 10px;
    overflow-wrap: break-word;

    
}
@media (min-width:780px) {
    .col-b {
        border: solid 1px var(--border-dark);
        border-radius: var(--radius);
        box-shadow: var(--shadow);
    }
}

.col-a, .col-c {
    flex: 1 1 120px; /* prefers 120px, can grow*/
    min-width: 120px;
    max-width: 400px;
    display: flex;
    justify-content: center;
}


/* hide rails below desktop */
@media (max-width: 1023px) {
    .col-a, .col-c {
        display: none;
    }
}

@media (min-width:1480px) {

    .col-b {
        flex: 0 1 840px;
        max-width: 840px;
        border: solid 1px #ddd;
    }

}

.sub-page .col-b {
    flex: 1 1 780px;
    max-width: 850px;
}

.sub-page .col-a, .sub-page .col-c {
    display: none;
}



div {
    box-sizing: border-box;
}

button, input {
    appearance: none;
    color: #000;
    border: solid 1px var(--border);
}

    input:focus, select:focus {
        outline: solid 1px #000;
    }

h1 {
    margin-top: 0;
    font-weight: 600;
    font-size: 1.6rem;
}

h2 {
    margin-top: 0;
    font-weight: 600;
    font-size: 1.4rem;
}

p {
    font-size: 1.2rem;
}



.log-in-button {
    appearance: none;
    display: block;
    font-size: 36px;
    border-radius: 10px;
    border: solid 1px #AAA;
    width: 150px;
    height: 50px;
    background: #EEE;
    margin: 80px auto 80px auto;
    cursor: pointer
}

/* HEADER */
header {
    background: var(--accent-green);
    width: 100%;
    min-width: 360px;
    height: 40px;
    padding-left: 10px;
    padding-right: 10px;
    
    box-sizing: border-box;
}
/* 
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);

    1640 in the max-width below = col-a + col-b + col-c max widths
*/
.title-container {
    width: 100%;
    max-width: 1640px;
    margin-left: auto;
    margin-right: auto;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 1.6rem;
    font-family: "Segoe UI", Arial, sans-serif;
    text-rendering: optimizeLegibility;
    font-weight: 600;
    letter-spacing: 0.2px;
    color: #003300;
}

.crumb-container {
    width: 100%;
    max-width: 1640px;
    margin-left: auto;
    margin-right: auto;
}

.sub-page .title-container, .sub-page .crumb-container {
    max-width: 850px;
}



/* CARD WITH LEFT + BOTTOM YELLOW ACCENT */
.card {
    padding: 10px 15px 20px 15px;
    border: solid 1px var(--border-dark);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin: 10px 0 0 0;
    background-color: #FFF;
}

    .card.primary {
        padding-top: 5px;
        min-height: 300px;
        background: linear-gradient( to bottom, rgba(192, 224, 192, 1), rgb(255, 255, 255) 10px );
    }

.panel-results .card.text-block {
    display: none;
}

.card.results {
    padding-top: 15px;
    background-color: #fff;
    background-image: linear-gradient( to bottom, rgba(192, 224, 192, 1) 0, rgb(255, 255, 255) 60px, rgb(255, 255, 255) 100% );
    background-repeat: no-repeat;
    min-height: 100vh;
}

.panel-default .card.results {
    display: none;
}

.card.primary.full {
    min-height: 90vh;
    padding-top: 20px;
}







.card.results h2 {
    margin-top: 20px;
    margin-bottom: 0px;
    font-size: 1.2rem;
}

label.primary {
    font-size: 1.8rem;
}

.primary label {
    margin-top: 10px;
}

.letter-tiles {
    display: flex;
    height: 40px;
    gap: 5px;
    justify-content: center;
    overflow: visible;
}

    .letter-tiles button {
        font-size: 100%;
        color: #000;
        flex: 1 1 0;
        /* Square buttons */
        aspect-ratio: 1 / 1;
        /* Max size */
        max-width: 35px;
        max-height: 35px;
        background: var(--accent-grey);
        border: 1px solid #aaa;
        border-radius: 4px;
        min-width: 0;
        padding: 0;
    }

.input-box {
    display: flex;
    align-items: center;
    flex-direction: column;
    width: 100%;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}


#anagramForm {
    display: block;
    width: 100%;
}



/* hide any built-in clear buttons in some browsers */
::-ms-clear {
    display: none;
}

::-webkit-search-cancel-button {
    -webkit-appearance: none;
}

.input-wrapper {
    position: relative;
    width: 100%;
    height: 80px;
}


.clear-btn {
    position: absolute;
    right: 5px;
    top: 8px;
    cursor: pointer;
    color: #AAA;
    display: none; /* shown only when input has content */
    user-select: none;
    font-size: 4rem;
    line-height: 1;
}


#lettersMessage {
    position: absolute;
    margin: 0;
    left: 50%;
    transform: translateX(-50%);
    user-select: none;
}


.message-default {
    display: none;
    
}

.message-enter {
    display: block;
    color: #666;
    top: 4px;
    font-size: 1.2rem;
}
.message-enter::after {
    content: 'Enters Letters';
}

.message-pattern {
    display: block;
    color: #666;
    top: 1px;
    font-size: 1rem;
}
.message-pattern::after {
    content: 'Pattern Mode';
}

.message-red {
    color: #F00;
}



.message-prompt {
    color: #F00;
    display: block;
    top: 4px;
    font-size: 1.2rem;
}



/* INPUT SECTION */
#lettersText {
    width: 100%;
    height: 80px;
    padding: 14px 16px;
    font-size: 40px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-sizing: border-box;
    text-transform: uppercase;
    letter-spacing: 5px;
    appearance: none;
}



/* SOLVE BUTTON — centered, block, full-width on mobile */
.solve-btn {
    appearance: none;
    width: 100%;
    padding: 10px 0;
    font-size: 2.4rem;
    font-weight: 400;
    border-radius: var(--radius);
    background: var(--accent-grey);
    border: solid 1px var(--border);
    color: #000;
    cursor: pointer;
    transition: opacity 0.2s ease;
    display: block;
    text-align: center;
    margin-top: 10px;
}


    .solve-btn:disabled {
        opacity: .5;
        cursor: not-allowed;
    }

button:disabled, input:disabled {
    opacity: .5;
    cursor: not-allowed;
}

/* TEXT BLOCK */
.text-block h3, .text-block-other h3 {
    margin-top: 20px;
    font-size: 1.2rem;
    font-weight: 600;
}

.text-block p, text-block-other p {
    margin-bottom: 14px;
}

/* LINKS */
a {
    text-decoration: underline;
    color: blue;
}



    a.itemlink:hover {
        text-decoration: underline;
    }






.nav {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    overflow: hidden !important;
}


.wall-nav {
    display: none;
    width: 100%;
    max-width: 120px;
    height: 600px;
    background: var(--ad-bg-green);
    position: sticky;
    top: 0;
}

.header-nav {
    width: 320px !important;
    height: 50px !important;
    background: var(--ad-bg-yellow);
    margin-top: 10px !important;
    margin-right: auto !important;
    margin-bottom: 0 !important;
    margin-left: auto !important;
}

.middle-nav {
    align-items: center;
    width: 320px !important;
    height: 50px !important;
    background: var(--ad-bg-yellow);
    margin-top: 10px !important;
    margin-right: auto !important;
    margin-bottom: 0 !important;
    margin-left: auto !important;
}

@media (min-height: 720px) {
    .middle-nav {
        height: 100px !important;        
    }
    .panel-filter .middle-nav {
        height: 50px !important;
    }
}

.panel-default .middle-nav {
    display: none;
}

.content-nav {
    width: 100%;
    max-width: 320px;
    height: 450px;
    background-color: #FDFDFD;
    margin-top: 10px !important;
    margin-right: auto !important;
    margin-bottom: 0 !important;
    margin-left: auto !important;
}

#ResultsUnit {
    position: sticky;
    top: 60px;
    left: 0;
    display: flex;
    justify-content: center;
}

.footer-nav {
    width: 336px !important;
    height: 280px !important;
    background: var(--ad-bg-yellow);
    margin-top: 10px !important;
    margin-right: auto !important;
    margin-bottom: 0 !important;
    margin-left: auto !important;
}

.sticky-footer-nav {
    width: 320px;
    height: 50px;
    background: var(--ad-bg-yellow);
}

.has-cm .fs-sticky-footer {
    z-index: 10 !important;
}

.options-row {
    display: flex;
    justify-content: space-between;
    margin-top: 50px;
    width: 100%;
}


.options-btn {
    width: 130px;
    padding: 2px 0 2px 0;
    font-size: 1rem;
    border-radius: var(--radius);
    background-color: var(--accent-grey);
    background-image: url('data:image/svg+xml;utf8, <svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 12 12"> <polyline points="2,4 6,8 10,4" fill="none" stroke="grey" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" /> </svg>');
    background-repeat: no-repeat;
    background-position: right 8px center;
    color: var(--charcoal);
    border: 1px solid var(--border);
    box-sizing: border-box;
    cursor: pointer;
    appearance: none;
}

.active {
    background: var(--accent-green);
    border: solid 1px var(--charcoal);
}






/* --- ADVANCED WRAPPER --- */
.advanced {
    overflow: hidden;
    max-height: 0;
    flex-direction: column;
    align-items: center;
    width: 100%;
    transition: max-height 0.2s ease;
}

.panel-advanced .advanced {
    max-height: 480px; /* whatever the real height is */
}

.dictionary {
    max-height: 0;
    flex-direction: column;
    align-items: center;
    width: 100%;
    overflow: hidden;
    transition: max-height 0.2s ease;
}

.options-inner {
    width: 100%;
    margin-top: 30px;
    padding: 10px;
    border: solid 1px var(--border);
    border-radius: var(--radius);
}


.adv-btn {
    background: var(--accent-grey);
    color: #000;
    padding: 12px 6px;
    border: solid 1px var(--border);
    border-radius: 8px;
    margin: 6px 0;
    font-size: 1rem;
    font-weight: 400;
    cursor: pointer;
}

#b2 {
    width: 100%;
}

#b3, #b5 {
    width: 30%;
}

#b4 {
    width: 34%;
}

/* active/selected state */
.adv-btn.active {
    background: var(--accent-green);
    font-weight: 600;
    border: solid 1px var(--charcoal);
}


/* --- CENTRED TITLES --- */
#wordlentext,
#hooktitle,
#dictionarytext {
    text-align: center;
    margin-top: 12px;
    font-size: 16px;
}

#hooktitle, #wordlentext {
    margin-top: 25px;
    padding-top: 8px;
    width: 100%;
    border-top: solid 1px var(--border);
}

/* --- INPUT + SELECT STYLING --- */
#len,
#gameType,
#hookLetters {
    padding: 8px;
    margin-top: 6px;
    border-radius: var(--radius);
    border: 1px solid #bbb;
    font-size: 1.2rem;
    text-align: center;
}

.len-options {
    display: none;
}

#len {
    background: var(--accent-green);
}

.hook-options {
    display: block;
}

#addQ {
    margin: 10px 0 10px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px; /* keeps vertical usage tight */
}

/* looser spacing is nice, but we can't have that with ads */
.sub-page #addQ {
    margin: 20px 0 20px 0;
}

#qButton {
    font-size: 1rem; /* slightly smaller */
    font-weight: 600;
    color: #555;
    width: 55px;
    height: 40px;
    border: solid 1px var(--border);
    border-radius: 8px;
    background: var(--accent-grey);
    padding: 0;
    box-sizing: border-box;
    cursor: pointer;
    user-select: none;
    touch-action: manipulation;
    text-align: center;
}

.addQHint {
    font-size: 1rem; /* deliberately caption-sized */
    line-height: 1;
    color: #888;
    white-space: nowrap;
    display: none;
}

/* looser spacing is nice, but we can't have that with ads */
.sub-page .addQHint {
    margin-bottom: 5px;
    display: block;
}


.adv-message-container {
    display: none;
}

.adv-button-container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.adv-options-container, .dict-options-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-wrap: wrap;
}

#hookLetters {
    width: 100px;
    text-transform: uppercase;
}


.load-more {
    margin: 10px auto 0 auto;
    border-radius: 10px;
    border: solid 1px #AAA;
    text-align: center;
    width: 300px;
    height: 50px;
    background: #EEE;
    font-size: 24px;
    display: block
}

.filter-text {
    font-size: 1.2rem;
    color: var(--charcoal);
    cursor: pointer;
    user-select: none;
}

.filter-row {
    height: 30px;
    margin: 25px 0 0 0;
    font-size: 1.4rem;
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    border-bottom: solid 1px var(--border);
}

.filter-section {
    width: 100%;
    max-height: 0px;
    transition: max-height .2s ease;
    overflow: hidden;
}

.panel-filter .filter-section {
    max-height: 480px; /* whatever the real height is */
}


.rule {
    border-bottom: solid 1px var(--border);
    width: 100%;
    height: 0px;
    margin-top: 10px;
}

    .rule.mid {
        border-bottom: solid 1px #ddd;
        width: 98%;
        margin: 10px auto 0 auto;
    }


#burgernav {
    width: 35px;
    height: 35px;
    cursor: pointer;
}


#bar1, #bar2, #bar3 {
    width: 32px;
    height: 2px;
    background-color: #003300;
    margin: 6px 0;
    transition: .4s
}

.text-carousel {
    position: relative;
    width: 100%;
    height: 20px;
    overflow: hidden;
    font-family: system-ui, sans-serif;
    font-size: 1.0rem;
    color: darkred;
    margin-top: 15px;
}

    .text-carousel a {
        position: absolute;
        width: 100%;
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.6s ease, transform 0.6s ease;
        color: inherit;
        text-align: right;
        padding-right: 10px;
    }

        .text-carousel a.active-c {
            opacity: 1;
            transform: translateY(0);
        }





.sitemap {
    padding-bottom: 20px;
    margin-top: 10px;
}

    .sitemap .upper {
        width: 200px;
        height: 50px;
        margin: 30px auto 0px auto;
    }

    .sitemap .lower {
        display: flex;
        flex-wrap: wrap;
        margin-top: 20px;
        width: 280px;
        height: 80px;
        margin-left: auto;
        margin-right: auto;
    }

.footerlink {
    flex: 1;
    color: var(--charcoal);
    min-width: 125px;
    height: 30px;
    margin: 10px 0 0 0;
    font-size: 16px;
}

    .footerlink a {
        color: var(--charcoal);
    }

.flr {
    text-align: right;
}

#uniconsent-config a {
    text-align: right;
    width: 130px;
}

select {
    background: var(--accent-grey);
}

#menu {
    height: 0px;
    width: 100%;
    background: var(--accent-grey);
    transition: height .3s ease;
    border-bottom: solid 1px var(--border);
    overflow: hidden;
}

#items {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}


.navItem {
    width: 50%;
    height: 35px;
    text-align: center;
    line-height: 35px;
    border-left: solid 1px var(--border);
    border-right: solid 1px var(--border);
    border-bottom: solid 1px var(--border);
    white-space: nowrap;
}



.itemlink {
    text-decoration: none;
    font-size: 14px;
    color: #000;
    min-width: 100px;
    display: block;
    user-select: none;
}

.disclaimer {
    margin: 50px auto 0 auto;
    border-top: solid 1px var(--border);
    text-align: center;
    color: var(--charcoal);
    font-size: 12px;
    padding: 5px;
}

/* modal        */
.modal {
    display: none;
    position: fixed;
    z-index: 100;
    padding-top: 190px;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background-color: #000;
    background-color: rgba(0,0,0,.4)
}

.modal-content {
    background-color: #fefefe;
    background-repeat: no-repeat;
    background-position-x: 90%;
    background-position-y: 70%;
    margin: auto;
    padding: 10px;
    max-width: 500px;
    border: solid 2px var(--charcoal);
    border-radius: 5px;
    width: 80%;
    height: 120px;
}

.modalContainer {
    position: fixed;
    display: flex;
    width: 100%;
    max-width: 800px;
    height: 75%;
    justify-content: center;
    align-items: center;
    z-index: 100;
    left: 50%;
    transform: translateX(-50%);
    top: 15%;
    background: radial-gradient( circle 350px at center, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 100% );
}

.modalContent {
    background-color: #fefefe;
    margin: auto;
    padding: 10px 10px 20px 10px;
    max-width: 450px;
    border: solid 2px var(--charcoal);
    border-radius: 5px;
    width: 80%;
}

.modalText {
    width: 100%;
    text-align: center;
    font-size: 20px;
    text-align: center;
}

.modalButton {
    appearance: none;
    width: 100px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    font-size: 24px;
    padding: 10px;
    background: #EEE;
    color: #000;
    border: solid 1px #AAA;
    border-radius: 10px;
    text-align: center;
    margin-top: 50px;
    cursor: pointer;
}

    .modalButton:focus {
        outline: none;
    }
/* end modal*/



body header .title {
    cursor: pointer;
    user-select: none;
}




.order-link {
    display: none;
    height: 30px;
    background: #EEE;
    border: solid 1px #AAA;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    margin: 8px 8px 0 0;
    padding: 5px;
    cursor: pointer;
    color: #000;
}

#buttonWord, #buttonScore {
    display: inline-block;
}

.b0 #buttonOneBlank {
    display: inline-block;
}

    .b0 #buttonOneBlank::after {
        content: 'Add One Blank Tile';
    }

.b1 #buttonGrouped {
    display: inline-block;
}

.b1 #buttonNoBlank, .b2 #buttonNoBlank, .b3 #buttonNoBlank {
    display: inline-block;
}

.b2 #buttonOneBlank, .b2 #buttonThreeBlank {
    display: inline-block;
}

    .b2 #buttonOneBlank::after {
        content: 'Words with One Blank Tile';
    }

.b1 #buttonTwoBlank, .b3 #buttonTwoBlank {
    display: inline-block;
}

.order-link.selected {
    background: #c0e0c0;
    font-weight: bold;
}

.tab {
    display: none;
}

.language {
    width: 100%;
    color: var(--charcoal);
    overflow: hidden;
}

    .language p {
        font-size: .9rem;
        margin: 5px 0 0 0;
    }

.db-content {
    display: none;
}

.spinner {
    display: block;
    width: 200px;
    height: 200px;
    margin: 20px auto 0 auto;
}

.callout-box {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0px;
    width: 300px;
    height: 400px;
    z-index: 200;
    background-color: #FFF;
    border: 1px solid #000;
    border-radius: 15px;
    padding: 10px;
    margin: 20px auto;
}

    .callout-box::after {
        content: '';
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%);
        border-left: 15px solid transparent;
        border-right: 15px solid transparent;
        border-top: 15px solid #FFF;
    }

.ss-close-button {
    appearance: none;
    background-color: #FFFFFF;
    background-image: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTBweCIgaGVpZ2h0PSIxMHB4IiB2aWV3Qm94PSIwIDAgMTAgMTAiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+ICAgIDxnIHN0cm9rZT0ibm9uZSIgc3Ryb2tlLXdpZHRoPSIxIiBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPiAgICAgICAgPGcgaWQ9ImZzQ2xvc2UiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0xMDU1LjAwMDAwMCwgLTcwLjAwMDAwMCkiIGZpbGw9IiM4ODg4ODgiPiAgICAgICAgICAgIDxnIGlkPSJjYW5jZWwtaWNvbiIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMTA1NS4wMDAwMDAsIDcwLjAwMDAwMCkiPiAgICAgICAgICAgICAgICA8cGF0aCBkPSJNOS40ODU5Mzc1LDAuNjE4NDM3NSBDOS4yNDI1LDAuMzc0Njg3NSA4Ljg0NzUsMC4zNzQ2ODc1IDguNjA0Mzc1LDAuNjE4NDM3NSBMNC45ODEyNSw0LjI0MDYyNSBMMS4zNTkwNjI1LDAuNjE4NDM3NSBDMS4xMTU2MjUsMC4zNzQ2ODc1IDAuNzIwMzEyNSwwLjM3NDY4NzUgMC40NzcxODc1LDAuNjE4NDM3NSBDMC4yMzQwNjI1LDAuODYxODc1IDAuMjM0MDYyNSwxLjI1Njg3NSAwLjQ3NzE4NzUsMS41MDA2MjUgTDQuMDcwNjI1LDUuMDk0Mzc1IEwwLjQ3OTM3NSw4LjY4NDY4NzUgQzAuMjM2MjUsOC45MjgxMjUgMC4yMzYyNSw5LjMyMzEyNSAwLjQ3OTM3NSw5LjU2NjU2MjUgQzAuNjAxODc1LDkuNjg4NzUgMC43NjE1NjI1LDkuNzQ5Njg3NSAwLjkyMTI1LDkuNzQ5Njg3NSBDMS4wODA5Mzc1LDkuNzQ5Njg3NSAxLjI0LDkuNjg4NzUgMS4zNjIxODc1LDkuNTY2NTYyNSBMNC45ODEyNSw1Ljk0ODEyNSBMOC42MDA5Mzc1LDkuNTY2NTYyNSBDOC43MjI4MTI1LDkuNjg4NzUgOC44ODE4NzUsOS43NDk2ODc1IDkuMDQxNTYyNSw5Ljc0OTY4NzUgQzkuMjAxNTYyNSw5Ljc0OTY4NzUgOS4zNjE1NjI1LDkuNjg4NzUgOS40ODI4MTI1LDkuNTY2NTYyNSBDOS43MjYyNSw5LjMyMzEyNSA5LjcyNjI1LDguOTI4MTI1IDkuNDgyODEyNSw4LjY4NDY4NzUgTDUuODkyNSw1LjA5NDY4NzUgTDkuNDg1OTM3NSwxLjUwMDkzNzUgQzkuNzI5Njg3NSwxLjI1Njg3NSA5LjcyOTY4NzUsMC44NjIxODc1IDkuNDg1OTM3NSwwLjYxODQzNzUgWiIgaWQ9IlBhdGgiPjwvcGF0aD4gICAgICAgICAgICA8L2c+ICAgICAgICA8L2c+ICAgIDwvZz48L3N2Zz4=);
    background-position: 50%;
    background-repeat: no-repeat;
    border: none;
    border-radius: 50%;
    box-shadow: 0 0 0 1px #888888, 0 0 0 1px rgba(247, 247, 247, .75);
    box-sizing: border-box;
    cursor: pointer;
    display: none;
    height: 20px;
    padding: 0px;
    width: 20px;
}

.header-container {
    display: none;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    height: 60px;
    z-index: 15;
    background: rgba(255,255,255,0.3);
}

.sticky-header {
    display: none;
    width: 320px !important;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 20;
    height: 50px !important;
    overflow: hidden !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
}

    .sticky-header.iphone {
        top: 5px;
    }


#headerClose {
    display: none;
    position: fixed;
    right: 8px;
    top: 10px;
    z-index: 25;
}




#STT {
    overflow: visible;
    position: fixed;
    top: 50vh;
    left: 80vw;
    width: 50px;
    height: 50px;
    border: solid 2px #000;
    border-radius: 50px;
    display: none;
    padding-top: 17px;
    padding-left: 14px;
    cursor: pointer;
    user-select: none;
    background-color: #FFF;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><polyline points="4,14 12,6 20,14" fill="none" stroke="black" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"/></svg>');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 60%; /* tweak: around 50–70% looks good */
}


/* breadcrumb related */

.breadcrumbs {
    font-size: 0.9rem;
    color: #666;
    padding: 5px 10px;
    border-bottom: 1px solid var(--border);
    background-color: #E0F0E0;
}

    .breadcrumbs a {
        color: #222;
        text-decoration: none;
    }

        .breadcrumbs a:hover {
            text-decoration: underline;
        }

    .breadcrumbs .current {
        color: #222;
        font-weight: 600;
    }

    .breadcrumbs a.middle::after {
        content: "";
        display: inline-block;
        width: 12px;
        height: 12px;
        margin: 0 4px;
        background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 12 12"><polyline points="4,2 8,6 4,10" stroke="%23999" stroke-width="2" fill="none" stroke-linecap="round" stroke-linejoin="round"/></svg>') no-repeat center;
    }

    .breadcrumbs span::after {
        display: none; /* hide after final item */
    }

#moutput {
    position: fixed;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: #EFEFEF;
    border: solid 1px #000;
    padding: 10px;
    z-index: 10000;
    overflow: auto;
}

.retry-button-container {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    background-color: rgba(0,0,0,0.6);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    height: 100vh;
    width: 100vw;
}

.retry-button-outer {
    width: 300px;
    height: 150px;
    background: #FFF;
}

.retry-button-title {
    width: 100%;
    height: 50px;
    text-align: center;
    font-weight: bold;
    line-height: 50px;
    font-size: 24px;
}

.retry-button {
    display: block;
    appearance: none;
    border-radius: 10px;
    color: #000;
    width: 200px;
    height: 75px;
    font-size: 30px;
    border: solid 1px #AAA;
    padding-top: 0;
    margin-left: auto;
    margin-right: auto;
}

.searchword {
    color: #0000FF;
    text-decoration: underline;
    margin-right: 12px;
    font-size: 18px;
    display: inline-block;
    width: 138px;
    margin-top: 10px;
}


.l8 {
    width: 150px;
}

.l9 {
    width: 162px;
}

.l10 {
    width: 174px;
}

.l11 {
    width: 186px;
}

.l12 {
    width: 198px;
}

.l13 {
    width: 210px;
}

.l14 {
    width: 222px;
}

.l15 {
    width: 234px;
}

.l16 {
    width: 246px;
}

.bold {
    font-weight: 700
}

.normal {
    font-weight: 400
}

sup {
    display: inline-block;
    text-decoration: none;
    font-weight: 400;
    margin-left: 5px
}

.highlight {
    color: red;
    font-weight: 700
}

.highlightDark {
    color: #006400;
    font-weight: 700
}

.house-sticky-footer {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    width: 100%;
    height: 60px;
    position: fixed;
    bottom: 0;
    left: 0;
    background: rgba(255,255,255,0.7);
}

#defBack {
    margin: 0 5px 0 0;
    text-align: right;
}

a.deflinks {
    font-size: 1.2rem;
    color: var(--charcoal);
    padding-left: 20px;
    padding-right: 20px;
    line-height: 40px;
}

.wordfixed {
    display: inline-block;
    width: 150px;
    font-size: 1.3rem;
    line-height: 40px;
}

a.wordlist {
    display: inline-block;
    padding: 10px;
    width: 300px;
    overflow: hidden;
    font-size: 16px;
    background: #EEE;
    margin: 5px;
    text-align: center;
    text-decoration: none;
}

a.letterlinks {
    width: 40px;
    height: 40px;
    overflow: hidden;
    display: inline-block;
    text-decoration: none;
    line-height: 40px;
    font-size: 20px;
    text-align: center;
    background: #EEE;
    margin: 10px;
}

.support-us {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    background: yellow;
    border-radius: 10px;
    font-size: 24px;
    cursor: pointer;
    padding: 5px 0 5px 0;
    border: solid 2px darkblue;
    color: darkblue;
}

    .support-us::after {
        content: "Support us";
    }

.wall-nav .support-us { font-size: 18px; }

.countdown {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 80px;
    height: 80px;
    margin: 10px auto 10px auto;
    border: solid 1px #AAA;
    border-radius: 10px;
    text-align: center;
    font-size: 30px;
    color: #AAA;
}

picture {
    height: 220px;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px 0 20px 0;
}


.blogIntro {
    font-size: 18px;
}

.blogMeta {
    color: #555;
    margin: 0px;
}

.blogRule {
    color: #555;
    margin-bottom: 5px;
}

.blogImg {
    display: block;
    min-height: 225px;
    margin: 0 auto 0 auto;
}

.sub-page body {
    padding: 0;
}

.sub-page .nav {
    display: none;
}

.sub-page .container {
    padding-bottom: 10px;
}



.sub-page .title::after {
    content: " Pro";
}

.sub-page .no-ads {
    display: none;
}

.hide {
    display: none !important;
}

.cookie-message {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    background: #333;
    color: #f5f5f5;
    font-family: Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    padding: 15px 10px 10px 10px;
    box-sizing: border-box;
    z-index: 9999;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.35);
}

.cookie-message-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cookie-message-text {
    flex: none;
}

.cookie-message-buttons {
    display: flex;
    gap: 10px;
    cursor: pointer;
}

.cookie-message-button,
.cookie-message-link {
    flex: 1;
    display: inline-block;
    padding: 10px 16px;
    font-family: Arial, sans-serif;
    font-size: 14px;
    text-decoration: none;
    text-align: center;
    border-radius: 4px;
    box-sizing: border-box;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.cookie-message-button {
    background: #f5f5f5;
    color: #1f1f1f;
    border: 1px solid #f5f5f5;
}

    .cookie-message-button:hover {
        background: #dddddd;
        border-color: #dddddd;
    }

.cookie-message-link {
    background: transparent;
    color: #f5f5f5;
    border: 1px solid #888888;
}

    .cookie-message-link:hover {
        background: #222222;
        border-color: #bbbbbb;
    }

@media (min-width: 420px) {
    .cookie-message-inner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 12px 16px;
    }

    .cookie-message-text {
        flex: 1 1 500px;
    }

    .cookie-message-buttons {
        flex: 0 0 auto;
    }

    .cookie-message-button,
    .cookie-message-link {
        flex: initial;
    }
}


/* Slightly larger screens: revert to your original layout */
@media (min-width: 420px) {
    .cookie-message-inner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .cookie-message-text {
        flex: 1 1 auto;
    }

    .cookie-message-buttons {
        flex: 0 0 auto;
    }

    .cookie-message-button,
    .cookie-message-link {
        flex: initial;
    }
}

@media (min-width:768px) {
    .header-nav {
        width: 728px !important;
        height: 90px !important;
    }

    .middle-nav {
        width: 728px !important;
        height: 90px !important;
    }

    .content-nav {
        max-width: 728px !important;
    }

    .footer-nav {
        width: 728px !important;
        height: 280px !important;
    }


    .addQHint {
        display: block;
    }
}

@media (min-width:780px) {

    body {
        background: var(--bg);
    }

    .container {
        margin: 10px auto 0 auto;
    }



    
}

@media (min-width: 1024px) {

    .atf {
        display: none;
    }

    .wall-nav {
        display: flex;
    }

    .header-nav {
        display: none;
    }

    .middle-nav {
        display: none;
    }

    .content-nav {
        display: none;
    }

    .footer-nav {
        display: none;
    }



}



@media (min-width:1140px) {
    .wall-nav {
        max-width: 160px;
    }
}

@media (min-width:1420px) {
    .wall-nav {
        max-width: 300px;
    }
}



@media (display-mode: fullscreen) AND (max-width: 768px), (display-mode: standalone) AND (max-width: 768px) {
    body {
        padding-top: 60px;
        background: #000;
    }

    .header-container {
        display: block;
        background: #000;
        border-bottom: none;
        height: 60px;
    }

    .header-nav {
        display: none;
    }

    .sticky-header {
        background: #000;
        display: flex;
    }
}
