/* 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;
  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: 32%;
}


.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: 40px;
  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 */
header{
  background-image: url("img/oct_2022-23.png");
    background-size: cover;
    background-repeat: no-repeat;

    margin: 0;
    padding: 0 25px;
    aspect-ratio: 782 / 462;
}



header *{
    color: white;
}

header > h1{
    text-align: center;
    font-family: "Cinzel" !important;
    font-weight: normal;
    text-transform: uppercase;

    font-size: 24px !important;
    margin-top: 15px;
}

#section-2 h2{
  text-align: center;
}

#section-2 .img-box {
  display: flex;
  flex-direction: column;
}

#section-2 .img-box img,
#section-3 .img-box img {
  max-width: 400px;
  width: 90%;
  align-self: center;
}


#section-2 .img-box p {
  margin: .5em 0;
  align-self: flex-end;
  margin-right: 5%;
}



#section-3, #section-4 {
  text-align: center;
}

#section-5 .text-box,
#section-6 .text-box,
#section-7 .text-box,
#section-9 .text-flex *,
#section-11 .text-box * {
  align-items: left;
}


#section-10 .three-item{
  padding: 10px 0 30px 0;
}

#section-10 .qr-item {
  width: 90%;

  display: flex;
  justify-content: flex-start;
  flex-direction: column;
  align-items: flex-start;

  margin-bottom: 30px;
}



#section-10 .qr-item .upper-part {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;

  text-align: left;
}

#section-10 .qr-item .upper-part img {
  width: 150px;
  margin: 0 20px 0 0;
  flex-shrink: 0;
}

#section-10 .qr-item .upper-part b,
#section-10 .qr-item .lower-part a {
  font-size: 1.8em;
  text-align: left;
  text-align-last: left;

  text-overflow: ellipsis;
  overflow: hidden;
  width: 100%;
}


#section-10 .qr-item .lower-part {
  background-image: url("img/qr_code_line_short.png");
  background-size: contain;
  background-position: top left;
  background-repeat: no-repeat;
  width: 100%;
  margin-left: 10px;
  padding: 10px 30px;
}

#section-10 .qr-item .lower-part a {
  font-style: italic;
  font-weight: bold;
  text-decoration: none;
  color: var( --highlight-color );
  float: left;
}


#section-11 {
  background-color: rgb( 242, 243, 240 );
  margin: 0;
  padding: 15px 45px;
}

#section-11 > p{
  font-weight: bold;
  font-size: 1.35em;
}

#section-11 .qr-item {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
}

#section-11 .qr-item .deco{
  margin: 15px 0;
  font-size: 1.35em;
}

#section-11 .qr-item.right {
  flex-direction: column-reverse;
}


#section-11 .qr-item > img {
  width: 150px;
  margin: 0;
}

#section-11 .qr-item a {
  font-style: italic;
  font-weight: bold;
  text-decoration: none;
  color: var( --highlight-color );
}




#section-12 {
  padding: 15px 20px 30px 20px;
}

#section-12 h2 {
  font-size: 1.25em;
  padding: 0 5px;
  text-align: center;
}

:lang( zh ) #section-12 h2 {
  padding: 0 20px;
}

#section-12 .flex-con {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

#section-12 .flex-con > .flex-item {
  flex-basis: 33%;
  padding: .25em;
  text-align: center;
  text-align-last: center;
}

#section-12 .flex-con > .flex-item > p {
  margin-bottom: .5em;
}

#section-12 .flex-con > .flex-item > b {
  font-size: 1.2em;
}

@media( min-width: 800px ){
    #remark-1{
      margin-bottom: 20px;
    }

    header {
      background-image: url("img/oct_2022-01.png");
      aspect-ratio: 1251 / 600;
      padding: 0 45px;
    }


    header > h1{
        margin-top: 30px !important;
        font-size: 40px !important;
    }

    #section-2 h2 {
      text-align: left;
    }



    #section-2 .flex-box {
      align-items: flex-start;
    }

    #section-2 .img-box img,
    #section-3 .img-box img {
      width: 100%;
      max-width: none;
    }

    #section-2 .img-box p {
      margin-right: 0;
    }

    #section-3, #section-4{
      text-align: left;
    }

    #section-3 .text-box img{
      float: right;
      height: 100px;
    }

    #section-5 .text-box,
    #section-6 .text-box,
    #section-7 .text-box,
    #section-9 .text-flex *,
    #section-11 .text-box * {
      align-items: center;
    }


    #section-9 .flex-box > div:first-child {
      margin-right: 20px;
    }


    #section-10 .qr-item{
      flex-basis: 32%;
    }

    #section-10 .qr-item .upper-part img {
      width: 90px;
      margin: 0 10px 0 0;
    }


    #section-10 .qr-item .lower-part {
      margin-left: 5px;
      padding: 10px 20px;
    }

    #section-10 .qr-item .upper-part b,
    #section-10 .qr-item .lower-part a {
      font-size: 1em;
    }


    #section-11 .qr-item {
      flex-direction: row !important;
      align-items: flex-end;
    }

    #section-11 .qr-item > img {
      width: 90px;
    }


    #section-11 .qr-item .deco{
      background-size: contain;
      background-position: bottom;
      background-repeat: no-repeat;

      height: 25px;
      padding: 25px 20px;
      margin: 0;
      font-size: 1em;
    }

    #section-11 .qr-item .deco.left{
      background-image: url( "img/qr_code_line_long_flipped.png" );
    }
    #section-11 .qr-item .deco.right{
      background-image: url( "img/qr_code_line_long.png" );
    }

    #section-11 .qr-item.right {
      float: right;
    }

    #section-12 {
      /* padding: 10px 45px 30px 45px; */
      padding: 20px 45px 30px 45px;
    }

    #section-12 .flex-con > .flex-item > b {
      font-size: 1.5em;
    }

    :lang( zh ) #section-12 .flex-con > .flex-item > b {
      font-size: 1.3em;
    }

}
