/* this stylesheet is written by weinan li */

/* this is dark mode*/


/*--------global content--------*/
html {
  box-sizing: border-box;
}

*,
*::before,
*::after {
  box-sizing: inherit;
  -webkit-font-smoothing: antialiased;
  -moz-font-smoothing: antialiased;
}

* {
  font-family: "Gill Sans", Arial, sans-serif;
}

body {
  line-height: 2;
  text-align: center;
  background-color: #212121;
  color: #ffffff;
  background-size: cover;
  background-attachment: fixed;
  margin: 0;
  position: relative;
}

header {
  padding: 30px 50px 10px 50px;
  overflow: hidden;
}

header a {
  text-decoration: none;
}

.logo-img {
  float: left;
  max-width: 120px;
  height: auto;
  padding-top: 12px;
}

.logo-img:hover > .logo-top{
  transform: translatey(-6px);
}

.logo-top {
  width: 110px;
  transform: translatey(-10px);
  transition: 150ms ease-in;
  /* animation: float 5s ease-in-out infinite; */
}

.logo-bottom {
  width: 120px;
  position: relative;
  transform: translateY(-55px);
  margin-bottom: -60px;
  z-index: -1;
}

.logo-intro {
  float: left;
  text-align: left;
  margin: 32px 0 0 30px;
  line-height: 24px;
  font-weight: 600;
}

span.logo-sub {
  color: #d8d8d8;
}

nav {
  float: right;
  text-align: right;
  margin-top: 15px;
}

nav a {
  width: 50px;
  color:  #d8d8d8;
  font-size: 14px;
  text-transform: uppercase;
  font-weight: 600;
  padding-bottom: 8px;
  border-bottom: 2px solid transparent;
  -moz-transition: 0.5s ease;
  -webkit-transition: 0.5s ease;
  transition: 0.5s ease;
}

nav a:hover {
  color:  #ffffff;
}

nav .selected {
  color:  #ffffff;
  border-color: #ffffff;
}

footer {
  padding: 30px 0px;
  margin-top: 120px;
}

footer p,
footer a {
  font-size: 14px;
  text-decoration: none;
  font-weight: 500;
  color: #d8d8d8;
}

footer a {
  margin: 0 10px;
}

.fa-icon {
  padding: 5px 11px;
  font-size: 23px;
}

.fa-icon[title~="LinkedIn"]:hover {
  color: #0e76a8;
  text-shadow: 0px 4px 30px #0e76a866;
}

.fa-icon[title~="Dribbble"]:hover {
  color: #ea4c89;
  text-shadow: 0px 4px 30px #ea4c8980;
}

.fa-icon[title~="GitHub"]:hover {
  color: #ad5c51;
  text-shadow: 0px 4px 30px #ad5c5166;
}


@media screen and (min-width: 1500px) {
  header {
    padding: 30px 180px 10px 180px;
  }
}

@media screen and (max-width: 800px) {
  header {
    padding: 35px 0 0;
    text-align: center;
  }

  .logo-img {
    margin-left: auto;
    margin-right: auto;
    float: none;
  }

  .logo-bottom {
    top: -2px;
  }

  .logo-intro {
    font-size: 17px;
    text-align: center;
    float: initial;
    margin: 0px 0 40px 0;
  }

  nav {
    color: #ffffff;
    float: none;
    text-align: center;
    margin-top: 20px;
  }

  footer {
    margin-top: 40px;
    padding: 30px 30px;
  }

  .fa-icon {
    font-size: 20px;
  }
}

/*--------index.html & about.html instance--------*/
main {
  padding: 0px;
}

