* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.icon {
    width: 1em;
    height: 1em;
    vertical-align: -0.15em;
    fill: currentColor;
    overflow: hidden;
}

.clearfix::after {
    content: '';
    display: block;
    clear: both;
}

ul, ol {
    list-style-type: none;
}

a {
    text-decoration: none;
}

body {
    background-color: rgb(239, 239, 239);
}

[data-x].offset {
    transform: translateY(80px);
}

[data-x] {
    transform: translateY(0);
    transition: all 0.5s;
}

.siteWelcome {
    display: none;
}

.siteWelcome.active {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    background-color: #888;
}

.topNavBar {
    position: fixed;
    width: 100%;
    padding: 17px 0;
    z-index: 1;
    color: #b7b7b7;
    transition: all 1s;
    box-sizing: border-box;
}

.topNavBar.sticky {
    opacity: .8;
    background-color: white;
    color: rgb(61, 68, 81);
    box-shadow: 0px 3px 9px 1px rgba(0, 0, 0, 0.55);
    height: 55px;
}

.rscard {
    float: left;
    font-weight: bold;
    font-size: 25px;
}

.rscard>.rs {
    color: rgb(230, 104, 108);
    padding-left: 20px;
}

.rscard>.rs_card {
    color: rgb(154, 157, 162);
    padding-left: 15px;
}

.nav {
    float: right;
}

.nav>ul>li {
    float: left;
    padding-right: 36px;
    position: relative;
}

.nav>ul>li>ul {
    position: absolute;
    top: 100%;
    right: 50%;
    white-space: nowrap;
    display: none;
    /* transition: all 0.4s; */
}

.nav>ul>li>ul.active {
    display: block;
    animation-name: ulSlide;
    animation-duration: 0.4s;
    background-color: white;
    box-shadow: 0px 3px 9px 1px rgba(255, 255, 255, 0.55);
}

@keyframes ulSlide {
    0% {
        margin-right: 100%
    }
    100% {
        margin-right: 0
    }
}

.nav>ul>li>ul.active>li {
    box-sizing: border-box;
    padding: 10px 10px;
    color: black;
}

.nav>ul>li a {
    color: inherit;
    line-height: 15px;
    padding: 9px 0;
    display: block;
    font-size: 14px;
    font-weight: bold;
    position: relative;
}

.nav>ul>li a:hover::after {
    /* border-bottom: 2px solid rgb(230, 104, 108); */
    content: '';
    display: block;
    position: absolute;
    width: 100%;
    height: 2px;
    top: 100%;
    background-color: rgb(230, 104, 108);
    animation-name: aHoverSlide;
    animation-duration: 0.4s;
}

.nav>ul>li a.highlight::after {
    /* border-bottom: 2px solid rgb(230, 104, 108); */
    content: '';
    display: block;
    position: absolute;
    width: 100%;
    height: 2px;
    top: 100%;
    background-color: rgb(230, 104, 108);
    animation-name: aHoverSlide;
    animation-duration: 0.4s;
}

@keyframes aHoverSlide {
    0% {
        width: 0;
    }
    100% {
        width: 100%;
    }
}

