@import url('https://fonts.googleapis.com/css2?family=Dosis&family=Mukta:wght@300&display=swap');
/* font-family: 'Mukta', sans-serif; 
    font-family: 'Dosis';
*/
/* 電腦與平板上應用的樣式 */
*{
    padding: 0;
    margin: 0;
    list-style: none;
    font-family: Arial, 微軟正黑體;
}
html {
    scroll-behavior: smooth;
}
body {
    background-color: #f2f2f2;
    margin: 0px;
    font-size: 16px;
}
a{
    color: #ffffff;
}

h4{
    color: #000000;
}
img{
    max-width: 100%;
    height: auto;
}

.logo{
    width: 100px;
    background-color: #94C5BF;
    text-align: center;
    padding: 10px;
}
.logo a{
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: bold;
    font-size: 20px;
    font-family: "Mukta";
}
.menu-icon{
    width: 100px;
    font-size: 20px;
    font-family: "Mukta";
    border-radius: 10px;
}
.menu-icon a{
    width: 100px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: bold;
}

.navbar{
    display: flex;
    align-items: stretch;
}
.header a{
    text-decoration: none;
}
.navbar > ul{
    display: flex;
    
}
.navbar ul li a{
    font-size: 18px;
    font-weight: bold;
    width: 110px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgb(255, 255, 255);
}
.navbar ul li a:hover{
    background-color: #94C5BF;
}

.container{
max-width: 100%;
width: 100%;
padding: 10px 0;
display: flex;
justify-content: center;
font-family: Arial, 微軟正黑體;

}
.space-around{
    justify-content: space-around;
}
#About{
    background-image: #ebdddd
}
.photo{
    width: 40%;
    height: auto;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}
#About div img{
    /* height: 31.25rem; */
    max-width: 100%;
    max-height: 500px;
}
.my-img{
    box-shadow: 20px 15px 0px #799d99;
}
.description{
    width: 50%;
    padding: 20px;
    display: flex;
    justify-content: center;
    flex-direction: column;
}
.profile{
    line-height: 30px;
    padding: 30px 0;
    width: 75%;
}
.education .education-list li{
    width: 70%;
    line-height: 30px;
    padding-left: 10px;
    background-color: #94C5BF;
    margin: 20px;
    border-radius: 5px;
}
.education .education-list li h4, .education .education-list li p{
    color: white;
}
.education-meta{
    color: #444;
}

section{
    padding: 50px;
}
/* 技能列表 */
.skill-list li{
    padding: 10px 0px;
}
.skill-name{
    display: inline-block;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    width: 80px;
    margin-right: 30px;
}
.skill-bar{
    display: inline-block;
    width: 300px;
    height: 20px;
    background-color: #ffffff;
    border-radius: 30px;
    box-shadow: 2px 2px 5px #999 inside;
    position: relative;
}
.skill-level-html{
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 20px;
    background-color: rgb(214, 41, 148);
    opacity: 0.8;
    border-radius: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #ffebeb;
}

