body, html{
  height:100%;
  margin:0;
  font-size:16px;
  font-family: 'Kanit', sans-serif;
  font-weight:400;
  line-height:1.8em;
  color:#666;
  scroll-behavior: smooth;
}

a {
  text-decoration: none;
  color: #ff3003;
  transition: 0.5s;
}

a:hover {
  font-size: 1.2em;
}  

.logo {
  padding: 15px;
  background-color: rgba(255,255,255,0.3);
  position: absolute;
  margin: 40px;
  border-radius: 15px;
}

.links {
  position: fixed;
  right: 40px;
  top: 10px;
  z-index: 1000;
}

.links li {
  display: inline-flex;
  color: #ddd;
  background-color: rgba(31, 55, 90, 0.6);
  padding: 10px 20px;
  border-radius: 10px;
}

.links a {
  color: #ddd;
  text-decoration: none;
}

.links li:hover {
  background-color: rgba(31,55,90,0.3);
}

.pimg1, .pimg2, .pimg3, .pimg21{
  position:relative;
  /* opacity: 0.9; */
  background-color: black;
  background-position:center;
  background-position-y: center;
  background-size:cover;
  background-repeat:no-repeat;

  /*
    fixed = parallax
    scroll = normal
  */
  background-attachment:fixed;
}

.pimg1 p{
  margin: 40px;
  color: #fff;
}

.pimg1{
  background-image:url('../img/image1.jpg');
  min-height:70%;
}

.pimg2{
  background-image:url('../img/image2.jpg');
  min-height:400px;
}

.pimg21{
  background-image:url('../img/image21.jpg');
  min-height:400px;
}

.pimg3{
  background-image:url('../img/image3.jpg');
  min-height:500px;
  background-position: center;
}

.pimg4{
  background-image:url('../img/image1.jpg');
  min-height: 400px;
  background-position-y: center;
  position:relative;
}

.section {
  text-align:center;
  padding:50px 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  
}

.section-light{
  background-color:#f4f4f4;
  color:#666;
}

.section-dark{
  background-color:#182842;
  color:#ddd;
}

.first {
  align-self: auto;
  width: 70%;
}

.block-left {
  display: flex;
  border-bottom: solid;
  border-width: 1px;
 }

.block-left div {
  padding-right: 40px;
  padding-left: 40px;
}


.ptext{
  position:absolute;
  top:50%;
  width:100%;
  text-align:center;
  color:#000;
  font-size:40px;
  letter-spacing:8px;
  text-transform:uppercase;
  line-height: 60px;
}

.ptext .border{
  background-color:#ff3003;
  color:#fff;
  padding:20px;
}

.ptext .border.trans{
  background-color:transparent;
}

.text {
  width: 20%;
  align-items: center;
  justify-content: center;
  margin: 20px;
}

.bnt {
  width: auto;
  height: 2em;
  margin: 10px;
  padding: 0 15px;
  background-color: #ff3003;
  text-decoration: none;
  size: 2em;
  border-radius: 5px;
  color: #222;
}
.bnt:hover {
  background-color: #fdb7a7;
}

.pop {
  /*visibility: hidden;*/
  height: 300px;
  width: 600px;
  overflow: auto;
  text-align: left;
}

.pop > img {
  width: 200px;
  display: inline;
}


@media(max-width:740px){
  .pimg1, .pimg2, .pimg3{
    background-attachment:scroll;
  }
  .block-left {
    display: unset;
    text-align: center;
  }
  .nav li{
    display: flex;
  }
  .ptext {
      font-size: 16px;
      line-height: 2.4em;
  }
  footer {
    grid-template-columns: 100%;
  }

}

.mailto {
  margin: 40px;
  padding: 50px;
}

.mailto a:hover {
  background-color: rgba(31,55,90,0.3);
}

.mailto a {
  background-color: rgba(31,55,90,0.6);
  border-radius: 15px;
  padding: 10px 20px;
  text-decoration: none;
  text-transform: none;
  color: #ddd;
}

footer {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  text-align: center;
  padding: 20px;
  
}

table {
	width: auto;
	border-collapse: collapse;
	overflow: hidden;
	box-shadow: 0 0 20px rgba(0,0,0,0.1);
}

th,
td {
	padding: 15px;
	background-color: rgba(255,255,255,0.2);
	color: #fff;
}

th {
	text-align: left;
}

thead {
		background-color: #55608f;
}


/* Nav Bar Control */
nav {
	position: fixed;
	z-index: 10;
	left: 0;
	right: 0;
	top: 0;
}
nav .logo {
	float: left;
	display: flex;
	align-items: center;
}
nav .links {
	float: right;
	/* padding: 0; */
	/* margin: 0; */
	display: flex;
	justify-content: space-around;
	align-items: center;
}
nav .links li {
	list-style: none;
}
nav .links a {
	display: block;
	padding: 0.6em;
	font-size: 16px;
	font-weight: bold;
	color: #fff;
	text-decoration: none;
}
#nav-toggle {
	position: absolute;
	top: -100px;
}
nav .icon-burger {
	display: none;
	position: absolute;
	right: 15px;
	top: 15px;
  transform: translateY(-50%);
  z-index: 10;
}
nav .icon-burger .line {
	width: 30px;
	height: 5px;
	background-color: rgba(255,48,8,0.7);
	margin: 5px;
	border-radius: 3px;
	transition: all .3s ease-in-out;
}
@media screen and (max-width: 768px) {
	nav .logo {
		float: none;
		width: auto;
		justify-content: center;
	}
	nav .links {
		float: none;
		position: fixed;
		z-index: 9;
		left: 0;
		right: 0;
		top: 0;
		bottom: 100%;
		width: auto;
		height: auto;
		flex-direction: column;
		justify-content: space-evenly;
		background-color: rgba(31, 55, 90, 0.6);
		overflow: hidden;
		box-sizing: border-box;
		transition: all .5s ease-in-out;
	}
	nav .links a {
		font-size: 20px;
	}
	nav :checked ~ .links {
		bottom: 0;
	}
	nav .icon-burger {
		display: block;
	}
	nav :checked ~ .icon-burger .line:nth-child(1) {
		transform: translateY(10px) rotate(225deg);
	}
	nav :checked ~ .icon-burger .line:nth-child(3) {
		transform: translateY(-10px) rotate(-225deg);
	}
	nav :checked ~ .icon-burger .line:nth-child(2) {
		opacity: 0;
	}
	
}

footer a {
  color: #fff;
  text-decoration: none;
}
