*{
    border: 0;
    margin: 0;
    padding:0;
    box-sizing: border-box;
}

html,body{
    height: 200%;
    width: 100%;
    overflow-x: hidden;
}

main{
    overflow: hidden;
}

a{
    color: black;
    text-decoration: none;
}
a:hover{
    color:green;
}

header{
    width: 100%;
    height: 70px;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(8px);
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px 0 20px;
    z-index: 5;
}

header>img{
    height: 90%;
    width: auto;
    position: relative;
    top: 4px;
    opacity: .8;
}

header ul li {
    list-style: none;
    float: left;
}

header li {
    font-size: 18px;
    margin-left:15px;
    transition: .2s;
}

header li:hover{
    transform: scale(1.05);
    cursor: pointer;
    color:green;
    font-weight: bold;
    text-decoration: green underline;
}

header li:active{
    transform: scale(.9);
}

main{
    height:95%;
}



#headPic{
    height: 15%;
    width: 100%;
    margin-top: 70px;
    background: url("../sucai/head_pic.jpg") center;
    background-size: cover;
    position: relative;
}

#coverHeaderPic{
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background: black;
    z-index:2;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 50px;
    color:white;
    overflow: hidden;
    flex-direction: column;
}

#coverHeaderPic span{
    opacity: 0;
    transition: .5s;
}

#coverHeaderPic:hover > span{
    opacity: 1;
}

@keyframes changePicCover {
    0%{
        background: rgba(0, 0, 0, 0.8);
        backdrop-filter: blur(3px);
    }
    90%{
        width: 100%;
        background: rgba(0, 0, 0, 0.4);
        backdrop-filter: blur(8px);
    }
    100%{
        width: 100%;
        background: rgba(0, 0, 0, 0.1);
        backdrop-filter: blur(8px);
    }
}

#headPic:hover{
    cursor: pointer;
}

#headPic:hover > #coverHeaderPic{
    animation: 1s changePicCover forwards;
}

@keyframes changeHeadTextColor {
    0%{
        color: white;
    }
    50%{
        color: rgba(255, 255, 255, 0.2);
    }
    100%{
        color: white;
    }
}

#headPic>div{
    font-size: 50px;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.6);
}

#headerPicButton{
    height: 55px;
    width: 150px;
    border-radius: 10px;
    font-size: 20px;
    line-height: 55px;
    text-align: center;
    margin-top: 15px;
    border:1px white solid;;
    background: rgba(255, 255, 255, 0.2);
    transition: .2s;
}

#headerPicButton:hover{
    background: rgba(255, 255, 255, 0.8);
    color:green;
    font-size: 22px;
    transform: scale(1.1);
}

#headerPicButton:active{
    transform: scale(.95);
}

#hello{
    position: absolute;
    top: 30px;
    left: 50px;
    animation: 5s changeHeadTextColor infinite;
}

#thisIs{
    position: absolute;
    right: 50px;
    bottom:30px;
    animation: 5s changeHeadTextColor infinite;
}



@keyframes changeHeadCirBackGround {
    0%{
        background-color: white;
    }
    50%{
        background-color: rgba(255, 255, 255, 0.2);
    }
    100%{
        background-color: white;
    }
}

.inHeadPicCir{
    height: 50px;
    width: 50px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    animation: 5s changeHeadCirBackGround infinite;
}

.inHeadPicCir.bottomCir{
    position: absolute;
    left: 50px;
    bottom: 30px;
}

.inHeadPicCir.topCir{
    position: absolute;
    right: 30px;
    top: 30px;
}

/*who am I*/
#whoAmI{
    height: 15%;
    background: #e4ffe4;
    background-size: cover;
    transition: all .3s;
    position: relative;
}

#coverWhoamI{
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background-color: rgba(233, 255, 233, 0.8);
    display: flex;
    justify-content:center;
    align-items: center;
    flex-direction: column;
}

#coverWhoamI span{
    height: 25px;
    line-height: 25px;
    margin-top: 10px;
    font-size: 18px;
    transition: .2s;
}

/*#whoAmI span h2  {*/
/*    z-index: 5;*/
/*}*/

#coverWhoamI > span:hover{
    cursor: pointer;
    height: 40px;
    line-height: 40px;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 0 45px 0 45px;
    border-radius: 10px;
}

/*mylife*/
#myLife{
    width: 100%;
    height: 10%;
    display: grid;
    grid-template-columns: 1fr 2fr;
}

#myLife div{
    /*border: 1px blue dotted;*/
}

#myLife > #left{
    justify-items: center;
    align-content: center;
}

#schoolBox{
    width: 100%;
    height: 80px;
    display: flex;
    justify-content: center;
    padding-right: 5px;
}

#schoolBox img{
    height: 70px;
    width: auto;
}

.schools{
    height: 70px;
    width: 70px;
    margin: 10px;
    margin-top: 30px;
    transition: .3s;
}

