@import url(https://fonts.googleapis.com/earlyaccess/cwtexkai.css);
@import url('https://fonts.googleapis.com/css?family=Crimson+Text|Inconsolata|Sawarabi+Mincho|Noto+Serif+TC:wght@300;700');

/*////////////////////// RESET ///////////////////////////*/

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
	display: block;
}
body {
	line-height: 1;
}
ol, ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}

/*////////////////////// LIGHT/DARK ///////////////////////////*/

body[data-theme='light_theme'] {
  --bg-color: #efefef;
  --color: #333;
  --link-color: #111;
}

body[data-theme='dark_theme'] {
  --bg-color: #212121;
  --color: #ddd;
  --link-color: #fff;
}

/*////////////////////// TYPOGRAPHY ///////////////////////////*/

h1, h2, h3, h4, p {
    font-family: 'Crimson Text', serif;
    color: --color;
}
h5 {
    font-family: 'Inconsolata', monospace;
    letter-spacing: .1em;
    font-weight: 800;
}
h1.eng {
    text-transform: uppercase;
    font-weight: 900;
    font-size: 1em;
    line-height: 30px;
    letter-spacing: 25px;
    padding-left: 20px;
    text-align: center;
}
h2.chn {
    font-size: 1.5em;
    font-weight: 900;
    font-family: 'cwTeXKai', serif;
    line-height: 150px;
}
.hero {
    font-family: 'Crimson Text', serif;
    /*text-align: center;  */
    font-size: 3em;
}
.hero.zh {
    font-family: 'Noto Serif TC', serif;
    font-weight: 100;
    font-size: 3em;
}
.hero.ja {
    font-family: 'Sawarabi Mincho', serif;
    /*text-align: center;  */
    font-weight: 100;
    font-size: 3em;
}
.hero .reveal {
    font-family: 'Inconsolata', monospace;
    font-size: .4em;
    line-height: 1.2em;
}
.projects, .brands, .entities, .pillars {
    font-family: 'Inconsolata', monospace;
    font-size: 1.4em;
    line-height: 2em;
}
.region {
    font-family: 'Inconsolata', monospace;
    font-size: .65em;
}
.pending {
    opacity: 0.25;
}
#stamp {
    position: fixed;
    bottom: 10px;
    right: 10px;
}


/*////////////////////// LAYOUT ///////////////////////////*/

body {
    padding: 10vw;
}

h5.subtitle {
    cursor: default;
    opacity: 0.3;
    margin-top: 30px;
    margin-left: -5vw;
    margin-bottom: 15px;
}

.hero {
    /*position: absolute;*/
    /*left: 7%;*/
    top: 30%;
    line-height: 1.4em;
    width: 90%;
}
.hero .reveal {
    position: absolute;
    margin-left: 10px;
    margin-top: 20px;
}
h1.en {
    /*position: absolute;*/
    top: 50%;
    left: 50%;
    width: 400px;
    margin-left: -156px;
    height: 20px;
    margin-top: -10px;
}

h1.zh {
    /*position: absolute;*/
    top: 50%;
    left: 50%;
    width: 20px;
    margin-left: -10px;
    height: 400px;
    margin-top: -300px;
}

aside {
    position: fixed;
    right: -10px;
    top: 45%;
    -webkit-transform: rotate(90deg);
    -moz-transform: rotate(90deg);
    -o-transform: rotate(90deg);
    -ms-transform: rotate(90deg);
    transform: rotate(90deg);
    opacity: 0.5;
}

footer {
    position: absolute;
    bottom: 80px;
    left: 50%;
    width: 160px;
    margin-left: -80px;
    height: 80px;
    text-align: center;
}

footer a {
    display: block;
    width: 80px;
    height: 80px;
    color: #fff;
    float: left;
}

footer i.fa {
    line-height: 80px;
}

/*////////////////////// COLOR ///////////////////////////*/

body {
    background: var(--bg-color);
    color: var(--color);
}

a, a:hover, a:visited {
    text-decoration: none;
    color: var(--link-color);
}

/*////////////////////// EFFECTS ///////////////////////////*/

h1 {
    opacity: 0.5;
    -webkit-transition: opacity .5s;
    transition: opacity .5s;
}
h1:hover {
    opacity: 1;   
}

#lang-menu {
    position: fixed;
    display: flex;
    top: 0;
    left: 0;
    width: 100vw;
    height: 10vw;
    text-align: right;
    z-index: 9;
/*    background: rgb(33,33,33);*/
/*    background: linear-gradient(0deg, rgba(33,33,33,0) 0%, rgba(33,33,33,0.9) 20%, rgba(33,33,33,1) 50%);*/
    /*padding-left: 5vw;*/
}
#lang-menu a {
    display: block;
    width: 40px;
    height: 40px;
    float: right;
    text-align: center;
    line-height: 40px;
    border-radius: 20px;
    border: 1px var(--color) solid;
    margin: 5vw 5vw;
    box-sizing: border-box;
}
#lang-menu a.active {
    opacity: 1;
    border-width: 3px;
    line-height: 36px;
}

.bubble-btn {
    padding: 10px 20px;
    height: 40px;
    line-height: 40px;
    border-radius: 20px;
    border: 1px white solid;
    box-sizing: border-box;
}

.hero li {
    -webkit-transition: opacity .5s;
    transition: opacity .5s;
}

.reveal {
    opacity: 0;
    -webkit-transition: opacity .5s;
    transition: opacity .5s;
}

.disappear {
    opacity: 1;
    -webkit-transition: opacity .5s;
    transition: opacity .5s;
}

.hero li:hover .reveal {
    opacity: 1;
}

.hero li:hover .disappear {
    opacity: 0;
}

.hero li:hover ~ li {
    opacity: 0.25;
}

a {
    opacity: 0.5;
    -webkit-transition: opacity 0.5s;
    transition: opacity 0.5s;
}
a:hover {
    opacity: 1;
}

::selection {
  background: #000;
}
::-moz-selection {
  background: #000;
}

.invisible, .hidden {
	display: none !important;
}

/*////////////////////// p5.js ///////////////////////////*/

main { display: block; }

main { 
    position: fixed;
    top: 0%;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -100;
    background-size: cover; 
}

/*////////////////////// VIDEO ///////////////////////////*/

video { display: block; }

video#bgvid { 
    position: fixed;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -100;
    -ms-transform: translateX(-50%) translateY(-50%);
    -moz-transform: translateX(-50%) translateY(-50%);
    -webkit-transform: translateX(-50%) translateY(-50%);
    transform: translateX(-50%) translateY(-50%);
    background: url(../img/night_sky.jpg) no-repeat;
    background-size: cover; 
}

video#bgvid {
    transition: 1s opacity;
}
.stopfade { opacity: .5; }

#vidpause {
    display: none;
}

/*////////////////////// MOBILE ///////////////////////////*/

@media screen and (max-device-width: 800px) {
    #bgvid {
        display: none;
    }
    #vidpause {
    	display: none;
    }
    #lang-menu {
        width: 100vw;
    }
    h1.eng {
        width: 300px;
        font-size: .8em;
        margin-top: -30px;
        top: 250px;
    }
    h1.chn {
        font-size: 1.2em;
        top: 250px;
    }
    h1 {
        opacity: 1;
    }
    .hero {
        font-size: 2em;
    }
    .hero .reveal {
        margin-top: 15px;
    }
    .projects {
        font-size: 1.2em;
    }
    footer {
        bottom: -80px;
        padding-bottom: 20px;
    }
}