/* html version */

/* general */

:root{
  --bg-color: #FFFFFF;
  --outline-color: #617042;
  --title-color: #062A3F;
  --content-color: #000000;

  --highlight-color: rgb(0, 38, 80);
}

@font-face {
    font-family: 'Times New Roman';
    src: url("font/LiberationSerif-Regular.ttf") format('truetype');
}
@font-face {
    font-family: 'Times New Roman';
    src: url("font/LiberationSerif-Italic.ttf") format('truetype');
    font-style: italic;
}
@font-face {
    font-family: 'Times New Roman';
    src: url("font/LiberationSerif-Bold.ttf") format('truetype');
    font-weight: bold;
}
@font-face {
    font-family: 'Times New Roman';
    src: url("font/LiberationSerif-BoldItalic.ttf") format('truetype');
    font-style: italic;
    font-weight: bold;
}

@font-face {
    font-family: calibri;
    src: url("font/calibri.ttf") format('truetype');
}

@font-face {
    font-family: calibri;
    src: url("font/calibrii.ttf") format('truetype');
    font-style: italic;
}

@font-face {
    font-family: calibri;
    src: url("font/calibrib.ttf") format('truetype');
    font-weight: bold;
}

@font-face {
    font-family: calibri;
    src: url("font/calibriz.ttf") format('truetype');
    font-weight: bold;
    font-style: italic;
}

@font-face {
    font-family: 'Cinzel';
    src: url("font/Cinzel-Regular.ttf");
    font-weight: 400;
}
@font-face {
    font-family: 'Cinzel';
    src: url("font/Cinzel-Medium.ttf");
    font-weight: 500;
}
@font-face {
    font-family: 'Cinzel';
    src: url("font/Cinzel-SemiBold.ttf");
    font-weight: 600;
}
@font-face {
    font-family: 'Cinzel';
    src: url("font/Cinzel-Bold.ttf");
    font-weight: 700;
}
@font-face {
    font-family: 'Cinzel';
    src: url("font/Cinzel-ExtraBold.ttf");
    font-weight: 800;
}
@font-face {
    font-family: 'Cinzel';
    src: url("font/Cinzel-Black.ttf");
    font-weight: 900;
}


:lang( en ){
  font-family: calibri;
}

:lang( zh ){
  font-family: msjh;
}

* {
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
}

html{
  width: 100%;
}

body{
  max-width: 500px;
  margin: auto;

  background-color: #FFFFFF;
  background-color: var( --bg-color );

  font-size: 16px;
  line-height: 1.2;
  letter-spacing: 0.015em;
  /* text-align: center; */
  text-align: justify;
  text-align-last: center;
}


h1, h2, h3, h4, h5, h6{
  color: #062A3F;
  color: var( --title-color );
  line-height: 1.2em;
}

h1{
  font-size: 2.8em;
  margin: 0;
}

h2{
  font-size: 2em;
  margin: 0;
  margin-bottom: .5em;
}

h3{
  font-size: 1.6em;
}


:lang( zh ) body{
  font-size: 13px;
  line-height: 1.25;
}

:lang( zh ) main {
  font-size: 1.15em;
}

:lang( zh ) h1{
  font-size: 2.2em;
  margin: 0 0 .5em 0;
}

:lang( zh ) h2{
  font-size: 2em;
  margin: 0 0 .5em 0;
}

:lang( zh ) h3{
  font-size: 1.4em;
  margin: 0 0 .5em 0;
}

p{
  color: #000000;
  color: var( --content-color );
}


/* margin */
header,
main > *{
  margin-left: 20px;
  margin-right: 20px;
}

main > *.no-margin{
  margin-left: 0;
  margin-right: 0;
}

h1.no-margin,
h2.no-margin,
h3.no-margin,
h4.no-margin,
h5.no-margin,
h6.no-margin,
p.no-margin,
img.no-margin{
  margin: 0;
}


/*  header  */
#remark-1{
  margin-bottom: 5px;
}

#img-ac-logo{
  width: 145px;
  max-width: 25%;
  /* max-width: 40%; */
}

#img-news-logo{
  width: 260px;
  max-width: 40%;
  -ms-flex-item-align: end;
      align-self: flex-end;
  /* margin-bottom: 20px; */
  margin: auto 0;
}

section:not( :last-child ){
  margin-bottom: 20px;
}

