html {
    width: 100%;
    height: 100%;
    margin: 0px;
    padding: 0px;

    box-sizing: border-box;
}

body {
    margin: 0px;
    padding: 0px;

    font-family: 'Noto Sans TC', sans-serif;
    /* font-family: 'Inconsolata', monospace, 'Noto Sans TC'; */
    /* font-family: 'Noto Serif TC', sans-serif; */
    font-size: 16px;
    letter-spacing: 0.1em;
    line-height: 1.8em;
    font-weight: 200;
    color: #333;
    /* background-color: white; */

    height: 100%;
}

main {
    position: relative;
    /* max-width: 1280px; */
    padding: 100px 30px;
    margin: 0 auto;

    box-sizing: border-box;

    width: 100%;
    height: 100%;
}

@media screen and (max-width: 996px) {
    main {
        padding: 10px 30px;
        height: calc(100% - 100px);
    }
}



/* index */
iframe {
    border: none;
}

#main-index {
    position: relative;
    width: 100%;
    height: 100%;

    color: white;
}

#main-index iframe {
    width: 100%;
    height: 100%;
}

#main-index .hello-text-area {
    position: absolute;
    left: 0px;
    top: 0px;
    z-index: 100;

    font-size: 24px;
    font-weight: 200;
    line-height: 80px;

    box-sizing: border-box;
    width: 100%;
    height: 100%;
    padding: 30px;
    
    text-align: center;
    vertical-align: middle;
    text-shadow: 3px 3px 0px #111111;

    pointer-events: none;

    display: flex;
    justify-content: center;
    align-items: center;
}

#main-index .hello-text-area .text-content {
    /* background-color: aquamarine; */
    margin: 0px auto;
    padding: 6px;
    width: auto;
}

#main-index .hello-text-area div {
    width: 100%;
    text-align: left;
}

#main-index .line-1 {
    height: 48px;
    font-size: 32px;
    font-weight: 200;
    line-height: 48px;
    letter-spacing: 12px;
}

#main-index .line-2 {
    height: 40px;
    font-size: 24px;
    font-weight: 200;
    line-height: 24px;
    letter-spacing: 12px;
}

#main-index .line-3 {
    height: 30px;
    font-size: 14px;
    font-weight: 200;
    line-height: 14px;
    letter-spacing: 6px;

    pointer-events: fill;
}

#main-index .line-3 a {
    position: relative;
    padding: 3px;

    color: white;
    border-bottom-color: white;
}

#main-index .line-3 a:hover {
    text-shadow: 0px 0px 0px #111111;
}

#main-index .line-3 a::before {
    content: '';
    position: absolute;

    left: 0px;
    top: 0px;
    /* top: 100%; */
    
    width: 0%;
    height: 100%;

    z-index: -1;
    background-color: white;
    transition: all 0.12s ease-in-out;
}

#main-index .line-3 a:hover::before {
    /* top: 0%; */
    /* height: 100%; */
    width: 100%;
}

#main-index .line-3 a .bg-shape {
    position: absolute;
    z-index: 10;
    width: 100%;
    height: 100%;
}

#main-index .line-3 a .link-text {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 20;
}

@media screen and (max-width: 996px) {

    #main-index .hello-text-area {
        padding: 12px;
    }
    #main-index {
        position: relative;
        margin-top: 10%;
        width: 100%;
        height: calc(100% - 60px);
    }

    #main-index .line-1 {
        height: 30px;
        font-size: 20px;
        font-weight: 200;
        line-height: 24px;
        letter-spacing: 6px;
    }
    
    #main-index .line-2 {
        height: auto;
        font-size: 14px;
        font-weight: 200;
        line-height: 24px;
        letter-spacing: 6px;
    }

    #main-index .line-3 {
        height: auto;
        font-size: 12px;
        font-weight: 200;
        line-height: 24px;
        letter-spacing: 6px;
    
        pointer-events: fill;
        padding-bottom: 24px;
    }
}

