/*************
* Defaults
**************/
@import url('https://fonts.googleapis.com/css2?family=Bai+Jamjuree:ital,wght@0,200;0,300;0,400;0,500;0,600;0,700;1,200;1,300;1,400;1,500;1,600;1,700&family=Raleway:ital,wght@0,100..900;1,100..900&display=swap');
* {
	box-sizing: border-box;
}
html {
	font-size: 100%;
}
body {
	font-family: "Raleway", sans-serif;
	letter-spacing: 1.2px;
	font-size:1.0rem;
	line-height: 1.6;
	font-weight:300;
	margin: 0;
	padding: 0;
	background-color: #000000;
	color:#ddd;
}
h1,h2,h3,h4,h5,h6 {
	font-family: "Bai Jamjuree", sans-serif;
	text-transform: uppercase;
	font-weight: 900;
	color: rgba(50,205,50,1);
	line-height: 1;
}
h1 {
	font-size: 3.6rem;
}
h2 {
	font-size: 3rem;
}
h3 {
	font-size: 2rem;
}
h4 {
	font-size: 1.2rem;
}
p {
	line-height: 1.6;
}
p {
	font-family: "Raleway", sans-serif;
}
a {
	color: #fff;
	text-decoration: none;
}
a:hover {
	color: #ccc;
}
img {
	width: 100%;
	height: auto;
}
ul {
	list-style-type: none;
	padding: 0;
}
li {
	padding: 0.5rem;
}
.button {
	background-color: rgba(50,205,50,1);
	color: #000;
	padding: 1.3rem 2rem;
	border: none;
	cursor: pointer;
	font-size: 1.6rem;
	font-family: "Bai Jamjuree", sans-serif;
	text-transform: uppercase;
	font-weight: 900;
}
.button:hover {
	background-color: #080
}
input[type="text"], input[type="email"], input[type="password"] {
	padding: 0.5rem;
	border: 1px solid #ccc;
}
input[type="submit"] {
	background-color: #333;
	color: #fff;
	padding: 0.5rem 1rem;
	border: none;
	cursor: pointer;
}
input[type="submit"]:hover {
	background-color: #444;
}
textarea {
	padding: 0.5rem;
	border: 1px solid #ccc;
}
textarea:focus, input[type="text"]:focus, input[type="email"]:focus, input[type="password"]:focus {
	outline: none;
	border: 1px solid #333;
}
.parallax-window {
	min-height: 45em;
	background: transparent;
}
/*************
* Header
**************/
header {
	background-color: #0003;
	color: #fff;
	text-align: center;
	font-family: "Bai Jamjuree", sans-serif;
  font-weight: 700;
  font-style: normal;
}
.logo {
	width:50%;
	margin-top:2rem;
}
nav {
	display: flex;
	justify-content: center;
	background-color: #ccc;
	font-family: "Raleway", sans-serif;
  font-weight: 700;
	font-size: 1rem;
  font-style: normal;
	letter-spacing: 1.2px;
	text-transform: uppercase;
}
nav a {
	color: #444;
	text-decoration: none;
	margin: 0 1rem;
}
nav a:hover {
	color: rgba(50,205,50,1);
}
.notice {
	position: fixed;
	top:0;
	left:0;
	right:0;
	background: rgb(0,25,0);
	background: linear-gradient(180deg, rgba(0,25,0,1) 0%, rgba(25,100,25,1) 100%);
	background-size: cover;
	background-position: center;
	color: rgba(50,205,50,1);
	justify-content: center;
	font-weight:900;
	font-size:1.2rem;
	text-shadow: #000 1px 1px 2px;
}


/*************
* Layout
**************/
main {
	text-align: center;
}
section {
	display:flex;
	align-items: stretch;
	justify-content: center;
	min-height: 45em;
	background: rgb(0,0,0);
	background: linear-gradient(45deg, rgba(0,0,0,1) 0%, rgba(96,96,96,1) 100%);
}
.about section {
	min-height: 25em;
}
section.half {
	min-height: 25em;
	background: rgb(0,0,0)
}
section h1, section h2, section h3, section h4, section h5, section p {
	padding: 0 3rem;
	margin: 1rem 0;
}

.port {
	display:flex;
	justify-content: flex-end;
	width: 50%;
	order: 1;
}
.star {
	display:flex;
	justify-content: flex-start;
	width: 50%;
	order: 2;
}
.port-text {
	align-content:center;
	text-align: right;
	width: 50%;
	order: 1;
}
.star-text {
	align-content:center;
	text-align: left;
	width: 50%;
	order: 2;
}

section#hero {
	/* background-image: url('hero.webp');
	background-size: cover;
	background-position: center; */
	color: #fff;
	padding: 15rem 5rem;
	text-align: left;
	display:block;
}
section#hero h1 {
	margin:0;
	padding:0;
	line-height: 1;
}
section#hero .button {
	margin-top: 1rem;
	display: inline-block;
}
section#about {
	background:rgb(149,149,149);
	color: #000;
}
section#about h4 {
	color: rgb(20, 83, 20);
}

.bar-commercial, .bar-repair, .bar-residential, .bar-about, .bar-repair, .bar-mug, .bar-contact {
	height: 100%; 
	width: 300px;
	background-size: cover;
	background-position: center;
	display:block;
}
.bar-commercial {
	background: url('bar-pipes.webp') center / cover;
}
.bar-residential {
	background: url('residential.webp') center / cover;
}
.bar-repair {
	background: url('serviceandrepair.webp') center / cover;
}
.bar-mug {
	background: url('mug.webp') center / cover;
	width: 400px;
}
.bar-about {
	background: url('about.webp') center / cover;
}
.bar-contact {
	background: url('barhalf-logo.webp') center / cover;
}

/*************
* Gallery
**************/
#gallery {
  display: flex;
  justify-content: space-around;
	padding: 0.5rem;
}
#gallery img {
  display: block;
  width: 100%;
  padding: 0 0.5rem 0.5rem 0;
}
#gallery div {
  flex: 1;
}
/* The Modal (background) */
.modal {
  display: none;
  position: fixed;
  z-index: 1;
  padding: 2rem;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.8);
}

.modal img {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%); /* Centers the image */
	width: 100%;
	height: auto; /* Maintains aspect ratio based on width */
}

@media (min-aspect-ratio: 16/9) {
	.modal img {
			width: auto;
			height: 100%; /* Switches to height-based scaling for wider screens */
	}
}

/*************
* Footer
**************/
footer {
	background-color: #333;
	color: #fff;
	text-align: center;
	padding: 0.2rem;
	width: 100%;
}
footer p {
	margin: 0;
	font-family: "Bai Jamjuree", sans-serif;
	font-weight:300;
	text-transform: uppercase;
	color: #080;
}



@media (max-width:500px) {
	section#hero {
		padding: 10rem 2rem;
	}
	section {
		flex-direction: column;
	}
	.port, .star {
		width: 100%;
		height: 20rem;
		order: 1;
	}
	.port-text, .star-text {
		width: 100%;
		order: 2;
	}
	.bar-commercial, .bar-residential, .bar-repair, .bar-about, .bar-repair, .bar-mug, .bar-contact {
		width: 100%;
	}
	.bar-mug {
		width: 100%;
	}
}