.skill-html{
    animation: progress-html 2s ease-in-out;
    background: linear-gradient(to right, #f89e59, #FF4500);
    width: 80%;
    /* animation-iteration-count: infinite; */
}

.skill-css {
    animation: progress-css 2s ease-in-out;
    background: linear-gradient(to right, #FFD700, #1ee5ff);
    width: 80%;
}

.skill-js {
    animation: progress-js 2s ease-in-out;
    background: linear-gradient(to right, #FFD700, #FFA500);
    width: 80%;
}

.skill-React {
    animation: progress-React 2s ease-in-out;
    background: linear-gradient(to right, #FFD700, #ff5c5c);
    width: 80%;
}

.skill-Nodejs {
    animation: progress-Nodejs 2s ease-in-out;
    background: linear-gradient(to right,  #FFD700, #07ce5d);
    width: 60%;
}

.skill-ts {
    animation: progress-ts 2s ease-in-out;
    background: linear-gradient(to right, #1ee5ff, #006eff);
    width: 60%;
}

.skill-mysql {
    animation: progress-mysql 2s ease-in-out;
    background: linear-gradient(to right, #00BFFF, #3b228b);
    width: 50%;
}
.skill-jest {
    animation: progress-jest 2s ease-in-out;
    background: linear-gradient(to right, #e47dfe, #3b228b);
    width: 50%;
}
.skill-vue {
    animation: progress-vue 2s ease-in-out;
    background: linear-gradient(to right, #f575cd, #fb4258);
    width: 30%;
}

/* skill Animation */

@keyframes progress-html {
    from {
        width: 0%;
    }
    to {
        width: 80%;
    }
}

@keyframes progress-css {
    from {
        width: 0%;
    }
    to {
        width: 80%;
    }
}

@keyframes progress-js {
    from {
        width: 0%;
    }
    to {
        width: 80%;
    }
}

@keyframes progress-React {
    from {
        width: 0%;
    }
    to {
        width: 80%;
    }
}

@keyframes progress-Nodejs {
    from {
        width: 0%;
    }
    to {
        width: 60%;
    }
}

@keyframes progress-ts {
    from {
        width: 0%;
    }
    to {
        width: 60%;
    }
}

@keyframes progress-mysql {
    from {
        width: 0%;
    }
    to {
        width: 50%;
    }
}
@keyframes progress-jest {
    from {
        width: 0%;
    }
    to {
        width: 50%;
    }
}

@keyframes progress-vue {
    from {
        width: 0%;
    }
    to {
        width: 30%;
    }
}


#Experience{
    /* background-image: linear-gradient(to right bottom, #da94de, #fa8bbe, #ff8b98, #ff9574, #eea658); */
    background-color: #94C5BF;
}
#Experience>.container{
    display: flex;
    height: 50%;
    width: 75%;
    margin-left: 10%;
    flex-direction: column;
}
#Experience>.container>h2{
    display: flex;
}

/* 經歷開啟時有漸入效果 */
.article {
    opacity: 0;
    transition: opacity 1s, transform 1s;
}
.article.fade-in {
    opacity: 1;
    transform: none;
}

.Group{
    margin: 20px 0;
    padding: 20px 0;
    display: flex;
    gap: 40px;
}

.each-desc {
    border-bottom: 1px rgb(255, 255, 255) solid;
    padding-bottom: 40px;
    list-style: disc;
    padding-left: 20px;
}

.each-desc > li {
    list-style: disc;
    padding-bottom: 12px;
}

.each-desc > li:nth-child(5){
    list-style: none;
    color: #f2f2f2;
}

.each-desc:last-child {
    border-bottom: none;
}

.date, .company-logo, .company-name, .job-title{
    display: flex;
    align-items: center;
    text-align: center;
}
.date{
    font-weight: bold;
    
}
.company-name, .job-title{
    line-height: 30px;
    font-weight: bold;
}
.workcompany{
    height: 50px;
    border-radius: 45%;
}

.text{
    width: 30%;
    height: 200px;
    background-color: lightsalmon;
    display: flex;
    justify-content: center;
    align-items: center;
    margin:1.5%
}
.wrap{
    flex-wrap: wrap;
}

footer{
    background-color: #2c2c2c;
}
footer p{
    line-height: 50px;
    color: #fff;
    text-align: center;
}
.header{
    /* background-image: linear-gradient(to right bottom, #da94de, #fa8bbe, #ff8b98, #ff9574, #eea658); */
    background-color: #94C5BF;
    display: flex;
    justify-content: space-between;
    align-content: stretch;
    flex-wrap: wrap;
}

/* 照片牆grid設定 */
.CardPart{
    width: 80%;
    margin: 50px auto;
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(3, 1fr); 
}
/* 只要class有以下名稱，不用card-1 card-2一個一個設定 */
[class^="card-"]{

}

.card{
    position: relative;
    overflow: hidden;
    height: 200px; 
    transform-style: preserve-3d;
    transition: transform 0.6s;
}

.side {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    transition: transform 0.5s;
}
.card-content{
    padding-left: 25px;
    padding-right: 25px;
    line-height: 22px;
}
.back{
    display: flex;
    flex-direction: column;
    background: #94c5bf;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    font-weight: bold;
    transform: rotateY(180deg);
    transition: transform 0.5s;
}
.card:hover .side {
    transform: rotateY(180deg);
}

.card:hover .back {
    transform: rotateY(0deg);
}

.card:nth-child(3){
    grid-area: 1 / 3 / 2 / 5 ;
}
.card:nth-child(6){
    grid-area: 2 / 4 / 3 / 6 ;
}
.card:nth-child(8){
    grid-area: 2 / 2 / 4 / 4 ;
    height: 410px;
}

/* 延展圖片撐開高度 */
.card:nth-child(8) img{
    height: 100%;
    object-fit: cover;
}


i{
    margin-right: 10px;
}

.form1{
    height: 530px;
    width: 40%;
    background: #ffffff;
    border-radius: 10px;
    padding: 20px 30px;
}
h1{
    text-shadow: 2px 2px 4px #798073;
    line-height: 45px;
    color: #000000;
}
h3{
    text-shadow: 2px 2px 4px #798073;
    line-height: 45px;
    color: #342727;
}
.Lastone{
    /* background-image: linear-gradient(to right bottom, #da94de, #fa8bbe, #ff8b98, #ff9574, #eea658); */
    background-color: #94C5BF;
}
.textBox{
    margin-top: 5px;
    margin-bottom: 20px;
    width: 100%;
    height: 36px;
    border-radius: 5px;
    border: #fff;
    background-color: #f1f1f1;
    text-indent: 2%
}
.inputBox{
    margin-bottom: 5px;
    width: 70%;
    height: 20px;
    border-radius: 5px;
    border: #fff;
    background-color: #f1f1f1;
    text-indent: 3%
}

.tmeper{
    margin-left: 15%;
    margin-right: 15%;
}

.selectBox{
    border-radius: 5px;
}


.anothertextbox{
    height: 33%;
}
.bmi-input{
    display: flex;
}
.button1{
    margin-top: 10px;
    color: #fff;
    font-size: 18px;
    height: 40px;
    width: 120px;
    border-radius: 5px;
    border: 0;
    /* background-image: linear-gradient(to right bottom, #da94de, #fa8bbe, #ff8b98, #ff9574, #eea658); */
    background-color: #638682;
}
.button-input{
    margin-bottom: 5px;
    color: #fff;
    font-size: 12px;
    height: 20px;
    width: 75px;
    border-radius: 5px;
    border: 0;
    background-color: #638682;
}
#Portfolio h2{
text-align: center;
}

/* 圖3 - 99乘法表 */
.table{
    display: flex;
    flex-direction: column;
    text-align: center;

}
#result{
    display: inline-flex;
    border: 1px solid black;
}

#result > div{
    padding: 4px;
    margin: 0;
}

#result p {
    margin: 5px 0px;
    font-size: 10px;
}

#result div:not(:last-child){
    border-right: 1px solid black;
}
/* 圖5 - chartJs */
.chartJs-all{
    display: flex;
    flex-direction: column;

}
.chartJs-title{
    padding-left: 17%;
    padding-right: 15%;
}

.chartJs-intro{

}

/* 圖8 - React - 商城 */
.shop{
    display: flex;
    flex-direction: column;
    padding-left: 10%;
    padding-right: 10%;
    line-height: 22px;
}
.shop-title{
text-align: center;
padding: 4px 0;

}

.shop-intro{
    padding-left: 8%;
    font-weight: 400;    
    margin-bottom: 10px;
    padding-bottom: 2px;
}
.shop-intro > li{
    list-style: disc;
}

.shop-timeline{
    color: #638682;
    font-size: 10px;
}

/* 為了照片牆縮放 */
@media screen and (min-width: 500px) and (max-width: 1400px) {
    .CardPart{
        width: 80%;
        margin: 50px auto;
        display: grid;
        gap: 10px;
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: repeat(3, 1fr); 
    }
    .card:nth-child(3){
        grid-area: 1 / 3 / 2 / 5 ;
        object-fit: cover;
        height: 100%;

    }
    .card:nth-child(6){
        grid-area: 2 / 4 / 3 / 5 ;
        object-fit: cover;
    }
    .card:nth-child(8){
        grid-area: 2 / 2 / 4 / 3 ;
        height: 410px;
    }
    #result > div{
        padding: 3px;
        margin: 0;
    }
    .birth-content>.inputBox{
        width: 100%;
    }
}
@media screen and (min-width: 500px) and (max-width: 1150px) {
    .CardPart{
        width: 80%;
        margin: 50px auto;
        display: grid;
        gap: 10px;
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(4, 1fr); 
    }
    .card:nth-child(3){
        grid-area: 4 / 1 / 5 / 3 ;

    }
    .card:nth-child(5){
        grid-area: 3 / 1 / 4 / 2 ;

    }
    
    .card:nth-child(6){
        grid-area: 2 / 3 / 3 / 4 ;

    }
    .card:nth-child(8){
        grid-area: 3 / 3 / 5 / 3 ;
        height: 410px;
    }
}
@media screen and (min-width: 500px) and (max-width: 900px) {

    .CardPart{
        margin-top: 12px;
        margin-bottom: 24px;
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        
    }
    .card{
        width: 47%;
        height: 136px;
    }
    
    .card>img{
        width: 100%;
        object-fit: fill;
    }
    .card:nth-child(8){
        height: 136px !important;
    }
    .card:nth-child(8) img{
        height: 136px !important;
        width: 100%;
    }
    .card:nth-child(3){
        height: 136px !important;
    }
    .inputBox{
        width: 40%;
    }
    .tallWeight{
        display: flex;    
        flex-direction: row;
    }
    .box{
        display: flex;
        justify-content: flex-start;
    }
    .button-input{
        width: 40%;
        margin-right: 30px;
    }
}

