@import url('https://fonts.googleapis.com/css?family=Lato:400,700');
body{
  overflow-x: hidden;
  font-family: 'Lato', sans-serif;
  color: #505962;
}
.offset:before{
  display: block;
  content: "";
  height: 4rem;
  margin-top: -4rem;
}
/*navigation*/
.navbar{
  text-transform: uppercase;
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .1rem;
  background: rgba(0,0,0,0.5)!important;
}
.navbar-brand img{
  height: 2.2rem;
}
.navbar-nav li{
  padding-right: .7rem;
}
.navbar-dark .navbar-nav .nav-link{
  color: white;
  padding-top: .5rem;
}
.navbar-dark .navbar-nav .nav-link.active,
.navbar-dark .navbar-nav .nav-link:hover{
  color: #31c5f0;
}

.navbar-dark .navbar-nav .nav-link::after{
  content: '';
  display: block;
  width: 0;
  height: 3px;
  background: #31c5f0;
  transition: width .3s;
}
.navbar-dark .navbar-nav .nav-link:hover::after{
  width: 100%;
  transition: width .3s;
}

/*--homepage--*/
.home-inner{
  background-image: url(img/bgg2.jpg);
}
.caption{
  width: 100%;
  max-width: 100%;
  position: absolute;
  top: 8%;
  z-index: 1;
  color: white;
}
.caption img{
  width: 20%;
  height: 20%;
  padding: 10px 1rem;
}
.caption h1{
  font-size: 3.8rem;
  font-family: 'Fredericka the Great', cursive;
  font-weight: 700;
  letter-spacing: .3rem;
  text-shadow: .1rem .1rem .8rem black;
  padding-bottom: 1rem;
}
.caption h3{
  font-size: 2rem;
  text-shadow: .1rem .1rem .8rem black;
  padding-bottom: 1.6rem;
}
.btn-lg{
  border-width: medium;
  border-radius: 0;
  padding: .6rem 1.3rem;
  font-size: 1.1rem;
}
.caption a svg:hover{
  color: #0b95dc!important;
}


/*course section*/
.narrow{
  width: 75%;
  margin: 3.5rem auto;
  padding-top: 2rem;
}
.narrow h1{
  font-size: 2.4rem;
}
.btn-secondary{
  border-width: medium;
  border-radius: 0;
  text-transform: uppercase;
  font-size: 1.2rem;
  padding: .6rem 1.2rem;
  color: white;
  background-color: #31c5f0;
  border-color: #31c5f0;
}
.btn-secondary:hover{
  background-color: #0b95dc;
  border-color: #0b95dc;
}
#profile{
  width: 90%;
  height: 90%;
}
.keyfeature{
  margin-top: 1rem;
}
.keyfeature h3{
  margin-bottom: 2rem;
}
div.keyfeature p{
  margin-bottom: .5rem;
  text-align: justify;
  font-size: 1.1rem;
}
.keyfeature b{
  color: #0b95dc;
}
.jumbotron{
  margin-bottom: 0;
  padding: 1rem 0 2rem;
  border-radius: 0;
}
h3.heading{
  font-size: 1.9rem;
  font-weight: 700;
  //text-transform: uppercase;
  margin-bottom: 1.9rem;
}
.heading-underline{
  width: 3rem;
  height: .2rem;
  background-color: #31c5f0;
  margin: 0 auto 2rem;
}
.feature svg.svg-inline--fa{
  color: #31c5f0;
}
.feature h3{
  font-size: 1.3rem;
  text-transform: uppercase;
  padding-bottom: .4rem;
}
.feature p{
  font-size: 1.1rem;
}

/*skills*/
.fixed{
  background-image: url(img/time.gif);
  z-index: -1;
}
.dark{
  background-color: rgba(0,0,0,0.5);
  color: white;
  padding: 8rem 2rem;
}
.fixed-background h3{
  margin-bottom: 1.2rem;
}
.fixed-background p{
  margin-top: 0;
}
#skills .ranking .fa-star{
  color: #fff;
}
#skills .ranking .checked {
  color: orange;
}

/*Education*/
.card{
  margin: 1rem 0rem;
}
.card-content{
  text-align: justify;
}
.card img:hover{
  opacity: 0.7;
}
.card-body a{
  text-decoration: none;
}

