* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    background-color: #0a0a09b9;
    -webkit-text-size-adjust: 100%; /* Prevent font scaling in landscape while allowing user zoom */
}

@font-face {
    font-family: poppins;
    src: url(fonts/Poppins-Regular.ttf);
}

@font-face {
    font-family: Caramel;
    src: url(fonts/Caramel-Regular.ttf);
}

@font-face {
    font-family: 'Noto Sans TC', sans-serif;
    src: url(fonts/NotoSansTC-Regular.otf);
}

body{
    font-family: "Poppins", sans-serif;
    margin:0 auto;
    width: fit-content; /* content fits page when less than 1000px */
    font-size: .98rem;
    border-radius: 12px; /* rounds corners */
}

section{
    border-radius: 0px 0px 12px 12px;/* rounds bottom corners */
}

h1 {
    font-family: 'Caramel', cursive;
    font-size: 2.1rem; 
    color: #bb2424; 
    margin: 0rem; 
}

h2 {
    font-family: 'Caramel', cursive;
    font-size: 2.1rem; 
    color: #bb2424; 
    margin: 0rem; 
}

h3 {
    font-family: 'Caramel', cursive;
    font-size: 2.1rem; 
    color: #bb2424;
    padding-bottom: 9px; 
    margin: 0rem; 
}

a{
    text-decoration: none; /* removes link underlines */
}

a:hover {
    color: white;
    background-color: #6d6219;
}

/*  style header*********************************** */
/* style header swirling background*/
.rotateback {
    position: relative;
    background: transparent;
    width: fit-content 900px;
    height:  90px; /* header height */
    overflow: hidden;
    top:0px;
    border-radius: 12px 12px 0px 0px;
}
.rotateback::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 500%;
    background-image: url(images/backhead.jpg);
    background-size: 15%;
    animation: rotating-function 180s linear infinite;
    animation-delay: 0s;
    z-index: -1;  
}
@keyframes rotating-function {
    0% {transform: rotate(0deg) scale(3);
        transform-origin:  center;     
    }
    50% {transform: rotate(-180deg) scale(5);
        transform-origin:  center;
    }
   100% {transform: rotate(0deg) scale(3);
        transform-origin:  center; 
    }
}

header {
    text-align: center;      
}
/* header fade-ins */
header h1{
    animation: fadein3 1s;
}
.navbar {
    animation: fadein 1s ease-in-out;    
}
.bamboo {
    animation: fadein2 1.3s;
}
@keyframes fadein {
    0% { opacity: 0; }
    100% { opacity: 1; }
}
@keyframes fadein2 {
    0% { opacity: 0; }
    33% { opacity: 0; }
    100% { opacity: 1; }
}
@keyframes fadein3 {
    0% { opacity: 0; }
    33% { opacity: 0; }
    100% { opacity: 1; }
}

/*  center header text*/
.headerpos {
    position:absolute;
    left: 10%;
    right:10%;
}
/* header text font size & lineheight */
.medium {
    font-size: 32px;
}
.smallest {
    font-size: 26px;
}
.smaller {
    font-size: 30px;
}
.lnht {
    line-height: 170%;
    padding: 2px 0px 0px 0px;
}

/* floats, animation & styling for bamboo in header */
.floatbambleft {
    float:left;
    height: 76px;
    margin-top: 5px;
    transform: rotate(-6deg);
    transform-origin: bottom left;
    animation-name: bambleft;
    animation-duration: 19s;
    animation-iteration-count: infinite;
    animation-timing-function: ease-out;
}
@keyframes bambleft {
    0% {transform: rotate(-7deg); transform-origin: bottom left;}
    50% {transform: rotate(-2deg); transform-origin: bottom left;}
   100% {transform: rotate(-7deg); transform-origin: bottom left;}
}
/*
.floatbambright {
    float:right;
    height: 76px;
    margin-top: 5px;
    transform: rotate(-6deg);
    transform-origin: bottom right;
    animation-name: bambright;
    animation-duration: 20s;
    animation-iteration-count: infinite;
    animation-timing-function: ease-out;
}
@keyframes bambright {
    0% {transform: rotate(6deg); transform-origin: bottom right;}
    50% {transform: rotate(-2deg); transform-origin: bottom right;}
   100% {transform: rotate(6deg); transform-origin: bottom right;}
}
*/

