/*
 * Vijlax Technologies - static HTML5 rebuild of the original Joomla/Artisteer
 * template "vijlax_j3_v6". Desktop values (>= 1000px) match the original
 * template exactly; smaller screens get a fluid, stacked layout.
 */

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html, body { height: 100%; }
html { -ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  padding: 0;
  color: #545454;
  background: #394165;
}

h1, h2, h3, h4, h5, h6, p, a, ul, ol, li { margin: 0; padding: 0; }
ul { list-style-type: none; }
img { border: 0; }

/* Visually hidden, still read by screen readers */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.clearfix::after { content: ""; display: block; clear: both; }

/* ---------- Page frame ---------- */
#art-main {
  position: relative;
  width: 100%;
  min-height: 100%;
  background: #394165;
  font-size: 13px;
  font-family: Ubuntu, Arial, 'Arial Unicode MS', Helvetica, sans-serif;
  font-weight: normal;
  font-style: normal;
  cursor: default;
  overflow: hidden;
}

.art-sheet {
  position: relative;
  width: 1000px;
  margin: 0 auto;
  background: #fff;
  cursor: auto;
  /* Fill at least the whole screen so the footer always reaches the bottom */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.art-sheet::after { display: none; }
/* Keep header and footer full width inside the column layout */
.art-sheet > .art-header,
.art-sheet > .art-footer { width: 100%; }

/* ---------- Header ---------- */
.art-header {
  position: relative;
  height: 125px;
  margin: 0 auto;
  background-color: #27bbbb;
  background-image: url("../templates/vijlax_j3_v6/images/object553993360.jpg"),
                    url("../templates/vijlax_j3_v6/images/header.jpg");
  background-repeat: no-repeat;
  /* The 1920px artwork is centred over the 1000px sheet (= -460px offset) */
  background-position: center 0, 0 0;
}

.art-logo {
  position: absolute;
  top: 0;
  left: 1.55%;
  margin-left: -4px;
  z-index: 101;
  width: 288px;
  height: 125px;
}
.art-logo img { display: block; width: 288px; height: 125px; }
.art-logo a { display: block; }

/* ---------- Main navigation ---------- */
.art-nav {
  position: absolute;
  top: 40px;
  right: 0;
  width: 100%;
  margin: 0;
  z-index: 100;
  text-align: right;
}

.art-menu-btn { display: none; }

ul.art-hmenu {
  display: inline-block;
  vertical-align: bottom;
  margin: 0;
  padding: 0;
  list-style-type: none;
}
ul.art-hmenu::after { content: ""; display: block; clear: both; }

ul.art-hmenu > li {
  position: relative;
  display: block;
  float: left;
  margin: 0 0 0 2px;
}
ul.art-hmenu > li:first-child { margin-left: 1px; }
ul.art-hmenu > li:last-child { margin-right: 1px; }

ul.art-hmenu > li > a {
  position: relative;
  display: block;
  height: 40px;
  padding: 0 26px;
  margin: 0 auto;
  border: 1px solid transparent;
  border-radius: 3px;
  background: #39d5d5;
  color: #fff;
  font-size: 13px;
  font-family: Battambang, Arial, 'Arial Unicode MS', Helvetica, sans-serif;
  font-weight: bold;
  line-height: 38px;
  text-align: left;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
}
ul.art-hmenu > li > a:hover,
ul.art-hmenu > li > a.active {
  background: #1b7e7e;
  color: #fff;
  text-decoration: none;
}

/* ---------- Content ---------- */
.art-layout-wrapper { position: relative; margin: 0 auto; width: 100%; flex: 1 0 auto; }

.art-content-layout {
  display: table;
  width: 100%;
  table-layout: fixed;
}
.art-content-layout-row { display: table-row; }
.art-layout-cell {
  display: table-cell;
  vertical-align: top;
}

.art-postcontent { text-align: left; }
.art-postcontent .art-content-layout { border-collapse: collapse; }

.art-postcontent,
.art-postcontent li,
.art-postcontent table {
  font-size: 14px;
  font-family: Ubuntu, Arial, 'Arial Unicode MS', Helvetica, sans-serif;
  line-height: 150%;
}

.art-postcontent p { margin: 0 0 12px; }

.art-postcontent a,
.art-postcontent a:link {
  font-family: Ubuntu, Arial, 'Arial Unicode MS', Helvetica, sans-serif;
  text-decoration: underline;
  color: #df4f66;
}
.art-postcontent a:visited {
  text-decoration: none;
  color: #bababa;
}
.art-postcontent a:hover {
  text-decoration: none;
  color: #394165;
}

.art-postcontent h1,
.art-postcontent h2,
.art-postheader {
  font-family: Battambang, Arial, 'Arial Unicode MS', Helvetica, sans-serif;
  font-weight: normal;
  font-style: normal;
  text-transform: uppercase;
  line-height: 120%;
}

.art-postcontent h1 {
  color: #27bbbb;
  margin: 10px 0 0;
  font-size: 26px;
  letter-spacing: -1px;
  word-spacing: 0;
}

.art-postcontent h2 {
  color: #2dd2d2;
  margin: 10px 0 5px;
  font-size: 16px;
  line-height: 150%;
}

/* Home page: the column titles are subheadings (h2) and the icons above them
   plain blocks, but both keep the look they had as h1 headings */
.art-postcontent h2.column-title,
.art-postcontent .icon-heading {
  margin: 10px 0 0;
  font-family: Battambang, Arial, 'Arial Unicode MS', Helvetica, sans-serif;
  font-size: 26px;
  line-height: 120%;
  letter-spacing: -1px;
  word-spacing: 0;
  text-align: center;
}
.art-postcontent h2.column-title { color: #27bbbb; }

/* Contact Us heading above the address */
.art-article .contact-address h1 { margin-bottom: 10px; }

/* Page title on the legal pages (Disclaimer, Privacy Policy, Terms) */
.art-postheader {
  color: #27b9b9;
  margin: 25px 10px -10px 20px;
  font-size: 44px;
}

.art-postcontent ul { margin: 1em 0 1em 11px; }
.art-postcontent li {
  color: #696969;
  margin: 12px 0 0 0;
  padding: 0 0 0 10px;
  overflow-x: visible;
  overflow-y: hidden;
}
.art-postcontent ul > li::before {
  content: url("../templates/vijlax_j3_v6/images/postbullets.png");
  position: relative;
  bottom: 2px;
  display: inline-block;
  vertical-align: middle;
  margin: 0 6px 0 -10px;
  font-size: 0;
  line-height: 0;
}

.art-article img { margin: 0; }
.art-article table { border-collapse: collapse; margin: 1px; }
.art-article th, .art-article td { padding: 2px; vertical-align: top; text-align: left; }

/* Contact Us address block (keeps the original 256px of space below the banner) */
.art-article .contact-address { min-height: 256px; text-align: center; }
.art-article .contact-address p { text-align: center; }

/* Full-width banner image at the top of each page */
.art-article .hero { margin: 0 0 12px; }
.art-article .hero img { width: 100%; height: auto; }

/* ---------- Footer ---------- */
.art-footer {
  position: relative;
  margin: 0 auto;
  background: #df4f66;
  color: #fff;
  font-size: 13px;
  font-family: Ubuntu, Arial, 'Arial Unicode MS', Helvetica, sans-serif;
  line-height: 175%;
  text-align: left;
}

.art-footer a,
.art-footer a:link {
  color: #fff;
  font-size: 13px;
  font-family: Ubuntu, Arial, 'Arial Unicode MS', Helvetica, sans-serif;
  line-height: 175%;
  text-decoration: none;
}
.art-footer a:visited { color: #4f4f4f; }
.art-footer a:hover { color: #394165; }

.art-footer p { margin: 0 0 12px; padding: 0; text-align: left; }
.art-footer img { border: none; margin: 0; }

/* The two columns size to their text and sit centred in the footer as a pair */
.art-footer .layout-item-0 { width: auto; margin: 0 auto; table-layout: auto; border-spacing: 0 12px; border-collapse: separate; }
.art-footer .layout-item-1 { padding: 0 50px 25px 25px; vertical-align: top; }
.art-footer .layout-item-2 { padding: 20px 25px 25px 50px; vertical-align: top; }

.art-footer .footer-links { padding-top: 20px; text-align: center; font-size: 14px; }
/* Same row spacing as the copyright lines on the right */
.art-footer .footer-links + .footer-links { padding-top: 0; }
.art-footer .footer-links span { font-size: inherit; }
.art-footer .footer-links .sep { margin: 0 24px 0 20px; }
.art-footer .center { text-align: center; }
.art-footer .footer-links a,
.art-footer .footer-links a:link { font-size: inherit; line-height: inherit; white-space: nowrap; }
.art-footer .center span { font-size: inherit; }
/* Copyright lines match the footer links size */
.art-footer .layout-item-2 .center { font-size: 14px; }

/* =====================================================================
   Responsive
   ===================================================================== */

/* Tablet & phone: fluid sheet, collapsible menu */
@media (max-width: 999px) {
  .art-sheet {
    width: auto;
    margin: 0 1%;
  }

  .art-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: auto;
    min-height: 100px;
    text-align: center;
    background-color: #39d5d5;
    background-image: url("../templates/vijlax_j3_v6/images/header.jpg");
    background-position: center center;
    background-size: cover;
  }

  .art-logo {
    position: relative;
    display: inline-block;
    left: auto;
    margin: 0 auto;
    width: auto;
    height: auto;
    max-width: 100%;
  }
  .art-logo img { width: 288px; max-width: 100%; height: auto; }

  /* Menu bar sits above the logo, hamburger on the right */
  .art-nav {
    order: -1;
    position: relative;
    top: 0;
    width: 100%;
    text-align: right;
    background: #fff;
  }

  .art-menu-btn {
    display: inline-block;
    width: 32px;
    height: 32px;
    margin: 3px;
    padding: 5px;
    border: 1px solid #404040;
    border-radius: 3px;
    box-shadow: 0 0 3px 0 rgba(0, 0, 0, .2);
    background: linear-gradient(to bottom, #707070 0, #000 100%);
    cursor: pointer;
    vertical-align: bottom;
  }
  .art-menu-btn span {
    display: block;
    height: 3px;
    margin: 3px 1px;
    border-radius: 2px;
    background: #e0e0e0;
    transition: background .2s;
  }
  .art-menu-btn:hover span,
  .art-menu-btn:focus span { background: #f3f3f3; }

  ul.art-hmenu {
    display: none;
    width: 100%;
    text-align: left;
  }
  .art-nav.open ul.art-hmenu { display: block; }

  ul.art-hmenu > li,
  ul.art-hmenu > li:first-child,
  ul.art-hmenu > li:last-child {
    float: none;
    margin: 1px 0;
  }

  ul.art-hmenu > li > a {
    height: auto;
    padding: 6px 20px;
    line-height: 26px;
    text-align: center;
  }

  /* Content columns stack */
  .art-content-layout,
  .art-content-layout-row,
  .art-layout-cell {
    display: block;
  }
  .art-postcontent .art-layout-cell { width: auto !important; }

  .art-content-layout img { max-width: 100%; height: auto; }
  .art-postcontent .art-layout-cell p > img { display: block; margin-left: auto; margin-right: auto; }

  .art-article table { width: 100% !important; max-width: 100%; height: auto !important; }

  /* Legal pages: give the text a gutter so it does not touch the screen edge */
  .art-postheader { margin: 20px 16px 0; font-size: 34px; }
  .art-post.legal .art-postcontent { padding: 0 16px 16px; }

  /* Footer columns stack and centre */
  .art-footer .art-content-layout,
  .art-footer .art-content-layout-row,
  .art-footer .art-layout-cell {
    display: block;
    width: auto !important;
  }
  .art-footer .layout-item-1 { padding: 0 16px; }
  .art-footer .layout-item-2 { padding: 0 16px 16px; }
}

/* Phones */
@media (max-width: 767px) {
  .art-sheet { margin: 0; }

  .art-postheader { font-size: 28px; }

  .art-postcontent h1,
  .art-postcontent h2.column-title,
  .art-postcontent .icon-heading { font-size: 24px; }

  .art-article .contact-address { min-height: 0; }

  /* Justified text leaves wide gaps between words on narrow screens */
  .art-postcontent [style*="text-align: justify"] { text-align: left !important; }

  .art-postcontent .art-layout-cell { padding-left: 16px !important; padding-right: 16px !important; }

  .art-footer .footer-links .sep { margin: 0 10px; }
}

@media (max-width: 400px) {
  .art-postheader { font-size: 24px; }
}

/* Too narrow for one row: drop the separators and let the links wrap */
@media (max-width: 359px) {
  .art-footer .footer-links .sep { display: none; }
  .art-footer .footer-links:first-child a { display: inline-block; margin: 0 8px; }
}
