/* Set Box sizing for all divs and elements to control widths and padding etc */

html {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

*,
*:before,
*:after {
    -webkit-box-sizing: inherit;
    -moz-box-sizing: inherit;
    box-sizing: inherit;
}


/* Font Smoothing */

html,body {
    height:100%;
    /* Font varient */
    font-variant-ligatures: none;
    -webkit-font-variant-ligatures: none;
    /* Smoothing */
    text-rendering: optimizeLegibility;
    -moz-osx-font-smoothing: grayscale;
    font-smoothing: antialiased;
    -webkit-font-smoothing: antialiased;
    text-shadow: rgba(0, 0, 0, .01) 0 0 1px;
}

h1, h2, h3, h4, h5, h6 {
	font-family: trajan-pro-3, serif;
    margin-bottom: 20px;
    line-height: 1.3;
    position: relative;
}

h1, h2 {
    margin-bottom: 40px;
}

h1:after,
h2:after {
	content: '';
	background-color: #C97F00;
	height: 4px;
	width: 125px;
	position: absolute;
	bottom: -15px;
	left: 0;
    right: 0;
	margin: 0 auto;
}

h1.blue:after,
h2.blue:after {
	background-color: #37859D;
}

h1.red:after,
h2.red:after {
	background-color: #971900;
}

h1.green:after,
h2.green:after {
	background-color: #5E9C2C;
}

h1.underline-left:after,
h2.underline-left:after {
	margin: 0 auto 0 0;
}

h1.underline-right:after,
h2.underline-right:after {
	margin: 0 0 0 auto;
}

p {
    margin: 0 0 20px;
    line-height: 1.5;
}

/*p:last-child {
    margin: 0;
}*/

@media (min-width: 320px) {

    h1 {
		text-align: center;
	}
	
	h1.underline-left:after,
	h2.underline-left:after {
		margin: 0 auto;
	}
	
	h1.underline-right:after,
	h2.underline-right:after {
		margin: 0 auto;
	}
    
    h1 {
        font-size: 28px;
    }
    
    h2 {
        font-size: 24px;
    }
    
    h3 {
        font-size: 22px;
    }
    
    h4 {
        font-size: 20px;
    }
    
    h5 {
        font-size: 18px;
    }
    
    h6 {
        font-size: 16px;
    }
    
    p {
        font-size: 14px;
    }
    
    li {
        font-size: 14px;
    }
    
}


@media (min-width: 640px) {


    p {
        font-size: 16px;
    }
    
    li {
        font-size: 16px;
    }
    
}

@media (min-width: 769px) {
	
	h1.underline-left:after,
	h2.underline-left:after {
		margin: 0 auto 0 0;
	}
	
	h1.underline-right:after,
	h2.underline-right:after {
		margin: 0 0 0 auto;
	}
	
}

@media (min-width: 800px) {

    h1 {
        font-size: 36px;
    }
    
    h2 {
        font-size: 24px;
    }
    
    h3 {
        font-size: 22px;
    }
    
    h4 {
        font-size: 20px;
    }
    
    h5 {
        font-size: 18px;
    }
    
    h6 {
        font-size: 16px;
    }
    
}

