/***********************************************************
 *                                                         *
 *  OVERWRITES                                             *
 *                                                         *
 *  Overwrites for Bootstrap and Angular Bootstrap UI      *
 *                                                         *
 ***********************************************************/

body {
  background-color: #d6d6d6;
  background-image: url(../images/eboy-watermark.jpg);
  background-position: top left;
  background-repeat: repeat;
  background-size: auto;
}

.page-header {
  margin-top: -10px;
}

.navbar .nav {
  font-size: 1.1em;
}

.btn-group-justified-responsive > .btn {
  font-size: 15px;
}

@media (min-width: 650px) {
  .btn-group-justified-responsive {
    border-collapse: separate;
    display: table;
    table-layout: fixed;
    width: 100%;
  }

  .btn-group-justified-responsive > .btn-group .btn {
    width: 100%;
  }

  .btn-group-justified-responsive > .btn {
    font-size: 17px;
  }

  .btn-group-justified-responsive > .btn,
  .btn-group-justified-responsive > .btn-group {
    display: table-cell;
    float: none;
    width: 1%;
  }
}
@media (min-width: 768px) {
  .page-header {
    margin-top: 0px;
  }
}
@media (min-width: 992px) {
  .page-header {
    margin-top: 20px;
  }

  .btn-group-justified-responsive > .btn {
    font-size: 19px;
  }
}

/**********************************
 *  Jumbotron overwrite           *
 **********************************/

.container .jumbotron,
.container-fluid .jumbotron {
  border-radius: 10px;
  padding-left: 30px;
  padding-right: 30px;
}

.jumbotron h3:first-child {
  margin-top: 10.5px;
}

@media (min-width: 768px) {
  .container .jumbotron,
  .container-fluid .jumbotron {
    padding-left: 60px;
    padding-right: 60px;
  }
}

/**********************************
 *  Carousel overwrite            *
 **********************************/

.left.carousel-control,
.right.carousel-control {
  background-image: none;
}

.carousel-control {
  opacity: 0.7;
}

.carousel-control:hover {
  opacity: 0.9;
}

#click-carousel {
  margin: auto;
  max-width: 800px;
}

#click-carousel .carousel-indicators .active {
  background-color: rgba(240, 65, 36, 0.9);
  margin: 1px;
}

#click-carousel .carousel-indicators li {
  background-color: rgba(240, 65, 36, 0.7);
  border-color: rgba(240, 65, 36, 0.7);
  height: 20px;
  width: 20px;
}

#click-carousel .carousel-indicators li:hover {
  background-color: rgba(240, 65, 36, 0.9);
}

#click-carousel .glyphicon {
  color: #f04124;
  font-size: 250%;
}

#click-carousel .glyphicon-chevron-right {
  margin-right: 0px;
}

.vertical-margins,
#click-carousel.vertical-margins {
  margin-bottom: 20px;
  margin-top: 20px;
}

/***********************************************************
 *                                                         *
 *  TYPE                                                   *
 *                                                         *
 ***********************************************************/

html,
code,
kbd,
pre,
samp,
body,
.tooltip,
.popover,
.carousel-control .icon-prev,
.carousel-control .icon-next {
  font-family: 'Roboto', sans-serif;
  font-weight: 300;
}

h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6 {
  font-family: 'Roboto Slab', serif;
}

h3.up-between {
  font-size: 29px;
}
h4.up-between {
  font-size: 22px;
}
h5.up-between {
  font-size: 17px;
}

.very-small {
  font-size: 9px;
  letter-spacing: 0em;
  line-height: 0;
  margin: 0;
  padding: 0;
}

.reader {
  font-size: 19px;
  font-style: normal;
  letter-spacing: 0.01rem;
  line-height: 1.8;
}

.no-wrap {
  white-space: nowrap;
}

.demure {
  opacity: 0.4;
}

.smaller {
  font-size: 80%;
}

@font-face {
  font-family: 'Anime Ace';
  font-style: normal;
  font-weight: normal;
  src:
    url('../fonts/animeace.eot?') format('eot'),
    url('../fonts/animeace.woff') format('woff'),
    url('../fonts/animeace.ttf') format('truetype'),
    url('../fonts/animeace.svg#AnimeAce') format('svg');
}

@media (min-width: 992px) {
  .bigger-with-more-space {
    font-size: 120%;
  }
}

/***********************************************************
 *                                                         *
 *  COMPONENTS                                             *
 *                                                         *
 *  Reusable CSS components                                *
 *                                                         *
 ***********************************************************/

.max-width-700 {
  margin: auto;
  max-width: 700px;
}

.grey-out {
  filter: alpha(opacity=65);
  opacity: .65;
  -webkit-box-shadow: none;
          box-shadow: none;
}

.top-bottom-margins {
  margin-bottom: 30px;
  margin-top: 30px;
}

.top-rounded-corners {
  border-top-left-radius: 10px;
  border-top-right-radius: 10px
}

.top-nonrounded-corners {
  border-top-left-radius: 0px !important;
  border-top-right-radius: 0px !important;
}