section.highlight-section{
  background-color: var(--highlight-color);
  padding: 5px 15px;
}
section.highlight-section * {
  color: white;
}

footer,
.deco-bar {
  width: 100%;
  height: 35px;

  background-image: url("img/pattern_deco-01.jpg");
  background-repeat: repeat;
  background-size: cover;
}

p.remark{
  font-size: .75em;
  margin: 1em 0 0 0;
}

img{
  max-width: 100%;
  -ms-flex-negative: 1;
      flex-shrink: 1;

  margin: .5em 0;
}



.mobile-only{
  display: block;
}

.desktop-only{
  display: none;
}

.flex-box{
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
}

.flex-box > div:not( :last-child ) {
  /* margin-bottom: 10px; */
}

.flex-box.flex-start,
.flex-box.flex-start.responsive
{
  align-items: flex-start;
}

.flex-box.responsive{
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}

.flex-box.separate{
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
      -ms-flex-direction: row;
          flex-direction: row;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}

.flex-box.responsive.separate{
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
}

.flex-box.three-item > .item-box {
  flex-basis: 33%;
}


.relative-wrapper{
  position: relative;
}

.absolute-wrapper{
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
}

.center-flex-wrapper{
  width: 100%;
  height: 100%;

  display: -webkit-box;

  display: -ms-flexbox;

  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}

.text-align-left{
  text-align: left;
  text-align-last: left;
}

.text-align-center{
  text-align: center;
  text-align-last: center;
}

.text-align-right{
  text-align: right;
  text-align-last: right;
}


.small-divider {
  width: 65px;
  margin:0;
}

.big-divider{
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
}

.big-divider img{
  width: 20px;
  height: 20px;
}
.big-divider hr{
  border-width: 1px;
  border-color: #617042;
  border-color: var( --outline-color );
  width: auto;
  min-width: 20px;
  flex-grow: 1;
}

.big-divider h2{
  font-family: "Times New Roman";
  font-weight: normal;
  text-transform: uppercase;
  line-height: 1.2;
  margin: 0 10px;
  flex-shrink: 1;
  /* width: min-content; */
}

:lang( zh ) .big-divider h2{
  font-weight: bold;
  padding: 0 20px;
}


.big-divider-white{
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
}

.big-divider-white img{
  width: 12px;
  height: 12px;
}

.big-divider-white hr{
  border: none;
  background: white;
  height: 2px;
  width: auto;
  min-width: 50px;
  flex-grow: 1;
}

.big-divider-white p{
  color: white;
  font-weight: bold;
  line-height: 1em;
  font-size: 1.2em;
  margin: 0 30px;
  flex-shrink: 1;
}


:lang( zh ) .big-divider h2{
  width: auto;
}

.border-box {
  border: 1px solid var( --highlight-color );
  text-align: center;
  text-align-last: center;
}

@media( min-width: 800px ){
  body{
    max-width: 800px;
    /* text-align: left; */
    /* text-align: justify; */
    text-align-last: auto;
  }


  header,
  main > * {
    margin-left: 45px;
    margin-right: 45px;
  }

  h1{
    font-size: 2.8em;
    margin: 0;
  }

  h2{
    font-size: 2.15em;
    margin: 1em 0;
  }

  h3{
    font-size: 1.6em;
  }


  :lang( zh ) body{
    /* font-size: 13px; */
    line-height: 1.25;
  }

  :lang( zh ) h1{
    font-size: 2.2em;
    margin: 0 0 .5em 0;
  }

  :lang( zh ) h2{
    /* font-size: 1.6em; */
    font-size: 2.35em;
    margin: 0 0 .5em 0;
  }

  :lang( zh ) h3{
    font-size: 1.4em;
    margin: 0 0 .5em 0;
  }

  .mobile-only{
    display: none;
  }

  .desktop-only{
    display: block;
  }

  .flex-box > div:not( :last-child ) {
    /* margin-right: 20px;
    margin-bottom: unset; */
  }

  .flex-box.responsive{
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
        -ms-flex-direction: row;
            flex-direction: row;
    -webkit-box-pack: justify;
        -ms-flex-pack: justify;
            justify-content: space-between;
  }

  .flex-box.responsive.separate{
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
        -ms-flex-direction: row;
            flex-direction: row;
  }

  .flex-box > .text-box {
    width: 100%;
  }

  .flex-box > .text-box:first-child {
    padding-right: 25px;
  }
  .flex-box > .text-box:last-child {
    padding-left: 25px;
  }

  .flex-box > .text-box h2 {
    margin-top: 0;
    margin-bottom: .5em;
  }

  .flex-box > .img-box{
    flex-shrink: .7;
  }

  footer{
    height: 60px;
  }


}




