@import url(https://fonts.googleapis.com/css?family=Lato:300italic,700italic,300,700);

body {
  padding:50px;
  font:16px/1.5 Lato, "Helvetica Neue", Helvetica, Arial, sans-serif;
  color:#777;
  font-weight:300;
  overflow-x: hidden;
}

p, ul, ol, table, pre, dl {
  margin:0 0 20px;
}

h1, h2, h3 {
  line-height:1.1;
}

h1 {
  font-size:42px;
}

h2 {
  color:#393939;
}

h3, h4, h5, h6 {
  color:#494949;
}

a {
  color:#39c;
  font-weight:400;
  text-decoration:none;
}

a small {
  font-size:11px;
  color:#777;
  margin-top:-0.6em;
  display:block;
}

.wrapper {
  width:100%;
  max-width:1200px;
  margin:0;
  padding:0 20px;
}

blockquote {
  border-left:1px solid #e5e5e5;
  margin:0;
  padding:0 0 0 20px;
  font-style:italic;
}

code, pre {
  font-family:Monaco, Bitstream Vera Sans Mono, Lucida Console, Terminal;
  color:#333;
  font-size:12px;
}

pre {
  padding:8px 15px;
  background: #f8f8f8;  
  border-radius:5px;
  border:1px solid #e5e5e5;
  overflow-x: auto;
}

table {
  width:100%;
  border-collapse:collapse;
}

th, td {
  text-align:left;
  padding:5px 10px;
  border-bottom:1px solid #e5e5e5;
}

dt {
  color:#444;
  font-weight:700;
}

th {
  color:#444;
}

img {
  max-width:100%;
}

header {
  width:270px;
  float:left;
  position:fixed;
  left:20px;
}

header ul {
  list-style:none;
  height:40px;
  
  padding:0;
  
  background: #eee;
  background: -moz-linear-gradient(top, #f8f8f8 0%, #dddddd 100%);
  background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#f8f8f8), color-stop(100%,#dddddd));
  background: -webkit-linear-gradient(top, #f8f8f8 0%,#dddddd 100%);
  background: -o-linear-gradient(top, #f8f8f8 0%,#dddddd 100%);
  background: -ms-linear-gradient(top, #f8f8f8 0%,#dddddd 100%);
  background: linear-gradient(top, #f8f8f8 0%,#dddddd 100%);
  
  border-radius:5px;
  border:1px solid #d2d2d2;
  box-shadow:inset #fff 0 1px 0, inset rgba(0,0,0,0.03) 0 -1px 0;
  width:270px;
}

header li {
  width:89px;
  float:left;
  border-right:1px solid #d2d2d2;
  height:40px;
}

header ul a {
  line-height:1;
  font-size:11px;
  color:#999;
  display:block;
  text-align:center;
  padding-top:6px;
  height:40px;
}

strong {
  color:#222;
  font-weight:700;
}

header ul li + li {
  width:88px;
  border-left:1px solid #fff;
}

header ul li + li + li {
  border-right:none;
  width:89px;
}

header ul a strong {
  font-size:14px;
  display:block;
  color:#222;
}

section {
  width:calc(100% - 320px);
  margin-left:320px;
  padding-bottom:50px;
  max-width:900px;
}

small {
  font-size:11px;
}

hr {
  border:0;
  background:#e5e5e5;
  height:1px;
  margin:0 0 20px;
}

footer {
  width:270px;
  float:left;
  position:fixed;
  bottom:50px;
}

@media print, screen and (max-width: 960px) {
  
  div.wrapper {
    width:100%;
    margin:0;
    padding:0 10px;
  }
  
  header, section, footer {
    float:none;
    position:static;
    width:auto;
  }
  
  header {
    padding-right:0;
    margin-bottom:20px;
    left: auto;
  }
  
  section {
    border:1px solid #e5e5e5;
    border-width:1px 0;
    padding:20px 0;
    margin:0 0 20px;
    width:100%;
    margin-left:0;
    max-width: none;
  }
  
  header a small {
    display:inline;
  }
  
  header ul {
    position:absolute;
    right:50px;
    top:52px;
  }
  
  /* Ensure proper spacing on mobile */
  .col-xs-12, .col-sm-6, .col-md-4 {
    padding-left: 15px;
    padding-right: 15px;
    margin-bottom: 20px;
  }
}

@media print, screen and (max-width: 720px) {
  body {
    word-wrap:break-word;
  }
  
  header {
    padding:0;
  }
  
  header ul, header p.view {
    position:static;
  }
  
  pre, code {
    word-wrap:normal;
  }
}

@media print, screen and (max-width: 480px) {
  body {
    padding:15px;
  }
  
  header ul {
    display:none;
  }
  
  .col-xs-12, .col-sm-6, .col-md-4 {
    padding-left: 5px;
    padding-right: 5px;
  }
}

/* Mobile-specific improvements - STRONG OVERRIDES */
@media screen and (max-width: 768px) {
  /* Force reset all layout positioning */
  body {
    padding: 15px !important;
  }
  
  .wrapper {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 15px !important;
    max-width: none !important;
  }
  
  header, section, footer {
    float: none !important;
    position: static !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    max-width: none !important;
    left: auto !important;
    right: auto !important;
  }
  
  section {
    border: none !important;
    padding: 20px 0 !important;
    margin: 0 !important;
    width: 100% !important;
  }
  
  /* Improve header layout for mobile */
  header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px 0;
    background: #f8f8f8;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  }
  
  header h1 {
    font-size: 32px;
    margin: 10px 0;
    color: #333;
  }
  
  header p.view {
    margin: 8px 0;
  }
  
  header p.view a {
    display: inline-block;
    padding: 8px 16px;
    margin: 4px;
    background: #56A2D6;
    color: white;
    border-radius: 20px;
    font-size: 14px;
    transition: all 0.3s ease;
  }
  
  header p.view a:hover {
    background: #4a8bc2;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(86, 162, 214, 0.3);
  }
  
  /* Force center the main content container */
  .container {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    padding: 0 15px !important;
    float: none !important;
    position: static !important;
  }
  
  /* Force center the rows and columns */
  .row {
    margin: 0 auto !important;
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    width: 100% !important;
    max-width: none !important;
  }
  
  .col-xs-12, .col-sm-6, .col-md-4 {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    padding: 0 10px !important;
    margin-bottom: 25px !important;
    text-align: center !important;
    float: none !important;
    position: static !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  
  /* Improve project cards for mobile */
  .spacer {
    margin-top: 20px;
    margin-bottom: 20px;
    text-align: center;
  }
  
  .spacer h4 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #333;
    font-weight: 600;
  }
  
  .spacer p {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 15px;
    text-align: left;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }
  
  /* Improve image containers */
  figure.effect-chico {
    margin: 0 auto 15px auto;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    max-width: 300px;
  }
  
  figure.effect-chico:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
  }
  
  figure.effect-chico img {
    width: 100%;
    height: auto;
    border-radius: 8px;
  }
  
  /* Center the "View More Projects" link */
  .view {
    text-align: center;
    margin: 30px 0;
  }
  
  .view a {
    display: inline-block;
    padding: 12px 24px;
    background: linear-gradient(135deg, #56A2D6, #4a8bc2);
    color: white;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(86, 162, 214, 0.3);
  }
  
  .view a:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(86, 162, 214, 0.4);
    background: linear-gradient(135deg, #4a8bc2, #3d7ba8);
  }
  
  /* Improve HR styling */
  hr {
    margin: 30px auto;
    height: 2px;
    background: linear-gradient(to right, transparent, #e5e5e5, transparent);
    border: none;
    max-width: 200px;
  }
}

/* Extra small mobile devices */
@media screen and (max-width: 480px) {
  body {
    padding: 10px;
  }
  
  header h1 {
    font-size: 28px;
  }
  
  header p.view a {
    padding: 6px 12px;
    font-size: 13px;
    margin: 3px;
  }
  
  .spacer h4 {
    font-size: 16px;
  }
  
  .spacer p {
    font-size: 13px;
  }
  
  .view a {
    padding: 10px 20px;
    font-size: 14px;
  }
  
  .container {
    padding: 0 5px;
  }
  
  .col-xs-12, .col-sm-6, .col-md-4 {
    padding: 0 3px;
    margin-bottom: 20px;
  }
}

@media print {
  body {
    padding:0.4in;
    font-size:12pt;
    color:#444;
  }
}

.spacer {
    margin-top:30px;
}

/* Portfolio item responsive sizing */
.container {
    max-width: 100%;
    overflow-x: hidden;
}

.col-xs-12, .col-sm-6, .col-md-4 {
    padding-left: 10px;
    padding-right: 10px;
}

/* Ensure images scale properly */
.border {
    max-width: 100%;
    height: auto;
    width: 100%;
}

/* Responsive adjustments for different screen sizes */
@media (max-width: 1200px) {
    section {
        width: calc(100% - 300px);
        margin-left: 300px;
        max-width: 800px;
    }
}

@media (max-width: 992px) {
    section {
        width: calc(100% - 280px);
        margin-left: 280px;
        max-width: 700px;
    }
}

:root {
  --mainColor: #56A2D6;
}

a {
  background:
     linear-gradient(
       to bottom, var(--mainColor) 0%,
       var(--mainColor) 100%
     );
    background-position: 0 100%;
    background-repeat: repeat-x;
    background-size: 1px 1px;
  color: #000;
  text-decoration: none;
  transition: background-size .4s;
}

a:hover {
  background-size: 4px 50px;
  color: #fff;
}

.post-tag {
  color: #3E6D8E;
  background-color: #E0EAF1;
  border-bottom: 1px solid #3E6D8E;
  border-right: 1px solid #7F9FB6;
  padding: 3px 4px 3px 4px;
  margin: 2px 2px 2px 0;
  text-decoration: none;
  font-size: 90%;
  line-height: 2.4;
  white-space: nowrap;
}

a.post-tag:hover {
  background-color: #3E6D8E;
  color: #E0EAF1;
  border-bottom: 1px solid #37607D;
  border-right: 1px solid #37607D;
  text-decoration: none;
}

a.plain {
  color:#39c;
  font-weight:400;
  text-decoration:none;
}
a.plain:hover{
  color:#39c;
  font-weight:400;
  text-decoration:none; 
}

.s-tag {
  display: inline-flex;
  align-content: center;
  justify-content: center;
  min-width: 0;
  padding-left: 4px;
  padding-right: 4px;
  border-style: solid;
  border-width: 1px;
  border-radius: 3px;
  margin-bottom: 4px;
  font-size: 12px;
  line-height: 1.84615385;
  text-decoration: none;
  vertical-align: middle;
  white-space: nowrap;
  border-color: transparent;
  background-color: #e1ecf4;
  color: #39739d;
}

.mr2 {
  margin-right: 2px !important;
}


/*---------------*/
/***** Bubba *****/
/*---------------*/

figure.effect-bubba {
	background: #9e5406;
}

figure.effect-bubba img {
	opacity: 0.7;
	-webkit-transition: opacity 0.35s;
	transition: opacity 0.35s;
}

figure.effect-bubba:hover img {
	opacity: 0.4;
}

figure.effect-bubba figcaption::before,
figure.effect-bubba figcaption::after {
	position: absolute;
	top: 10px;
	right: 10px;
	bottom: 10px;
	left: 10px;
	content: '';
	opacity: 0;
	-webkit-transition: opacity 0.35s, -webkit-transform 0.35s;
	transition: opacity 0.35s, transform 0.35s;
}

figure.effect-bubba figcaption::before {
	border-top: 1px solid #fff;
	border-bottom: 1px solid #fff;
	-webkit-transform: scale(0,1);
	transform: scale(0,1);
}

figure.effect-bubba figcaption::after {
	border-right: 1px solid #fff;
	border-left: 1px solid #fff;
	-webkit-transform: scale(1,0);
	transform: scale(1,0);
}

figure.effect-bubba h2 {
	padding-top: 30%;
	-webkit-transition: -webkit-transform 0.35s;
	transition: transform 0.35s;
	-webkit-transform: translate3d(0,-20px,0);
	transform: translate3d(0,-20px,0);
}

figure.effect-bubba p {
	padding: 20px 2.5em;
	opacity: 0;
	-webkit-transition: opacity 0.35s, -webkit-transform 0.35s;
	transition: opacity 0.35s, transform 0.35s;
	-webkit-transform: translate3d(0,20px,0);
	transform: translate3d(0,20px,0);
}

figure.effect-bubba:hover figcaption::before,
figure.effect-bubba:hover figcaption::after {
	opacity: 1;
	-webkit-transform: scale(1);
	transform: scale(1);
}

figure.effect-bubba:hover h2,
figure.effect-bubba:hover p {
	opacity: 1;
	-webkit-transform: translate3d(0,0,0);
	transform: translate3d(0,0,0);
}

/*---------------*/
/***** Chico *****/
/*---------------*/

figure.effect-chico img {
	-webkit-transition: opacity 0.35s, -webkit-transform 0.35s;
	transition: opacity 0.35s, transform 0.35s;
	-webkit-transform: scale(12);
	transform: scale(1);
}

figure.effect-chico:hover img {
	opacity: 0.5;
	-webkit-transform: scale(0.92);
	transform: scale(0.92);
}

