@import url('https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400');

/* CUSTOM RESET */

/* properties that are not inherited*/
* {
	border:0px;
	margin:0px;
	padding:0px;
	box-sizing:border-box;
}

html {
	/*properties that are inherited, might as well set them in the root element*/
	color:#111b24;
	/* we don't want inline elements to inherit parent's font size*/
	font-size:1rem;
	font-family: "Source Sans Pro", sans-serif;
	background-image:url("texture.png");
	background-color:#ced5d9;
}

body {
	width:100%;
}

h1,
h2,
h3 {
	margin:2rem 0rem;
	font-weight:300;
}

h1 {
	font-size:4rem;
	text-align:center;
}

h2 {
	font-size:2.4rem;
}

h3 {
	font-size:1.4rem;
	text-align:right;
}

p {
	margin:2rem 0rem;
	text-indent:2rem;
	line-height:1.7rem;
}

ul,
ol {
	margin-bottom:2rem;
	margin-left:2rem;
}

li {
	margin:1rem 0rem;
}

a {
	color:#757e90;
	text-decoration:none;
}

a:hover {
	color:#2d3a49;
}

figcaption {
	text-align:center;
	padding:0.5rem;
	background:#335;
}

img {
	width:100%;
}

button {
	cursor:pointer;
}

blockquote {
	max-width:400px;
	font-size:1.3rem;
	text-align:center;
	padding:1rem 2rem;
	margin:2rem auto;
	border-top:5px solid #333;
	border-bottom:5px solid #333;
}

article {
	width:700px;
	margin:0% auto;
	padding:2rem;
}

/* BEM COMPONENTS */

.label {
	text-indent:0rem;
	margin-bottom:1rem;
}

.main-image {
	display:block;
	width:250px;
	margin: 0px auto;
	border-radius:50%;

	animation-name:slide;
	animation-duration:0.5s;
	animation-timing-function:ease-in;
	animation-iteration-count:1;
}

@keyframes slide {
	0% {
		color:white;
		position:relative;
		text-shadow:initial;
		opacity:0;
		margin-top:50px;
	}
}

.nav {
	width:100%;
	margin-bottom:20px;
	display:flex;
	justify-content:center;
}

.nav-group {
	display:flex;
	list-style-type:none;
	border-bottom:2px solid #767e90;
}

.nav-link,
.nav-link-active {
	display:block;
	width:80px;
	padding:1em;
	text-align:center;
}

.nav-link-active {
	color:#2d3a49;
}

.article-image {
	height:300px;
	overflow:hidden;
	background-size:cover;
	background-position:center center;
}

.article-table {
	list-style:none;
	text-align:center;
	margin-left:0em;
}

.article-table li:nth-child(3) {
	margin-top:3em;
}

.article-first::first-letter {
	font-size:2em;
}

.home {
	position:fixed;
	top:1%;
	left:1%;
	padding:1rem;
	border:1px solid #757e90;
	background-color:#ddd;
	z-index:1;
}

.pop-alert {
	color:#b26b5c;
}

.pop-date {
	color:orchid;
}

@media (max-width:800px) {
	article {
		width:90%;
		padding:1em;
	}
}

@media (max-width:640px) {
	p {
		line-height:1.4em;
	}
}

@media (max-width:400px) {
	h1 {
		font-size:3em;
	}

	h2 {
		font-size:1.8rem;
	}

	h3 {
		font-size:1.1rem;
		text-align:center;
	}

	.nav-group {
		width:100%;
		margin:auto;
	}

	.nav-link,
	.nav-link-active {
		padding:1em 0em;
	}

	.pop-alert {
		display:block;
	}
}