/* custom */

:root{
  --highlight-red-color: #7F0505;
}

body {
  border: var(--highlight-red-color) solid 8px;
  text-align-last: auto;
}

header {
  background-image: url("img/leaflet_design_resources(Feb 2023)-02.png");
  background-size: contain;
  background-position: top center;
  background-repeat: no-repeat;

  margin: 0;
  padding: 0 25px;
  margin-bottom: 100px;

  position: relative;
}

header * {
  color: var( --bg-color );
}

header #img-ac-logo{
  margin-right: -20px;
}

header h1 {
  margin-top: .5em;
  margin-bottom: .5em;
  text-shadow: 2px 2px 6px var( --content-color );
}

header .left {
  width: calc( 100% - 120px );
  text-align: left;
}
header .right {
  width: calc( 100% - 150px );
}

header h1 img {
  margin: 0;
  width: 60px;
  vertical-align: top;
}

header h2 {
  font-size: 1.45em;
  color: var( --highlight-red-color );
}

header .header-info-con{
  position: absolute;
  
  text-align: right;

  top: 175px;
  right: 15px;
}

header .header-info-con .thumbnail {
  width: 120px;
}

header .header-info-con .thumbnail-description {
  transform: scale(.85);
  transform-origin: top right;
}

header .header-info-con .thumbnail-description * {
  font-size: 12px;
  font-family: calibri;
  color: var( --content-color );
  margin: 0;
}


:lang(zh) header h1 {
  font-size: 3.5em;
}

:lang(zh) header h2 {
  font-size: 1.7em;
}

:lang(en) header{
  margin-bottom: 35px;
}

:lang(en) header h1 {
  font-family: "Cinzel";
  font-weight: normal;
  font-size: 2em;
  margin-top: 0;
}

:lang(en) header h2 {
  font-size: 1em;
  width: 70%;
  font-style: italic;
}


#section-1 h2 {
  font-size: 2.5em;
  margin-bottom: .5em;
}


#section-2 h2 {
  font-size: 2.35em;
  margin: 0;
}


:lang(en) #section-2 h2 {
  font-size: 2em;
}

#section-3 .flex-box {
  margin-left: 20px;
  margin-right: 20px;
}
#section-3 .text-box {
  text-align: center;
}


#section-3 .text-box h2 {
  margin: 1em 0;
}

#section-3 .img-box {
  max-width: 300px;
  margin: auto;
}

#section-3 .discount-con > p { 
  margin-left: 10px;
  margin-right: 10px;
}

#section-3 .discount-con b {
  color: var( --highlight-color );
}

#section-3 .discount-con .table {
  display: flex;
  flex-direction: column;
  
  text-align: left;
}

#section-3 .discount-con .table .table-row {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  background-color: #EFEDE6;

  padding: 5px;
  min-height: 65px;
}

#section-3 .discount-con .table .table-row:nth-child( 2n ) {
  background-color: #FAF8F3;
}

#section-3 .discount-con .table .table-header,
#section-3 .discount-con .table .table-cell {
  display: inline;
  margin: auto 0;
}

#section-3 .discount-con .table .table-header {
  color: var( --highlight-color );
  font-weight: bold;
  width: 125px;

  padding: 10px;
}
#section-3 .discount-con .table .table-cell {
  width: calc( 100% - 125px );
}

:lang(en) #section-3 .text-box h2 {
  margin: .5em 0;
}

:lang(en) #section-3 .discount-con b {
  font-style: italic;
}

#tj-qr-code{
  width: 200px;
}

#section-4 h2 {
  margin-top: 1em;
  margin-bottom: .25em;
}

#section-4 .dark-bg-con {
  background-color: #EFF0ED;
  margin-left: -20px;
  margin-right: -20px;
}

#section-4 .flex-box {
  padding-left: 10px;
  padding-right: 10px;
}

#section-4 .dark-bg-con p:first-child {
  padding: 15px;
  margin: 0;
}


#section-4 .dark-bg-con .remark {
  padding: 20px;
  padding-top: 10px;  
}

#section-4 .dark-bg-con .remark p {
  padding: 0;
  margin: 0;
}

