/*
 * HTML5 Boilerplate
 *
 * 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,
button,
input,
select,
textarea {
    color: #222;
}

body {
    font-size: 1em;
    line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight: h5bp.com/i
 * These selection declarations 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 images and the bottom of their containers: h5bp.com/i/440
 */

img {
    vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

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

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

textarea {
    resize: vertical;
}

/* ==========================================================================
   Chrome Frame prompt
   ========================================================================== */

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

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

html, body { min-width: 240px; height:100% }
html.index, html.index > body { height: 100%; }
body { background-image: url("../img/logo/logo-240.png"); background-repeat: no-repeat; background-position: center center; }
div#floater { position: relative; float: left; height: 50%; margin-bottom: -140px; width: 0; }
div.wrapper { text-align: center; width: 100%; }
div.content { border: 1px solid #ccc; background: rgba(255,255,255,0.8); filter: progid:DXImageTransform.Microsoft.gradient(GradientType=0,startColorstr='#ccffffff', endColorstr='#ccffffff'); clear: both; position: relative; max-width: 414px; text-align: left; margin: 0 10px 10px 10px; }
div.content.person { text-align: center; }
div.content > section, div.content > article { margin: 20px 5px; }
div.content > article.post { margin-bottom: 0; }
div.content > section.discussion { margin-top: 0; }
h1 > a, h1 > a:visited, h1 > a:hover, h1 > a:focus, h1 > a:active, h2 > a, h2 > a:visited, h2 > a:hover, h2 > a:focus, h2 > a:active { text-decoration: inherit; color: inherit; }
h1 { font-size: 1.6em; }
h1, .author > .name { font-family: 'Special Elite', monospace; font-weight: 400; color: #000; }
h2 { font-family: 'Patua One', serif; font-weight: 400; font-size: 1.4em; font-style: normal; color: #000; }
h2 > a, h2 > a:visited, h2 > a:hover, h2 > a:focus, h2 > a:active { color: #087dbf; }
div.person > section.person { height: 140px; text-align: center; }
section.info { margin: 0 auto; text-align: center; }
section.info h1 { padding: 0; line-height: 0.5em; margin: 0.5em 0 0 0; }
section.info dfn { font-family: 'Maven Pro', sans-serif; font-weight: 400; font-size: 0.9em; font-style: normal; }
ul.services { list-style-type: none; padding: 0; margin: 0.2em 0; }
ul.services li { display: inline; }
ul.posts { list-style-type: none; padding: 0; }
article > header { font-size: 1.2em; }
article > header > h2 { margin-bottom: 0.5em; }
article > header >.date { color: #aaa; font-size: 1em; }
article > header >.tags { margin: 0 0 0 -0.6em; padding: 0; list-style: none; display: inline-block; }
article > header >.tags li { font-size: 0.8em; float: left; height: 1.6em; line-height: 1.6em; position: relative; margin-left: 1.5em; padding: 0 0.6em 0 0.8em; background: #f6f48b; margin-top: 0.2em; }
article > header >.tags li:before { content: ""; position: absolute; top: 0em; left: -0.75em; width: 0; height: 0; border-color: transparent #f6f48b transparent transparent; border-color: rgba(255,255,255,0) #f6f48b rgba(255,255,255,0) rgba(255,255,255,0); border-style: solid; border-width: 0.825em 0.8em 0.825em 0; }
article > header >.tags li:after { content: ""; position: absolute; top: 0.55em; left: -0.1em; width: 0.3em; height: 0.3em; behavior: url("/http/javanto.com/css/PIE.htc"); -webkit-border-radius: 0.15em; -khtml-border-radius: 0.15em; -moz-border-radius: 0.15em; border-radius: 0.15em; background: #fff; border: 1px solid #ccc; }
article > footer > .person { margin-bottom: 0.4em; margin-top: 0.4em; }
article > footer > .person > .avatar, article > footer > .person > .author { vertical-align: middle; display: inline-table; }
article > footer > .person > .author > .name { font-size: 1.4em; margin-bottom: -0.3em; }
article > footer > .person > .author > .services { margin: 0; }
ul.projects { list-style-type: none; padding: 0; }
.addthis_pill_style  { width: 80px; }

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

/*
 * Image replacement
 */

.ir {
    background-color: transparent;
    border: 0;
    overflow: hidden;
    /* IE 6/7 fallback */
    *text-indent: -9999px;
}

.ir:before {
    content: "";
    display: block;
    width: 0;
    height: 150%;
}

/*
 * Hide from both screenreaders and browsers: h5bp.com/u
 */

.hidden {
    display: none !important;
    visibility: hidden;
}

/*
 * Hide only visually, but have it available for screenreaders: h5bp.com/v
 */

.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: h5bp.com/p
 */

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

/*
 * Hide visually and from screenreaders, 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;
}

/*
 * For IE 6/7 only
 * Include this rule to trigger hasLayout and contain floats.
 */

.clearfix {
    *zoom: 1;
}

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

@media only screen and (min-width: 450px) {
  div.content { margin: 0 auto; }
}

@media only screen and (min-width: 480px) {
  /* Style adjustments for viewports 480px and over go here */
  body { background-image: url("../img/logo/logo-360.png"); font-size: 105%; }
  div.content.person { font-size: 100%; }
  div.content { font-size: 80%; max-width: 360px; margin: 0 auto 20px auto; }
  div#floater { margin-bottom: -100px; }
  div.content > section, div.content > article { margin: 30px 10px; }
  div.person > section.person { height: 100px; text-align: center; }
  div.avatar, section.info { vertical-align: middle; display: inline-table; }
  section.info { margin: 0 0 0 0.5em; text-align: left; }
  h2 { font-size: 1.6em; }
  article > header > .person > section.info { font-size: 110%; }
  section.social > iframe, section.social > div { display: inline-block; margin: 0; }
}

@media only screen and (min-width: 728px) {
  div.content { margin: 0 auto 30px auto; }
}

@media only screen and (min-width: 768px) {
  /* Style adjustments for viewports 768px and over go here */
  body { background-image: url("../img/logo/logo-480.png"); font-size: 140%; }
  div.content.person { font-size: 100%; }
  div.content { font-size: 60%; max-width: 540px; margin: 0 auto 40px auto; }
  div#floater { margin-bottom: -120px; }
  div.content > section, div.content > article { margin: 40px 20px; }
  div.person > section.person { height: 120px; }
  h2 { font-size: 2em; }
  article > header > .person > section.info { font-size: 140%; }
}

@media only screen and (min-width: 900px) {
  div.content { margin: 0 auto 40px auto; }
}

/* ==========================================================================
   Print styles.
   Inlined to avoid required HTTP connection: h5bp.com/r
   ========================================================================== */

@media print {
  * { background: transparent !important; color: black !important; text-shadow: none !important; filter:none !important; -ms-filter: none !important; } /* Black prints faster: h5bp.com/s */
  a, a:visited { text-decoration: underline; }
  div#floater { display: none; }
  h1 > a { display: none; }
  div.content { border: none; margin: 0; max-width: 100%; }
  div.content.person { text-align: left; }
  div.person > section.person { text-align: left; }
  section.info { text-align: left; }
  section.social { display: none; }
  .tags { margin: 0; padding: 0; list-style: none; }
  .tags li { font-size: 0.7em; display: inline; float: none; height: auto; line-height: auto; position: relative; margin: 0; padding: 0; background: auto;  }
  .tags li:before, .tags li:after { position: relative; left: auto; top: auto; border: none; background: none; height: auto; width: auto; }
  .tags li:before { display: none; }
  .tags li:after { display: inline; content: ", "; }
  .tags li:last-child:after { content: ""; }
  ul.services { list-style-type: none; padding: 0; margin: 0.2em 0; }
  ul.services li { display: block; }
  a[href].service:after { content: " " attr(href); }
  abbr[title]:after { content: " (" attr(title) ")"; }
  .ir a:after, a[href^="javascript:"]:after, a[href^="#"]:after { content: ""; }  /* Don't show links for images, or javascript/internal links */
  pre, blockquote { border: none; page-break-inside: avoid; }
  thead { display: table-header-group; } /* h5bp.com/t */
  tr, img { page-break-inside: avoid; }
  img { max-width: 100% !important; }
  @page { margin: 0.5cm; }
  p, h2, h3 { orphans: 3; widows: 3; }
  h2, h3 { page-break-after: avoid; }
}
