/* 
    Written by Bryan Ramos for Texas TSA
    Copyright Texas TSA All Rights Reserved
*/

@import url('https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/css/bootstrap.min.css');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&display=swap');

:root {
    font-size: 15px;
    --signature-blue: #177EFF;
    --signature-red: #FB1A3A;
    --signature-gray-0: #f5f5f5;
    --signature-black: #000000;
    --signature-green: #55a362;
    --signature-footer-text-color: rgba(255,255,255,.5);
    --signature-primary-font: "Montserrat";
    --signature-container-padding: 30px;
}

@media screen and (max-width: 767px) {
    :root {
        --signature-container-padding: 20px;
    }
}

body {
    background: var(--signature-gray-0);
    font-family: var(--signature-primary-font), Arial, Helvetica, sans-serif;
    font-size: 1rem;
    line-height: 1.5;
    margin: 0;
}

@media screen and (max-width: 767px) {
    body {
        font-size: 0.9rem;
    }
}

body.discover-search-open {
    overflow: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: bold;
}

body, input, textarea, select, button {
    font-synthesis: none;
    -moz-font-feature-settings: 'kern';
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

button {
    cursor: pointer;
}

input {
    font-size: 1rem;
}

input::placeholder, input:-moz-placeholder, input::-moz-placeholder, input::-webkit-input-placeholder {
    font-family: var(--signature-primary-font);
    line-height: 20px normal !Important;
}

#page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.site-header {
    background: #fff;
}

.site-content { /* expand site content height if overall height of page is too small to fill window */
    flex-grow: 1;
    padding: 40px 0;
}

.site-footer {
    background: var(--signature-black);
    color: var(--signature-footer-text-color);
}

.discover-search { /* search overlay */
    background: #fff;
    padding: var(--signature-container-padding);
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow-y: auto;
}

.discover-search-heading-block {
    max-width: 700px;
    margin-bottom: 20px;
}

.discover-search-close {
    background: transparent;
    border: none;
    position: absolute;
    height: 46px;
    width: 46px;
    top: var(--signature-container-padding);
    right: var(--signature-container-padding);
}

.right-panel {
    max-width: 700px;
}

/* algolia search custom css for components */
.ais-SearchBox-form { 
    position: relative;
    height: 46px;
    max-width: 600px;
}

.ais-SearchBox-input {
    border: none;
    background: var(--signature-gray-0);
    padding: 5px 48px 5px 48px;
    height: 100%;
    width: 100%;
}

.ais-SearchBox-submit {
    background: transparent;
    border: none;
    position: absolute;
    left: 0;
    width: 46px;
    height: 100%;
}

.ais-SearchBox-reset {
    background: transparent;
    border: none;
    position: absolute;
    right: 0;
    width: 46px;
    height: 100%;
}

.ais-Stats {
    margin: 15px 0;
}

.ais-Hits-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ais-Hits-item:last-of-type {
    margin: 0;
}

.ais-Hits-item a {
    text-decoration: none;
    color: var(--signature-black);
    border-radius: 4px;
    border: 1px solid rgba(0,0,0,.1);
    padding: 20px;
    margin: 0 0 20px 0;
    display: block;
    transition: border 200ms ease-in;
}
.ais-Hits-item a:hover {
    border: 1px solid rgba(0,0,0,.3);
}

p.ais-Hits-url {
    color: #55a362;
    margin-bottom: 0.5rem;
}

.ais-Hits-description {
    margin-bottom: 0;
}

.ais-Pagination-list {
    list-style: none;
    text-align: center;
}

.ais-Pagination-item--selected {
    width: 20px;
    height: 20px;
}

.ais-Pagination-item {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}