@charset "UTF-8";


* {
	padding: 0;
	margin: 0;
}

a {
	color:#DC143C;
}

html {
	background-color:#7C7C7C;
}

body {
	max-width: 1200px;
	margin: 0 auto;
	font-family: "Gill Sans", "Gill Sans MT", "Myriad Pro", "DejaVu Sans Condensed", Helvetica, Arial, "sans-serif";
	font-size: 18px;
	line-height: 1.4em;
	background-color: #EDEDED;

}

/*Header and menu*/

header {
	background-color:#000;
	padding: 20px;
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	justify-content: center;

}

.logo {
	width: 100px;
	height: 100px;
	background-image: url(../images/ma-logo.png);
	background-size: contain;
	background-repeat: no-repeat;
	position: relative;
	margin-bottom: 40px;
}

header p {
	color: #fff;
	text-align: center;
	position: absolute;
	bottom: 0;
}

nav a{
	color: #FFF;
	text-decoration: none;
	text-transform: uppercase;
	font-family: Trebuchet MS, Arial;
	padding: 20px;
	font-size: 1.4em;
}

nav a:hover{
	background-color:#4D4D4D;
	cursor: pointer;
}

/*article*/

#page-container {
	display: grid;
	grid-template-columns: 80% 20%;
	grid-template-areas:
		"title title"
		"article article"
		"more more" ;
	grid-gap: 20px;
	padding: 20px 40px 20px 20px;
}

#title-container{
	grid-area: title;
}

article{
	grid-area: article;
	font-size: 1.2em;
	line-height: 1.5em;
}

aside{
	grid-area: more;
}

#title-container {
	display: flex;
	flex-flow: column-reverse;
	flex-wrap: wrap;
	justify-content: space-between;
}

#title-container > img {
	height: 50vh;
	width: 100%;
	object-fit: cover;

}

#info-container{
	padding: 10px;
	line-height: 1.8em;
}

#date {
	font-style: italic;
}

h1 {
	line-height: 1.2em;
}

h2 {
	font-size: 1.2em;
	margin-bottom: 10px;
}

li {
	margin-left: 20px;
}


.blog-img {
	width: 100%;
	margin: 0 auto;
	display: block;
	max-width: 600px;
	max-height: 350px;
	object-fit: cover;
	padding: 20px 0;
}

.gallery {
	display: flex;
	flex-wrap: wrap;
	flex-direction: column;
	align-items: center;
	margin-top: 20px;
}

.full {
	max-width: 400px;
	width: 100%;
	margin: 10px;
	box-shadow: 4px 3px 10px 2px rgba(0,0,0,.2);
	height: auto;
}

.full img {
	max-height: 500px;
	padding: 0;
}

figcaption {
	font-size: .7em;
	text-align: center;
	background-color: #fff;
	padding: 4px;
}




#first-p::first-letter {
	font-size: 3em;
}

aside a {
	display: block;
	box-sizing:border-box;
	width: 100%;
	max-width: 500px;
	text-align: center;
	font-size: 1.5em;
	padding: 10px;
	margin: 20px auto;
	border-radius: 10px;
	background-color: #DC143C;
	text-decoration: none;
	color: #fff;
	font-weight: 600;
}

aside a:hover {
	background-color:#3D7FC9;
}

#recent {
	border: none;
	height: 500px;
	width: 100%;
	overflow: hidden;
	box-sizing:content-box;
	padding-top: 20px;
}

#recent-container {
	height: 500px;
	width: 100%;
}

#recent-container h2 {
	padding-bottom: 10px;
}

#recent-container a {
	display: block;
	color: #5C5C5C;
	line-height: 1.8em;
	text-decoration: none;
}

#recent-container a:hover {
	color: crimson;
}

#recent-container ul {
	list-style-type: square;
}

/*footer*/

footer {
	padding: 20px;
	text-align: center;
	background-color: #000;
	color: #FFFFFF;
	z-index: 10;
	position: relative;
}

footer a, #facebook {
	color: #fff;
	text-decoration: none;
	padding: 8px;
	
}

footer a:hover #facebook {
	background-color: cornflowerblue;
}

#footline {
	max-width: 200px;
	margin: 10px auto;
	border: thin solid #484848;
}

/*Categories Page*/

#cat-h1 {
	margin: 20px;
}

#cat-container {
	display: flex;
	flex-wrap: wrap;
	min-height: 90vh;
}

.category {
	min-width: 250px;
	margin: 20px;
	line-height: 1.5em;
}

.category a{
	text-decoration: none;
	color:#4A4A4A;
	display: block;
}

.category a:hover {
	color: #DC143C;
}

.category h2 {
	padding-bottom: 20px;
}



/*Responsive section*/

@media screen and (min-width:400px){
	header {
		justify-content: space-between;
	}

	.logo {
		margin-bottom: 0;
	}

}

@media screen and (min-width:600px) {
	#cat-container {
		justify-content:space-between;
	}
}

@media screen and (min-width: 900px) {

	#page-container {
		display: grid;
		grid-template-columns: 80% 20%;
		grid-template-areas:
			"title more"
			"article more"
			"article more" ;
		grid-gap: 20px;
		padding: 20px 40px 20px 20px;

	}

	aside {
		position: sticky;
		height: 600px;
		top:0px;
	}

	aside a {
		font-size: 1.2em
	}

	#title-container > img {
		height: 350px;
		width: 100%;
		object-fit: cover;

	}

}

@media screen and (min-width: 1200px) {

	header, footer {
		padding: 20px 50px;
	}
