body {
	background: #333333 url(Backgrd.jpg) repeat;
	margin: 0; /* shorthand for all margins = 0 */
	padding: 0; /* no padding */
}


p, li, h1 {
	font-family: "Mozilla Headline", sans-serif;
	font-size: .75em;
}

h2 {
	font-family: "Long Cang", sans-serif;
	font-size: 1.5em;
	color: #fff;
	text-align: center;
	margin: 0;
	padding: 0;
}


#mainDiv {
	background: transparent no-repeat;
	width: 80%;
	/*height: 800px;*/
	margin: 0 auto;
	/*min-height: 800px;
	 max-height:1000px;
	 min-width: 1000px;*/
	max-width: 820px;
}

#logo {
	width: auto;
	height: 136px;
	margin-top: 60px;
}

/* ====== navBar ====== */
#navBar {

	margin-top: 28px;
}

.active {
	background-color: #891A1C;
}
#active {
	background-color: #891A1C;
}

/*====dropdown menu=====*/
#navBar ul {
	list-style-type: none;
	margin: 0;
	padding: 0;
	overflow: hidden;
	background-color: #808080;
}

#navBar li {
	float: right;
	margin: 0; /* shorthand for all margins = 0 */
}

#navBar li a, .dropbtn {
	display: block;
	color: white;
	text-align: center;
	padding: 8px 20px;
	text-decoration: none;
}

#navBar li a:hover, .dropdown:hover .dropbtn {
	background-color: #891A1C;
}

#navBar li.dropdown {
	display: block;
}

#navBar .dropdown-content {
	display: none;
	position: absolute;
	background-color: #808080;
	box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
	z-index: 1;
}

#navBar .dropdown-content a {
	color: white;
	padding: 8px 16px;
	text-decoration: none;
	display: block;
	text-align: left;
}

#navBar .dropdown-content a:hover {
	background-color: #891A1C
}

#navBar .show {
	display: block;
}

/* ====== mainContent homepage ====== */
#mainContent {
	position: relative;
	margin-top: 30px;
	padding: 0;
}

/* ====== mainContent Homepage====== */
#mainContent p {
	font-family: "Verdana", sans-serif;
	color: #fff;
	font-size: .75em;
	margin: 0;
	padding: 2px;
	/*border-top: #FFFFFF solid 1px;
	 border-bottom: #FFFFFF solid 1px;*/
}
#mainContent a {
	color: #fff;
	text-decoration: none;
	display: block;
}

/* (desktop) layout*/
.maincontainerlayout {
	  display: flex;
}
.box {
      flex: 1;
}
/* end of (desktop) layout*/
.container {
	position: relative;/*as a container for description*/
}
.center {
	position: absolute;
	left: 0;
	top: 50%;
	width: 100%;
	text-align: center;
	font-size: 18px;
}
#mainContentLeftColumn {
	float: left;
	width: 54.28%;
	padding: 0 1.2195% 1.9% 0;
}
#InsideLeftColumnUp {
	padding: 0 0 1.9% 0;
	background: #333333;
}
#InsideLeftColumnDown {
	padding: 0;
	background: #333333;
}

#mainContentRightColumn {

	float: right;
	padding: 0;
	width: 44.5%;
}
#InsideRightColomnRight {

	float: right;
	width: 100%;
	padding: 0;
	background: #333333;
}

#InsideRightColomnBottom {
	clear: both;
	padding: 2.8% 0 0 0;
	background: #333333;
}
#SquareImageUp {
	padding: 0 0 3.8% 0;
	background: #333333;
}
#SquareImageLow {
	margin: 0;
	padding: 0;
	background: #333333;
}

#mainContent img {
	width: 100%;/*flexible images*/
	height: auto; /*flexible images*/
	width: auto\9; /* ie8 */
	padding: 0;
	margin: 0;
	display: block;
}

#mainContentLeftColumn img, #mainContentRightColumn img {
	opacity: 0.7;
	filter: alpha(opacity=70); /* For IE8 and earlier */
}

/* ====== mainContent Portfolio====== */