.floatbambright {
    float:right;
    display: none
}

/* Navigation Bar Mobile */

.navbar {   /* hamb background image & positioning */
    background-color:#6d6219;
    box-shadow:  2px 2px 3px  #868a92;
    position: fixed; /* allows menu to stick & align right */
    top: 7px;
    right:7px;
    height: 28px;
    width: 40px;
    z-index: 10;
    border: .5px solid #3030308e;
    border-radius: 4px;  
}

/*dropdown nav menu for mobile*/
.nav {
    position: fixed;
    background-image: url(images/back5.jpg);
    background-blend-mode: darken;
    background-color: #ffae001e;
    top: 36px; /*top of dropdown background*/
    right: 3px; /* right background boundary */
    left: 3px;  /* left background boundary */
    overflow: hidden;
    border-radius: 6px;
    box-shadow: 0px 1px 1px  #85888C;
}

/* positioning and background pad for Mobile links */
.menu {
    display: block;
    text-align: center;
    width:100%;
}

.menubottom {
    display: block;
    text-align: center;
    width:100%;  
}

.menubottom a {
    color:#004109;
    border: .5px solid #999999;
    padding: 4px 0;
    margin: 0px 3px; /* left/right background boundary */
    display: block;
    border-radius: 6px;
}

.menubottom a:hover {
    background-color: #ffffff;
}
/* mobile link & hover gets changed nonmobile */
.menu a {
    display: block;
    color: #004109;
    font-size: 16px; 
    line-height: 210%;
    border: .5px solid #999999; 
    border-radius: 6px;
    box-shadow: 0px 1px 1px  #85888C;
}

.menu a:hover {
    background-color: #ffffff5e;
    transition: background-color .4s;
    color:#004109;
    box-shadow:  0px 1px 1px  #85888C;
}

a {
    background-image: url(images/back5.jpg);
    background-blend-mode: darken;
    background-color: #ffd78094;
}
/* mobile link initial state gets changed nonmobile */
.active {
    background-color: #ffffff;
    color:#004109;
}
  
.inactive {
   color:#004109;
}

/*dropdown nav transition from hamburger*/
.nav {
    max-height: 0;
    transition: max-height 1s ;
}

/* Menu Icon */
/* Style label tag */
.hamb {
    cursor: pointer;
    float: left;
    padding: 12px 7px; /* position vert & hor */
}

.hamb-line {
    background: #ffffff;
    display: block;
    height: 2px;
    position: relative;
    width: 24px;
}

/* Style span tag */
.hamb-line::before,
.hamb-line::after {
    background: #ffffff;
    content: '';
    display: block;
    height: 100%;
    position: absolute;
    transition: all .2s ease-out;
    width: 100%;
}
.hamb-line::before {
    top: 5px;
}
.hamb-line::after {
    top: -5px;
}
/* Hide checkbox */
.side-menu {
    display: none;
}

/* Toggle menu icon */
.side-menu:checked ~ nav{
    max-height: 100%;
}
.side-menu:checked ~ .hamb .hamb-line {
    background: transparent;
}
.side-menu:checked ~ .hamb .hamb-line::before {
    transform: rotate(-45deg);
    top:0;
}
.side-menu:checked ~ .hamb .hamb-line::after {
    transform: rotate(45deg);
    top:0;
}

.navbar2 {
    display:none;
}

/* Style Content */
section {
    background-image: url(images/backhead.jpg); /* behind section tags */
}

article {
    padding: 0px 1.5% 15px;
    background-image: url(images/back5.jpg);
    box-shadow: 0px 1px 1px  #85888C;
    margin: 0 4px 2px; /* seperate sides & bottom */
    border-radius:10px;
}

article h1 {
    padding: 0px;
    margin:0px;
    text-align: center;
}

p {
    padding-bottom: 7px;
}
.center {
    text-align: center;
}

.padtop {
    padding-top: 0px; 
}

.padtop2 {
    padding-top: 15px; 
}

.padtop3 {
    padding-top: 7px; 
}

.textindent {
    text-indent: 5%;
}

.pglnk {
    display:inline-block;
    font-size: .96rem;
    background-color: #ffae004f;
    margin: 8px 0 0;
    padding: 0px 10px;
    border: .5px solid #999999;
    border-radius: 6px;
    color: #004109;
}
 