a:link,
a:visited {
    text-decoration: none;
    
    box-sizing: border-box;
    color: #333;

    border-bottom-style: solid;
    border-bottom-width: 1px;
    border-bottom-color: #333;

    transition: all 0.1s ease-in-out;
}

a:hover,
a:active {
    border-bottom-style: solid;
    border-bottom-width: 3px;
    border-bottom-color: #268cc7;

    color: #268cc7;
}

header a:link,
header a:visited {
    text-decoration: none;
    color: black;
    font-size: 0.8em;
    letter-spacing: 0.2em;
    font-weight: 200;

    border: none;
}

header a:hover,
header a:active {
    font-weight: 400;
    color: #268cc7;
}

header {
    width: 100%;

    position: fixed;
    z-index: 99;
    display: flex;
    justify-content: space-between;

    align-items: top;
    flex-wrap: wrap;
    box-sizing: border-box;

    /* background-color: #115983; */

    padding: 10px 60px;
}

header .title {
    position: relative;
    font-size: 1.0em;
    font-weight: 600;
    letter-spacing: 0.3em;

    width: 20%;
    /* background-color: aqua; */
    cursor: pointer;
}

header .title .text {
    position: absolute;
    left: 0px;
    top: 0px;
    z-index: 12;
    width: 100%;
    height: 100%;
    color: #333;
}

header nav {
    width: 60%;
    letter-spacing: 0.2em;
    /* background-color: aquamarine; */

    display: flex;
    justify-content: center;
    align-items: stretch;
}

header nav a {
    display: block;
    position: relative;
    /* background-color: #D00; */
    width: 170px;
    margin: 0px;
}

header nav a .link-text {
    position: absolute;
    display: block;
    z-index: 10;
    width: 100%;
    height: 100%;
    letter-spacing: 0.2em;
    text-align: center;
    /* color: #333; */
    color: #333;
}

header nav a .bg-shape {
    position: absolute;
    display: block;
    z-index: 5;
    width: 100%;
    height: 100%;
    /* clip-path: polygon(56% 0%, 56% 0%, 44% 100%, 44% 100%); */
    /* clip-path: polygon(6% 0%, 6% 0%, 0% 100%, 0% 100%); */
    clip-path: polygon(0% 100%, 94% 100%, 94% 100%, 0% 100%);
    background-color: aqua;

    transition: all 0.12s ease-in-out;
}

header nav a:hover .bg-shape,
header nav a:active .bg-shape {
    clip-path: polygon(6% 0%, 100% 0%, 94% 100%, 0% 100%);
    /* background-color: blueviolet; */
}

header nav a:hover .link-text,
header nav a:active .link-text {
    color: white;
}

header .lang {
    width: 20%;
    text-align: right;
    /* background-color: blueviolet; */
}

header .lang a:link,
header .lang a:visited {
    padding: 3px 10px;
}

@media screen and (max-width: 996px) {

    header {
        position: relative;
        padding: 10px 20px;
        box-shadow: 0px 0px 12px #88888860;
    }

    header .title {
        width: 50%;
        padding-left: 30px;
        box-sizing: border-box;
        font-size: 0.8em;
        order: 1;
    }

    header .lang {
        width: 50%;
        order: 2;
    }

    header nav {
        width: 100%;
        margin-top: 10px;
        order: 3;
    }

    header nav a {
        width: 25%;
    }
}

#intro {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;

    max-width: 1600px;
    margin: auto;

    margin-bottom: 30px;
}

#intro aside {
    width: 40%;
    padding: 30px;
    box-sizing: border-box;

    display: flex;
    justify-content: center;
    align-items: center;
}

#intro .intro-photo {
    width: 100%;
    height: 100%;

    box-sizing: border-box;

    display: flex;
    justify-content: center;
    align-items: center;
}

#intro .intro-photo figure {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

#intro .intro-photo figure img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

