/**
 * Initial style sheet for initial theme. This can be improved upon,
 * but let's get the full concept from the Hugo book first and see
 * how far that takes the implementation toward an acceptable first
 * draft.
 *
 * The Hugo book author chose to use Flexbox, which is good. Trying
 * to force things with the previous HTML mechanisms was for the birds.
 * For starters, the nav element gets declared as a Flexbox region.
 *
 * Learn more about Flexbox to make sure the final code is acceptable,
 * or if plain and simple is good enough.
 *
 * Might want to have similar definitions for "service tiles"?
 */

@import url('https://fonts.googleapis.com/css?family=Poppins:400');

@import 'navbar';
@import 'footer';
@import 'search';
@import 'textNextToImage';
@import 'blockQuote';
@import 'calloutSection';

/* Set up Golden Ratio calculations (see www.typescale.com) with font-size */
html {font-size: 100%;} /*16px*/

/* Provide a margin on both sides of the container */
.container {
    /* Set up the font and various weights and heights */
    background: white;
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    line-height: 1.75;
    color: #000000;

    /* Set up some layout parameters */
    margin: 0 auto;
    width: 90%;
    max-width: 840px;
}

/* Set up the heading and paragraph typography based on the above */
p {
    margin-bottom: 1rem;
}

h1, h2, h3, h4, h5 {
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    line-height: 1.3;
}

h1 {
    margin: 2rem 0 1.2rem;
    font-size: 3.052rem;
}

h2 {
    margin: 1.5rem 0 1.15rem;
    font-size: 2.441rem;
}

h3 {
    margin: 1.4rem 0 1.1rem;
    font-size: 1.953rem;
}

h4 {
    margin: 1.3rem 0 1rem;
    font-size: 1.563rem;
}

h5 {
    margin: 1.2rem 0 1rem;
    font-size: 1.25rem;
}

small, .text_small {font-size: 0.8rem;}

/* Better banner zoom/resize behavior (but not as good as it could be) */
.banner {
    flex: 1 1 10%;  /* grow | shrink | basis */
    margin: 0 auto;
}

.banner img {
    display: block;
    width: 100%;
    max-width: 840px; /* actual image width */
    height: auto; /* maintain aspect ratio */
    margin: auto; /* optional centering of image */
}



a.tag {
    background-color: #ddd;
    color: #333;
    display: inline-block;
    padding: 0.1em;
    font-size: 0.9em;
    text-decoration: none;
}

figure img {
    max-width: 100%;
    height: auto;
}

.pagination {
    display: flex;
    justify-content: space-between;
    list-style: none;
    margin: 1em auto;
    padding: 0;
}

.pagination > .page-item {
    border: 1px solid #ddd;
    flex: 1;
    text-align: center;
    width: 5em;
}

.pagination .page-link {
    display: block;
    color: #000;
    text-decoration: none;
}

.pagination > .page-item.active {
    background-color: #333;
}

.pagination > .page-item.active > .page-link {
    color: #fff;
}

.pagination > page-item.disabled > .page-link {
    color: #ddd;
}

/* Change flex direction to row if there's enough width */
@media only screen and (min-width: 550px) {
    .article-container {
        display: flex;
    }
    .article-container .article-list {
        width: 20%;
    }
    .article-container .article {
        flex: 1;
    }

    .pagination {
        width: 30%;
    }
}

