/* http://meyerweb.com/eric/tools/css/reset/ 
   v2.0 | 20110126
   License: none (public domain)
*/

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
	display: block;
}
body {
	line-height: 1;
}
ol, ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}

/* Main Styles */
body {
    font-size: 16px;
}

header, main {
    width: 80%;
    margin: 5vh auto;
}

h1 {
    font-size: 2em;
    font-family: 'Roboto Slab', serif;
}

h2 {
    font-size: 1.5em;
    margin: .5em 0;
}

h2, h3 {
    font-family: 'Roboto', sans-serif;
    font-weight: 300;
}

h3 {
    font-size: 1.2em;
}

h1, h2, h3 {
    color: #35363a;
}

h4 {
    font-weight: 700;
    color: #35363a;
    font-family: 'Roboto Slab', serif;
    font-size: 1.15em;
    line-height: 1.25em;
}

h5 {
    font-weight: 300; 
    color: #4c79ba;
    font-family: 'Roboto', sans-serif;
    font-size: 1em;
    line-height: 1.15em;
}

section {
    margin: 5vh 0;
    z-index: 1;
}

article {
    margin: 5vh 0;
    width: 100%;
    position: relative;
}

article img {
    /**width: 328px;
    height: 495px;**/
    width: 100%;
    height: auto;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background-color: gray;
    opacity: .4;
    z-index: 2;
}

.modal {
    position: fixed;
    top: 10%;
    display: flex;
    width: 90%;
    height: 80vh;
    background-color: white;
    flex-flow: column;
    left: 50%;
    margin-left: -45%;
    box-sizing: border-box;
    padding: 30px;
    z-index: 3;
    overflow-y: scroll;
}

#modal-content p {
    font-family: 'Roboto';
}

#close-modal {
    display: flex;
    align-self: flex-end;
    margin-top: -20px;
    position: fixed;
    margin-left: 10px;
    color: #4c79ba;
}

p#close-modal {
    color: #4c79ba;
}

blockquote {
    margin: 25px 0;
    line-height: 1.25em;
    font-family: 'Roboto Slab', sans-serif;
}

#close-modal {
    font-family: 'Roboto';
    color: #35363a;
}

.hidden {
    display: none;
}

div#modal-content {
    padding: 0 15px;
}

.icons {
	display: flex;
    justify-content: space-evenly;
    margin-top: auto;
    background-color: #edf3f8;
    border-top: 1px solid #d1d7dc;
    padding: 8px 0;
}

.icons a {
    text-decoration: none;
}

.fa, .fas {
    color: #d1d7dc;
    align-self: center;
}

.fa:hover, .fas:hover {
    color: #4c79ba;
}

.divider {
	height: 25px;
	border-left: 1px solid #d1d7dc;
}

input#submit {
    background: #4c79ba;
    border: none;
    padding: 5px 20px;
    color: white;
    text-transform: uppercase;
    font-family: 'Roboto';
    font-weight: 400;
    margin: 10px 0;
}

input#submit:hover {
    background: #cadae8;
}

article {
    border: 1px solid #d1d7dc;
}

.item-details {
    box-sizing: border-box;
    margin: 15px;
}