/* 平板 */
@media screen and (min-width: 768px) and (max-width: 1023px) {
    .container{
        flex-direction: column;
    }
    
    .description{
        padding-left: 13%;
    }
    .photo,.description{
        width: 100%;
    }
}

@media screen and (min-width: 500px) and (max-width: 768px) {
    .container{
        flex-direction: column;
    }
    
    .description{
        padding-left: 13%;
    }
    .photo,.description{
        width: 100%;
    }

}

/* 手機 */
@media screen and (max-width:500px) {
.menu-icon{
    font-size: 20px;
    position: relative;
    height: 3rem;
    cursor: pointer;
}
.menu-icon:after{
    position: absolute;
    content: "";
    left: -12px;
    width: 24px;
    height: 3px;
    border-top: 9px double #fff;
    border-bottom: 3px solid #fff;
    top: calc((48px - 15px) / 2);
}

.navbar{
    width: 100%;
}
.navbar > ul{
    flex-direction: column;
}
.navbar > ul, .navbar ul li{
    width: 100%;
}
.navbar ul li a{
    width: 100%;
    line-height: 40px;
    text-align: center;
    background-color:#94C5BF;
    border: solid 1px #ffffff;
}
.container{
    flex-direction: column;
}
#Experience .container{
    width: 85%;
}

