
/**
 * Search form
 */

.wordle-solver {
    margin: 0 auto;
    text-align: left;
}

.wordle-solver + p {
    margin-top: 2rem;
}

.wordle-solver input.single-letter {
    width: 50px;
    height: 50px;
    color: #fff;
    background-color: #f5f6f8;
    border: 1px solid #aaa;
    
    padding: 9px;
    margin-bottom: 10px;
    margin-right: 3px;
    
    border-radius: 7px;
    
    text-transform: uppercase;
    text-align: center;
    font-size: 2em;
    font-weight: bold;

    line-height: 50px;
    vertical-align: middle; 
    box-sizing: border-box; 
}


.wordle-solver { 
    max-width: 370px;
    padding: 20px;
    border: 1px solid #aaa;
    border-radius: 5px;
}


.wp-block-column .wordle-solver {
    max-width: none;
}

@media (max-width: 576px) {
    .wordle-solver { 
        max-width: none;
    }
}

.wordle-solver .input-line { 
    display: inline-block;
    max-width: 307px;
}

.wordle-solver .input-line h4 {
    text-align: left;
    margin-top: 20px;
    margin-bottom: 0;
}


.wordle-solver .input-line p {
    text-align: left;
    font-size: 1rem;
    margin-bottom: 5px;
}

.wordle-solver .exact-mode-container label {
    font-size: 1rem;
    color: #666;
}

.wordle-solver .exact-mode-container label span {
    font-weight: bold;
}

.wordle-solver input.single-letter.placed {
    border-color: #0f972c;
    background-color: #6ca866;
}

.wordle-solver input.single-letter.valid {
    background-color: #cbb25a;
    border-color: #706232;
}

.wordle-solver input.exclude-letters {
    width: 265px;
    border-radius: 7px;
    border-color: #666;
    text-transform: uppercase;
}

.wordle-solver input[type="submit"] {
    border-radius: 0.5rem;
    color: #F3F5F9;
    padding: 0.5rem 1rem;
    text-align: center;
    cursor: pointer;
    font-weight: bold;
    border: 1px solid #999;
    margin: 10px auto;
    cursor: pointer;
}

/**
 * Words List
 */
.advanced-words-lists-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    flex-direction: column-reverse;
}

.advanced-words-lists-container > div:last-child {
    display: flex;
    gap: 40px;
}

.advanced-words-lists-container > * {
    flex-basis: calc(50% - 10px); 
    margin: 5px; 
}

.advanced-words-lists-container > *:first-child {
    flex-basis: calc(63% - 10px); 
}

.advanced-words-lists-container > *:last-child {
    flex-basis: calc(37% - 10px); 
}

@media (max-width: 768px) {
    .advanced-words-lists-container > * {
        flex-basis: 100%; 
        margin: 5px 0; 
    }
    .advanced-words-lists-container > div:last-child {
        flex-direction: column;
        gap: 0;
    }
}

.advanced-words-lists-container > div:last-of-type .list-header {
    padding-top: 0;
}


.wordle-word-list {
  padding-bottom: 2rem;
}

.wordle-word-list .list-header {
    padding: 1rem 0;
    display: flex;
    justify-content: space-between;
}

.wordle-word-list .list-header span.title {
    color: #43306c;
    font-size: 1.5em;
    font-weight: bold;
}

.wordle-word-list .list-header span.show-use {
    color: black;
    padding: 3px 10px;
    font-size: 0.7em;
    line-height: 1em;
    background-color: #bbb;
    border-radius: 6px;
    margin-right: 6px;
    cursor: pointer;
    line-height: 1.3rem;
    font-weight: bold;
    border: 3px solid white;
    border-style: outset;
}

.wordle-word-list .list-header span.show-use:hover, .wordle-word-list .list-header span.show-use.active {
    color: white;
    background-color: #43306C;
}

.wordle-word-list .list-header span.show-use.active {
    border-style: inset;
}

.wordle-word-list.show-used .list-body .used-word {
    color: #cb1d1d;
}

.wordle-word-list.show-used .list-body .unused-word {
    color: #225122;
}

.wordle-word-list .list-body {
    display: flex;
    flex-wrap: wrap;
    justify-content: start;
    gap: 10px;
}

.wordle-word-list .single-word {
    display: inline-block;
    background-color: #EBE7F4;
    padding: 7px;
    border-radius: 7px;
    font-family: monospace;
    text-transform: lowercase;
    font-size: 1em;
}

.wordle-solver a.wordle-clear-all {
    display: inline-block;
    margin-top: 20px;
    text-decoration: none;
}

.wordle-solver a.wordle-clear-all svg{
    text-decoration: underline;
    fill: #1e73be;

}

.advanced-list-filters {
    border-radius: 3px; 
    padding-bottom: 20px; 
    display: flex; 
    flex-direction: row; 
    gap: 10px; 
    flex-wrap: wrap;
    border-bottom:1px solid #ccc;
}

@media (max-width: 576px) {
    .advanced-list-filters {
        flex-direction: column;
    }
}

.advanced-list-filters .list-filter {
    position: relative; 
    padding-left: 30px; 
    cursor: pointer; 
    -webkit-user-select: none; 
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    white-space: nowrap;
} 

.list-filter.checked .checkmark {
    background-color: #43306C;
}

.list-filter .checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 26px; 
    width: 26px; 
    border-radius: 3px; 
    background-color: #fff;
    border: 1px solid #aaa;
}

.checked .checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checked .checkmark:after {
    display: block;
    left: calc(50% - 7px);
    top: calc(50% - 5.5px);
    width: 14px;
    height: 11.1px;
    color: #fff;
    background: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='11.1' viewBox='13 123 14 11.1'%3E%3Cpath d='m24.7 123-6.5 6.5-2.9-2.8L13 129l5.2 5.1 8.8-8.7z' style='fill:%23fff'/%3E%3C/svg%3E");
}

