/* CSS style sheet for Sunsawang Thailand */  
@charset "UTF-8";

* {
	font-family: Helvetica, "Courier New";
	font-size: large;
}

h1 {
	font-size: 2.5em;
	text-align: center;
}

h2 {
	font-size: 2em;
}

h3 {
	font-size: 1.5em;
}

p {
	font-size: 1em;
}

header {
	background-color: #D3D3D3;
	background-image: url("https://maesotnotes.com/education/images/solar_panel_array.jpg");
	background-repeat: no-repeat;
	background-size: cover;
	border: 5px solid #000000;
	border-radius: 25px 25px 0px 0px;
	padding-top: 30px;
	padding-bottom: 0px;
}

main {
	background-color: rgb(255, 255, 212);
	text-align: justify; 
	padding-top: 10px;
	padding-bottom: 5px;
	padding-left: 30px;
	padding-right: 40px;
	border-style: solid;
	border-width: 0px 25px 0px 25px;
	border-color: rgb(136, 173, 64);

}

article {
	text-align: justify; 
	padding-top: 10px;
	padding-bottom: 5px;
	padding-left: 30px;
	padding-right: 40px;
	border-style: solid;
	border-width: 0px 25px 0px 25px;
	border-color: rgb(170, 200, 104);
	border-radius: 0px 0px 25px 25px;
}

footer {
	background-color: rgb(255, 255, 212);
	padding: 25px 0px 25px 0px;
	text-align: center;
	border-style: solid;
	border-width: 25px 25px 25px 25px;
	border-radius: 0px 0px 25px 25px;
	border-color: rgb(85, 112, 56);
}

button {
	background-color: rgb(255, 183, 51);
	text-align: center;
	padding: 10px;
	border-radius: 20px;
	color: black;
}

button:hover {
	background-color: rgb(255, 165, 0);
	color: rgb(51, 51, 51);
}

/*For centering */
.center_stuff { 
	text-align: center;
}

/* Reactive images for smaller screen sizes */ 
.imgControl {
	max-width: "90%";
	height: "auto";
}

/* Header box */
.headBox {
	background-color: rgba(192, 192, 192, 0.8);
	width: 80%;
	padding: 30px 20px 20px 20px;
	margin-left: auto;
	margin-right: auto;
	border-radius: 25px 25px 0px 0px;
}

/* rounding the corners of the iages */ 
.imgRounded {
	border-radius: 30%;
}

/* Grid box layout for product images */ 
.gridPics {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(264px, 1fr));
	justify-content: center;
	gap: 1em;
}

/* Bordering and padding for photos in the grid box picture gallery */ 
.gridBox {
	padding: 5px;
	border: 2px solid orange;
	border-radius: 5%;
	text-align: center;
	align-items: center;
	justify-items: center;
}

.picBox {
	position: relative;
	width: 250px;
}

.overlay {
	position: absolute;
	bottom: 10px;  
	background: rgba(61, 61, 61, 0.7); /* Gray see-through */
	width: 100%;
	transition: .5s ease;
	opacity:0;
	color: white;
	font-size: 1em;
	text-align: center;
}

.picBox:hover .overlay {
  opacity: 1;
}

/* Grid box layout for team photos */ 
.gridTeam {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	justify-content: center;
	gap: 1em;
}

.gridTeam div {
	padding: 5px;
	border: 2px solid orange;
	border-radius: 10%;
	text-align: center;
}

.extraHeading {
	font-size: 1em; 
	color: rgb(128, 128, 128);
}

.logo {
	margin-left: min(150px, 20%);
	margin-right: auto;
}
