:root {
	--black: #030303;
	--white: #FBFBFB;
	--red: #DC2121;
	--grey: #4E4B4B;
}


*{
	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: flex;
	justify-content: flex-start;
	height: 150px;
	align-items: center;
	font-size: 3rem;
}


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 ---*/

/*--- slideshow section ---*/
.slideshow{
	background: var(--black);
	box-sizing: border-box;
	padding: 0;
	margin: center;
	max-width: 3600px;
	

}
.slideshow{
	padding: 0;
	margin: 0;
	background: var(--black);
	align-items: center;
	
}


.slider-frame{
	overflow: hidden;
	height: 800px;
	width: 1200px;
	margin-left: 0px;
	margin-top: 0px;
	background-color: var(--black);
}
/*--- slideshow section ---*/
@-webkit-keyframes slide_animation{
	0% {left:0px;}
	10% {left:0px;}
	20% {left:1200px;}
	30% {left:1200px;}
	40% {left:2400px;}
	50% {left:2400px;}
	60% {left:1200px;}
	70% {left:1200px;}
	80% {left:0px;}
	90% {left:0px;}
	100% {left:0px;}
}
.slide-images{
	width: 3600px;
	height: 800px;
	margin: 0 0 0 -2400px;
	position: relative;
	-webkit-animation-name: slide_animation;
	-webkit-animation-duration: 33s;
	-webkit-animation-iteration-count: infinite;
	-webkit-animation-direction: alternate;
	-webkit-animation-play-state: running;
}

.img-container{
	height: 800px;
	width: 1200px;
	position: right;
	float: left;
}
/*--- slideshow section ---*/


/*--- blog section ---*/

.blog {
	background: var(--black);
	height: auto;
	padding: 2rem 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(200px, 1fr));
	grid-gap: 2rem;
	

}

.blog-posts img{
	width: 40%;
	border-bottom: 15px 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 1rem;
	display: inline-block;
	margin-top: 2rem;
	
}
/*--- blog section ---*/

/*--- cta section ---*/
.cta {
	height: 300px;
	background: var(--red);
	background: url("pic/How To Build F16 Rc Jet Plane.How To Diy F16 Rc Plane By Foam (1)_0.png");
	background-size: cover;
	background-position: center;
	box-shadow: inset 0 0 0 2000px rgba(0, 0, 0, 0.8); 
}

.cta-con {
	display: flex;
	justify-content: space-between;
	height: 300px;
	align-items: center;
}

.cta-title {
	font-size: 3rem;
	color: var(--white);
	
}

.cta-btn {
	background: var(--white);
	color: var(--red);
	padding: 1rem 1.5rem;
	text-decoration: none;
	
}

.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;
}
/*--- cta 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 ---*/