/*
==============================================
General Styling
==============================================
*/
html {
  overflow-x: hidden;
}
html, body {
  height: 100%;
  width: 100%;
  font-size: 16px;
}
body {
  font-family: 'Open Sans', 'Helvetica Neue', Arial, sans-serif;
}
h1 {
  font-size: 50px;
}
section {
  padding-top: 60px;
  padding-bottom: 60px;
}
section h2 {
  margin-bottom: 70px;
}
section p {
  text-align: justify;
  font-weight: 300;
}
.center-wrapper {
  position: absolute;
  left: 50%;
  top: 50%;
  -webkit-transform: translate(-50%,-50%);
  transform: translate(-50%,-50%);
}

/* section themes */
#about, #pricing, #contact {
  background-color: #2a2929;
  color: #fff;
}

/* Preloader */
.preloader {
	position: fixed;
	left: 0px;
	top: 0px;
	width: 100%;
	height: 100%;
	z-index: 9999;
	background: #fff;
}
.loader-icon {
  font-size: 10px;
  width: 1em;
  height: 1em;
  border-radius: 50%;
  text-indent: -9999em;

  -webkit-animation: load 1.1s infinite ease;
  animation: load 1.1s infinite ease;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

/* Navbar logo */
.navbar-header img {
  width: 50px;
  padding: 5px;
  float: left;
  margin-right: 5px;
}


/*
==============================================
Contact bar
==============================================
*/
#contact-bar {
  position: fixed;
  top:50px;
  right: 0px;
  background-color: #fbbb36;
  z-index: 2;
  padding: 10px;
  border-bottom-left-radius: 5px;

}

/*
==============================================
Header
==============================================
*/
header {
  padding-top: 150px;
  min-height: 100%;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
  background-position: center;
  background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url(../img/hero-img.jpg);
  color: #fff;
}
.bg-pattern {
    background-image: url(../img/bg_pattern.png);
    position: absolute;
    top: 0px;
    bottom: 0px;
    width: 100%;
}
#logo {
  height: 170px;
  visibility: hidden;
}
#title {
  letter-spacing: 8px;
  visibility: hidden;
}
#desc {
  margin-top: 30px;
  font-weight: 300;
  visibility: hidden;
}


/*
==============================================
About Section
==============================================
*/
#tutor {
  visibility: hidden;
  width: 450px;
}
#signature {
  width: 130px;
  margin-right: -63%;
  margin-top: 40px;
  -webkit-transform: rotate(-7deg);
  transform: rotate(-7deg);
}


/*
==============================================
Services section
==============================================
*/
#services img {
  width: 70%;
}


/*
==============================================
Pricing section
==============================================
*/
.price-box-front, .price-box-back{
  width: 200px;
  height: 200px;
  margin: 0 auto;
  border-radius: 5px;
  color: #fff;
}
.price-box-front {
  position: absolute;
  background-color: #3d3c3c;
  -webkit-transition: -webkit-transform 0.4s;
	transition: transform 0.4s;
}
.price-box-back {
  position: relative;
  -webkit-background-size: cover;
  background-size: cover;
  background-position: center;
}
.price-box-back:hover .price-box-front {
  -webkit-transform: translateY(-80px);
	transform: translateY(-80px);
}
.doodle-1 {
  background-image: url(../img/doodle-1.png);
}
.doodle-2 {
  background-image: url(../img/doodle-2.png);
}
.doodle-3 {
  background-image: url(../img/doodle-3.png);
}
#pricing h4 {
  padding: 15px 0;
  font-weight: 300;
  letter-spacing: 3px;
  border-bottom: 1px #fff solid;
  margin-bottom: 30px
}
#pricing span {
  font-size: 40px
}


/*
==============================================
Testimonials
==============================================
*/
#testimonial-quote .carousel-control {
    background: none;
    color: #CACACA;
    font-size: 2.3em;
    text-shadow: none;
    margin-top: 30px;
}
#testimonial-quote .carousel-indicators li {
    width: 60px;
    height: 60px;
    margin: 5px;
    cursor: pointer;
    transition: all 0.4s;
    position: relative;
}
#testimonial-quote .carousel-indicators .active:after {
  content: "";
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-bottom: 10px solid #000;
  position: absolute;
  bottom: -20px;
  left: 32%;
}
.carousel-inner {
    min-height: 300px;
}
.item blockquote {
    border-left: none;
}
.item blockquote p:before {
    content: "\f10d";
    font-family: 'Fontawesome';
    float: left;
    margin-right: 10px;
}


