html
{
  /*
    Be sure to set the font in CKEditor CSS to be same
    Also, the font must be loaded in page where CKEditor in rembeded, e.g. google font
  */

  font-family: 'Noto Sans TC', sans-serif;
  font-size: 12pt;
  background: #202020; /* or end color of gradient */
}

body
{
  margin: 0px;
  padding: 4px 8px;
}


p
{
  margin-top: 0px;
  margin-bottom: .6em;
}

a img { border-style: none; } /* only some computers (not browsers) had a problem with borders appearing on logo etc */

*
{
  /* this causes padding and borders to be inside the width and height of the element */
  box-sizing: border-box;
  -ms-box-sizing: border-box;
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
}

h1
{
  font-size: 1.4rem;
  font-weight: bold;
  letter-spacing: 2px;
  margin: 0px
}

h2
{
  font-size: 1.2rem;
  font-weight: normal;
  letter-spacing: 1px;
  margin: 0px
}

select,
input:focus,
textarea:focus
{
  outline-style: none;  /* prevent blue outline when input element gets focus */
 /* padding-left: 4px; */
}

input[type="submit"]:hover,
input[type="button"]:hover
{
  cursor: pointer;
}

input,
textarea,
select
{
  font-family: inherit;
}


/* ------------------------------------------------------------------------------------------------------------------*/
#header
{
  display: block;
  position: relative;
  width: auto;
  height: 140px;
  background: #1B1F22;
  background-image: url("/images/banner.jpg");
  margin-bottom: 4px;
  z-index: 1;
}

#logo
{
  display: block;
  position: absolute;
  top: 12px;
  left: 50px;
  width: 150px;
  height: 150px;
  z-index: 2;
}

a.login_icon
{
  display: block;   /* set to none in flyout_menu.css media query */
  width: 18px;
  height: 18px;
  cursor: pointer;
}

a#top_login
{
  display: blodk;
  position: absolute;
  top: 6px;
  right: 6px;
}

div#bottom_login
{
  display: flex;
  justify-content: center;
  align-items: center;
}

a.login_icon > img
{
  width: 100%;
}

#page
{
  display: flex;
  position: relative;
  flex-direction: column;
  width: 100%;
  max-width: 1000px;
  min-width: 300px;
  margin: 0px auto 20px auto;
  background: #476161;
  padding: 4px;
  overflow: hidden;
  border: 1px none orange;
}

div#content
{
  display: block;
  position: relative;
  width: 100%;
  min-height: 400px;
  margin: 0px auto;
  padding: 12px 20px 20px 20px;
  background: #bbbbbb;
  border: 2px none red;
}

div#copyright
{
  display: block;
  width: 100%;
  font-family: arial;
  font-size: .9rem;
  letter-spacing: 1px;
  display: block;
  position: relative;
  padding: 12px 0;
  text-align: center;
  color: #bbbbbb;
}

div.border_box
{
  display: block;
  position: relative;
  margin-bottom: 1rem;
  padding: 20px;
  border: 1px solid black;
  border-radius: 8px;
  /* background: #F0EBDF; */
  background: #dfdfdf;
}

div.border_box div.caption
{
  width: 100%;
  margin: 0 0 20px 0;
  text-align: center;
  font-size: 1.3rem;
  letter-spacing: 1px;
}


.border_box_300 { width: 300px; }
.border_box_400 { width: 400px; }
.border_box_500 { width: 500px; }
.border_box_600 { width: 600px; }
.border_box_700 { width: 700px; }
.border_box_800 { width: 800px; }

div.banner_caption
{
  display: block;
  width: 100%;
  position: relative;
  font-size: 1.5rem;
  text-align: center;
  letter-spacing: 1px;
  margin-bottom: 2rem;
  padding: 4px 0;
  background-color: #aaaaaa;
  color:  #2d3a3a ;
  -webkit-box-shadow: 4px 4px 9px 0px rgba(85,85,85,.3);
  box-shadow: 4px 4px 9px 0px rgba(85,85,85,.3);
}

.caption_12pt, .caption_14pt, .caption_16pt, .caption_18pt, .caption_20pt, .caption_24pt, .caption_28pt
{
  display: block;
  position: relative;
  text-align: center;
  letter-spacing: .1rem;
  margin-bottom: .8rem;
}

.caption_12pt { font-size: 12pt; font-weight: bold; }
.caption_14pt { font-size: 14pt; }
.caption_16pt { font-size: 16pt; }
.caption_18pt { font-size: 18pt; }
.caption_20pt { font-size: 20pt; }
.caption_24pt { font-size: 24pt; }
.caption_28pt { font-size: 28pt; }

