:root {
  --cliphouse-page-width: 773px;
}

body {
  background-color: #fff;
  color: #000;
  font-size: 9pt;
  font-family: 'Lucida Grande', Sans-Serif, Arial;
  line-height: 18px;
  margin: 0;
  padding: 0;
}

a img { border: none; }
a { color: #1e90ff; text-decoration: none; }
a:hover { text-decoration: underline; }
form { margin: 0; padding: 0; }
img { max-width: 100%; }

table { border-collapse: collapse; }

.container-fixed {
  width: var(--cliphouse-page-width);
  max-width: var(--cliphouse-page-width);
  margin-left: auto;
  margin-right: auto;
}

.site-header {
  margin-top: 20px;
  margin-left: auto;
  margin-right: auto;
}
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}
.brand img { display: block; }
.service {
  font-family: Trajan Pro, Verdana, Arial;
  margin-bottom: 10px;
  text-align: right;
}
.pageheader {
  margin-top: 2px;
}
.home-pageheader {
  margin-top: 8px;
}
.page-header-row-modern {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 0;
}
.page-login-wrap {
  background: url('/static/images/page_header_bg.png') no-repeat right top;
  min-height: 45px;
}
.page-login {
  margin-top: 2px;
}
.merchant-top-login-form {
  margin: 0;
}
.merchant-top-login-row {
  display: inline-flex;
  gap: 4px;
  align-items: center;
}
.merchant-top-login-input {
  border: 1px solid #999;
  color: #555;
  font-size: 8pt;
  padding-left: 5px;
  vertical-align: middle;
}
.merchant-top-login-email {
  width: 135px;
}
.merchant-top-login-password {
  width: 130px;
}
.merchant-top-login-button,
.btn {
  background-color: #004388;
  border: none;
  color: #fff;
  cursor: pointer;
  font-family: Trajan Pro, Verdana, Arial;
  font-size: 8pt;
  height: 17px;
  padding: 0 10px;
}
.merchant-top-login-meta {
  display: flex;
  justify-content: space-between;
  font-size: 8pt;
  margin-top: 2px;
}
.merchant-top-login-title,
.merchant-top-login-link {
  color: #000;
}
.merchant-top-login-link {
  text-align: left;
}

