/***********/
/** reset **/
/***********/

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/*************************/
/** Background gradient **/
/*************************/

body {
    /*background-image: linear-gradient(to bottom, #443b97, #000);*/
    /*-webkit-linear-gradient(left, #443b97, #000); !* Safari and Chrome *!*/
    /*-moz-linear-gradient(10deg, #443b97, #000); !* Firefox *!*/
    /*background-repeat: no-repeat;*/
    /*background-attachment: fixed;*/
    
    background-color: #f9f9f9;
    color: #333;
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

/*****************/
/** page layout **/
/*****************/

/** make the page fill the full vertical height  **/
body {
    height: 100vh;
    margin: 0;
}

/** give some margin around the sides  **/
#main {
    margin-left: 0.5em;
    margin-right: 0.5em;
}

/** pad paragraphs **/
p{
    margin: 1em;
}

/** resize images to max width of parent **/
img {
    max-width: 100%;
    height: auto;
}

/** center the book covers **/
.image-container{
    text-align: center;
}

/** center the headshot images **/
.headshot-container{
    text-align: center;
}

/** clear after each section **/
.section-container{
    overflow:auto;
}

/************/
/** header **/
/************/

.header-byline-container,
header{
    text-align: center;   
    background-color: #333;
    color: #fff;
}

header {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

nav li {
    margin-right: 20px;
}

nav a {
    text-decoration: none;
    color: #fff;
}

/************/
/** footer **/
/************/

footer {
    font-size: 0.75em;
    text-align: center;
    padding: 0.5em;
    margin-top: 1em;
}

/*****************/
/** sales links **/
/*****************/

.sales-link{
    font-style: italic;
}

.sales-link em{
    font-weight: bold;
}

/*******************/
/** common styles **/
/*******************/

/** white backgrounds **/
#main,
footer
{
    background-color: #f9f9f9;
    color: #333;
}

/** underlines for links **/
a {
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}

/** fancy header text **/
.header-byline-container,
header,
h2,
h3
{
    font-family: "Michroma", sans-serif;
}

/** fancy header text **/
.header-title,
header,
h2,
h3
{
    font-family: "Michroma", sans-serif;
}

/** shrink headers so they fit better on a small screen **/
h2{
    font-size: 1em;
}
h3{
    font-size: 0.75em;
}

/** style horizontal rules **/
hr{
    width: 75%;
    margin: auto;
    opacity: 0.25;
    margin-top: 2em;
    margin-bottom: 2em;
}

/** make certain images rounded rectangles **/
.cropped-image{
    border-radius: 10px;
}

/*************************/
/** large screen layout **/
/*************************/

@media only screen and (min-width: 900px) {
    /*****************/
    /** page layout **/
    /*****************/
    
    /** hide the text header title **/
    .header-byline-container{
        display: none;   
    }
    
    /* background gradient */
    body{
        background-image: linear-gradient(to bottom, #443b97, #000);
        -webkit-linear-gradient(left, #443b97, #000); /* Safari and Chrome */
        -moz-linear-gradient(10deg, #443b97, #000); /* Firefox */
        background-repeat: no-repeat;
        background-attachment: fixed;
    }

    /* background image */
    body {
        /*background-image: url('images/Armageddon-Interface-City-Background.png');*/
        background: linear-gradient( rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5) ), url('images/Armageddon-Interface-City-Background.png');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        background-attachment: fixed;
    }

    /** pin the footer to the bottom **/
    body{
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }
    
    /** give the header some breathing room **/
    header{
        margin-bottom: 2em;
    }

    /** shrink and center the main content **/
    #main{
        max-width: 900px;
        margin: auto;
        padding: 2em;
    }
    
    /** make the main content a rounded rectangle **/
    #main{
        border-radius: 10px;
    }

    .book-section{
        clear: both;
    }
    
    /** float the book covers to the left of the blurb **/
    .image-container{
        float: left;
        padding: 1em;
    }
    
    /** float the headshots to the right of the bios **/
    .headshot-container{
        float: right;
        padding: 1em;
    }
    
    /*******************/
    /** common styles **/
    /*******************/
    
    h2{
        font-size: 1.5em;
    }
}