/**********************************
 *  Color boxes                   *
 **********************************/

.black-box {
  background-color: black;
}

.blue-box {
  background-color: #008cba;
}
.jumbotron.blue-box {
  border: solid 2px #0079a1;
}

.light-blue-box {
  background-color: #5bc0de;
}
.jumbotron.light-blue-box {
  border: solid 2px #46b8da;
}

.dark-grey-box {
  background-color: #222;
}
.jumbotron.dark-grey-box {
  border: solid 2px #000;
}

.red-box {
  background-color: #f04124;
}
.jumbotron.red-box {
  border: solid 2px #ea2f10;
}

.white-box {
  background-color: white;
}
.jumbotron.white-box {
  border: solid 2px #ddd;
}

.yellow-box {
  background-color: #ffd306;
}
.yellow-box hr {
  border-top: 1px dashed #000;
}
.jumbotron.yellow-box {
  border: solid 2px #ecd200;
}

.black-box,
.black-box small,
.blue-box,
.blue-box small,
.dark-grey-box,
.dark-grey-box small,
.light-blue-box,
.light-blue-box small,
.red-box,
.red-box small {
  color: white;
}

.black-box a,
.blue-box a,
.dark-grey-box a,
.light-blue-box a,
.red-box a {
  color: white;
  text-decoration: underline;
}

.black-box a:hover,
.blue-box a:hover,
.dark-grey-box a:hover,
.light-blue-box a:hover,
.red-box a:hover {
  text-decoration: none;
}

.white-box small,
.yellow-box small {
  color: black;
}

/***********************************************************
 *                                                         *
 *  INDEX PAGE                                             *
 *                                                         *
 ***********************************************************/

.fixed-navbar-compensate {
  margin-top: 66px;
}

.btn+.btn {
  margin-left: 10px;
}

#ping-me-links-sm a+a {
  margin-left: 10px;
}

.btn-facebook {
  background-color: #3b579d;
  border-color: #293c6b;
  color: #ffffff;
}

.btn-facebook:hover,
.btn-facebook:focus,
.btn-facebook.focus,
.btn-facebook:active,
.btn-facebook.active,
.open > .dropdown-toggle.btn-facebook {
  color: #ffffff;
  background-color: #293c6b;
  border-color: #293c6b;
}

.btn-linkedin {
  background-color: #0077b5;
  border-color: #005582;
  color: #ffffff;
}

.btn-linkedin:hover,
.btn-linkedin:focus,
.btn-linkedin.focus,
.btn-linkedin:active,
.btn-linkedin.active,
.open > .dropdown-toggle.btn-linkedin {
  color: #ffffff;
  background-color: #005582;
  border-color: #005582;
}

#ping-me {
  margin-bottom: -30px;
  margin-top: 30px;
  padding-bottom: 70px;
}

#ping-me a,
#ping-me a:active,
#ping-me a:focus,
#ping-me a:hover,
#ping-me a:visited,
#ping-me-links-lg a,
#ping-me-links-lg a:active,
#ping-me-links-lg a:focus,
#ping-me-links-lg a:hover,
#ping-me-links-lg a:visited,
#ping-me-links-sm a,
#ping-me-links-sm a:active,
#ping-me-links-sm a:focus,
#ping-me-links-sm a:hover,
#ping-me-links-sm a:visited,
.navbar .nav {
  text-decoration: none;
  outline: 0;
}

#ping-me-links-lg {
  display: none;
}

#ping-me-links-sm {
  display: inline;
}

.social-img {
  height: 35px;
  width: 35px;
}

@media (min-width: 350px) {
  .social-img {
    height: 50px;
    width: 50px;
  }
}

@media (min-width: 550px) {
  #ping-me-links-lg {
    display: inline;
  }

  #ping-me-links-sm {
    display: none;
  }
}

/***********************************************************
 *                                                         *
 *  ENGINEERING PROJECTS PAGE                              *
 *                                                         *
 ***********************************************************/

#angsty-box .btn {
  margin-bottom: 20px;
  margin-top: 5px;
}
#click-box .btn {
  margin-bottom: 10px;
  margin-top: 15px;
}
@media (max-width: 992px) {
  .margin-bottom-sm {
    margin-bottom: 35px;
  }
}
@media (max-width: 768px) {
  .margin-bottom-sm {
    margin-bottom: 30px;
  }
}

/***********************************************************
 *                                                         *
 *  FILM PORTFOLIO PAGE                                    *
 *                                                         *
 ***********************************************************/

#top {
  margin-top: -70px;
  padding-top: 70px;
}

.embed-responsive.embed-responsive-21by9 {
  padding-bottom: 42.6%;
}

.film-row {
  margin: 0;
}

.film-row a:hover {
  text-decoration: none;
}

.film-item {
  cursor: pointer;
  margin: 0px;
  overflow: hidden;
  padding: 0px;
}
.film-item:hover .film-img:after {
  background-image: url(../images/films/play.png);
  background-size: cover;
  bottom: 0;
  content: '';
  display: block;
  opacity: 0.6;
  padding-top: 56.25%;
  position: absolute;
  top: 0;
  width: 100%;
  z-index: 99;
}

