/* this stylesheet is written by weinan li */

/* primary color: night grey #333333;
secondary color: dark navy #4B687A; */

/*--------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: #212121;
  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);
}

/* @keyframes float {
  0% {
    transform: translatey(-8px);
  }

  50% {
    transform: translatey(-4px);
  }

  100% {
    transform: translatey(-8px);
  }
} */

.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:  #b8b8b8;
  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: #606060;
}

footer a {
  margin: 0 10px;
}

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

.fa-icon[title~="LinkedIn"]:hover {
  color: #0e76a8;
}

.fa-icon[title~="Dribbble"]:hover {
  color: #ea4c89;
}

.fa-icon[title~="GitHub"]:hover {
  color: #ad5c51;
}

.video-wrap {
  position: relative;
}

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

@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;
  }

  video {
    width: 100%;
  }
}

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

.hello {
  background-image: url("/_image/_background_image/hello-bg.jpg");

  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  margin: 10px 0 20px 0;
}

.hello-inset {
  width: 100%;
  margin: 0px auto;
  padding: 150px 100px 250px 100px;
  text-align: center;
  min-height: 300px;

  background-image: url("/_image/_background_image/hello-desktop.jpg");

  background-attachment: scroll;
  background-position:center;
  background-repeat: no-repeat;
  background-size:cover;
}

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

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

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

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

p a, h1 a,
.mobile-left a {
  color: #0072c1;
  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 #0072c1;
  border-radius: 50px;
  background-color: #ffffff;
  color: #0072c1;
  height: 48px;
  width: 166px;
  cursor: pointer;
  z-index: 1;
  transition: 0.5s ease;
  -moz-transition: 0.5s ease;
  -webkit-transition: 0.5s ease;
}

.read-more:hover {
  color: #ffffff;
  border-color: transparent;
}

.read-more:before {
  content: "";
  position: absolute;
  background: -webkit-linear-gradient(30deg, #0072c1, #0072c199 90%, #0072c198);
  background: -moz-linear-gradient(30deg, #0072c1, #0072c199 90%, #0072c198);
  background: linear-gradient(30deg, #0072c1, #0072c199 90%, #0072c198);
  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: 1050px;
  height: 400px;
  margin: 60px auto 0px auto;
  padding-right: 50px;
  border: 1px solid #00000014;
  border-radius: 10px;
  text-align: left;
  background-color: #ffffff;
  overflow: hidden;
  cursor: pointer;
  /* transform: translateY(0);
  box-shadow: 0 0 0 0 #00000014; */
  transition-property: background-color;
  transition-duration: 0.1s;
  transition-timing-function: ease-in-out;
  position: relative;
}

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

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

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

.wrapper2 {
  margin: 70px 0;
  /* border: 1px red solid; */
  min-height: 350px;
}

.tag {
  display: inline-block;
  text-align: center;
  padding: 0 10px;
  font-size: 14px;
  color: #0072c1;
  /* border:1px solid #0072c1; */
  background-color:  #0072c10f;
  /* border-radius: 3px; */
}

.locked {
  color: #0072c1;
  display: block;
  float: right;
  position: relative;
  top: 20px;
  right: -25px;
  transform: scale(1);
  transition: transform 0.1s ease-in-out;
}

.project:hover > .locked {
  transform: scale(1.3);
}

.my-gallery {
  border-radius: 10px;
  width: 1100px;
  margin-top: 50px;
}

.more-about-me {
  width: 1100px;
  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: 100%; */
  width: 350px;
  height: auto;
  margin-top: 30px;
  margin-left: 50px;
  margin-bottom: 30px;
}

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

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

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

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

.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.jpg");
  }

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

  .read-more:hover {
    color: #0072c1;
    border-color: #0072c1;

  }

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

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

  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%;
    height: 100%;
    padding: 15% 20px;
    text-align: center;
  }

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

  .locked {
    display: none;
  }

  .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;
    max-width: 300px;
    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) {
    .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 #00000014;
}

.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%;
}

.insurify {
  border-radius: 60px;
}

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

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

figcaption {
  font-size: 16px;
  margin-top: 0px;
  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;
  width: 60px;
}

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

.footing {
  height: 60px;
  margin-bottom: 50px;
  color: #212121;
  background-color: #ffffff;
  border-top: 1px solid #00000014;
  border-bottom: 1px solid #00000014;
}

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

/* .footing > a:hover {
  background-color: #0b0b0b0f;
} */

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

.fleft {
  text-align: center;
}

.fright {
  text-align: center;
}

@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;
    margin: 0 auto;
  }

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

  figcaption {
    font-size: 14px;
  }

  a > .mohide {
    display: none;
  }

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

  .footing > a:hover {
    background-color: transparent;
  }

  .insurify {
    border-radius: 45px;
  }
}

/* ------------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 #00000014;
}

.hide-more {
  display: none;
}

.toggle > a {
  border: 1px solid #212121;
  background: #ffffff;
  padding: 13px 26px;
  box-shadow: 0 0 0 0 #00000014;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  color: #212121;
  cursor: pointer;
  -moz-transition: padding 0.1s ease-in, box-shadow 0.1s ease-in;
  -webkit-transition: padding 0.1s ease-in, box-shadow 0.1s ease-in;
  transition: padding 0.1s ease-in, box-shadow 0.1s ease-in;
}

.toggle > a:hover {
  padding: 15px 30px;
  box-shadow: 0 20px 20px 0 #00000014;
}

.toggle-off > a {
  border-radius: 25px;
}

.toggle-on > a {
  border-radius: 5px;
}

@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;
  }
}

/*--------article instance dickson bros--------*/
.db-parallax {
  padding: 5% 80px;
  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;
    padding: 5% 30px;
  }

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

/*------internal page nav------*/
.page-nav {
  background: #ffffffe6;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid #00000014;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
  margin: 0 45px;
  box-shadow: 0 20px 20px 0 #00000014;
  position: fixed;
  top: -166px;
  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: #606060;
  margin: 0 -2px;
  padding: 22px 15px 24px 15px;
}

.page-nav a:hover {
  color: #212121;
  border-radius: 10px;
  background: #0b0b0b0f;
}

.page-nav a.active {
  border-radius: 10px 10px 0 0;
  color: #212121;
  padding-bottom: 20px;
  border-bottom: 4px solid #212121;
}

@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);
}