#section-4 .dark-bg-con .remark p:nth-child(1){
  font-size: .9em;
  margin-bottom: .5em;
}
#section-4 .dark-bg-con .remark p:nth-child(2){
  font-size: .7em;
}

#section-5 {
  text-align: center;
}

:lang(en) #section-5 {
  margin-bottom: 30px;
}

#section-6 .big-divider{
  margin-bottom: 1.5em;
}

#section-6 .big-divider h2 {
  font-weight: bold;
  font-size: 2.8em;
  margin: 0px;
}

#section-6 > h2 {
  font-size: 2.5em;
}

:lang(en) #section-6 .big-divider h2 {
  margin: 0 10px;
  font-family: "Cinzel";
  font-weight: 600;
  font-size: 2em;
}

:lang(en) #section-6 > h2 {
  font-size: 2em;
}


#section-7 {
  text-align: center;
}

#section-7 > h2 {
  font-size: 2.5em;
  margin: 0;
}


#section-8 > h2,
#section-8 > p {
  margin-left: 20px;
  margin-right: 20px;
}

#section-8 b {
  color: var( --title-color );
}

#section-8 .img-flex-con {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
}

#section-8 .img-flex-con > img {
  width: 50%;
  margin: 0;
}



@media( min-width: 800px ){
  
  body {
    border-width: 10px;
  }

  main > * {
    margin-left: 30px;
    margin-right: 30px;
  }


  :lang(zh) header h1 {
    font-size: 5em;
    margin-top: 1em;
    margin-bottom: .5em;
  }
  
  :lang(zh) header h2 {
    font-size: 2.25em;
  }
  
  header {
    background-image: url("img/leaflet_design_resources(Feb 2023)-01.png");
    margin-bottom: 120px;
  }
  
  header h1 {
    font-size: 4.5em;
    text-shadow: 5px 5px 10px var( --content-color );
  }

  header h1 img {
    width: 100px;
  }


  
  header h2 {
    font-size: 1.65em;
  }



  header .header-info-con .thumbnail {
    width: 240px;
  }

  header .header-info-con .thumbnail-description {
    margin-right: 10px;
    transform: scale(.9);
  }

  :lang(en) header {
    margin-bottom: 80px;
  }
  
  :lang(en) header h1 {
    font-size: 3.5em;
  }
  
  :lang(en) header h2 {
    font-size: 1.25em;
    width: 100%;
  }

  #section-2 h2 {
    margin: .6em 0;
  }

  :lang(en) #section-2 {
    margin-bottom: 0;
  }


  #section-3 > * {
    margin-left: 30px;
    margin-right: 30px;
  }

  #section-3 .text-box {
    text-align: left;
  }


  #section-3 > .flex-box > .text-box {
    margin-top: 1.75em;
    padding-right: 15px;
  }

  #section-3 > .flex-box > .text-box > h2 {
    margin-bottom: 1em;
    font-size: 2.25em;
  }

  
  #section-3 .discount-con .table .table-row {
    padding-right: 30px;
  }

  #section-3 .discount-con .table .table-header{
    width: 140px;
    padding: 10px 20px;
  }
  #section-3 .discount-con .table .table-cell {
    width: calc( 100% - 140px );
  }

  :lang(en) #section-3 .text-box h2 {
    font-size: 1.8em;
  }

  #section-4 .dark-bg-con {
    margin: 0;
  }

  
  #section-4 .flex-box {
    padding: 0;
  }

  #section-5 {
    text-align: left;

    margin-right: 20px;
    margin-bottom: 50px;
  }

  #section-5 .img-box {
    width: 480px;
  }

  :lang(en) #section-5 h2 {
    font-size: 1.8em;
  }

  #section-6 {
    margin-bottom: 30px;
  }

  #section-6 .big-divider h2 {
    margin: 0 50px;
  }
  

  #section-6 > h2 {
    margin: 0;
  }

  #section-6 .img-box:first-child {
    margin-right: 5px;
  }

  :lang(en) #section-6 .big-divider h2 {
    margin: 0 30px;
    font-size: 2.5em;
  }

  #section-7 {
    text-align: left;
  }

  #section-7 .img-box {
    width: 425px;
  }

  :lang(en) #section-7 > h2 {
    font-size: 1.8em;
  }

  #section-8 .img-flex-con > img {
    width: 25%;
  }

  :lang(en) #section-8 > h2 {
    font-size: 1.8em;
  }

}