.pglnk2 {
    display:inline;
    font-size: .96rem;
    background-color: #ffae004f;
    border: .5px solid #999999;
    margin: 0px 0 0;
    padding: 0px 4px;
    border-radius: 6px;
    color: #004109;
}


.pichome {
    float: left;
    text-align: center;
    padding: 14px 2% 0px 0px;
}

.pic {
    text-align: center;
    padding: 14px 2%;    
}

.piccntr {
    text-align: center;
    padding-top: 14px; 
}

.picradius{
    border-radius: 8px;
    width: 120px;
    box-shadow:  0px 0px 2px  #85888C;
}

.picradius2{
    border-radius: 8px;
    box-shadow:  0px 0px 2px  #85888C;
}

.picradius3{
    border-radius: 8px;
    box-shadow:  0px 0px 2px  #85888C;
    max-width: 100%;
}

.caption1 {
    padding: 0px;
    color:  #ac8827;
    font-size: 16px;
    font-weight: 600;
    font-family: sans-serif;
}

.chinese {
    font-family: 'Noto Sans TC', sans-serif;
    color:  #bb2424;
    line-height: 2.1rem;
    font-size: 1.2em;
}

.pinyin {
    font-size: 1.1rem;
}

.floatleft {
    float:left;
}

.floatright {
    float:right;
}

footer {
    padding:8px 0;
    text-align: center;   
}
.navbar2 {
    display:none;
}

/* Responsiveness */
@media (min-width: 600px) {
    article {
        padding: 0px 6% 15px;
        margin: 0 1.5%;
    }

    .padtop {
        padding-top: 15px; 
    }


/*  style header******************** */
    /* style header background*/
    .rotateback {
        position: relative;
        background: transparent;
        width: fit-content 900px;
        height:  100px; /* header height */
        overflow: hidden;
        top:0px;
        border-radius: 12px 12px 0px 0px;
    }
    .rotateback::before {
        content: "";
        position: absolute;
        width: 100%;
        height: 600%;
        background-image: url(images/backhead.jpg);
        background-size: 6%;
        animation: rotating-function 500s linear infinite;
        animation-delay: 0s;
        z-index: -1;  
    }
    @keyframes rotating-function {
        0% {transform: rotate(0deg) scale(3);
            transform-origin:  center;     
        }
        50% {transform: rotate(-180deg) scale(3);
            transform-origin:  center;
        }
       100% {transform: rotate(0deg) scale(3);
            transform-origin:  center; 
        }
    }
    /* header font size & lineheight */
    .medium {
        font-size: 34px;
    }
    .smallest {
        font-size: 28px;
    }
    .smaller {
        font-size: 32px;
    }
    .lnht {
        line-height: 190%;
        padding: 2px 0px 0px 0px;
    }
    .floatbambleft {
        height: 95px;
        width: 130px;
        margin-top: 0px;
        transform: rotate(-5deg);
        transform-origin: bottom left;
        animation-name: bambleft;
        animation-duration: 19s;
        animation-iteration-count: infinite;
        animation-timing-function: ease-out;
    }
    @keyframes bambleft {
        0% {transform: rotate(-5deg); transform-origin: bottom left;}
        50% {transform: rotate(1deg); transform-origin: bottom left;}
       100% {transform: rotate(-5deg); transform-origin: bottom left;}
    }
    .floatbambright {
        display: block;
        height: 95px;
        width: 130px;
        margin-top: 0px;
        transform: rotate(5deg);
        transform-origin: bottom right;
        animation-name: bambright;
        animation-duration: 20s;
        animation-iteration-count: infinite;
        animation-timing-function: ease-out;
    }
    @keyframes bambright {
        0% {transform: rotate(5deg); transform-origin: bottom right;}
        50% {transform: rotate(-1deg); transform-origin: bottom right;}
        100% {transform: rotate(5deg); transform-origin: bottom right;}
    }
    .pic {
        float: left;
        padding: 14px 2% 0px 0px;
    }
} /* end 600px media query */