/*Working experiences*/
.timeline{
  position: relative;
  margin: 50px auto;
  padding: 40px 0;
  width: 1000px;
  box-sizing: border-box;
}
.timeline:before{
  content: '';
  position: absolute;;
  left: 50%;
  width: 2px;
  height: 81%;
  background: #b5b5b5;
}
.timeline ul{
  margin: 0;
  padding: 0;
}
.timeline ul li{
  list-style: none;
  position: relative;
  width: 50%;
  padding: 10px 60px;
  box-sizing: border-box;
}
.timeline ul li:hover{
  cursor: pointer;
}
.timeline ul li:nth-child(odd){
  float: left;
  text-align: right;
  clear: both;
}
.timeline ul li:nth-child(even){
  float: right;
  text-align: left;
  clear: both;
}
.content{
  padding-bottom: 3rem;
}
.timeline ul li:nth-child(odd):before{
  content: '';
  position: absolute;
  top: 24px;
  right: -8px;
  width: 15px;
  height: 15px;
  background: rgba(11,149,220,1);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(11,149,220,0.3);
}
.timeline ul li:hover:nth-child(odd):before{
  box-shadow: 0 0 0 8px rgba(11,149,220,0.3);
  transition: all ease-in-out .3s;
}
.timeline ul li:hover:nth-child(even):before{
  box-shadow: 0 0 0 8px rgba(11,149,220,0.3);
  transition: all ease-in-out .3s;
}
.timeline ul li:nth-child(even):before{
  content: '';
  position: absolute;
  top: 24px;
  left: -7px;
  width: 15px;
  height: 15px;
  background: rgba(11,149,220,1);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(11,149,220,0.3);
}
.timeline ul li h3{
  margin: 0;
  padding: 0;
  font-weight: 600;
  color: rgba(11,149,220,1);
}
.timeline ul li:hover h3{
  color: rgba(0,109,193,1);
}
.timeline ul li p{
  margin: 10px 0 0;
  padding: 0;
  font-size: 1.2rem
}
.timeline ul li .time h4{
  margin: 0;
  padding: 0;
  font-size: 1.1rem;
}
.timeline ul li:nth-child(odd) .time{
  position: absolute;
  top: 10px;
  right: -300px;
  margin: 0;
  padding: 12px 50px;
  background: rgba(11,149,220,1);
  color: #fff;
  border-radius: 2px;
  box-shadow: 0 0 0 3px rgba(11,149,220,0.3);
}
.timeline ul li:nth-child(even) .time{
  position: absolute;
  top: 10px;
  left: -300px;
  margin: 0;
  padding: 12px 50px;
  background: rgba(11,149,220,1);
  color: #fff;
  border-radius: 2px;
  box-shadow: 0 0 0 3px rgba(11,149,220,0.3);
}
.timeline ul li:hover:nth-child(even) .time{
  background: rgba(0,109,193,1);
}
.timeline ul li:hover:nth-child(odd) .time{
  background: rgba(0,109,193,1);
}





/*100mao*/
.clients img{
  width: 100%;
  border-radius: 50%;
}
blockquote .svg-inline--fa{
  color: #31c5f0;
  margin: 1rem;
}
.clients-hr{
  border: .02rem solid #31c5f0;
}
.darkme{
  background-color: rgba(0,0,0,0.2);
  color: white;
  padding: 6rem 2rem 9rem;
}

.flip-box {
  background-color: transparent;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  perspective: 1000px;
  margin: 2.5rem auto;
}
.title{
  padding: 1rem 0 0;
  font-size: 1.5rem;
  text-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.3), 0 6px 20px 0 rgba(0, 0, 0, 0.25);
}
.title:hover{
  color: #0b95dc;
}
.flip-box img{
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.3), 0 6px 20px 0 rgba(0, 0, 0, 0.25);
}

.flip-box-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.8s;
  transform-style: preserve-3d;
}

.flip-box:hover .flip-box-inner {
  transform: rotateY(180deg);
}

.flip-box-front, .flip-box-back {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  backface-visibility: hidden;
}

.flip-box-front {
  background-color: #bbb;
  color: black;
}

.flip-box-back {
  background-color: #555;
  color: white;
  transform: rotateY(180deg);
}
.more{
  color: #000;
  font-family: 'Pacifico', cursive;
  padding-top: 10rem;
  text-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.3), 0 6px 20px 0 rgba(0, 0, 0, 0.25);
  font-size: 2rem;
}

/*contact*/
footer{
  background-color: #40474e;
  color: #fff;
  padding: 8rem 0 8rem; 
  margin-top: 0rem;
}
footer img{
  height: 3rem;
  margin: 1.5rem 0;
}
footer a{
  color: #fff;
}
footer svg.svg-inline--fa{
  font-size: 1.6rem;
  margin: 1.2rem .5rem 0 0;
}
footer svg.svg-inline--fa:hover{
  color: #31c5f0;!important;
}
hr.socket{
  width: 100%;
  border-top: .1rem solid #555b71;
  margin-top: 3rem;
}
#code{
  font-family: 'Libre Barcode 39', cursive; 
  font-size: 3rem;
}

/*media queries*/
@media (max-width: 1000px){
  .timeline{
    width: 100%;
  }
}
@media (max-width: 767px){
  #features .narrow{
    width: 100%;
  }
  #education .narrow{
    width: 100%;
  }
  .caption h1{
    font-size: 2.3rem;
    letter-spacing: .15rem;
    padding-bottom: .5rem;
  }
  .caption h3{
    font-size: 1.2rem;
    padding-bottom: 1.2rem;
  }
  .btn-lg{
    padding: .5rem 1rem;
    font-size: 1rem;
  }
  .narrow h1{
    font-size: 1.5rem;
  }
  .clients img{
    max-width: 100%;
    display: block;
    margin: 0 auto;
  }
  .code{
    font-size: 1rem;
  }

  div.timeline{
    width: 100%;
    padding-bottom: 0;
  }
  div.timeline:before{
    left: 22px;
  }
  div.timeline li:nth-child(odd),
  div.timeline li:nth-child(even){
    width: 100%;
    text-align: left;
    padding-left: 60px;
    padding-bottom: 50px;
    padding-top: 30px;
  }
  div.timeline li:nth-child(odd):before,
  div.timeline li:nth-child(even):before{
    top: -18px;
    left: 16px;
  }
  div.timeline li:nth-child(odd) .time,
  div.timeline li:nth-child(even) .time{
    top: -30px;
    left: 60px;
    right: inherit;
  }
}

/*============ BOOTSTRAP BREAK POINTS:

Extra small (xs) devices (portrait phones, less than 576px)
No media query since this is the default in Bootstrap

Small (sm) devices (landscape phones, 576px and up)
@media (min-width: 576px) { ... }

Medium (md) devices (tablets, 768px and up)
@media (min-width: 768px) { ... }

Large (lg) devices (desktops, 992px and up)
@media (min-width: 992px) { ... }

Extra (xl) large devices (large desktops, 1200px and up)
@media (min-width: 1200px) { ... }

=============*/
