/*@import url(http://fonts.googleapis.com/css?family=Nunito);*/

/*without overflow: hidden; the background images do not work correctly on mobile*/
html {
  height: 100%;
  overflow-x: hidden;
}

body {
  margin:0;
  padding:0;
  perspective: 1px;
  transform-style: preserve-3d;
  height: 100%;
  overflow-y: scroll;
  overflow-x: hidden;
  /*font-family: Nunito;*/
}

h1 {
  font-size: 250%;
}

p {
  font-size: 140%;
  line-height: 150%;
  color: #333;
}

dt {
    font-weight: bold;
    font-style: normal;
    font-variant: small-caps;
    font-size: 150%;
}
dd {
    background:none no-repeat left top;
    padding-left: 50px;
    font-size: 125%;
    margin: 0 0 1em 0;
}


.glyphicon {
    cursor: pointer;
}
.white {
    color: #fff;
    text-shadow: 0 2px 2px #000;
}
.pronunciation {
    font-size: 80%;
    font-weight: normal;
    font-style: normal;
    font-variant: normal;
}

.quote {
    font-size: 100%;
    font-style: italic;
    font-variant: small-caps;
}
#quote_author {
    margin-left: 30px;
}

#scroll_down{
  position: absolute;
  bottom: 30px;
  left: 50%;
  margin-left:-20px;
  width: 40px;
  height: 40px;
}

#applications {
    background-color: #f7f7f7;
}

.btn-dark {
    border-radius: 0;
    color: #fff;
    background-color: rgba(0,0,0,0.4);
}

.slide {
  position: relative;
  padding: 15vh 10%;
  min-height: 80vh; /*determines the height of the background images*/
  width: 100vw;
  box-sizing: border-box;
  box-shadow: 0 -1px 10px rgba(0, 0, 0, .7);
  transform-style: inherit;
}

/*.slide:before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left:0;
  right:0;
}
*/
.title {
  width: 50%;
  padding: 5%;
  border-radius: 5px;
  background: rgba(240,230,220, .7);
  box-shadow: 0 0 8px rgba(0, 0, 0, .7);
}

.slide:nth-child(2n) .title {
  margin-left: 0;
  margin-right: auto;
}

.slide:nth-child(2n+1) .title {
  margin-left: auto;
  margin-right: 0;
}

.slide, .slide:before {
  background: 50% 50% / cover;
}

.header {
  /*text-align: center;*/
  font-size: 175%;
  color: #fff;
  text-shadow: 0 2px 2px #000;
}


#contact {
  background: #222;
}

hr.small {
    max-width: 250px;
    margin-left: auto !important;
    margin-right: auto !important;
}

section {
  padding: 50px 0
}

section h2.section-heading {
  font-size: 40px;
  margin-top: 0;
  margin-bottom: 15px
}

/* Portfolio */

.portfolio {
    padding: 50px 0;
}

.portfolio-item {
    margin-bottom: 30px;
    max-width: 500px;
}

.portfolio-caption {
  max-width: 500px;
  margin: 0 auto;
  background-color: #fff;
  text-align: center;
  padding: 25px
}

.portfolio-caption h4 {
  text-transform: none;
  margin: 0
}

.portfolio-caption p {
  font-family: "Droid Serif", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-style: italic;
  font-size: 16px;
  margin: 0
}

.img-portfolio {
    margin: 0 auto;
}

.img-portfolio:hover {
    opacity: 0.6;
}


/*ABOUT*/
.timeline {
  list-style: none;
  padding: 0;
  position: relative
}

.timeline:before {
  top: 0;
  bottom: 0;
  position: absolute;
  content: "";
  width: 2px;
  background-color: #f1f1f1;
  left: 40px;
  margin-left: -1.5px
}

.timeline>li {
  margin-bottom: 50px;
  position: relative;
  min-height: 50px
}

.timeline>li:before,
.timeline>li:after {
  content: " ";
  display: table
}

.timeline>li:after {
  clear: both
}

.timeline>li .timeline-panel {
  width: 100%;
  float: right;
  padding: 0 20px 0 100px;
  position: relative;
  text-align: left
}

.timeline>li .timeline-panel:before {
  border-left-width: 0;
  border-right-width: 15px;
  left: -15px;
  right: auto
}

.timeline>li .timeline-panel:after {
  border-left-width: 0;
  border-right-width: 14px;
  left: -14px;
  right: auto
}

.timeline>li .timeline-image {
  left: 0;
  margin-left: 0;
  width: 80px;
  height: 80px;
  position: absolute;
  z-index: 100;
  background-color: #f1f1f1;
  /*color: #fff;*/
  border-radius: 100%;
  border: 7px solid #f1f1f1;
  text-align: center
}

.timeline>li .timeline-image img {
    width: 100%;
    height: 100% !important;
    max-width: none !important;
    object-fit: cover;
    border-radius: 100%;
}

.timeline>li .timeline-image h4 {
  font-size: 10px;
  margin-top: 12px;
  line-height: 14px
}

.timeline>li.timeline-inverted>.timeline-panel {
  float: right;
  text-align: left;
  padding: 0 20px 0 100px
}

.timeline>li.timeline-inverted>.timeline-panel:before {
  border-left-width: 0;
  border-right-width: 15px;
  left: -15px;
  right: auto
}

.timeline>li.timeline-inverted>.timeline-panel:after {
  border-left-width: 0;
  border-right-width: 14px;
  left: -14px;
  right: auto
}

.timeline>li:last-child {
  margin-bottom: 0
}

.timeline .timeline-heading h4 {
  margin-top: 0;
  color: inherit
}

.timeline .timeline-heading h4.subheading {
  text-transform: none;
}

.timeline .timeline-body>p,
.timeline .timeline-body>ul {
  margin-bottom: 0
}

@media (min-width:768px) {
  .timeline:before {
    left: 50%
  }
  .timeline>li {
    margin-bottom: 100px;
    min-height: 100px
  }
  .timeline>li .timeline-panel {
    width: 41%;
    float: left;
    padding: 0 20px 20px 30px;
    text-align: right
  }
  .timeline>li .timeline-image {
    width: 100px;
    height: 100px;
    left: 50%;
    margin-left: -50px
  }
  .timeline>li .timeline-image h4 {
    font-size: 13px;
    margin-top: 16px;
    line-height: 18px
  }
  .timeline>li.timeline-inverted>.timeline-panel {
    float: right;
    text-align: left;
    padding: 0 30px 20px 20px
  }
}

@media (min-width:992px) {
  .timeline>li {
    min-height: 150px
  }
  .timeline>li .timeline-panel {
    padding: 0 20px 20px
  }
  .timeline>li .timeline-image {
    width: 150px;
    height: 150px;
    margin-left: -75px
  }
  .timeline>li .timeline-image h4 {
    font-size: 18px;
    margin-top: 30px;
    line-height: 26px
  }
  .timeline>li.timeline-inverted>.timeline-panel {
    padding: 0 20px 20px
  }
}

@media (min-width:1200px) {
  .timeline>li {
    min-height: 170px
  }
  .timeline>li .timeline-panel {
    padding: 0 20px 20px 100px
  }
  .timeline>li .timeline-image {
    width: 170px;
    height: 170px;
    margin-left: -85px
  }
  .timeline>li .timeline-image h4 {
    margin-top: 40px
  }
  .timeline>li.timeline-inverted>.timeline-panel {
    padding: 0 100px 20px 20px
  }
}