#intro .intro-content {
    width: 60%;
    padding: 30px;
    text-align: justify;

    box-sizing: border-box;
}

#intro .intro-content article {
    max-width: 1280px;
    margin: auto;
    padding: 12px 30px;
    text-align: justify;
}

.intro-list {
    display: flex;
    justify-content: center;
    align-items: baseline;
    flex-wrap: wrap;

    max-width: 1600px;
    margin: auto;

    box-sizing: border-box;
    padding: 20px 10px;
}

.intro-list aside {
    width: 30%;
    box-sizing: border-box;
}

.intro-list aside h2 {
    font-size: 1.0em;
    font-style: italic;
    font-weight: 400;

    text-align: right;

    box-sizing: border-box;
    padding: 20px 60px;
}

.intro-list article {
    width: 70%;
    font-weight: 200;
    text-align: justify;

    box-sizing: border-box;
    padding: 20px;
}

.intro-list article ul {
    text-decoration: none;
    width: 100%;
    margin: 0px;
    padding: 0px;
}

.intro-list article li {
    list-style: none;
    margin: 10px 0px;
    display: flex;
    margin-bottom: 18px;
}

.intro-list article li .year {
    display: inline-block;
    width: 80px;
    /* background-color: lightcyan; */
    font-size: 0.8em;
}

#experience .year {
    width: 120px;
    flex-shrink: 0;
}

.intro-list article li .content {
    display: inline-block;
    width: 100%;
    font-size: 0.9em;
}

.intro-list article li b {
    font-weight: 400;
}

@media screen and (max-width: 996px) {
    #intro aside {
        aspect-ratio: 1.6;
        width: 100%;
    }

    #intro aside figure {
        padding: 0px;
        margin: 0px;
    }

    #intro .intro-content {
        width: 100%;
        padding: 0px 30px;
    }

    #intro .intro-content article {
        padding: 0px;
    }

    .intro-list aside {
        width: 100%;
    }

    .intro-list article {
        width: 100%;
    }

    .intro-list aside h2 {
        text-align: left;
        padding: 20px 20px;
    }
}

/* Works */
#works {
    display: flex;
    justify-content: left;
    align-items: left;
    flex-wrap: wrap;

    max-width: 1600px;
    margin: auto;

    padding-bottom: 60px;
}

.work-item {
    position: relative;

    box-sizing: border-box;
    aspect-ratio: 1;

    width: 33%;
    flex-grow: 0;
    padding: 0.66%;

    overflow: hidden;
    transition: all 0.24s ease-in-out;
}

.work-item a {
    display: block;
    border: none;
    position: relative;

    width: 100%;
    height: 100%;
}

.work-item:hover {
    cursor: pointer;
    filter: drop-shadow(6px 6px 12px #66666666);
}

.work-item figure {
    width: 100%;
    height: 100%;
    overflow: hidden;
    margin: 0px;
    padding: 0px;
}

.work-item figure img {
    width: 100%;
    filter: contrast(0.6) saturate(0.2) brightness(1.2);
    transition: all 0.24s ease-in-out;
}

.work-item:link,
.work-item:visited {
    border-bottom: none;
}

.work-item:hover,
.work-item:active {
    border-bottom: none;
}

.work-item:hover figure img {
    filter: none;
}

.work-item .work-info {
    position: absolute;
    width: 100%;

    bottom: 0px;
    box-sizing: border-box;
    padding: 12px 24px;

    /* transform: translateX(-50%); */
    /* left: 50%; */
    left: 0px;
    right: 0px;

    z-index: 66;
    transition: all 0.24s ease-in-out;

    vertical-align: bottom;

    color: white;
    text-shadow: 1px 1px 3px #000000;
    opacity: 0.0;
}

.work-item:hover .work-info {
    opacity: 1.0;
}

.work-item .work-info h3 {
    font-size: 1.2em;
    font-weight: 400;
    margin: 6px;
}

.work-item .work-info p {
    font-size: 0.8em;
    font-weight: 400;
    margin: 6px;
}

@media screen and (max-width: 996px) {
    .work-item {
        width: 100%;
        padding: 6%;
    }
}

@media (hover: none) {
    .work-item {
        filter: none;
    }

    .work-item figure img {
        filter: none;
    }

    .work-item .work-info {
        opacity: 1.0;
    }
}
/* Works Filter */
#works-filter {
    max-width: 1600px;
    box-sizing: border-box;
    margin: auto;
}

