@import url('https://fonts.googleapis.com/css?family=Montserrat:400,700');
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@600&display=swap');

@keyframes slideOpen {
	from {width:0%;}
	to {width:50%;}
}
@keyframes slideClosed {
	from {width:50%;}
	to {width:0%;}
}
@keyframes slideOpenVertical {
	from {height: 0%}
	to {height: 100%}
}
.centered {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
}
.container {
position: relative;
text-align: center;
color: white;
}
body, html {
	min-height: calc(100vh - 2em);
	margin: 0;
	/*
	width: 100%;
	min-height: 100vh;
	text-align: center;
	*/
	font-family: 'Montserrat';
	background-color: #e4e1dc;
}
#hdr1 {display:block;}
#hdr2 {display:none}
.highlight {
	text-shadow: 1px 1px 10px black;
	color: #eaeaea;
} 
* {
	box-sizing: border-box;
}
.green {
	background-color: #839693;
	box-shadow: 100px rgba(0, 0, 0, 0.2);
}
.column{
float:left;
}
.pic {
margin-left: 50px;
}
.text {
margin-left: 45%;
text-align: center;
}
.text2 {
margin-left: 15%;
text-align: center;
}
.pic2 {
margin-left:20%;
}
.row {
margin-top: 50px;
margin-bottom: 0;
}
.row:after {
content: "";
display:table;
clear: both;
}
#colImg{
width: 250%;
height: auto;
}
#colImg2{
width: 250%;
height: auto;
}
#refacing {
font-size: 25px;
text-align: center;
line-height: 2;
}
#counters {
	font-size: 25px;
	text-align: center;
	line-height: 3;
}
.button {
	font-weight: bold;
	text-decoration: none;
	color: #eaeaea;
	text-shadow: 1px 1px 10px black;
	cursor:pointer;
	
	border-radius:50px;
	background: #52aea0;
	align-content: center;
	text-align: center;
	display:flex;
	width : 50%;
	height : auto;
}
.btnContent {
	margin-left:auto;
	margin-right:auto;
}
@media all and (max-width: 499px) {
    #hdr1 {display: none;}
    #hdr2 {display: block;}
	#counters {
		font-size: 20px;
		text-align: center;
		line-height: normal;
	}
	.pic {
		margin-left: 0px;
	}
	.text {
	margin-left: 50%;
	display:contents;
	text-align: center;
	}
	#colImg {
		width: 100%;
		height: auto;
	}
	#colImg2 {
		width: 100%;
		height: auto;
	}
	.text2 {
		margin-left: 0px;
		display:contents;
		text-align: center;
	}
	.pic2 {
		margin-left: 50%;
		margin-left: 0px;
		align-content: center;
		display:contents;
	}
	#refacing {
		font-size: 20px;
		text-align: center;
	}
	.button {
		height: 50px;
	}
	.btnContent {
		margin-top: auto;
		margin-bottom: auto;
	}
}
/* two column stuff */

.balthazar-regular {
	font-family: "Balthazar", serif;
	font-weight: 400;
	font-style: normal;
  }