.schools:hover{
    cursor: pointer;
    transform: scale(1.1);
}

#myLife #right{
    display: grid;
    grid-template-columns: 1.5fr 1fr;
}

#myLife #lifePhotoBar{
    border-radius: 20px;
    margin: 20px;
}

#lifeText{
    text-align: center;
    align-content: center;
}

#lifePhotoBar{
    background: url("../sucai/baoji.jpg");
    background-size: cover;
}

#loveSentence{
    height: 8%;
    width: 100%;
    background: url("../sucai/waibg.jpg");
    background-size: cover;
    font-size: 50px;
    color:white;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
}

#projects{
    height: 15%;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr 4fr;
    background-color: #e4ffe4;
}

#projects #projectHeader{
    color:green;
    font-size: 35px;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 20px;
}

#projects div {
    /*border: 1px blue dotted;*/
}

#projects #projectMain{
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    padding: 0 50px 0 50px;
}
.projectCards{
    margin: 30px;
    border-radius: 20px;
    background-size: cover;
    position: relative;
    overflow: hidden;
    transition: .3s;
    box-shadow:0px 5px 15px 0px rgba(32,72,52,0.3);
}

#hclass{
    background:url("../sucai/prohclass.png");
}

#jf{
    background:url("../sucai/proscore.png");
}

#qp{
    background:url("../sucai/proqp.jpg");
}

#hclass,#jf,#qp {
    background-size: cover;
}

.cardHover{
    height: 0%;
    width: 100%;
    position: absolute;
    bottom: 0;
    left: 0;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(5px);
    padding: 10px;
    text-align: center;
    overflow: hidden;
    opacity: 0;
    transition: .5s;
}

.projectCards:hover{
    transform: scale(1.05);
    cursor: pointer;
    border:2px #49c649 solid;
}

.projectCards:hover > .cardHover{
    height: 30%;
    opacity: 1;
}


#photos{
    margin-top: 20px;
    height: 15%;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 3fr 3fr 3fr;
    background: #ffffff;
    border-top: 2px rgba(63, 205, 63, 0.5) solid;
    border-bottom: 2px rgba(63, 205, 63, 0.5) solid;
}

.photoCol{
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: repeat(auto-fill , 1fr);
}

.photo{
    margin: 20px;
    border-radius: 10px;
    transition: .2s;
}

.photo:hover{
    transform: scale(1.03);
    cursor: pointer;
}

#photoTitle{
    font-size: 40px;
    font-weight: bold;
    color: green;
    writing-mode: vertical-rl;
    text-align: center;
    align-content: start;
    padding-right: 10px;
    background: #e4ffe4;
}

#poetry{
    height: 18%;
    width: 100%;
    /*border: 1px blue dotted;*/
    display: grid;
    grid-template-rows: 1fr 6fr;
    background: #e4ffe4;
    padding-bottom: 20px;
    margin-top: 20px;
    position: relative;
}

#poetry div{
    /*border: 1px red solid;*/
}

#poetryBox{
    display: grid;
    grid-template-rows: repeat(3 , 1fr);
    grid-template-columns: repeat( 2 , 1fr);
    padding: 0 80px 0 80px;
}

.poetryCard{
    margin: 10px;
    border-radius: 20px;
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.poetryCard > img{
    height: 100%;
}

.poetryCard > span{
    font-size: 15px;
    margin: 15px;
}

#poetryHeader{
    font-size: 40px;
    color: green;
    display: flex;
    justify-content: center;
    align-items: center;
}

.coverPoetry{
    background: rgba(0, 0, 0, 0.5);
    transition: .3s;
    height: 100%;
    width: 100%;
    backdrop-filter: blur(5px);
    opacity: 0;
    cursor: pointer;
    color:white;
    font-size: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.poetryCard:hover > .coverPoetry {
    opacity: 1;
}

footer{
    width: 100%;
    height: 5%;
    background: green;
    display: flex;
    padding: 30px 80px 30px 80px;
    align-items: center;
    justify-content: space-between;
}

#friendBox{
    color: rgba(255, 255, 255, 0.85);
}

#friendBox > h2 {
    font-weight: normal;
    margin-bottom: 10px;
}

#friendBox ul li{
    list-style: none;
}

#friendBox li:hover{
    text-decoration: underline;
    cursor: pointer;
}

#mine{
    color: rgba(255, 255, 255, 0.85);
    text-align: right;
}

#contactBox{
    height: 50px;
    width: 200px;
    display: flex;
    justify-content: flex-end;
    position: relative;
    right: -10px;
    margin-bottom: 10px;
}

.contact{
    height: 50px;
    width: 50px;
    margin: 5px;
}

.contact > img{
    height: 80%;
    width: auto;
    color:white;
    cursor: pointer;
}

#mine{
    display: flex;
    align-items: flex-end;
    flex-direction: column;
}