#works-filter div {
    /* margin: 6px 6px; */
    padding: 0px;
}

#works-filter ul {
    display: flex;
    justify-content: left;
    align-items: left;
    flex-wrap: wrap;
    /* margin: 20px 0px; */
    margin: 0px;
    padding: 10px;
    /* background-color: antiquewhite; */
}

#works-filter ul li {
    list-style: none;
    margin: 6px;
    padding: 6px 12px;
    /* border-radius: 30px; */
    font-size: 0.8em;
    font-weight: 200;
    letter-spacing: 0.1em;
    transition: all 0.24s ease-in-out;

    cursor: pointer;
    background-color: #FFF;
}

#works-filter ul li:hover {
    background-color: #EEE;
}

#works-filter li.selected {
    background-color: #268cc7;
    color: white;
}

#works-filter li.selected:hover {
    background-color: #115983;
    color: white;
}

#works-filter a {
    border-bottom: none;
}

/* Works-Content */
#works-content {
    display: flex;
    justify-content: right;
    align-items: left;
    flex-wrap: wrap;

    max-width: 1600px;
    margin: auto;
}

#works-content aside {
    /* position: fixed; */
    position: relative;
    width: 30%;
    /* height: 100%; */
    /* overflow: hidden; */
}

#works-content aside .label {
    position: sticky;
    top: 15%;
    left: 0px;

    width: 100%;
    padding: 30px;

    text-align: left;
    box-sizing: border-box;

}

#works-content aside h2 {
    font-size: 1.0em;
    /* font-style: italic; */
    font-weight: 400;
    margin-bottom: 32px;
}

#works-content aside p {
    max-width: 80%;
    font-size: 0.8em;
    font-weight: 200;
    margin: 6px;
    /* background-color: aquamarine; */
}

#works-content .main-content {
    width: 70%;

    padding: 0px;
    margin: 0px;
}

#works-content article {
    width: 100%;
    max-width: 1280px;
    font-weight: 200;

    margin: 0px;
    padding: 0px;
    box-sizing: border-box;

    margin: auto;
}

#works-content article figure {
    padding: 6px 12px;

    width: 96%;
    margin: 0 auto;

    /* background-color:pink; */
    box-sizing: border-box;
    padding: 12px 0px;
}

#works-content article figure figcaption {
    font-size: 0.8em;
    font-weight: 200;
    font-style: italic;
    text-align: center;
    padding-bottom: 12px;
}

#works-content article p {
    text-align: justify;
    margin: 30px;
}

#works-content article figure img {
    width: 100%;
}

#works-content iframe.youtubePlayer {
    width: 100%;
    aspect-ratio: 16 / 9;
    margin: 24px 6px;
}

@media screen and (max-width: 996px) {
    #works-content {
        display: block;
    }

    #works-content aside {
        width: 100%;
    }

    #works-content aside .label {
        position: unset;
    }

    #works-content .main-content {
        width: 100%;
    }

}

/* Sketch */
#sketches {
    display: flex;
    justify-content: left;
    align-items: left;
    flex-wrap: wrap;

    max-width: 1600px;
    margin: auto;

    padding-bottom: 60px;
}

#sketches-desc {
    max-width: 1600px;
    margin: auto;
    padding: 30px;
    box-sizing: border-box;
    text-align: justify;
}

.sketch-item {
    position: relative;

    box-sizing: border-box;
    aspect-ratio: 1;

    width: 25%;
    flex-grow: 0;
    padding: 1%;

    overflow: hidden;
    transition: all 0.24s ease-in-out;
}