/*
==============================================
Contact
==============================================
*/
#contact h4 {
  text-align: center;
  margin-bottom: 40px;
}
.form-control {
  background-color: #3d3c3c;
  color: #fff;
  border-radius: 1px;
}
#contact .btn {
  margin-top: 30px;
}


/*
==============================================
Animation
==============================================
*/

/* Loading animation */
@-webkit-keyframes load {
  0%,
  100% {
    box-shadow: 0em -2.6em 0em 0em #000000, 1.8em -1.8em 0 0em rgba(0,0,0, 0.2), 2.5em 0em 0 0em rgba(0,0,0, 0.2), 1.75em 1.75em 0 0em rgba(0,0,0, 0.2), 0em 2.5em 0 0em rgba(0,0,0, 0.2), -1.8em 1.8em 0 0em rgba(0,0,0, 0.2), -2.6em 0em 0 0em rgba(0,0,0, 0.5), -1.8em -1.8em 0 0em rgba(0,0,0, 0.7);
  }
  12.5% {
    box-shadow: 0em -2.6em 0em 0em rgba(0,0,0, 0.7), 1.8em -1.8em 0 0em #000000, 2.5em 0em 0 0em rgba(0,0,0, 0.2), 1.75em 1.75em 0 0em rgba(0,0,0, 0.2), 0em 2.5em 0 0em rgba(0,0,0, 0.2), -1.8em 1.8em 0 0em rgba(0,0,0, 0.2), -2.6em 0em 0 0em rgba(0,0,0, 0.2), -1.8em -1.8em 0 0em rgba(0,0,0, 0.5);
  }
  25% {
    box-shadow: 0em -2.6em 0em 0em rgba(0,0,0, 0.5), 1.8em -1.8em 0 0em rgba(0,0,0, 0.7), 2.5em 0em 0 0em #000000, 1.75em 1.75em 0 0em rgba(0,0,0, 0.2), 0em 2.5em 0 0em rgba(0,0,0, 0.2), -1.8em 1.8em 0 0em rgba(0,0,0, 0.2), -2.6em 0em 0 0em rgba(0,0,0, 0.2), -1.8em -1.8em 0 0em rgba(0,0,0, 0.2);
  }
  37.5% {
    box-shadow: 0em -2.6em 0em 0em rgba(0,0,0, 0.2), 1.8em -1.8em 0 0em rgba(0,0,0, 0.5), 2.5em 0em 0 0em rgba(0,0,0, 0.7), 1.75em 1.75em 0 0em #000000, 0em 2.5em 0 0em rgba(0,0,0, 0.2), -1.8em 1.8em 0 0em rgba(0,0,0, 0.2), -2.6em 0em 0 0em rgba(0,0,0, 0.2), -1.8em -1.8em 0 0em rgba(0,0,0, 0.2);
  }
  50% {
    box-shadow: 0em -2.6em 0em 0em rgba(0,0,0, 0.2), 1.8em -1.8em 0 0em rgba(0,0,0, 0.2), 2.5em 0em 0 0em rgba(0,0,0, 0.5), 1.75em 1.75em 0 0em rgba(0,0,0, 0.7), 0em 2.5em 0 0em #000000, -1.8em 1.8em 0 0em rgba(0,0,0, 0.2), -2.6em 0em 0 0em rgba(0,0,0, 0.2), -1.8em -1.8em 0 0em rgba(0,0,0, 0.2);
  }
  62.5% {
    box-shadow: 0em -2.6em 0em 0em rgba(0,0,0, 0.2), 1.8em -1.8em 0 0em rgba(0,0,0, 0.2), 2.5em 0em 0 0em rgba(0,0,0, 0.2), 1.75em 1.75em 0 0em rgba(0,0,0, 0.5), 0em 2.5em 0 0em rgba(0,0,0, 0.7), -1.8em 1.8em 0 0em #000000, -2.6em 0em 0 0em rgba(0,0,0, 0.2), -1.8em -1.8em 0 0em rgba(0,0,0, 0.2);
  }
  75% {
    box-shadow: 0em -2.6em 0em 0em rgba(0,0,0, 0.2), 1.8em -1.8em 0 0em rgba(0,0,0, 0.2), 2.5em 0em 0 0em rgba(0,0,0, 0.2), 1.75em 1.75em 0 0em rgba(0,0,0, 0.2), 0em 2.5em 0 0em rgba(0,0,0, 0.5), -1.8em 1.8em 0 0em rgba(0,0,0, 0.7), -2.6em 0em 0 0em #000000, -1.8em -1.8em 0 0em rgba(0,0,0, 0.2);
  }
  87.5% {
    box-shadow: 0em -2.6em 0em 0em rgba(0,0,0, 0.2), 1.8em -1.8em 0 0em rgba(0,0,0, 0.2), 2.5em 0em 0 0em rgba(0,0,0, 0.2), 1.75em 1.75em 0 0em rgba(0,0,0, 0.2), 0em 2.5em 0 0em rgba(0,0,0, 0.2), -1.8em 1.8em 0 0em rgba(0,0,0, 0.5), -2.6em 0em 0 0em rgba(0,0,0, 0.7), -1.8em -1.8em 0 0em #000000;
  }
}
@keyframes load {
  0%,
  100% {
    box-shadow: 0em -2.6em 0em 0em #000000, 1.8em -1.8em 0 0em rgba(0,0,0, 0.2), 2.5em 0em 0 0em rgba(0,0,0, 0.2), 1.75em 1.75em 0 0em rgba(0,0,0, 0.2), 0em 2.5em 0 0em rgba(0,0,0, 0.2), -1.8em 1.8em 0 0em rgba(0,0,0, 0.2), -2.6em 0em 0 0em rgba(0,0,0, 0.5), -1.8em -1.8em 0 0em rgba(0,0,0, 0.7);
  }
  12.5% {
    box-shadow: 0em -2.6em 0em 0em rgba(0,0,0, 0.7), 1.8em -1.8em 0 0em #000000, 2.5em 0em 0 0em rgba(0,0,0, 0.2), 1.75em 1.75em 0 0em rgba(0,0,0, 0.2), 0em 2.5em 0 0em rgba(0,0,0, 0.2), -1.8em 1.8em 0 0em rgba(0,0,0, 0.2), -2.6em 0em 0 0em rgba(0,0,0, 0.2), -1.8em -1.8em 0 0em rgba(0,0,0, 0.5);
  }
  25% {
    box-shadow: 0em -2.6em 0em 0em rgba(0,0,0, 0.5), 1.8em -1.8em 0 0em rgba(0,0,0, 0.7), 2.5em 0em 0 0em #000000, 1.75em 1.75em 0 0em rgba(0,0,0, 0.2), 0em 2.5em 0 0em rgba(0,0,0, 0.2), -1.8em 1.8em 0 0em rgba(0,0,0, 0.2), -2.6em 0em 0 0em rgba(0,0,0, 0.2), -1.8em -1.8em 0 0em rgba(0,0,0, 0.2);
  }
  37.5% {
    box-shadow: 0em -2.6em 0em 0em rgba(0,0,0, 0.2), 1.8em -1.8em 0 0em rgba(0,0,0, 0.5), 2.5em 0em 0 0em rgba(0,0,0, 0.7), 1.75em 1.75em 0 0em #000000, 0em 2.5em 0 0em rgba(0,0,0, 0.2), -1.8em 1.8em 0 0em rgba(0,0,0, 0.2), -2.6em 0em 0 0em rgba(0,0,0, 0.2), -1.8em -1.8em 0 0em rgba(0,0,0, 0.2);
  }
  50% {
    box-shadow: 0em -2.6em 0em 0em rgba(0,0,0, 0.2), 1.8em -1.8em 0 0em rgba(0,0,0, 0.2), 2.5em 0em 0 0em rgba(0,0,0, 0.5), 1.75em 1.75em 0 0em rgba(0,0,0, 0.7), 0em 2.5em 0 0em #000000, -1.8em 1.8em 0 0em rgba(0,0,0, 0.2), -2.6em 0em 0 0em rgba(0,0,0, 0.2), -1.8em -1.8em 0 0em rgba(0,0,0, 0.2);
  }
  62.5% {
    box-shadow: 0em -2.6em 0em 0em rgba(0,0,0, 0.2), 1.8em -1.8em 0 0em rgba(0,0,0, 0.2), 2.5em 0em 0 0em rgba(0,0,0, 0.2), 1.75em 1.75em 0 0em rgba(0,0,0, 0.5), 0em 2.5em 0 0em rgba(0,0,0, 0.7), -1.8em 1.8em 0 0em #000000, -2.6em 0em 0 0em rgba(0,0,0, 0.2), -1.8em -1.8em 0 0em rgba(0,0,0, 0.2);
  }
  75% {
    box-shadow: 0em -2.6em 0em 0em rgba(0,0,0, 0.2), 1.8em -1.8em 0 0em rgba(0,0,0, 0.2), 2.5em 0em 0 0em rgba(0,0,0, 0.2), 1.75em 1.75em 0 0em rgba(0,0,0, 0.2), 0em 2.5em 0 0em rgba(0,0,0, 0.5), -1.8em 1.8em 0 0em rgba(0,0,0, 0.7), -2.6em 0em 0 0em #000000, -1.8em -1.8em 0 0em rgba(0,0,0, 0.2);
  }
  87.5% {
    box-shadow: 0em -2.6em 0em 0em rgba(0,0,0, 0.2), 1.8em -1.8em 0 0em rgba(0,0,0, 0.2), 2.5em 0em 0 0em rgba(0,0,0, 0.2), 1.75em 1.75em 0 0em rgba(0,0,0, 0.2), 0em 2.5em 0 0em rgba(0,0,0, 0.2), -1.8em 1.8em 0 0em rgba(0,0,0, 0.5), -2.6em 0em 0 0em rgba(0,0,0, 0.7), -1.8em -1.8em 0 0em #000000;
  }
}