@media (min-width: 700px) {
    body {
        font-size: 1.03rem;
    }
    header h1{
        animation: fadein 2s ;
    }
    h2 {
        font-size: 2.5rem; 
    }
    .rotateback {
        height: 125px; /* header height */
    }
    /* Top Navigation Bar */
    .navbar {
        display:none;
    }
    .pglnk {
        display:none;        
    }
    .navbar2 {   /* navbar2 background image & positioning */
        display: block;        
        background-color:#6d6219;
        font-size: 15px;
        border: 1px solid #363636;
        margin: 0 -.4%;
        position: sticky;
        top:0px;
        height: 30px;
        line-height: 193%; /* centers links (horiz) */
        border-radius: 8px;       
        text-align: center;
        box-shadow: 0px 3px 4px 0px #6e6e6e;  
    }
    .navbar2back {
        background-image: url(images/backhead.jpg); /* behind navbar2 */
    }
    /* Bottom Navigation Bar */
    .menubottom {
        display:none;
    } 
    .navpos2 div {
        text-decoration: none;
        border-width: 1px;  
    }
    /* Link styling */
    a {
        background-image: url(images/back5.jpg);
        background-blend-mode: darken;
        background-color: #6d6219;
        color: #ffffff;
    }
    .navpos2 a {
        margin: 3%; /* bottom navbar2 link spacing */
    }    
    .navpos a {
        padding: 0px 9px 0px;
        text-decoration: none;
        margin:1.1%; /* top navbar2 link spacing */
        border-radius: 6px;
        border-style: solid;
        border-color:#000000;
        border-width: 1px;
        box-shadow: 0px 0px 4px 0px #afafaf;
    }   
    .navpos a:hover {
        background-color: #6d6219;
        transition: background-color .1s;
        color:#ffffff;
        border-radius: 6px;
        border-style: solid;
        border-color:#000000;
        border-width: 1px;
    }
    .navbar2 a {
        padding: 0px 9px 0px;
        text-decoration: none;
        border-radius: 6px;
        border-style: solid;
        border-color:#000000;
        border-width: 1px;
        box-shadow: 0px 0px 4px 0px #afafaf;
    }    
    .navbar2 a:hover {
        background-color: #6d6219;
        transition: background-color .1s;
        color:#ffffff;
        border-radius: 6px;
        border-style: solid;
        border-color:#000000;
        border-width: 1px;
      }
    .active {
        background-color:#6d6219;
        color: #ffffff;
        box-shadow:  0px 1px 1px  #85888C;    
    }    
    .inactive {
        background-color:  #f0d995;
        color: #004109;
        box-shadow:  0px 1px 1px  #85888C;  
    }
    /* header respnsive styling */
    .hamb{
        display: none;
    }
    .medium {
        font-size: 39px;
    }    
    .smallest {
        font-size: 32px;
    }    
    .smaller {
        font-size: 36px;
    }
    .lnht {
        line-height: 200%;
        padding: 9px 0px 0px 0px;
    }
    .floatbambleft {
        height: 105px;
        width: 160px;
    }
    .floatbambright {
        height: 105px;
        width: 160px;
    }

    /* article padding */    
    article {
        padding: 0px 9% 15px;
        margin: 0 1.5%;
    }
    .picradius {
        width: 125px; /* size pichome */ 
    }
    .pichome {
        padding: 20px 20px 0 0; 
    }
}  /* end 700px media query */

@media (min-width: 850px) {
    /* article padding */    
    article {
        padding: 0px 12% 15px;
        margin: 0 1.5%;
    }
    .floatbambleft {
        height: 105px;
        width: 160px;
    }
    .floatbambright {
        height: 105px;
        width: 160px;
    }
    .navpos a {
        margin: 2%; /* top navbar2 link spacing */
    }
}   /* end 850px media query */

@media (min-width: 1000px) {
    .rotateback {
        height: 125px;
    }
    article {
        padding: 0px 15% 15px;
        margin: 0 2%;
    }
    body {
        width: 1000px; /*  limits body width to 1000px */
    } 
    /* header respnsive styling */
    header img{
        display:block;
    }
    .hamb{
        display: none;
    }
    .medium {
        font-size: 42px;
    }    
    .smallest {
        font-size: 34px;
    }    
    .smaller {
        font-size: 39px;
    }
    .lnht {
        line-height: 205%;
        padding: 7px 0px 0px 0px;
    }      
    .floatbambleft {
        height: 110px;
        width: 170px;
    }

    .floatbambright {
        height: 110px;
        width: 170px;
    }

}




