/*! HTML5 Boilerplate v5.3.0 | MIT License | https://html5boilerplate.com/ */

/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html {
    color: #222;
    font-size: 1em;
    line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * These selection rule sets have to be separate.
 * Customize the background color to match your design.
 */

::-moz-selection {
    background: #b3d4fc;
    text-shadow: none;
}

::selection {
    background: #b3d4fc;
    text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
    vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
    resize: vertical;
}

/* ==========================================================================
   Browser Upgrade Prompt
   ========================================================================== */

.browserupgrade {
    margin: 0.2em 0;
    background: #ccc;
    color: #000;
    padding: 0.2em 0;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */


/* -----------------------------------------------------
BASE STYLES
-------------------------------------------------------- */
* {
  box-sizing: border-box;
}

html {
  font-size: 20px;
}

body {
  font-family: 'Lato', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  margin: 0;
}

hr {
  padding: 0;
  border: none;
  border-top: solid 5px;
  text-align: center;
  max-width: 250px;
  margin: 25px auto 30px;
}

img {
  max-width: 100%;
}

img#profile{
    border-radius: 20%;
}

ul {
  padding-left: 0;
}

a {
  color: rgb(81, 179, 54);
}

/* -----------------------------------------------------
Typography
-------------------------------------------------------- */
p {
  font-size: 1rem;
}

a,
a:hover,
a:focus,
a:active,
a.active {
  outline: none;
  text-decoration: none;
  transition: all .3s ease-in-out;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Merienda One", "Helvetica Neue", Helvetica, Arial, sans-serif;
  text-transform: uppercase;
  font-weight: 700;
}

/* -----------------------------------------------------
Theme
-------------------------------------------------------- */
header, .callout {
   background-color: #70877f;
   color: white;
}

nav, footer {
  background-color: #2f2963;
  color: white;
}

.btn-primary {
    color: #fff;
    background-color: #454372;
    border-color: #70877f;
}

.btn-primary:hover, .btn-primary:focus, .btn-primary.focus, .btn-primary:active, .btn-primary.active, .open>.dropdown-toggle.btn-primary {
    color: #fff;
    background-color: #ef946c;
    border-color: #204d74;
}


/* -----------------------------------------------------
Layout
-------------------------------------------------------- */
.content-wrapper {
  max-width: 950px;
  margin: 0 auto;
  padding: 0 1rem;
}


/* center carousel within page */
.bs-example {
  max-width: 600px;
  margin: 0 auto;
}

/* -----------------------------------------------------
Header
-------------------------------------------------------- */
header {
  text-align: center;
  padding: 6rem 0 2.5rem;
}

h1 {
  font-size: 3rem;
  margin-bottom: 1.25rem;
}

h3 {
  font-size: 1rem;
}

/* -----------------------------------------------------
Nav
-------------------------------------------------------- */
nav {
  padding: 1rem 0;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
}

nav a {
  font-family: "Montserrat", "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: white;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: .02em;
  display: inline-block;
}

.nav-links a:hover, nav-links a:visited {
  color: rgb(81, 179, 54);
}


nav .content-wrapper {
  display: flex;
  flex-wrap: wrap;
}

.logo {
  font-size: 1.75rem;
}

.nav-links {
  margin-left: auto;
  display: inline-block;
}

.nav-links a {
  margin-left: .6rem;
  font-size: 1rem;
  padding: .2em 0;
  border-bottom: 2px solid transparent;
}

.nav-links .current {
  border-bottom: 2px solid rgb(81, 179, 54);
}

.mobile-nav {
  display: none;
}

/* -----------------------------------------------------
Sections
-------------------------------------------------------- */
section {
  padding: 3rem 0;
  margin: 0 auto;
  color: #444;
}

section hr {
  margin-bottom: 3rem;
}

h2 {
  text-align: center;
}

/* -----------------------------------------------------
About
-------------------------------------------------------- */
.about-content {
  column-count: 2;

}

.about-content p {
  margin-top: 0;
}

/* -----------------------------------------------------
Projects
-------------------------------------------------------- */
/*.carousel {
  overflow: hidden;
}

.image-wrapper {
  display: flex;
  transition: all .3s ease-in-out;
}

.image-wrapper img {
  align-self: center;
}

.carousel-indicators {
  text-align: center;
}

.carousel-indicators li {
  display: inline-block;
  width: 15px;
  height: 15px;
  cursor: pointer;
  border: 2px solid #888;
  border-radius: 50%;
  margin: 0 5px;
  background-color: white;
  transition: all .3s ease-in-out;
}

.carousel-indicators .active {
  background-color: #2C3E50;
  border: 2px solid #2C3E50;
}*/

/* Modal */

.glyphicon-modal-window:before {
  content: "\e237";
}

.modal-open {
  overflow: hidden;
}
.modal {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1050;
  display: none;
  overflow: hidden;
  -webkit-overflow-scrolling: touch;
  outline: 0;
}
.modal.fade .modal-dialog {
  -webkit-transition: -webkit-transform .3s ease-out;
       -o-transition:      -o-transform .3s ease-out;
          transition:         transform .3s ease-out;
  -webkit-transform: translate(0, -25%);
      -ms-transform: translate(0, -25%);
       -o-transform: translate(0, -25%);
          transform: translate(0, -25%);
}
.modal.in .modal-dialog {
  -webkit-transform: translate(0, 0);
      -ms-transform: translate(0, 0);
       -o-transform: translate(0, 0);
          transform: translate(0, 0);
}
.modal-open .modal {
  overflow-x: hidden;
  overflow-y: auto;
}
.modal-dialog {
  position: relative;
  width: auto;
  margin: 10px;
}
.modal-content {
  position: relative;
  background-color: #fff;
  -webkit-background-clip: padding-box;
          background-clip: padding-box;
  border: 1px solid #999;
  border: 1px solid rgba(0, 0, 0, .2);
  border-radius: 6px;
  outline: 0;
  -webkit-box-shadow: 0 3px 9px rgba(0, 0, 0, .5);
          box-shadow: 0 3px 9px rgba(0, 0, 0, .5);
}
.modal-backdrop {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1040;
  background-color: #000;
}
.modal-backdrop.fade {
  filter: alpha(opacity=0);
  opacity: 0;
}
.modal-backdrop.in {
  filter: alpha(opacity=50);
  opacity: .5;
}
.modal-header {
  padding: 15px;
  border-bottom: 1px solid #e5e5e5;
}
.modal-header .close {
  margin-top: -2px;
}
.modal-title {
  margin: 0;
  line-height: 1.42857143;
}
.modal-body {
  position: relative;
  padding: 15px;
}
.modal-footer {
  padding: 15px;
  text-align: right;
  border-top: 1px solid #e5e5e5;
}
.modal-footer .btn + .btn {
  margin-bottom: 0;
  margin-left: 5px;
}
.modal-footer .btn-group .btn + .btn {
  margin-left: -1px;
}
.modal-footer .btn-block + .btn-block {
  margin-left: 0;
}
.modal-scrollbar-measure {
  position: absolute;
  top: -9999px;
  width: 50px;
  height: 50px;
  overflow: scroll;
}

@media (min-width: 768px) {
  .modal-dialog {
    width: 600px;
    margin: 30px auto;
  }
  .modal-content {
    -webkit-box-shadow: 0 5px 15px rgba(0, 0, 0, .5);
            box-shadow: 0 5px 15px rgba(0, 0, 0, .5);
  }
  .modal-sm {
    width: 300px;
  }
}

@media (min-width: 992px) {
  .modal-lg {
    width: 900px;
  }
}

.modal-header:before,
.modal-header:after,
.modal-footer:before,
.modal-footer:after {
  display: table;
  content: " ";
}

modal-header:after,
.modal-footer:after {
  clear: both;
}

.project-button {

display: flex;
 flex-flow:  ;
justify-content: ;
align-content: ;
align-items: ;
}

.box div.pro1 {
order: 1
flex: 0 1 auto;
align-self: ;
min-width: 0;
min-height: auto;
}

.box div.pro2 {
order: 2
flex: 0 1 auto;
align-self: ;
min-width: 0;
min-height: auto;
}

.box div.pro3 {
order: 3
flex: 0 1 auto;
align-self: ;
min-width: 0;
min-height: auto;
}


/* -----------------------------------------------------
Lightbox
-------------------------------------------------------- */
.lightbox {
  background: rgba(0, 0, 0, .5);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: none;
  justify-content: center;
  align-content: center;
}

.lightbox img {
  align-self: center;
}

/* -----------------------------------------------------
Skills Tabs
-------------------------------------------------------- */

.nav-tabs>li>a {
    margin-right: 2px;
    line-height: 1.42857143;
    border: 1px solid transparent;
    border-radius: 4px 4px 0 0;
    font-size: 1.3em;
}

/* -----------------------------------------------------
Testimonials
-------------------------------------------------------- */
blockquote {
  margin-left: 0;
  margin-right: 0;
  display: none;
}

blockquote:first-of-type {
  display: block;
}

/* -----------------------------------------------------
Forms
-------------------------------------------------------- */
input, textarea {
  font-size: .75rem;
  width: 100%;
  padding: 10px 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  margin-bottom: .9rem;
  outline: none;
}

label {
  margin-bottom: .4rem;
  display: block;
  font-size: .75rem;
  font-weight: 700;
}

textarea {
  height: 100px;
}

button {
  background-color: #454372;
  padding: 12px 20px;
  border: 0;
  border-radius: 4px;
  font-size: .75rem;
  color: white;
  text-transform: uppercase;
  letter-spacing: .04rem;
  font-weight: 700;
}

#clicktocall {
  padding:20px;
  margin: 0 auto;
  text-align: center;
}

