/* HEADER SEARCH FORM */
#header-search-dropdown {
    height: 100%;
}

#header-search-dropdown-btn {
    all: unset;
    cursor: pointer;
    color: white;
    height: 100%;
    padding: 0 20px;
    box-sizing: border-box;
}

#header-search-dropdown-btn:hover {
    background-color: #222222 !important;
}

#header-search-dropdown-btn svg {
    height: 18px;
    margin-top: 6px;
}

#header-search {
    display: none;
    position: fixed;
    left: 0;
    width: 100%;
    box-sizing: border-box;
    padding: 15px;
    background-color: #222222;
    z-index: 300;
    color: white;
    font-family: var(--oaw-sans);
}

@media only screen and (min-width: 500px) {
    #header-search {
        position: absolute;
        right: 0;
        left: auto;
        width: 280px;
    }
}

/* SEARCH FORM */
.oaw-search-form {
    height: 40px;
    width: 100%;
    display: flex;
    border-radius: 4px;
}

.oaw-search-form input {
    width: 100%;
    box-sizing: border-box;
    background-color: #ffffff;
    border: none;
    border-right: none;
    padding: 10px;
    border-radius: 5px 0 0 5px;
    outline: none;
    font-family: var(--oaw-sans);
}

.oaw-search-form button {
    width: 40px;
    box-sizing: border-box;
    padding: 5px;
    border: none;
    background-color: #111;
    text-align: center;
    color: white;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
}

.oaw-search-form button:hover {
    background-color: #000;
}

/* -------------------------------------------------- */

/* MAIN SEARCH BAR */
#search-input {
    height: 40px;
    width: 100%;
    padding: 0;
    border-width: 0;
    font-size: 18px;
    font-family: var(--oaw-sans);
    box-sizing: border-box;
}

#search-input:focus {
    outline: none;
}

.oaw-search-input-area {
    display: flex;
    column-gap: 12px;
    padding: 4px 8px;
    border: 1px solid #aaa;
    border-radius: 4px;
}

span.oaw-search-input-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

span.oaw-search-input-icon svg {
    margin-top: 2px;
    fill: var(--oaw-gray-300);
    height: 16px;
}

/* -------------------------------------------------- */
#oaw-searchform {
    max-width: 600px;
    margin-bottom: 40px;
}

/* ADVANCED SEARCH PANEL */

/* Advanced search container */
.adv-search-container {
    width: 100%;
    box-sizing: border-box;
    font-family: var(--oaw-sans);
}

/* Advanced search dropdown */
#adv-search-btn {
    cursor: pointer;
    padding: 10px;
    margin-top: 10px;
    border: none;
    border-radius: 4px;
    text-align: left;
    outline: none;
    background-color: #eee;
    font-size: 14px;
    font-family: var(--oaw-sans);
    font-weight: 500;
}

#adv-search-btn:hover {
    text-decoration: underline;
}

#adv-search-panel {
    max-width: 100%;
    box-sizing: border-box;
    background-color: #eee;
    overflow: hidden;
    display: none;
    border-radius: 0 4px 4px 4px;
}

.inner-panel {
    display: grid;
    grid-template-rows: auto;
    row-gap: 15px;
    padding: 20px;
}

#adv-search-panel select {
    min-width: 75px;
    padding: 0 1px;
    font-size: 14px;
}

#adv-search-panel select:focus {
    outline: none;
}

#adv-search-panel fieldset {
    border: none;
    padding: 0;
}

#adv-search-panel legend {
    margin-bottom: 5px;
    font-weight: bold;
}

/* Filter Dates */
.filter-dates-panel {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 150px;
}

@media only screen and (min-width: 350px) {
    .filter-dates-panel {
        flex-direction: row;
        align-items: center;
    }
}

/* Filter Categories */

.filter-categories {
    display: grid;
    max-width: 400px;
    gap: 5px 20px;
}

@media only screen and (min-width: 400px) {
    .filter-categories {
        grid-template-columns: repeat(2, 1fr);
    }
}

