@import url(https://fonts.googleapis.com/css?family=Kanit);
*
{
  font-family: 'Kanit', sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html
{
  /* background: #fff; */
  scroll-behavior: smooth;
  /* background: linear-gradient(40deg,black,red,pink,white); */
}
.content-box {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  text-align: center;
  max-width: 100%;
  margin: 10px 10%;
  /* background: #F7DC6F; */
}
.text-box
{
  /* background: #202f55; */
  margin-top: 20px;
  margin-bottom: 20px;
  width: 500px;
}
.text-box p
{
  font-size: 20px;
}
/* --------------------------------- warp objects ----------------------------*/
.delay {
  animation-delay: .2s;
}
.fadeIn.warpboxx {
  animation-name: fadeIn;
  animation-duration: 1.5s;
  animation-fill-mode: both;
}

.fadeUp.warpboxx {
  animation-name: fadeUp;
  animation-duration: 1.5s;
  animation-fill-mode: both;
}

.fadeDown.warpboxx {
  animation-name: fadeDown;
  animation-duration: 1.5s;
  animation-fill-mode: both;
}

.fadeRight.warpboxx {
  animation-name: fadeRight;
  animation-duration: 1.5s;
  animation-fill-mode: both;
}

.fadeLeft.warpboxx {
  animation-name: fadeLeft;
  animation-duration: 1.5s;
  animation-fill-mode: both;
}

@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes fadeUp {
  0% {
    opacity: 0;
    transform: translateY(50px);
  }
  100% {
    opacity: 1;
    transform: translateY(0px);
  }
}

@keyframes fadeDown {
  0% {
    opacity: 0;
    transform: translateY(-50px);
  }
  100% {
    opacity: 1;
    transform: translateY(0px);
  }
}

@keyframes fadeRight {
  0% {
    opacity: 0;
    transform: translateX(-50%);
  }
  100% {
    opacity: 1;
    transform: translateX(0px);
  }
}

@keyframes fadeLeft {
  0% {
    opacity: 0;
    transform: translateX(50%);
  }
  100% {
    opacity: 1;
    transform: translateX(0px);
  }
}
/* --------------------------------- warp objects ----------------------------*/
/* --------------------------------- warp objects ----------------------------*/
/* --------------------------------- warp objects ----------------------------*/
/* --------------------------------- warp objects ----------------------------*/



/* --------------------------------- skill ----------------------------*/
/* --------------------------------- skill  ----------------------------*/
/* --------------------------------- skill  ----------------------------*/
/* --------------------------------- skill  ----------------------------*/
.skill h1
{
  text-align: center;
}
.skill p
{
  text-align: center;
  margin-top: 20px;
  margin-bottom: 20px;
}
.skillgrid
{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;  
  text-align: center;
}
.skillbox img
{
  width: 100px;
}
.skillbox p
{
  margin-top: 10px;
  margin-bottom: 10px;
}
/* --------------------------------- project ----------------------------*/
/* --------------------------------- project ----------------------------*/
/* --------------------------------- project ----------------------------*/
/* --------------------------------- project ----------------------------*/
.project
{
  text-align: center;
  
  /* background: #f990909a;
  width: 100%;
  height: auto; */
}
.project h1
{
  text-align: center;
  margin-top: 20px;
  margin-bottom: 20px;
  /* color: #E74C3C;
  text-shadow: 2px 0px #5d6d7e; */
  /* text-shadow: 2px 1px #E74C3C; */
}
.projectgrid
{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;  
  text-align: center;
  margin: 10px 10%;
}
.projectbox
{
  background-color: #F4F6F7 ;
  box-shadow: 0 25px 35px rgba(0, 0, 0, 0.2);
  /* border-bottom: 5px solid #1C2833 ; */
  border-bottom: 5px solid #E74C3C ;
  width: 300px;
  margin: 15px 25px;
}
.projectbox img
{
  width: 300px;
  height: 300px;
  padding: 10px 20px;
  background: #F4F6F7;
  object-fit: scale-down;
  -webkit-transition: all 0.375s cubic-bezier(0.4, 0, 0.2, 1);
  -moz-transition: all 0.375s cubic-bezier(0.4, 0, 0.2, 1);
  -o-transition: all 0.375s cubic-bezier(0.4, 0, 0.2, 1);
  transition: all 0.375s cubic-bezier(0.4, 0, 0.2, 1);
}
.projectbox a
{
  text-decoration-color: #58D68D ;
  /* text-decoration-line: overline underline; */
  /* text-decoration-line: line-through; */
  /* text-decoration-style: wavy; */
  /* text-decoration-style: dotted;
  text-decoration-style: dashed; */
}
.projectbox a:hover
{
  /* text-decoration-color: gold; */
  text-decoration-style: wavy;
  font-style: italic;
}
.projectbox p
{
  text-align: center;
  color: #1C2833 ;
  margin-top: 0px;
  margin-bottom: 20px;
}
.projectbox p:hover
{
    text-align: center;
    /* font-style: italic; */
    /* color: pink; */
    margin-top: 0px;
    margin-bottom: 20px
}
.projectbox a:-webkit-any-link
{
  color: black;
}
/* --------------------------------- img slide----------------------------*/
/* --------------------------------- img slide----------------------------*/
/* --------------------------------- img slide----------------------------*/
/* --------------------------------- img slide----------------------------*/
.imgslideshow
{
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  height: 450px;
  position: relative;
}
.imgslideshow h1
{
  display: none;
  color: aqua;
  /* margin-left: 10px; */
  font-size: 40px;
  z-index: 1;
}
/* .bgpic
{
  background-image: url(bred.png);
  width: 900px;
  height: 450px;
  align-items: center;
  object-fit: cover;
  background: #E74C3C;
  transition: .5s;
  border-radius: 50%;
  margin-left: 100px;
} */
.bgpic img
{
  width: 650px;
}
.boxpic
{
  /*position: absolute; top: 1950px;
  left: 450px; width: 500px;
	*/
  position: relative;
  height: 55px;	
  z-index: 0;
  margin-top: -80px;
}
/* .boxpic img
{
  display: none;
  position: absolute;
  width: 800px;
  top: 5px;
  left: 50px;
  overflow: hidden;
} */
.slideimg
{
  position: relative;
  width: 550px;
  overflow: hidden;
  margin-left: 45px;
  margin-top: 25px;
}
.slideimg2
{
  position: relative;
  width: 550px;
  overflow: hidden;
  margin-left: 5px;
  margin-top: -400px;
}
.slideimg3
{
  position: relative;
  width: 600px;
  overflow: hidden;
  margin-left: -30px;
  margin-top: -310px;
}
.boxpic img:last-child {
  display: none;  
}
.boxpic:hover img:last-child {
  display: block;  
}
.boxpic:hover img:first-child {
  display: none;  
}

/* --------------------------------- menubar ----------------------------*/
/* --------------------------------- menubar ----------------------------*/
/* --------------------------------- menubar ----------------------------*/
/* --------------------------------- menubar ----------------------------*/

.D_Menu
{
  /* position: fixed;
  top: 0;
  width: 100%; */
  display: grid;
  grid-template-columns: 30% 70%;
  background: #E74C3C ;
  /* background: #B03A2E ; */
  padding: 5px 0px;
  
}
.D_Menu i
{
  display: none;
  /* display: inline-flex;  */
}
.Logotop h2
{
  font-size: 20px;
  margin-left: 20px;
  color: white;
  font-weight: bold;
}
.D_Menu strong
{
  font-size: 15px;
}
.D_Menu ul
{
  display: flex;
  justify-content: right;
  align-items: center;
  margin-right: 20px;
}
.D_Menu ul li
{
  list-style: none;
}
.D_Menu ul li a
{
  text-decoration: none;
  font-size: 18px;
  /* font-weight: 700; */
  padding: 0px 10px;
  color: white;
  border-radius: 20px;
}
.D_Menu ul li a:hover
{
  color: white;
  background: #212121 ;
}

/* --------------------------------- aboutme ----------------------------*/
/* --------------------------------- aboutme ----------------------------*/
/* --------------------------------- aboutme ----------------------------*/
/* --------------------------------- aboutme ----------------------------*/
.aboutme h1
{
  text-align: center;
  margin-top: 30px;
  margin-bottom: 30px;
}
/* .aboutbox p
{
  
  text-align: justify;
  width: 600px;
  margin-left: 30px;

} */
.aboutp p
{
  /* display: none; */
  text-align: justify;
  width: 600px;
  margin-left: 30px;
}
.aboutp2 p
{
  display: none;
  text-align: justify;
  width: 600px;
  margin-left: 30px;
}
.aboutbox img
{
  width: 300px;
  border-radius: 5px;
}
.aboutbox
{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  text-align: center;
  max-width: 100%;
  margin: 10px 10%;
}
/* --------------------------------- contact ----------------------------*/
/* --------------------------------- contact ----------------------------*/
/* --------------------------------- contact ----------------------------*/
/* --------------------------------- contact ----------------------------*/
.contact h1
{
  text-align: center;
  margin-top: 30px;
}
.mainwarp
{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-content: center;
  margin-top: 10px;
  margin-bottom: 10px;
}
.social .icon
{
  position: relative;
  border-radius: 50%;
  padding: 15px;
  margin: 10px;
  width: 100px;
  height: 100px;
  font-size: 38px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  cursor: pointer;
}
.social .icon i::before
{
  /* color:#072a40; */
  color:black;
  transition: .2s linear;
}
.social .icon i::after
{
  color:red;
  transition: .2s linear;
}
.social .icon:hover a,
.social .icon:hover .tooltip
{
  text-shadow: 0px -1px 0px rgba(0, 0, 0, 0.1);
  transform: scale(.8);
  transition: .2s linear;
}

.social .icon::before,
.social .icon::after
{
  content: '';
  position: absolute;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  transition: .2s linear;
}

.social .icon:hover::before
{
  border-radius: 50%;
  border-left: 4px solid;
  border-right: 4px solid;
  transform: skewX(20deg);
  color: red;
  transition: 0.5s;
}

.social .icon:hover::after
{
  border-radius: 50%;
  border-top: 4px solid;
  border-bottom: 4px solid;
  transform: skewY(-20deg);
  color: #333366;
  transition: 0.5s;
}
/* --------------------------------- coy right----------------------------*/
.copyright
{
  text-align: center;
  /* background: #E74C3C; */
}


/* --------------------------------- MOBILE tab ----------------------------*/
/* --------------------------------- MOBILE tab ----------------------------*/
/* --------------------------------- MOBILE tab ----------------------------*/
/* --------------------------------- MOBILE tab ----------------------------*/
/* --------------------------------- MOBILE tab ----------------------------*/
/* --------------------------------- MOBILE tab ----------------------------*/
/* --------------------------------- MOBILE tab ----------------------------*/


/*
@media screen and (max-width: 1330px)
{
  .imgslideshow
  {
    display: none;
  }
  
}
@media screen and (max-width: 1176px)
{
  .imgslideshow
  {
    display: none;
  }
  .aboutp p
  {
    text-align: justify;
    width: 600px;
    margin-left: 30px;
    margin-top: 20px;
  }
  
} */
/* --------------------------------- MOBILE ----------------------------*/
/* --------------------------------- MOBILE ----------------------------*/
/* --------------------------------- MOBILE ----------------------------*/
/* --------------------------------- MOBILE ----------------------------*/
/* --------------------------------- MOBILE ----------------------------*/
/* --------------------------------- MOBILE ----------------------------*/
/* --------------------------------- MOBILE ----------------------------*/


@media screen and (max-width: 480px)
{
/* --------------------------------- menubar ----------------------------*/
/* --------------------------------- menubar ----------------------------*/
/* --------------------------------- menubar ----------------------------*/
/* --------------------------------- menubar ----------------------------*/
  .D_Menu i
  {
    /* display: none;  */
    display: inline-flex;
  }
  .Logotop h2
  {
    font-size: 20px;
    margin-left: 15px;
    color: white;
    font-weight: bold;
  }
  .D_Menu strong
  {
    display: none;
  }
  .aboutp p
  {
    display: none;
    text-align: justify;
    width: 600px;
    margin-left: 30px;
  }
  .aboutp2 p
  {
    display: block;
    text-align: justify;
    width: 270px;
    margin-left: 0px;
    margin-top: 20px;
  }
  /*.imgslideshow
  {
    display: none;
  }
  .text-box p {
    font-size: 18px;
  } */
  .bgpic img
  {
	position: relative;
    width: 250px;
	margin-left: -10px;
	overflow: hidden;
  }
  .boxpic
  {
    /*position: absolute; top: 1950px;
    left: 450px; width: 500px;
	  */
    position: relative;
    height: 55px;	
    z-index: 0;
    margin-top: -60px;
  }
  /* .boxpic img
  {
    display: none;
    position: absolute;
    width: 800px;
    top: 5px;
    left: 50px;
    overflow: hidden;
  } */
  .slideimg
  {
    position: relative;
    width: 250px;
    overflow: hidden;
    margin-left: 45px;
    margin-top: 25px;
  }
  .slideimg2
  {
	  
    position: relative;
    width: 250px;
    overflow: hidden;
    margin-left: 5px;
    margin-top: -400px;
  }
  .slideimg3
  {
	display: none;
    position: relative;
    width: 300px;
    overflow: hidden;
    margin-left: -30px;
    margin-top: -310px;
  }
  .boxpic img:last-child {
    display: none;  
  }
  .boxpic:hover img:last-child {
    display: none;  
  }
  .boxpic:hover img:first-child {
    display: none;  
  }
  .imgslideshow {
	height: 250px;
	margin-top: 40px;
  }
}