.hello {
  background: #006b7d;
  background: -moz-linear-gradient(133deg, #004475 0%, #003249 60%, #500069 90%);
  background: -webkit-linear-gradient(133deg, #004475 0%, #003249 60%, #500069 90%);
  background: linear-gradient(133deg, #004475 0%, #003249 60%, #500069 90%);
  background-size: 400% 400%;
  animation: gradient 8s ease forwards;
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#006b7d",endColorstr="#62007d",GradientType=1);
  margin: 10px 0 0 0;
  overflow: hidden;
}

@keyframes gradient {
  0% {
		background-position: 0% 0%;
	}
	100% {
		background-position: 100% 50%;
	}
}

.hello-inset {
  width: 100%;
  margin: 0px auto;
  padding: 150px 100px 200px 100px;
  text-align: center;
  min-height: 300px;
  background-image: url("/_image/_background_image/hello-desktop.png");
  background-attachment: scroll;
  background-position:center;
  background-repeat: no-repeat;
  background-size:cover;
}

.word {
  font-weight: 600;
  text-transform: capitalize;
  line-height: 1.5;
  display: block;
  margin-top: 40px;
  margin-bottom: 60px;
}

.word span {
  background: #9b72cb;
  background: -moz-linear-gradient(135deg, #9b72cb 16%, #39b0c5 50%, #29a6ff 90%);
  background: -webkit-linear-gradient(135deg, #9b72cb 16%, #39b0c5 50%, #29a6ff 90%);
  background: linear-gradient(135deg, #9b72cb 16%, #39b0c5 50%, #29a6ff 90%);
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#e280ff",endColorstr="#29a6ff",GradientType=1);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-family: "Gill sans", Arial, serif;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  left: 0;
  right: 0;
  width: fit-content;
  position: absolute;
  overflow: hidden;
  animation: animate 15s linear infinite;
  opacity: 0;
}

@keyframes animate {
  0% {
    opacity: 0;
  }
  2% {
    opacity: 1;
  }
  16% {
    opacity: 1;
  }
  20% {
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}

.word span:nth-child(1) {
  animation-delay: 0s;
}
.word span:nth-child(2) {
  animation-delay: 2.5s;
}
.word span:nth-child(3) {
  animation-delay: 5s;
}
.word span:nth-child(4) {
  animation-delay: 7.5s;
}
.word span:nth-child(5) {
  animation-delay: 10s;
}
.word span:nth-child(6) {
  animation-delay: 12.5s;
}

.curve {
  position: relative;
  top: -80px;
  margin-bottom: -120px;
}

h1 {
  font-size: 36px;
  font-weight: 600;
  line-height: 1.5;
  color: #ffffff;
  margin: 0;
}

h2 {
  font-size: 28px;
  font-weight: 600;
  line-height: 1.5;
  color: #ffffff;
}

h3 {
  font-size: 20px;
  font-weight: 600;
  text-transform: capitalize;
  line-height: 1.5;
  color: #ffffff;
}

.intro {
  font-size: 28px;
  line-height: 1.5;
  font-weight: lighter;
}

p {
  font-size: 20px;
  line-height: 2;
  color: #ffffff;
  margin: 0;
}

p a, h1 a,
.mobile-left a {
  color: #29a6ff;
  text-decoration: underline;
  font-weight: 500;
}

p a:hover, h1 a:hover,
.mobile-left a:hover {
  text-decoration: none;
}

.read-more {
  position: relative;
  overflow: hidden;
  font-weight: 600;
  font-size: 16px;
  margin-top: 50px;
  border: 1px solid #ffffff;
  border-radius: 50px;
  background-color: transparent;
  color: #ffffff;
  height: 48px;
  width: 120px;
  cursor: pointer;
  z-index: 1;
  transition: 0.1s ease;
  -moz-transition: 0.1s ease;
  -webkit-transition: 0.1s ease;
}

.read-more:hover {
  background: #ffffff0f;
}

/* .read-more:before {
  content: "";
  position: absolute;
  background: rgba(255, 255, 255, 0.06);
  top: 0;
  right: 100%;
  bottom: 0;
  left: 0;
  z-index: -1;
  transition: right 0.1s ease-in;
  -moz-transition: right 0.1s ease-in;
  -webkit-transition: right 0.1s ease-in;
}

.read-more:hover:before {
  right: 0;
} */

.project {
  width: 1000px;
  height: 400px;
  margin: 60px auto 0px auto;
  padding-right: 50px;
  border: 1px solid #333333;
  border-radius: 10px;
  text-align: left;
  background-color: #212121;
  overflow: hidden;
  cursor: pointer;
  transition-property: background-color;
  transition-duration: 0.1s;
  transition-timing-function: ease-in-out;
  position: relative;
}

.project:hover {
  background-color: #292929;
}

.responsive {
  float: left;
  display: block;
  width: 400px;
}

.wrapper {
  width: 552px;
  position: absolute;
  top: 50%;
  right: 16px;
  transform: translateY(-50%);
  display: block;
  text-align: left;
}

.wrapper2 {
  margin: 70px 0;
  min-height: 350px;
}

.tag {
  display: inline-block;
  text-align: center;
  border-radius: 4px;
  padding: 0 10px;
  font-size: 14px;
  color: #d8d8d8;
  background-color:  #39393980;
}

.locked {
  display: block;
  overflow: hidden;
  position: absolute;
  top: 20px;
  right: 25px;
  width: fit-content;
}

.lock-message {
  position: relative;
  left: 128px;
  -moz-transition: 0.3s ease-in-out;
  -webkit-transition: 0.3s ease-in-out;
  transition: 0.3s ease-in-out;
}

.lock-icon {
  width: 20px;
  height: 20px;
  position: relative;
  top: 4px;
}

.alert {
  font-size: 16px;
  font-weight: 500;
  padding-left: 6px;
  opacity: 0;
  -moz-transition: 0.3s ease-in-out;
  -webkit-transition: 0.3s ease-in-out;
  transition: 0.3s ease-in-out;
}

.project:hover .lock-message {
  left: 0px;
}

.project:hover .alert {
  opacity: 1;
}

.my-gallery {
  border-radius: 10px;
  width: 1000px;
  margin-top: 20px;
}

.more-about-me {
  width: 1000px;
  margin: 0 auto;
  text-align: left;
}

.greeting {
  font-size: 40px;
  font-style: normal;
  text-align: center;
  margin: 100px 0;
}

.self-pic {
  border-radius: 10px;
  float: right;
  width: 320px;
  margin-left: 50px;
}

.three-col {
  display: flex;
  justify-content: space-between;
  margin: 30px 0 40px 0;
}

.dev-project {
  width: 320px;
  max-height: 500px;
  border: 1px solid #333333;
  border-radius: 10px;
  display: block;
  text-align: left;
  background-color: #212121;
  overflow: hidden;
  cursor: pointer;
  transition: background-color 0.1s ease-in-out;
}

.dev-project:hover {
  background-color: #292929;
}

.responsive3 {
  float: left;
  width: 320px;
}

.dev-content {
  margin: 5px 20px 30px 20px;
  float: left;
}

@media screen and (max-width: 1100px) {
  .hello-inset {
    padding: 40px 20px 80px 20px;
    background-image: url("/_image/_background_image/hello-mobile.png");
  }

  .read-more {
    margin-top: 40px;
  }

  .read-more:before {
    display: none;
  }

  h1 {
    font-size: 28px;
  }
  
  h2 {
    font-size: 22px;
  }
  
  h3 {
    font-size: 16px;
  }
  
  .intro {
    font-size: 22px;
  }

  p {
    font-size: 16px;
  }

  .project {
    width: 350px;
    height: 350px;
    text-align: center;
    margin: 50px auto;
    border: none;
    box-shadow: 0 20px 20px 0 #00000014;
  }

  .responsive {
    margin: 0 auto;
    float: none;
    width: 350px;
    display: block;
    opacity: 0.08;
  }

  .wrapper {
    width: 100%;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    padding: 0 20px;
    text-align: center;
  }

  .wrapper2 {
    margin: 0 20px 100px 20px;
  }

  .project:hover .lock-message {
    left: 128px;
  }

  .my-gallery {
    width: 100%;
    border-radius: 0;
    margin-top: 10px;
  }

  .more-about-me {
    text-align: center;
    margin-top: 20px;
    width: auto;
  }

  .self-pic {
    float: none;
    width: 350px;
    margin-left: 0;
    margin-bottom: 20px;
  }

  .greeting {
    font-size: 25px;
    font-style: normal;
    margin: 30px 30px;
  }

  .mobile-left {
    text-align: left;
  }

  .dev-project {
    width: 100%;
    margin: 0px 5px 30px 5px;
  }

  .responsive3 {
    width: 100%;
  }

  @media screen and (max-width: 700px) {
    .self-pic {
      width: 100%;
    }
    
    .three-col {
      display: block;
      margin: 30px 0 40px 0;
    }

    .dev-project {
      width: 100%;
      margin: 0px auto 30px auto;
    }
  
    .responsive3 {
      width: 100%;
    }
  }

}

/*--------article instance global--------*/
.article-wrap {
  width: 1000px;
  margin: 0 auto;
  /*don't change*/
}

main section h1,
main section h2,
main section h3 {
  margin: 0;
  /*don't change*/
}

.list {
  font-size: 20px;
}

.cs-break {
  margin: 50px 0;
  border: 1px solid #333333;
}

.article-wrap section {
  padding: 8% 100px;
}

.article-wrap > .secZero {
  margin-top: -11px;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
  background-color: #191d23;
}

.banner-img {
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  margin-top: 50px;
  width: 100%;
}

.accent-img {
  border-radius: 10px;
  width: 100%;
}

.secZero h1,
.secZero p {
  color: #ffffff;
}

section {
  text-align: left;
  min-height: 500px;
}

.img-container {
  width: 100%;
  border-radius: 60px;
}

.scale-center {
  width: 500px;
  margin: 40px auto;
}

figure {
  margin: 40px 0;
  text-align: center;
}

figcaption {
  font-size: 16px;
  margin-top: 20px;
  font-style: italic;
}

.quotes {
  margin: 30px 0;
  text-align: center;
  font-family: "big caslon", serif;
  font-size: 30px;
  font-weight: 400;
}

.highlight {
  color: #ffffff;
  text-align: center;
  font-family: "big caslon", serif;
  font-size: 30px;
  font-weight: 400;
}

.narrow-col {
  float: left;
  margin-right: 30px;
  max-width: 100px;
}

.container {
  margin: 50px 0px;
  overflow: hidden;
}

.footing {
  height: 60px;
  margin-bottom: 50px;
  border-top: 1px solid #333333;
  border-bottom: 1px solid #333333;
}

.footing > a {
  text-decoration: none;
  font-size: 16px;
  line-height: 15px;
  width: 250px;
  padding: 23px 0;
  color: #ffffff;
}

.footing > a:hover {
  color: #29a6ff;
}

.flex-container {
  display: flex;
  justify-content: space-between;
}

.fleft {
  text-align: left;
  margin-left: 20px;
}

.fright {
  text-align: right;
  margin-right: 20px;
}

@media screen and (max-width: 1100px) {
  .article-wrap {
    width: auto;
    /*don't change*/
  }

  .article-wrap > .secZero {
    padding-top: 50px;
    border-bottom-left-radius: 0px;
    border-bottom-right-radius: 0px;
  }

  .banner-img {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    margin-top: 30px;
    width: 100%;
    margin-bottom: -13px;
  }

  .accent-img {
    border-radius: 0;
  }

  .scale-center {
    width: 100%;
    margin: 20px 0;
  }

  .list {
    font-size: 17px;
  }

  .article-wrap section {
    padding: 50px 20px;
  }

  .quotes {
    margin: 0;
  }

  .highlight {
    margin-bottom: 0px;
  }

  .container {
    text-align: center;
  }

  .narrow-col {
    float: none;
    padding: 0 50px;
    max-width: 50%;
    margin: 0 auto;
  }

  .wide-col {
    text-align: center;
    padding: 0 50px;
  }

  figcaption {
    font-size: 14px;
  }

  a > .mohide {
    display: none;
  }
}

/* ------------blog global------------ */
.blog-article {
  width: 1000px;
  margin: 50px auto;
  text-align: left;
}

.no-margin {
  margin: 0;
  line-height: 150%;
}

.gallery {
  margin-top: -50px;
  margin-bottom: 40px;
  padding: 0 100px;
  width: 100%;
}

.my-motto {
  text-align: center;
  font-family: "big caslon", serif;
  margin: 0 200px;
  font-size: 25px;
  font-weight: bold;
}

.blog-bar {
  margin: 50px 0px;
  border: 1px solid #333333;
}

.hide-more {
  display: none;
}

.toggle > button {
  transform: scale(1);
  border: 1px solid #ffffff;
  background: none;
  padding: 13px 26px;
  box-shadow: 0 0 0 0 #292929;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
  cursor: pointer;
  -moz-transition: 0.1s ease-in;
  -webkit-transition: 0.1s ease-in;
  transition: 0.1s ease-in;
}

.toggle > button:hover {
  background: rgba(255, 255, 255, 0.06);
}

.toggle-off > button {
  border-radius: 50px;
}

.toggle-on > button {
  border-radius: 15px;
}

#video {
  display: block;
  border-radius: 10px;
  width: 100%;
  margin: 20px auto;
  cursor: pointer;
}

.video-mask {
  margin: 20px auto;
  overflow: hidden;
  width: fit-content;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

@media screen and (max-width: 1100px) {
  .blog-article {
    width: auto;
    margin: 30px 0;
    padding: 40px 20px;
  }

  .gallery {
    margin-top: -30px;
    margin-bottom: 20px;
    padding: 0 10px;
    width: 100%;
  }

  .my-motto {
    margin: 0 50px;
  }

  .toggle > a {
    font-size: 15px;
  }

  .toggle > a:hover {
    padding: 13px 26px;
    box-shadow: 0 0 0 0 #00000014;
  }

  #video {
    width: 100%;
  }

  .video-mask {
    margin: 0 auto;
  }
}

/*--------article instance dickson bros--------*/
.db-parallax {
  padding: 5% 30px;
  background-color: #191d23;
  border-radius: 10px;
}

/*--------article instance national park service--------*/
.scale-center-iphone {
  width: 350px;
  margin: 40px auto;
}

.sec-extra {
  background-color: #ffffff;
}

@media screen and (max-width: 1100px) {
  .db-parallax {
    border-radius: 0;
  }

  .scale-center-iphone {
    width: 260px;
  }
}

/*------internal page nav------*/
.page-nav {
  background: #212121e6;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
  margin: 0 45px;
  box-shadow: 0 20px 20px 0 #292929;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: none;
}

.page-nav ul {
  padding: 0px;
}

.page-nav li {
  font-size: 16px;
  display: inline-block;
}

.page-nav a {
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: #ffffff;
  margin: 0 -2px;
  padding: 22px 15px 24px 15px;
}

.page-nav a:hover {
  background: #0072c10f;
}

.page-nav a.active {
  color: #29a6ff;
  padding-bottom: 20px;
  border-bottom: 4px solid #29a6ff;
}

@media screen and (min-width: 1500px) {
  .page-nav {
    margin: 0 10%;
  }
}

@media screen and (max-width: 1200px) {
  .page-nav {
    visibility: hidden;
  }
}

@keyframes ripple {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

span.ripple {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  animation: ripple 800ms ease-out;
  background-color: rgba(0, 114, 193, 0.18);
}