.checklist-category {
    display: flex;
    align-items: center;
    flex-basis: content;
    font-size: 16px;
}

.checklist-category input {
    height: 16px;
    width: 16px;
    cursor: pointer;
}

.checklist-category label {
    cursor: pointer;
    padding-left: 5px;
}

/* Clear Filters */
.clear-filters-btn {
    all: unset;
    margin-left: auto;
    text-align: right;
    cursor: pointer;
    font-size: 14px;
}

.clear-filters-btn:hover {
    text-decoration: underline;
}



/* -------------------------------------------------- */

/* SEARCH SPINNER */
.spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-top-color: #111;
    border-radius: 50%;
    width: 1.5rem;
    height: 1.5rem;
    animation: spin 1s linear infinite;
    margin: 1rem auto;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* -------------------------------------------------- */

/* SEARCH RESULTS */
.oaw-no-results {
    font-family: 'Noto Serif', serif;
}

/* -------------------------------------------------- */

/* PAGINATION */
.oaw-mobile-pagination-links {
    display: flex;
    visibility: visible;
}

.oaw-pagination-links {
    display: none;
    visibility: hidden;
}

.oaw-pagination-links,
.oaw-mobile-pagination-links {
    justify-content: center;
    align-items: center;
    margin: 30px 0;
    padding: 0;
    list-style-type: none;
    font-size: 12px;
    font-family: var(--oaw-sans);
    font-weight: bold;
    text-transform: uppercase;
}

.oaw-mobile-pagination-msg {
    margin: 0 10px;
}

.oaw-pagination-links li a,
.oaw-mobile-pagination-links li a {
    padding: 10px;
}

.oaw-pagination-links li a:hover,
.oaw-mobile-pagination-links li a:hover {
    cursor: pointer;
}

.oaw-pagination-links li a:hover {
    background-color: #eee;
}

.oaw-active-page-link {
    cursor: default !important;
    background-color: #eee;
}

.oaw-pagination-ellipsis {
    padding: 0 5px;
}

@media screen and (min-width: 600px) {
    .oaw-mobile-pagination-links {
        display: none;
        visibility: hidden;
    }

    .oaw-pagination-links {
        display: flex;
        visibility: visible;
    }
}

/* -------------------------------------------------- */



#oaw-story-archive>.oaw-story-stack+.oaw-story-stack {
    border-top: 1px solid lightgray;
}


#oaw-loadmore-btn {
    font-size: 16px;
}


/* LOAD MORE POSTS ANIMATION */
@keyframes blink {

    /**
     * At the start of the animation the dot
     * has an opacity of .2
     */
    0% {
        opacity: .2;
    }

    /**
     * At 20% the dot is fully visible and
     * then fades out slowly
     */
    20% {
        opacity: 1;
    }

    /**
     * Until it reaches an opacity of .2 and
     * the animation can start again
     */
    100% {
        opacity: .2;
    }
}

.oaw-posts-loading span {
    /**
     * Use the blink animation, which is defined above
     */
    animation-name: blink;
    /**
     * The animation should take 1.4 seconds
     */
    animation-duration: 1.4s;
    /**
     * It will repeat itself forever
     */
    animation-iteration-count: infinite;
    /**
     * This makes sure that the starting style (opacity: .2)
     * of the animation is applied before the animation starts.
     * Otherwise we would see a short flash or would have
     * to set the default styling of the dots to the same
     * as the animation. Same applies for the ending styles.
     */
    animation-fill-mode: both;
}

.oaw-posts-loading span:nth-child(2) {
    /**
     * Starts the animation of the third dot
     * with a delay of .2s, otherwise all dots
     * would animate at the same time
     */
    animation-delay: .2s;
}

.oaw-posts-loading span:nth-child(3) {
    /**
     * Starts the animation of the third dot
     * with a delay of .4s, otherwise all dots
     * would animate at the same time
     */
    animation-delay: .4s;
}