.banner {
    height: 515px;
    background-image: url(https://fangyinghang.com/resume-15-2/img/rs-cover.jpg);
    background-size: cover;
    background-position: center center;
    z-index: 1;
}

.banner .mask {
    height: 515px;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

main {
    background-color: rgb(239, 239, 239);
    z-index: -1;
    /* background-color: red; */
    border: 1px solid rgb(239, 239, 239);
}

main .card {
    max-width: 940px;
    background-color: white;
    /* background-color: blue; */
    margin: 0 auto;
    /* position: relative;
    top:-100px; */
    margin-top: -320px;
}

.textAndImage {
    /* border: 1px solid blue; */
    padding: 55px 55px;
    /* margin-top: -400px; */
}

.textAndImage>.img {
    float: left;
    width: 299px;
    height: 350px;
    overflow: hidden;
}

.textAndImage>.img>img {
    /* width: 100%; */
    height: 100%;
}

.textAndImage>.description {
    float: left;
    margin-left: 70px;
    position: relative;
}

.textAndImage>.description>.welcome {
    background-color: rgb(230, 104, 108);
    display: inline-block;
    height: 34px;
    text-align: center;
    font-size: 18px;
    color: white;
    line-height: 34px;
    padding: 0 20px;
}

.textAndImage>.description>.triangle {
    border: 6px solid transparent;
    width: 0;
    border-top: 6px solid rgb(230, 104, 108);
    border-left: 6px solid rgb(230, 104, 108);
    /* border-top: 6px solid black;
    border-left: 6px solid black; */
    display: inline-block;
    /* height: 10px;
    width: 10px; */
    position: absolute;
    left: 5px;
    top: 34px;
}

.description>h1 {
    padding-top: 24px;
    /* width: 520px; */
}

.description>hr {
    margin: 25px 0;
    /* border: 0; */
    color: rgb(222, 222, 222);
    width: 450px;
}

.description dl {
    width: 450px;
}

.description dt, .description dd {
    float: left;
}

.description dt {
    font-weight: bold;
    width: 30%;
    padding-bottom: 9px;
}

.description dd {
    color: #b7b7b7;
    padding-bottom: 9px;
    width: 70%;
}

.card {
    box-shadow: 0px 0px 3px 0px rgba(0, 0, 0, 0.5);
}

.card>footer.media {
    background: #E6686A;
    text-align: center;
}

.card>footer.media>a {
    display: inline-block;
    width: 40px;
    line-height: 30px;
    padding: 5px 0;
    border-radius: 50%;
    margin: 16px;
}

.card>footer.media>a:hover {
    background: #CF5D5F;
}

.card svg {
    width: 30px;
    height: 30px;
    fill: white;
    vertical-align: top;
}

main>a {
    width: 214px;
    margin: 34px auto;
    display: block;
    font-weight: bold;
    border: 1px solid rgb(205, 207, 209);
    text-align: center;
    color: black;
    height: 62px;
    line-height: 62px;
    border-radius: 2px;
    transition: all 0.2s;
}

main>a:hover {
    box-shadow: 0px 3px 9px 0px rgba(0, 0, 0, 0.5);
}

main>p {
    max-width: 616px;
    margin: 0 auto;
    text-align: center;
    line-height: 1.8;
    font-family: cursive;
    font-size: 18px;
}

.skills {
    /* border: 1px solid red; */
}

.skills>h2 {
    text-align: center;
    font-size: 35px;
    font-weight: bold;
    margin-top: 70px;
    margin-bottom: 34px;
}

.skills>ol {
    max-width: 940px;
    margin: 0 auto;
    /* border: 1px solid blue; */
    /* height: 300px; */
    padding: 47px 55px;
    padding: 0 0 47px 55px;
    box-sizing: border-box;
    background-color: white;
    box-shadow: 0px 3px 3px 0px rgba(0, 0, 0, 0.5);
}

.skills>ol>li {
    float: left;
    width: 45%;
    box-sizing: border-box;
}

.skills>ol>li:nth-child(even) {
    margin-left: 30px;
}

.skills>ol>li>.skill-wrapper {
    /* margin: 47px 55px; */
    margin-top: 47px;
}

.skills>ol>li .skillname {
    font-size: 14px;
}

.skills .progress {
    height: 7px;
    background-color: rgb(250, 225, 225);
    border-radius: 3px;
    overflow: hidden;
}

.skills .progress>.progress-inner {
    height: 100%;
    width: 40%;
    background-color: rgb(230, 104, 106);
    border-radius: 3px;
    transform: translateX(0);
    transition: all 1s;
}

.skills.offset .progress>.progress-inner {
    transform: translateX(-100%);
}
.portfolio{
    margin-bottom: 300px;
}
.portfolio>h2 {
    text-align: center;
    font-size: 35px;
    font-weight: bold;
    margin-top: 70px;
    margin-bottom: 34px;
}


.swiper-container {
    width: 1200px;
    height: 600px;
}
.swiper-slide{
    border: 1px solid red;
}
/* .swiper-wrapper>.swiper-slide:nth-child(1){
    background-image: url(./imgs/home.png);
    background-size: contain;
}
.swiper-wrapper>.swiper-slide:nth-child(2){
    background-image: url(./imgs/nav.png);
    background-size: contain;
}
.swiper-wrapper>.swiper-slide:nth-child(3){
    background-image: url(./imgs/canvas.jpg);
    background-size: contain;
} */
.swiper-button-prev,.swiper-button-next{
    left: 20%;
    right: auto;
    background-color: white;
    border-radius: 50%;
    width: 44px;
    top: 59%;
}
.swiper-button-next{
    right: 20%;
    left: auto;
}
