@charset "UTF-8";

* {
	padding: 0;
	margin: 0;
}

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: 120px;
	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;
}




/*Main content (css grid based)*/

main {
	display: grid;
	grid-auto-rows: auto 1fr auto;
	grid-template-areas:
		"ab ab"
		"feat feat"
		"new new"
		"list list";
	grid-gap: 20px;
	padding: 20px;

}


#about {
	grid-area: ab;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	padding: 20px 20px 60px 20px;
	border-bottom: thin solid #CDCDCD;
	margin-bottom: 60px;
}

#featured {
	grid-area: feat;
}

#newest {
	grid-area: new;
}

#list {
	grid-area: list;
	align-self: start;
	max-height: 450px;
	overflow: scroll;
/*	border: thin solid #BBBBBB;*/
	padding: 10px;
	background-color: #fff;
}


#card > img {
	width: 200px;
	border-radius: 10px 10px 0 0;
/*	border-bottom: thin solid #BFBFBF;*/
}

#card {
	border: thin solid #BFBFBF;
	border-radius: 10px;
	box-shadow: 0 0 10px 4px rgba(0,0,0,.1);
	margin: 0 20px;
	display: table;
	align-self: center;
	background-color: #fff;
}

#card > figcaption {
	padding: 10px;
	text-align: center;
	line-height: 1.6em;
	font-weight: bold;
	vertical-align: middle;
}

#name {

}
#position {
	color: #8B8B8B;
}

#about-container {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
/*	flex-direction: column;*/

}

#about-container h1 {
	margin-top: 30px;
	line-height: 1.5em;
}

#about-container p {
	width: 100%;
	text-align: justify;
}

#subscribe {

	padding: 8px;
	background-color: #FF0000;
	color: #fff;
	font-weight: bold;
	font-size: 1.3em;
	width: 100%;
	max-width: 500px;
	margin: 30px;
	border: thin solid #BBBBBB;
	border-radius: 5px;
	cursor: pointer;
}


.feat-post img, .new-post img, .new-post a img {
	width: 100%;
	height: 300px;
	object-fit: cover;
}

.feat-container {
	padding-left: 10px;
	}


.more {
	display: inline;
	border: thin solid #C2C2C2;
	background-color: #06AED5;
	color: #fff;
	padding: 2px 8px;
	border-radius: 5px;
	font-size: .8em;
	text-decoration: none;
	font-weight: 600;
}

.more:hover {
	background-color: #9AC848;
	color: #283845;
}

.short-sample-text, .long-sample-text {
	display: inline;

}

.feat-post, .new-post {
	margin-top: 20px;
	padding: 10px;
	background-color: #fff;
}

.archive {
	margin-top: 20px;
}

.recent {
	background-color: #D3F5FD;
	border-radius: 10px;
}

.recent img {
	border-radius: 5px 5px 0 0;
}

#list-container a {
	color:#DC143C;
	text-decoration: none;
}

#list-container a:hover {
	color:#764747;
}


/*footer*/

footer {
	padding: 20px;
	text-align: center;
	background-color: #000;
	color: #FFFFFF;
}

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;
}


/*Contact Form*/
#contactForm{
	display: flex;
	width: 100vw;
	height: 100vh;
	z-index:10;
	position:fixed;
	top: 0;
	left:0;
	background-color: rgba(164,164,164,0.61);
	align-items: center;
	justify-content: center;
}

#exit{
	position: absolute;
	top:20px;
	color: #fff;
	font-size:3em;
	font-weight: 600;
	right:20px;
	cursor:pointer;
	z-index:2;
}

#exit:hover{
	color:#DCDCDC;
}

.hide {
	display:none !important ;

}


/*Responsive section*/

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

	.logo {
		margin-bottom: 0;
	}

	.date, .new-container h3, .archive h3, .category {
		display: inline-block;
	}
}

@media screen and (min-width: 650px){
	main {
		grid-auto-rows: auto auto 1fr;
		grid-auto-columns: 40% 60%;
		grid-template-areas:
			"ab ab"
			"feat new"
			"list new";
		padding: 20px 40px 20px 20px;
	}

	#about {
		flex-wrap: nowrap;
/*		justify-content: center;*/
	}

	#about-container h1 {
	margin-top: 0px;
	}


}

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

	#subscribe {
		flex: 1;
		margin: 0 20px;
	}

	#about-container p {
		margin-top: 30px;
	}

	.feat-post {
		display: grid;
		grid-template-columns: 150px auto;

	}

	.feat-post img {
		height: 100%;
	}

	.new-post {
		display: grid;
		grid-template-columns: 250px auto;

	}

	.new-post img, .new-post a img {
		height: 100%;

	}
	.new-container {
		padding-left: 10px;
	}

	.recent img {
	border-radius: 5px 0 0 5px;
}

}

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

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



}