.commentary        /* commentary disclaimer at top of page */
{
  text-align: center;
  margin-bottom: 12px;
  font-size: .9rem;
}

/* About page */

.footnote
div.footnote_cntr
{
  font-size: 9pt;
}

div.footnote_cntr
{
  font-size: 9pt;
  text-align: center;
}

.remphasize
{
  font-size: 110%;
}

.err_msg
{
  color: #AF002A;
}

.quote
{
  font-size: 1.1rem;
  line-height: 1.3;
  color: #D1DBE3;
  background: #00416A;
  border: 1px solid black;
  border-radius: 6px;
  padding: 16px 8px;
}

/* various margin classes */
.t_mrgn_0 { margin-top: 0px;}

.l_mrgn_20 { margin-left: 20px;}
.l_mrgn_100 { margin-left: 100px;}
.l_mrgn_200 { margin-left: 200px;}

.b_mrgn_20 { margin-bottom: 20px;}

.tb_mrgn_20 { margin-top: 20px; margin-bottom: 20px;}

/* various text-align classes */
.align_left { text-align: left !important; }
.align_center { text-align: center !important; }
.align_justify { text-align: justify !important; }
.align_right { text-align: right !important; }

.form_msg
{
  display: flex;
  justify-content: center;
  width: 100%;
  padding: 4px 0;
  font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif;
  color: #841B2D;
  font-variant: small-caps;
  letter-spacing: 1px;
  font-size: 1.2rem;
}

.superscript
{
  position: relative; top: -0.5rem; font-size: 0.6rem;
}

/*
  class list_table generally styles object's list view, e.g. course list, event list
  specific styles for column width & text-alignment is in the object's several style sheets
*/
table.list_table
{
  table-layout: fixed;
  position: relative;
  width: 100%;
  margin: 0px auto;
  border: 1px solid black;
  border-collapse: collapse;
}

table.list_table th
{
  color: #E3E0D3;
  background: #455C57;
  font-weight: normal;
  text-align: center;
}

table.list_table td
{
  border: 1px solid black;
  padding: 2px 4px 2px 12px;
}

table.list_table tr:nth-child(odd) { background:  #d2dad8; }
table.list_table tr:nth-child(even) { background:  #abb4b2 ; }

table.list_table a
{
  text-decoration: none;
}

table.list_table tr:hover { background-color: #455C57; }

table.list_table a:link { color: black; }        /* #421E07  #3B1B06 #331705  */
table.list_table a:visited { color: black; }
table.list_table a:hover { color: #E3E0D3; }
table.list_table a:active { color: black; }

.list_link a
{
  text-decoration: none;
}

.list_link a:link { color: black; }        /* #421E07  #3B1B06 #331705  */
.list_link a:visited { color: black; }
.list_link a:hover { color: #B31B1B; }
.list_link a:active { color: black; }

.img_shadow
{
  -webkit-box-shadow: 4px 4px 9px 0px rgba(85,85,85,1);
  box-shadow: 4px 4px 9px 0px rgba(85,85,85,1);
}

div.image_box
{
  display: flex;
  flex-direction: column;
  align-itrems: center;
  float: right;
  margin: 0 .5rem 1rem 1.5rem;
  width: 50%;
  height: auto;
  max-width: 250px;
}

div.image_box img
{
  width: 100%;
  max-height: 300px;
  margin: 0 auto;
}

div.image_box div.image_caption
{
  width: 100%;
  padding: .6rem 0 0 0;
  font-size: .8rem;
  text-align: center;
}

div.clear_both   /* empty div to make container height contain floating objects */
{
  height: 1px;
  clear: both;
}
/* -- */

@media screen and (max-width: 800px) and (min-width: 699px)
{
  html { font-size: 98%; }
}

@media screen and (max-width: 700px) and (min-width: 599px)
{
  html { font-size: 96%; }
}

@media screen and (max-width: 600px) and (min-width: 499px)
{
  html { font-size: 94%; }

  div#content { padding: 8px 12px 12px 12px; }
}

@media screen and (max-width: 500px)
{
  html { font-size: 92%; }

  div#content { padding: 6px 8px 10px 8px; }
}

@media screen and (max-width: 600px)
{
  div.image_box
  {
    float: none;
    margin: 0 auto 1rem auto;
    width: auto;
  }

  div.image_box img
  {
    max-height: 350px;
    margin: 0 auto;
  } 
}