.thumbnail {
  margin-bottom: 20px;
  padding: 0px;
}

.film-img {
  background-color: #eee;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  padding-top: 56.25%;
  position: relative;
}

.caption .list-group-item-heading,
.caption .list-group-item-text {
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

.film-pick {
  left: 18px;
  position: absolute;
  top: 13px;
  z-index: 49;
}

.pick-inner {
  height: 80px;
  position: relative;
  -ms-transform: rotate(-20deg);
  -webkit-transform: rotate(-20deg);
  transform: rotate(-20deg);
  width: 80px;
}

.pick-inner h4 {
  color: red;
  font-family: 'Anime Ace';
  font-size: 280%;
  text-shadow:
     3px 3px 0 #000,
    -1px -1px 0 #000,  
     1px -1px 0 #000,
    -1px 1px 0 #000,
     1px 1px 0 #000;
  -webkit-text-stroke: 2px yellow;
}

@media (min-width: 600px) {
  .film-pick {
    left: 25px;
    top: 20px;
  }

  .pick-inner {
    height: 100px;
    width: 100px;
  }

  .pick-inner h4 {
    font-size: 360%;
    -webkit-text-stroke: 2px yellow;
  }

}

@media (min-width: 768px) {
  .film-pick {
    left: 13px;
    top: 5px;
  }

  .pick-inner {
    height: 50px;
    width: 50px;
  }

  .pick-inner h4 {
    font-size: 180%;
    -webkit-text-stroke: 1px yellow;
  }
}

/***********************************************************
 *                                                         *
 *  STORY PAGE                                             *
 *                                                         *
 ***********************************************************/

.reader-body div:first-child {
  padding-top: 0px;
}

.reader-body div {
  padding-bottom: 25px;
  padding-top: 25px;
}

.reader-body p {
  padding-bottom: 10px;
  padding-top: 10px;
}

.footnote {
  margin-top: -50px;
  padding-top: 50px;
}

/***********************************************************
 *                                                         *
 *  CV/RESUME PAGE                                         *
 *                                                         *
 ***********************************************************/

#cv-toggle-buttons {
  margin-bottom: 10px;
}

.cv-headings h1,
.cv-headings h2,
.cv-headings h3,
.cv-headings h4,
.cv-headings h5,
.cv-headings h6 {
  margin-bottom: 3px;
  margin-top: 10px;
}

#cv-pic {
  margin-bottom: 15px;
  margin-top: 15px;
  padding-left: 12px;
  padding-right: 12px;
}

#pic-inner {
  background-image: url(../images/corgis.png);
  background-repeat: no-repeat;
  background-size: cover;
  padding-top: 155.35%;
  width: 100%;
}

.cv-item ul {
  padding-left: 25px;
}

/**********************************
 *  CV item/box                   *
 *                                *
 *  Takes up 100% width when      *
 *  screen width is < than 600px, *
 *  50% when > than.              *
 **********************************/

.cv-item {
  display: inline-block;
  position: relative;
  width: 100%;
}

.cv-item .well {
  border-radius: 7px;
  display: block;
  margin: 15px;
  padding: 15px 25px 15px 25px;
  position: relative;
}

@media (min-width: 600px) {
  .cv-item {
    width: 50%;
  }
}

@media (min-width: 1200px) {
  .cv-item {
    width: 33%;
  }
}

/**********************************
 *  CV bookmark                   *
 **********************************/

.cv-bookmark {
  float: right;
  margin-left: 10px;
  margin-right: -5px;
  margin-top: -18px;
}

.flag-md.flag {
  height: 70px;
}

.flag-lg.flag {
  height: 85px;
}

.flag-on-blue.flag {
  color: #008cba;
}
.flag-on-blue.flag:after {
  border-bottom: 13px solid #008cba;
}

.flag-on-red.flag {
  color: #f04124;
}
.flag-on-red.flag:after {
  border-bottom: 13px solid #f04124;
}

.flag-on-yellow.flag {
  background: #f04124;
}
.flag-on-yellow.flag:after {
  border-bottom: 13px solid #ffd306;
}

/**********************************
 *                                *
 *  Plus CS                       *
 *                                *
 **********************************/

@media (max-width: 992px) {
  #zine-embed {
    padding-bottom: 75%;
  }
}

@media (max-width: 768px) {
  #zine-embed {
    padding-bottom: 95%;
  }
}

@media (max-width: 600px) {
  #zine-embed {
    padding-bottom: 115%;
  }
}

/***********************************************************
 *                                                         *
 *  ANGULAR CSS FORM                                       *
 *                                                         *
 *  On contacts page                                       *
 *                                                         *
 ***********************************************************/

.css-form input.ng-invalid.ng-touched,
.css-form textarea.ng-invalid.ng-touched {
  border-color: #e99002;
}

.css-form input.ng-valid.ng-touched,
.css-form textarea.ng-valid.ng-touched {
  border-color: #43ac6a;
}