/* FadeIn animation */
.fade-in {
  /* make things invisible upon start */
  opacity:0;

  /* call our keyframe named fadeIn, use animattion ease-in for 1 second and remain on last keyframe(forwards)*/
  -webkit-animation: fadeIn 1s ease-in forwards;
  -moz-animation: fadeIn 1s ease-in forwards;
  -o-animation: fadeIn 1s ease-in forwards;
  animation: fadeIn 1s ease-in forwards;
}

@-webkit-keyframes fadeIn { from { opacity:0; } to { opacity:1; } }
@keyframes fadeIn { from { opacity:0; } to { opacity:1; } }


/*
==============================================
Media Queries
==============================================
*/
@media screen and (min-width: 373px) and (max-width: 487px) {
  #testimonial-quote .carousel-indicators li {
    width: 50px;
    height: 50px;
  }
}

@media only screen and (min-width: 508px) and (max-width: 991px) {
  #testimonial-quote .carousel-indicators {
    bottom: -30px;
  }
}

@media only screen and (min-width: 977px) and (max-width: 1157px) {
    #title {
      font-size: 40px;
    }
}

@media only screen and (min-width : 768px) {
  .navbar-right {
    margin-right: 0px;
  }
}

@media only screen and (min-width : 1200px) {
  #about p {
    padding-right: 10%;
  }
  #signature {
    margin-right: -40%;
  }
}

