@font-face {
    font-family: 'averta';
    src: url('/static/search/fonts/avertademopecutteddemo-regular-webfont.woff2') format('woff2'),
         url('/static/search/fonts/avertademopecutteddemo-regular-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;

}

@font-face {
    font-family: 'averta';
    src: url('/static/search/fonts/avertademope-extrabold-webfont.woff2') format('woff2'),
         url('/static/search/fonts/avertademope-extrabold-webfont.woff') format('woff');
    font-weight: bold;
    font-style: italic;

}

html, body {
    font-family: 'averta', sans-serif;
}

header {
    display: flex;
    padding: 16px 0;
    width: 100%;
    max-width: 1200px;
    margin: auto;
}

h3#logo {
    font-size: 24px;
    visibility: hidden;
    position: absolute;
}

img#logo {
    padding: 8px 20px;
    margin: 0 12px 0 0;
    width: 120px;
}

form#search {
    flex-grow: 2;
    display: flex;
    padding-right: 20px;
    font-size: 16px;
    font-stretch: normal;
    margin-top: 14px;
}

form#search input[type='text'] {
    margin-right: 8px;
    flex-grow: 2;
    height: 28px;
    background: #fff;
    border-radius: 4px;
    box-shadow: 3px 3px 0 #ddd;
    border: 2px solid #555;
    padding: 4px 8px;
    width: 50px;
}

form#search input[type='submit'] {
    height: 28px;
    padding: 4px 12px;
    border: 2px solid #333;
    background: #333;
    box-shadow: 3px 3px 0 #ddd;
    border-radius: 4px;
    color: #fff;
    text-transform: uppercase;
    font-size: 15px;
    font-weight: bold;
    font-style: italic;
    -moz-box-sizing: content-box; /* or `border-box` */
    -webkit-box-sizing: content-box;
    box-sizing: content-box;
}

div#about, div#search-results {
    display: block;
    padding: 32px 0;
    width: 100%;
    max-width: 1200px;
    margin: auto;
    text-align: left;
}

div#search-inner {
    margin-top: -20px;
    padding:0 20px 20px 20px;
}

div#search-inner h4 {
    font-size: 20px;
    margin-top: 0;
    font-style: italic;
}

div#about h1 {
    display: block;
    margin: 32px auto 0 auto;
    font-style: italic;
    font-size: 38px;
    padding: 0 20px;
    max-width: 700px;
}

div#about p {
    font-size: 18px;
    max-width: 700px;
    margin: 20px auto 64px auto;
    padding: 0 20px;
}

div.item-container {
    max-width: 100%;
    overflow: hidden;
    column-count: 4;
    column-gap: 1.5em;
}

div.item {
    display: inline-block;
    width: 100%;
    margin-bottom: 32px;
    border-radius: 20px 20px 0 0;
    overflow: hidden;

}

div.item a {
    text-decoration: none;
    color: #222
}

div.item img {
    width: 100%;
}

div.item div.outer-shadow {
    position: relative;
}

div.item div.inner-shadow {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    border-radius: 20px 20px 0 0;
    box-shadow: inset 0 0 30px rgba(0,0,0,0.1);
    pointer-events: none;
}

div.item h3.name {
    font-size: 13px;
    font-weight: normal;
    margin: 10px 0 4px 0;
}

div.price-site {
    font-size: 14px;
}

div.price-site span.price {
    font-weight: bold;
    letter-spacing: 0.5px;
}

div.price-site span.site {
    color: #777;
    float: right;
}

div.pagination {
    width: 100%;
    text-align: center;
    font-size: 20px;
    color: #444;
}

div.pagination-inner {
    display: inline-block;
    background: #eee;
    padding: 20px;
    border-radius: 50px;
    box-shadow: 2px 2px 0 #ddd;
}

div.pagination a {
    color: #000;
    font-weight: bold;
    font-style: italic;
    display: inline-block;
    margin: 0 8px;
}



@media only screen and (max-width: 800px) {

    img#logo {
        width: 110px;
        margin: 0;
    }

    form#search {
        font-size: 15px;
        margin-top: 10px;
    }

    div#search-inner h4 {
        font-size: 18px;
    }

    div.item-container {
        column-count: 3;
        column-gap: 1.25em;
    }

}

@media only screen and (max-width: 600px) {

    img#logo {
        width: 100px;
    }

    form#search {
        font-size: 14px;
        margin-top: 9px;
    }

    div#search-inner h4 {
        font-size: 16px;
    }

    div.item-container {
        column-count: 2;
        column-gap: 0.75em;
    }

    div#about h1 {
        font-size: 28px;
    }

}

@media only screen and (max-width: 370px) {

    form#search {
        margin-top: 4px;
    }

    img#logo {
        width: 90px;
    }

    div.item-container {
        column-count: 1;
        column-gap: 0.75em;
    }

}