.sketch-item a {
    display: block;
    border: none;
    
    position: relative;
    width: 100%;
    height: 100%;
}

.sketch-item:hover {
    cursor: pointer;
    filter: drop-shadow(6px 6px 12px #66666666);
}

.sketch-item figure {
    width: 100%;
    height: 100%;
    overflow: hidden;
    margin: 0px;
    padding: 0px;
}

.sketch-item figure img {
    width: 100%;
    filter: contrast(0.6) saturate(0.2) brightness(1.2);
    transition: all 0.24s ease-in-out;
}

.sketch-item:link,
.sketch-item:visited {
    border-bottom: none;
}

.sketch-item:hover,
.sketch-item:active {
    border-bottom: none;
}

.sketch-item:hover figure img {
    filter: none;
}

.sketch-item .sketch-info {
    position: absolute;
    width: 100%;

    bottom: 0px;
    box-sizing: border-box;
    padding: 12px 24px;

    z-index: 66;
    transition: all 0.24s ease-in-out;

    vertical-align: bottom;

    color: white;
    text-shadow: 1px 1px 3px #000000;
    opacity: 0.0;
}

.sketch-item:hover .sketch-info {
    opacity: 1.0;
}

.sketch-item .sketch-info h3 {
    font-size: 1.2em;
    font-weight: 400;
    margin: 6px;
}

.sketch-item .sketch-info p {
    font-size: 0.8em;
    font-weight: 400;
    margin: 6px;
}

@media screen and (max-width: 996px) {
    .sketch-item {
        width: 50%;
    }
}

@media (hover: none) {
    .sketch-item {
        filter: none;
    }

    .sketch-item figure img {
        filter: none;
    }

    .sketch-item .sketch-info {
        opacity: 1.0;
    }
}

/* contact */
#contact {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;

    max-width: 1600px;
    padding: 6%;
}

#contact .content {
    width: calc(100% - 400px);
    text-align: justify;
}

#contact .content article {
    max-width: 800px;
    margin: auto;
    padding: 12px 30px;
    text-align: justify;
}

#contact aside {
    width: 400px;
    padding: 30px;
    box-sizing: border-box;
}

#contact aside h3 {
    font-size: 0.8em;
    font-weight: 400;
    padding: 6px 6px 0px 6px;
    margin: 0px;
    /* background-color: #268cc7; */
}

#contact .links {
    display: flex;
    padding: 0px;
    margin: 0px;
    margin-bottom: 12px;

    justify-content: left;
    /* background-color: aquamarine; */
}

#contact .links li {
    font-size: 0.8em;
    font-weight: 200;
    list-style: none;
    padding: 6px;
    margin-right: 6px;
    /* background-color: #268cc7; */
}

@media screen and (max-width: 996px) {
    #contact aside {
        width: 100%;
    }

    #contact .content {
        width: 100%;
    }
}

@media (prefers-color-scheme: dark) {
    body {
        color: white;
        background: #111
    }

    header .title .text {
        color: white;
    }

    header nav a .link-text {
        color: white;
    }

    header .lang a {
        color: white;
    }

    .work-item:hover {
        filter: drop-shadow(6px 6px 12px #000000);
    }

    .sketch-item:hover {
        filter: drop-shadow(6px 6px 12px #000000);
    }

    #works-filter ul li {
        background-color: #111;
        color: white;
    }

    #works-filter ul li:hover {
        background-color: #666;
    }

    a:link, a:visited {
        color: white;
        border-bottom-color: white;
    }

    a:hover, a:active {
        color: #268cc7;
        border-bottom-color: white;
    }
}

.work-info {
    /* background-color: #268cc7; */
    left: 0px;
    right: 0px;
    bottom: 0px;
}

.sketch-info {
    /* background-color: #268cc7; */
    left: 0px;
    right: 0px;
    bottom: 0px;
}