.legacy-nav {
  background: url('/static/images/nav_bg.png') no-repeat left top;
  height: 23px;
  width: var(--cliphouse-page-width);
  margin-top: 8px;
  display: flex;
  align-items: center;
  padding-left: 17px;
  gap: 20px;
  box-sizing: border-box;
}
.legacy-nav a {
  color: #fff;
  text-decoration: none;
}
.legacy-nav a:hover,
.legacy-nav a.active { color: #98FB98; }

.merchant-page-banner {
  background: url('/static/images/page_header_bg.png') no-repeat left top;
  color: #fff;
  display: block;
  flex: 1 1 auto;
  font-family: Trajan Pro, Verdana, Arial;
  font-size: 14pt;
  height: 45px;
  line-height: 45px;
  min-width: 0;
  padding-left: 130px;
  text-decoration: none;
}
.merchant-page-banner:hover {
  color: #98fb98;
  text-decoration: none;
}
.home-title-link {
  color: #fff;
  display: inline-block;
  font-family: 'Lucida Grande', Sans-Serif, Arial;
  font-size: 10pt;
  margin-top: 18px;
  text-decoration: none;
}
.home-title-link span { font-size: 14pt; }

.main-wrap {
  background: url('/static/images/about_bg.png') no-repeat top center;
  background-color: #d1d2d4;
  margin: 2px auto;
  padding: 5px;
  box-sizing: border-box;
}
.home-wrap {
  background: none;
  padding: 0;
}

.homebanner {
  background: url('/static/images/banner_home.jpg') no-repeat 6px 5px;
  background-color: #d1d2d4;
  height: 249px;
  width: 773px;
}
.homebanner .maintxt {
  color: #5d5d5d;
  font-family: Times New Roman, Arial;
  font-size: 27pt;
  padding: 100px 0 0 60px;
  text-align: center;
  width: 300px;
}
.homebanner .maintxt .sub1 { font-size: 14pt; }
.homebanner .maintxt .sub2 { font-size: 10pt; line-height: 25px; }
.homebanner .subtxt {
  font-size: 7pt;
  margin: 60px 0 0 380px;
  line-height: normal;
  text-align: right;
  width: 150px;
}
.homebot {
  background-color: #fff;
  margin: 4px 0;
  width: 100%;
}
.homebot span { display: inline-block; }
.homebot .botleft {
  background: url('/static/images/home_tech_bg.jpg') no-repeat left top;
  line-height: 25px;
  margin-left: 5px;
  margin-right: 20px;
  padding-left: 207px;
  text-align: left;
  width: 172px;
}
.homebot .botleft a { color: #000; }
.homebot .botleft a span { color: #fff; }

.pagecontent {
  width: 100%;
  margin: 0 auto;
}
.pagecontent .subcol {
  padding-top: 20px;
  vertical-align: top;
  width: 245px;
}
.pagecontent .maincol {
  background-color: #fff;
  line-height: 18px;
  vertical-align: top;
  width: 516px;
}

.aboutsubmenu {
  background-color: #777;
  margin: 0 16px 0 10px;
  padding: 5px;
  width: 210px;
}
.aboutsubmenu ul {
  border: solid 1px #fff;
  margin: 0;
  padding: 10px 0 70px;
  list-style: none;
}
.aboutsubmenu ul a {
  color: #fff;
  display: block;
  font-family: Trajan Pro, Verdana, Arial;
  font-size: 10pt;
  padding: 7px 0 7px 10px;
  text-decoration: none;
}
.aboutsubmenu ul a:hover,
.aboutsubmenu ul a.active { color: #98fb98; }

.about { background: url('/static/images/about_content_bg.png') repeat-y left top; padding: 10px 20px 20px 50px; width: 446px; }
.aboutwelcome { background-color: #fff; padding: 10px 20px 20px 50px; width: 446px; }
.aboutwelcome p { line-height: 20px; margin-left: 20px; }
.aboutwelcome .p1st { margin-top: 10px; }
.about .ordertitle { color: #000; font-size: 11pt; font-weight: bold; text-decoration: underline; }
.merchant-placeholder-panel {
  min-height: 260px;
}
.merchant-placeholder-title {
  color: #27aae1;
  font-size: 15pt;
  margin: 20px 0 10px;
  text-align: center;
}
.merchant-data-panel {
  padding-bottom: 30px;
}
.merchant-data-section {
  margin: 16px 20px;
}
.merchant-data-heading {
  color: #000;
  font-size: 11pt;
  font-weight: bold;
  margin-bottom: 8px;
  text-decoration: underline;
}
.merchant-note-list {
  margin: 0 0 0 18px;
  padding: 0;
}
.merchant-note-list li {
  margin-bottom: 12px;
}
.admin-placeholder-panel {
  min-height: 260px;
}
.admin-placeholder-title {
  color: #27aae1;
  font-size: 15pt;
  margin: 20px 0 10px;
  text-align: center;
}
.admin-login-form {
  margin: 20px auto 0;
  width: 320px;
}
.admin-login-row {
  margin-bottom: 12px;
}
.admin-login-label {
  display: block;
  font-weight: bold;
  margin-bottom: 4px;
}
.admin-login-actions {
  margin-top: 16px;
  text-align: right;
}
.admin-login-form .txtb {
  width: 100%;
  box-sizing: border-box;
}

.abouttopten { background: url('/static/images/about_content_bg.png') repeat-y left top; padding: 7px 20px 20px 50px; width: 446px; }
.abouttopten .toptentitle { font-size: 14pt; line-height: normal; text-align: center; }
.abouttopten .toptentitle span { font-size: 20pt; }
.abouttopten td { font-size: 10pt; line-height: 18px; padding: 5px 0 12px; vertical-align: top; }
.abouttopten td:first-child { padding: 0 18px 12px 0; text-align: right; }
.abouttopten td span { font-size: 14pt; }

.techcontent { background-color: #fff; padding: 20px; }
.centered-panel {
  margin: 0 auto;
}
.techheadertxt { font-family: Arial; font-size: 11pt; margin-bottom: 20px; }
.techtb td { padding: 0 15px 20px 0; vertical-align: middle; }
.techtb .phasenum { font-weight: bold; }
.techtb .phasetxt1, .techtb .phasetxt2 { font-family: Arial; line-height: 18px; width: 250px; }
.techtb .phasetxt1 { padding-right: 25px; }
.techtb .phasetxt2 { padding-right: 0; }
.techtb .enlargetxt { font-family: Trajan Pro, Verdana, Arial; }

.proddiv { margin-bottom: 45px; }
.proddiv .prodtitle { background-color: #d5eef9; font-size: 12pt; font-weight: bold; margin-bottom: 10px; padding: 5px 0 5px 15px; }
.proddiv .prodimg { margin-left: 15px; }
.proddiv .prodimg img { border: solid 2px #d5eef9; margin: 0 15px 15px 0; }
.proddiv .prodimg img:hover { border-color: #27aae1; }

.image-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  pointer-events: none;
}
.image-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  transition: background 0.22s ease;
}
.image-modal-content {
  position: relative;
  z-index: 1001;
  max-width: 90vw;
  max-height: 90vh;
  margin: 5vh auto;
  width: fit-content;
  background: #fff;
  padding: 10px;
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.22s ease, transform 0.22s ease;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
}
.image-modal.open {
  pointer-events: auto;
}
.image-modal.open .image-modal-backdrop {
  background: rgba(0, 0, 0, 0.75);
}
.image-modal.open .image-modal-content {
  opacity: 1;
  transform: scale(1);
}
.image-modal-content img {
  display: block;
  max-width: 100%;
  max-height: calc(90vh - 20px);
}
.image-modal-close,
.image-modal-nav {
  position: absolute;
  border: none;
  border-radius: 50%;
  background: #004388;
  color: #fff;
  cursor: pointer;
  text-align: center;
}
.image-modal-close {
  top: -12px;
  right: -12px;
  width: 30px;
  height: 30px;
  font-size: 18px;
  line-height: 30px;
}
.image-modal-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  font-size: 24px;
  line-height: 34px;
}
.image-modal-nav.prev { left: -42px; }
.image-modal-nav.next { right: -42px; }

.gallery-page { background-color: #eef9fd; }
.inline-gallery {
  width: 700px;
  margin: 0 auto;
}
.gallery-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 450px;
}
.gallery-stage-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 450px;
  overflow: hidden;
}
#gallery-main-image {
  max-width: 100%;
  max-height: 450px;
  opacity: 0;
  transition: opacity 0.22s ease;
}
#gallery-main-image.is-visible {
  opacity: 1;
}
.gallery-controls {
  margin: 8px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.gallery-position,
.gallery-countdown {
  display: inline-block;
  margin-right: 8px;
  font-size: 9pt;
}
.gallery-thumb-rail {
  display: flex;
  align-items: center;
  gap: 8px;
}
.gallery-thumb-strip {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 8px 0;
  flex: 1;
  scroll-behavior: smooth;
  scrollbar-width: thin;
}
.gallery-thumb {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  opacity: 0.7;
  flex: 0 0 auto;
}
.gallery-thumb.active,
.gallery-thumb:hover {
  opacity: 1;
}
.gallery-thumb img {
  border: solid 2px #d5eef9;
  display: block;
  height: 60px;
  width: auto;
}
.gallery-thumb.active img,
.gallery-thumb img:hover {
  border-color: #27aae1;
}
.gallery-nav,
.gallery-thumb-nav {
  background: rgba(0, 67, 136, 0.9);
  border: none;
  color: #fff;
  cursor: pointer;
  font-size: 28px;
  height: 40px;
  line-height: 40px;
  margin: 0 10px;
  text-align: center;
  width: 40px;
}
.gallery-thumb-nav {
  flex: 0 0 auto;
  margin: 0;
  font-size: 22px;
}

.framesearch { margin: 10px; }
.framesearch .headtxt { font-size: 8pt; }
.framesearchform {
  background-color: #ececec;
  border: solid 4px #b3b3b3;
  margin: 0 auto;
  padding: 10px;
  text-align: left;
  width: 200px;
}
.framesearchform div { margin-bottom: 10px; }
.framesearchform .tb { width: 190px; border: solid 1px #999; font-size: 8pt; padding-left: 5px; }
.framesearchform .title { font-weight: bold; text-align: left; }
.frametb { margin-bottom: 80px; }
.legacy-table { width: 100%; }
.legacy-table a { color: #27aae1; }
.legacy-table td { border-bottom: solid 1px #efefef; padding: 2px 4px; vertical-align: top; }
.legacy-table th { background-color: #d5eef9; border-bottom: solid 1px #fff; border-right: solid 1px #fff; padding-left: 4px; text-align: center; }
.legacy-table tr:hover { background-color: #eef9fd; }
.center { text-align: center; }
.empty-state { padding: 12px; }

.contact {
  background-color: #d9eee7;
  border: solid 4px #b3b3b3;
  text-align: center;
  margin: 0 auto;
  padding: 10px 0;
  width: 210px;
}
.contact a { color: #000; }
.contact a:hover { color: #32cd32; }
.mapoutter {
  border: solid 4px #2d5765;
  height: 290px;
  margin: 20px 0 200px 20px;
  width: 468px;
}
.map-frame {
  border: 0;
  width: 468px;
  height: 290px;
}

.merchant { margin: 10px; margin-bottom: 40px; }
.merchant .title1 {
  color: #27aae1;
  font-size: 15pt;
  margin: 50px 0 20px;
  text-align: center;
}
.merchant .tblogon { margin: 0 auto 10px auto; }
.merchant .tblogon td { padding-bottom: 10px; }
.merchant .tblogon td:first-child { padding-right: 15px; }
.merchant .txtb { border: solid 1px #999; width: 250px; font-size: 8pt; }
.merchant .forgotpwd { margin-left: 10px; }
.merchant .forgotpwd a {
  color: #fff;
  display: inline-block;
  font-family: Trajan Pro, Verdana, Arial;
  font-size: 8pt;
  padding: 0 10px;
  text-decoration: none;
}
.merchant .merbtn1 { margin: 5px 0 350px; }
.merchant .joinmer { margin-top: 15px; }
#regresult { color: red; line-height: normal; margin-top: 5px; }

.site-footer {
  height: 65px;
  padding-bottom: 20px;
  display: flex;
  margin-left: auto;
  margin-right: auto;
}
.footer-join {
  background: url('/static/images/footer_join_bg.png') no-repeat left top;
  width: 385px;
}
.footer-join a {
  color: #fff;
  display: block;
  margin: 9px 0 0 2px;
  padding-left: 15px;
  width: 255px;
}
.footer-join a:hover,
.footer-products:hover { color: #98fb98; }

@media (max-width: 820px) {
  .container-fixed,
  .legacy-nav,
  .homebanner,
  .site-footer,
  .inline-gallery {
    width: 100%;
  }
  .topbar,
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }
  .pagecontent,
  .pagecontent tbody,
  .pagecontent tr,
  .pagecontent td {
    display: block;
    width: 100% !important;
  }
  .mapoutter,
  .map-frame {
    width: 100%;
    margin-left: 0;
  }
  .pageheader,
  .page-header-row-modern,
  .page-login-wrap,
  .page-login,
  .merchant-page-banner {
    display: block;
    width: 100%;
  }
  .home-title-link {
    margin-top: 0;
  }
  .gallery-stage {
    min-height: auto;
  }
  .gallery-stage-inner {
    min-height: auto;
  }
  #gallery-main-image {
    max-height: 320px;
  }
}