/* -----------------------------------------------------
Footer
-------------------------------------------------------- */
footer {
  overflow: hidden;
  margin-top: 1.5rem;
  padding: 1rem 0;
}

footer .content-wrapper {
  display: flex;
}

footer p {
  font-size: .75rem;
  display: inline-block;
  margin: .25rem 0 0 0;
}

footer span {
  margin: 0 0 0 auto;
  display: inline-block;
}

footer a {
  color: white;
  font-size: 1.5rem;
  margin-right: 1.3rem;
}


@media only screen and (max-width: 700px) {
  html {
    font-size: 18px;
  }

  .about-content {
    column-count: 1;
  }

  .nav-links {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.15s ease-out;
    order: 3;
/*     display: flex; */
    flex-direction: column;
    width: 100%;
    display: none;
    padding-top: 1rem;
  }

  .open-menu {
    display: flex;
    max-height: 500px;
    transition: max-height 0.25s ease-in;
  }

  .nav-links a {
    display: inline-block;
    align-self: flex-start;
    margin-left: 0;
    font-size: .8rem;
    padding: .25rem 0;
  }

  .mobile-nav {
    display: inline-block;
    margin-left: auto;
  }

}

/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers
 */

.hidden {
    display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * http://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 */

.visuallyhidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

/*
 * Extends the .visuallyhidden class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
}

/*
 * Hide visually and from screen readers, but maintain layout
 */

.invisible {
    visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *    `contenteditable` attribute is included anywhere else in the document.
 *    Otherwise it causes space to appear at the top and bottom of elements
 *    that receive the `clearfix` class.
 * 2. The use of `table` rather than `block` is only necessary if using
 *    `:before` to contain the top-margins of child elements.
 */

.clearfix:before,
.clearfix:after {
    content: " "; /* 1 */
    display: table; /* 2 */
}

.clearfix:after {
    clear: both;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 35em) {
    /* Style adjustments for viewports that meet the condition */
}

@media print,
       (-webkit-min-device-pixel-ratio: 1.25),
       (min-resolution: 1.25dppx),
       (min-resolution: 120dpi) {
    /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   http://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
    *,
    *:before,
    *:after,
    *:first-letter,
    *:first-line {
        background: transparent !important;
        color: #000 !important; /* Black prints faster:
                                   http://www.sanbeiji.com/archives/953 */
        box-shadow: none !important;
        text-shadow: none !important;
    }

    a,
    a:visited {
        text-decoration: underline;
    }

    a[href]:after {
        content: " (" attr(href) ")";
    }

    abbr[title]:after {
        content: " (" attr(title) ")";
    }

    /*
     * Don't show links that are fragment identifiers,
     * or use the `javascript:` pseudo protocol
     */

    a[href^="#"]:after,
    a[href^="javascript:"]:after {
        content: "";
    }

    pre,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    /*
     * Printing Tables:
     * http://css-discuss.incutio.com/wiki/Printing_Tables
     */

    thead {
        display: table-header-group;
    }

    tr,
    img {
        page-break-inside: avoid;
    }

    img {
        max-width: 100% !important;
    }

    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }

    h2,
    h3 {
        page-break-after: avoid;
    }
}