@media screen and (max-width: 320px) {
  header .center-wrapper {
    padding-top: 80px;
  }
  #title {
    font-size: 40px;
  }
}

@media only screen and (max-width: 372px) {
  #testimonial-quote .carousel-indicators li {
    width: 38px;
    height: 38px;
  }
  #testimonial-quote .carousel-indicators .active:after {
    left: 20%
  }
}

@media only screen and (max-width: 360px) {
  #testimonials .carousel-inner p {
    font-size: 16px;
    text-align: center;
  }
}

@media screen and (max-width: 500px) {
  #tutor {
    width: 100%;
  }
}

@media screen and (max-width: 507px) {
  #testimonial-quote .carousel-indicators {
    bottom: -70px;
  }
}

@media screen and (max-width: 700px) {
  section {
    padding: 100px 15px;
  }
}

@media only screen and (max-width : 767px) {
  .navbar-header img {
    margin-left: 20px;
  }
  .navbar-brand {
    margin-left: -15px;
  }
  #contact-bar {
    padding-top: 20px;
  }
  #pricing .price-box-back {
    margin-bottom: 100px;
  }
  #pricing .price-list div:last-child .price-box-back {
    margin-bottom:0;
  }
  #testimonial-quote .carousel-control {
    visibility: hidden;
  }
}
