:root {
	--black: #030303;
	--white: #FBFBFB;
	--red: #DC2121;
	--grey: #4E4B4B;
}

body{
	background: var(--black);
}
*{
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}
.container{
	max-width: 1170px;
	margin: 0 auto;
}

/*--- nav section ---*/
nav {
	background-color: var(--black);
	color: var(--white);
	height: 150px;
}

.nav-con {
	/*display: grid;
	grid-template-rows: (2, 1fr);*/
	display: flex;
	justify-content: flex-start;
	height: 150px;
	align-items: center;
	font-size: 3rem;
	margin-top: 2rem;
}

.menu {
	justify-content: flex-end;
	margin: 0 0 0 0;
}


ul.menu {
	display: flex;
	list-style: none;
}

ul.menu li {
	margin: 0 1rem;
}

ul.menu li a {
	color: var(--white);
	text-decoration: none;
	font-size: 1rem;
	
}

/*--- nav section ---*/

/*--- blog section ---*/

.blog {
	background: var(--black);
	height: auto;
	padding: 0.5rem 0;
	
	
}

.blog-title{
	text-align: center;
	
}

.blog-title h3{
	color: var(--white);
	font-size: 2rem;
	
}

.blog-title p{
	color: var(--red);
	font-size: 1.2rem;
	
}

.blog-posts {
	margin: 2rem 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(550px, 1fr));
	grid-gap: 2rem;
	

}

.blog-posts img{
	width: 40%;
	border-bottom: 16px solid var(--red);
}

.blog-posts h3{
	color: var(--white);
	margin: .5rem 0;
}

.blog-posts p{
	color: var(--grey);
	line-height: 20px;
}

.blog-post-btn {
	background: var(--red);
	color: var(--white);
	text-decoration: none;
	padding: 0.5rem 10rem;
	display: inline-block;
	margin-top: 1rem;
	
}
/*--- blog section ---*/


/*--- search section ---*/
.search {
	height: 400px;
	background: var(--red);
	background: url("pic/Diy CL215 Rc Airplane.How To Make CL215 RC Airplane.วิธีสร้างเครื่องบินบัง_0.png");
	background-position: center;
	background-size: cover;
	box-shadow: inset 0 0 0 2000px rgba(0, 0, 0, 0.7); 
	
}

.search-con {
	text-align: center;
	display: flex;
	justify-content: center;
	align-items: center;
	height: 400px;
}

.search-title h3{
	color: var(--white);
	font-size: 3rem;
	
}

.search-title p{
	color: var(--white);
	font-size: 1.2rem;
	margin-top: 1rem;
	
}

.search-input {
	margin-top: 3rem;
	display: flex;
	justify-content: center;
}

.search-text {
	padding: 1rem;
	height: 50px;
	width: 500px;
	border: none;
	outline: none;
}

.search-submit{
	border: none;
	outline: none;
	height: 50px;
	cursor: pointer;
}
/*--- search section ---*/

/*--- footer section ---*/
footer {
	height: auto;
	background: var(--black);
	padding: 4rem 0;
	
}

.footer-con {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	color: var(--white);
	font-size: 2rem;
}

.footer-items h3{
	margin-top: 2rem;
	font-size: 3rem;
}

.footer-items ul{
	list-style: none;
	
}

.footer-items ul li{
	margin: 1rem 0;
	font-size: 1rem;
}

.footer-items a {
	color: var(--black);
	text-decoration: none;
	font-size: 1rem;
}
/*--- footer section ---*/