.description{
    padding-left: 13%;
}
.photo,.description{
    width: 100%;
}
.photo,.description,.skill{
    margin-bottom: 30px;
}
section{
    padding: 30px 13px;
}

.skill-bar{
    width: 45%;
}
.CardPart{
    margin-top: 12px;
    margin-bottom: 24px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    
}
.card{
    width: 47%;
    height: 136px;
}

.card>img{
    width: 100%;
    object-fit: fill;
}
.Try1{
    height: 136px !important;
}
.card:nth-child(8){
    height: 136px !important;
}
.card:nth-child(3){
    height: 136px !important;

}
input:focus, textarea:focus{
    outline: none;
}

textarea{
    padding-top: 3%;
}

.Group{
    flex-direction: column;
    padding: 0;
    gap: 0;
    align-items: center;
    justify-content: center;
}

.Group1, .Group2, .h2-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.date, .company-logo, .company-name, .job-title{
margin-bottom: 20px;

}
.card-content{
    width: 100%;
}
.inputBox{
    margin-bottom: 5px;
    width: 50%;
}

.card-content{
    padding-left: 3px;
    padding-right: 3px;
}

.card-content>.birth-content{
    padding-left: 20px;
    padding-right: 20px;
}

/* #nthchildlist>div:nth-child(1){
    order: 1
}
#nthchildlist>div:nth-child(2){
    order: 2
}
#nthchildlist>div:nth-child(3){
    order: 4
}
#nthchildlist>div:nth-child(4){
    order: 3
}
#nthchildlist>div:nth-child(5){
    order: 5
}
#nthchildlist>div:nth-child(6){
    order: 6
} */
}