#mainContentLeftColumn_sideBar {
	width: 22%;
	float: left;
	/*word-wrap: break-word;*/
}

#mainContentLeftColumn_sideBar ul {
	list-style-type: none;
	margin: 0;
	padding: 0;
}
#mainContentLeftColumn_sideBar li a {
	display: inline-block;
	color: white;
	text-align: left;
	padding: 8px 20px;
	text-decoration: none;
	/*font-size: 1vw;*/
}

#mainContentLeftColumn_sideBar li a:hover {
	background-color: #891A1C;
}
#mainContentRightColumn_portfolio {
	width: 100%;
	float: right;
}

#mainContentRightColumn_portfolio p {
	display: inline-block;
	margin: 10px 0;
	padding: 2px 5px;
	border-top: none;
	border-bottom: none;
	background-color: #891A1C;
}

#mainContentRightColumn_portfolio img {
	padding: 0 0 20px 0;
	border-bottom: #891A1C solid 1.5px;
}

#portfolio {
	display: none;
	margin: 0 0 10px 0;
	font-size: 1em;
	color: white;
}
/* ====== mainContent About====== */

#mainContent_about {
	position: relative;
	margin-top: 30px;
	padding: 0;
}

#mainContent_about img {
	width: 20%;
	float: left;
	margin: 0 10px 0 0;
	display: block;
}

#mainContent_about p {
	color: white;
	text-align: justify;
	line-height: 1.5;
}

/* ====== mainContent Contact====== */

#mainContent_contact {
	position: relative;
	margin-top: 30px;
	padding: 15px;
}

#mainContent_contact p, a {
	color: white;
	text-decoration: none;
}

/* ====== Back to top ====== */

.backToTop {
	position: fixed;
	bottom: 20px;
	right: 50px;
	z-index: 2;
}

.backToTop a {
	display: block;
	color: #fff;
	text-decoration: none;
	padding: 8px 10px;
	background-color: #808080;
}


#mobileBackToTop {
	font-size: 1.8em;
	display: none;
}

/* ====== footer ====== */

#footer {
	clear: both;
	background: transparent;
	padding: 5px;
}

#footer p {
	color: #808080;
	margin: 0;
	padding: 0;
	text-align: center;
}
#poweredBy p {
	color: white;
}
#poweredBy a {
	text-decoration: none;
	color: white;
}
/* ====== others ====== */

.hightlightText {
	border-bottom: #FFFFFF solid 1px;
	/*background-color: #891A1C;*/
	padding: 2px 3px;
}
.red {
	color: #891A1C;
}

.bottomcenter {
	position: absolute;
	left: 0;
	bottom: 26px;
	width: 100%;
	text-align: center;
	font-size: 1.5em;
}
.topcenter {
	position: absolute;
	left: 0;
	top: 3px;
	width: 100%;
	text-align: center;
	font-size: 1.5em;
}

/* ====== From ChatGPT ====== */

 .gallery {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
      gap: 10px;
    }
    .gallery img {
      width: 100%;
      border-radius: 8px;
      cursor: pointer;
      transition: transform 0.2s;
    }
    .gallery img:hover {
      transform: scale(1.05);
    }
    /* Lightbox */
    .lightbox {
      display: none;
      position: fixed;
      z-index: 999;
      top: 0; left: 0;
      width: 100%; height: 100%;
      background: rgba(0,0,0,0.8);
      justify-content: center;
      align-items: center;
    }
    .lightbox.active {
      display: flex;
    }
    .lightbox img {
      max-width: 80%;
      max-height: 80%;
      border-radius: 10px;
    }
    .close, .prev, .next {
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      font-size: 2rem;
      color: white;
      cursor: pointer;
      user-select: none;
      padding: 10px;
    }
    .close {
      top: 20px;
      right: 30px;
      font-size: 2.5rem;
      transform: none;
    }
    .prev { left: 30px; }
    .next { right: 30px; }

	 /* Mobile mode: when window < 768px */
    @media (max-width: 768px) {
      .maincontainerlayout {
        flex-direction: column;
      }
    }