hr {
	box-shadow: 0 0 5px rgba(0,0,0,0.2);
}
.headerbg {
	margin-top:50px;
	background-image: url("https://nhcabinetrefinishing.com/images/headerbg.jpg");
	background-size:contain;
	background-color: #cccccc;
	text-shadow: -1px 0 black, 0 1px black, 1px 0 black, 0 -1px black;
	color: white;

}
.button:hover {
	background: #4d6662;
}
.border a:link {
	text-decoration: none;
	color:#1D52E3;
}
.border a:visited {
	text-decoration: none;
	color:#1D52E3;
}
.border a:hover {
	text-decoration: none;
	color:#4AA6F3;
}
.border a:active {
	text-decoration: none;
	color:#5600E0;
}
.border {
	background: #eaeaea;
	background: -moz-linear-gradient(top, #eaeaea 0%, #e8e8e8 38%, #eaeaea 100%);
	background: -webkit-linear-gradient(top, #eaeaea 0%,#e8e8e8 38%,#eaeaea 100%);
	background: linear-gradient(to bottom, #eaeaea 0%,#e8e8e8 38%,#eaeaea 100%);
	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#eaeaea', endColorstr='#eaeaea',GradientType=0 );
	padding:0;
	margin-top: 75px;
	border-top-style: solid;
	border-bottom-style: solid;
	border-top-color:#E0E0E0;
	border-bottom-color: #E0E0E0;
	border-top-width: 2px;
	border-bottom-width: 2px;
	box-shadow: 0 0 5px rgba(0,0,0,0.2);
}
.dark {
	background: #eaeaea;
	background: -moz-linear-gradient(top, #eaeaea 0%, #e8e8e8 38%, #eaeaea 100%);
	background: -webkit-linear-gradient(top, #eaeaea 0%,#e8e8e8 38%,#eaeaea 100%);
	background: linear-gradient(to bottom, #eaeaea 0%,#e8e8e8 38%,#eaeaea 100%);
	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#eaeaea', endColorstr='#eaeaea',GradientType=0 );
	border-top-style: solid;
	border-bottom-style: solid;
	border-top-color:#E0E0E0;
	border-bottom-color: #E0E0E0;
	box-shadow: 0 0 5px rgba(0,0,0,0.2);
}
img {
	padding:0;
	margin:0;
}

h1 {
	padding: 0;
	margin:0;
}
h2 h3 {
	margin:0;
	font-family: 'Cinzel';
}

#slogan {
	margin:0;
	font-family: 'Cinzel';
	font-size: 25px;
	padding-bottom: 0;
}
.center {
	align-content: center;
	display: block;
	margin-right:auto;
	margin-left:auto;
	text-align: center;
	padding: 40px 0px 20px 0px
}
.cb {
	font-family: 'Cinzel';
	font-size: 2.2em;
	align-content: center;
	display: block;
	margin-bottom:0;
	margin-top:0;
	margin-right:auto;
	margin-left:auto;
	text-align: center;
}
.topnav {

	position: fixed;
	top:0;
	width: 100%;
	background: #839693;
	/*
	background: -moz-linear-gradient(top, #f9f9f9 0%, #eaeaea 90%, #f7f7f7 100%);
	background: -webkit-linear-gradient(top, #f9f9f9 0%,#eaeaea 90%,#f7f7f7 100%);
	background: linear-gradient(to bottom, #f9f9f9 0%,#eaeaea 90%,#f7f7f7 100%);
	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#f9f9f9', endColorstr='#f7f7f7',GradientType=0 );
	*/
	grid-template-columns: auto 40px;
	display: grid;
	padding: 5px 10px 5px 25px;
	z-index: 98;
	box-shadow: 0 0 10px rgba(0,0,0,0.2);
	transition: transform 0.3s;
}
.nav--hidden {
	transform: translateY(-50px);
	box-shadow: none;
}
img.nh {
	cursor: pointer;
	margin : 0;
	padding: 0;
}
#menu {
	cursor:pointer;
	margin: 0;
	padding: 5px;
	border: 2px solid #E1E1E1;
	border-radius:5px;
	width: 40px;
	height: 40px;
}

.layer {
	background-color:rgba(0,0,0,0.75);
}
.activeNav {
	z-index: 99;
	position: fixed;
	display: block;
	animation-name: slideOpen;
	animation-duration: .5s;
	width:50%;
	height:100%;
	top:0;
	right:0;
	background: #101010;
	background: -moz-linear-gradient(bottom, #101010 0%, #292929 36%, #101010 100%);
	background: -webkit-linear-gradient(bottom, #101010 0%,#292929 75%,#101010 100%);
	background: linear-gradient(to top, #101010 0%,#292929 75%,#101010 100%);
	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#292929', endColorstr='#101010',GradientType=0 );
	
}
.deactivateNav {
	animation-name: slideClosed;
	animation-duration: .5s;
	width: 0%;
}
ul {
	display:none;
	width:0px;
	height:0px;
	list-style-type: none;
	margin: 0px;
	padding: 0px;
}
ul li a {
	text-decoration: none;
	text-transform: uppercase;
	font-size: .8em;
	display: block;
	padding: 2em;
	color: #fff;
}
* {
	box-sizing: border-box;
}
.cursor {
	cursor: pointer;
}
.slideBtns {
	grid-template-columns: auto auto;
	display: grid;
	margin-bottom: 40px;
}
.btn a {
	font-weight: bold;
	font-size: 50px;
	text-decoration: none;
	color: #707070;
	display:block;
	cursor:pointer;
	padding: 0;
	border: 2px solid #E1E1E1;
	border-radius:5px;
	align-content: center;
	text-align: center;
	width : 1.5em;
	height : 3em;
	margin: 0 auto;
	cursor: pointer;
}
.btn:hover {
	background-color:rgba(0,0,0,0.15);
}
.btn:active {
	background-color:rgba(0,0,0,0.75);
}
.prev,	
.next {
	user-select: none;
	-webkit-user-select: none;
}
.next {
	right: 0;
	border-radius: 3px 0 0 3px;
}
.numbertext {
	color: #f2f2f2;
	font-size: 12px;
	padding: 8px 12px;
	position: absolute;
	top: 0;
}
.row:after {
	content: "";
	display: table;
	clear: both;
}
.column {
	float: left;
	width: 16.66%;
}
.thumbnail {
	opacity: 0.6;
}
.active,
.thumbnail:hover {
	opacity: 1;
}
.ddContent {
	display:none;
}
.dropdownActive {
	display:inherit;
}
#callmobile {
	font-weight: bold;
	text-decoration: none;
	color: #f5f5f5;
	opacity: 100;
	cursor:pointer;
	padding: 5px;
	margin-right:100px;
	border-radius:5px;
	text-shadow: 1px 1px 2px black;
	width: 100%;
	
	margin-top:auto;
	margin-bottom:auto;

	position: absolute;
	top: 50%;
	left: 80%;
	transform: translate(-50%, -50%);
}

@media only screen and (max-width: 1259px) {
	#navbarWide {
		display: none;
	}
	.slideshow {
		margin: 0;
	}
}

@media only screen and (min-width: 1260px) {
	.galleryDesktop {
		text-align: center;
		align-content: center;
		width: 60%;
		display: absolute;
		margin: 20px auto 0 auto;
	}
	.button {
		padding-top: 10px;
		width: 300px;
		height: 50px;
		font-size: 20px;
	}
	.dropdown {
		display:inline-block;
		margin: 0;
	}
	.dropdown .dropdownBtn {
		z-index:3;
	}
	.dropdownContent {
		margin:0;
		display:none;
		position: absolute;
		min-width: 160px;
		box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
		z-index: 1;
		color: #fff;
		background: #101010;
		background: -moz-linear-gradient(bottom, #101010 0%, #3a3a3a 36%, #101010 100%);
		background: -webkit-linear-gradient(bottom, #101010 0%,#3a3a3a 75%,#101010 100%);
		background: linear-gradient(to top, #101010 0%,#3a3a3a 75%,#101010 100%);
		filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#3a3a3a', endColorstr='#101010',GradientType=0 );
	}
	.dropdownContent a {
		display:block;
		float: none;
		text-align: left;
		padding: 2em;
		color: #fff;
	}
	.dropdownContent a:hover {
		background-color: rgb(255,255,255,.10)
	}
	.dropdown:hover .dropdownContent {
		display: block;
	}
	.activeNav {
		display: none;
	}
	#menu{
		display: none;
	}
	#callmobile {
		display:none;
	}
	.topnav {
		padding: 7px;
		margin: 0;
	}
	.cb {
		font-size: 55px;
	}
	#navbarWide {
		position: relative;
		float: right;
	}
	.navbarLinks {
		font-weight: bold;
		text-decoration: none;
		color: #f5f5f5;
		opacity: 100;
		display:inline-block;
		cursor:pointer;
		margin-left: 40px;
		padding: 5px;
		border-radius:5px;
		text-shadow: 1px 1px 2px black;
	}
	.navbarLinks:hover {
		background-color:rgba(0,0,0,0.15);
	}
	.navbarLinks:active {
		background-color:rgba(0,0,0,0.75);
	}
	#navbarWide a {
		text-decoration: none;
	}
	.navbarLinks  a:link {
		text-decoration: none;
		color:#707070;
	}
	.navbarLinks a:visited {
		text-decoration: none;
		color:#707070;
	}
	.navbarLinks a:hover {
		text-decoration: none;
		color:#707070;
	}
	.navbarLinks a:active {
		text-decoration: none;
		color:#707070;
	}
}

@media all and (max-width: 767px) {
  .button {
    width: 80%;
  }
  .navbarLinks {
    display: block;
    text-align: center;
    margin: 10px 0;
  }
}

body, html {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}
img {
    max-width: 100%;
    height: auto;
}
.container {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
}

.column {
    flex: 0 0 45%; /* Adjust column width */
    text-align: center;
    margin: 10px;
}

#colImg, #colImg2 {
    max-width: 80%; /* Limit maximum width of images */
    height: auto;
    margin: 0 auto;
    display: block;
}

.button img {
    display: inline-block; /* Ensure images align with text properly */
    vertical-align: middle; /* Align images vertically within the button */
    margin: 0; /* Remove any unwanted margins */
    padding: 0; /* Remove padding that might interfere with alignment */
    max-height: 20px; /* Set a maximum height for images to fit nicely */
}

.button {
    width: 50%; /* Set button width to 50% */
    max-width: 300px; /* Optional: Set a maximum width for better scalability */
    margin: 0 auto; /* Center the button within its container */
}

@media only screen and (max-width: 767px) {
    .button {
        margin-top: 20px; /* Adds space above the button on mobile devices */
    }
}

@media only screen and (max-width: 767px) {
    #colImg, #colImg2 {
        width: 100%; /* Make images full width on mobile */
        max-width: 100%; /* Ensure they don’t exceed the container width */
        height: auto; /* Maintain aspect ratio */
    }
}
