/* ------------------------------------
-------- Meyer reset styles -----------
-------------------------------------*/

/* http://meyerweb.com/eric/tools/css/reset/ 
   v2.0 | 20110126
   License: none (public domain)
*/

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
	display: block;
}
body {
	line-height: 1;
}
ol, ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}


/* ------------------------------------
-------Personal reset styles ----------
-------------------------------------*/


/* Ensure specified divs and images will auto stretch width & height of viewport */
html, body {
  width: 100%; 
  height: 100%;
}


/* Box sizing reset */
html {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}
*, *:before, *:after {
  -webkit-box-sizing: inherit;
  -moz-box-sizing: inherit;
  box-sizing: inherit;
}


/* Clearfix applied to parent of floated childs */
.clearfix:before, .clearfix:after { content: ""; display: table; }
.clearfix:after { clear: both; }
.clearfix { *zoom: 1; }


/* Always force a scrollbar in non-IE */
html { overflow-y: scroll; }


/* Accessible focus treatment: people.opera.com/patrickl/experiments/keyboard/test */
a:hover, a:active { outline: none; }


/* www.sitepoint.com/blogs/2010/08/20/ie-remove-textarea-scrollbars/ */
textarea { overflow: auto; } 


/* The following CSS removes the form autofill default yellow background color and replaces it with a background color of your choosing.
It also changes the autofill font color from the default black to the color of my choice.
It doesn't disable auto-fill and it requires no jQuery or Javascript hacks. */
input:-webkit-autofill, textarea:-webkit-autofill {
  border-color: white !important; /* Autofill border-color */
  -webkit-box-shadow: 0 0 0px 50px white inset; /* Autofill background-color */
	-webkit-text-fill-color: #444; /* Autofill text color */
	letter-spacing: 1px;  /* Autofill letter-spacing */
}


/* Align checkboxes, radios, text inputs with their label by: Thierry Koblentz tjkdesign.com/ez-css/css/base.css  */
input[type="radio"] { vertical-align: text-bottom; }
input[type="checkbox"] { vertical-align: bottom; }
.ie7 input[type="checkbox"] { vertical-align: baseline; }
.ie6 input { vertical-align: text-bottom; }

/* Hand cursor on clickable input elements */
label, input[type="button"], input[type="submit"], input[type="image"], button { cursor: pointer; }

/* Webkit browsers add a 2px margin outside the chrome of form elements */
button, input, select, textarea { margin: 0; }

/* These remove the link outlining */
:-moz-any-link:focus {
    outline: none;
}

:focus {
    outline: 0;
}


/* Selections declared & shadow text removed
   No text-shadow: twitter.com/miketaylr/status/12228805301 */
::-moz-selection { background: rgba(216, 35, 45, 1); /* Red color */ color:#fff; text-shadow: none; }
::selection { background: rgba(216, 35, 45, 1); /* Red color */ color:#fff; text-shadow: none; }


/* removes all tap-highlight-colors on mobile devices
   http://stackoverflow.com/questions/5210481/disable-orange-outline-highlight-on-focus */
* {
    -webkit-tap-highlight-color: rgba(255, 255, 255, 0) !important; 
    -webkit-focus-ring-color: rgba(255, 255, 255, 0) !important; 
    outline: none !important;
} 


/* Make buttons play nicely in IE:
   www.viget.com/inspire/styling-the-button-element-in-internet-explorer/ */
button {  width: auto; overflow: visible; }


/* Bicubic resizing for non-native sized img:
   code.flickr.com/blog/2008/11/12/on-ui-quality-the-little-things-client-side-image-resizing/ */
.ie7 img { -ms-interpolation-mode: bicubic; }


/* For font smoothing */
html { -webkit-font-smoothing: antialiased; }


/* Preserves auto browser font size adjustments/changes from happening in various mobile views (vertical to horizontal) */
html {
  -ms-text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

/* removes 300ms tap delay on windows mobile devices */
/* difficult to remove from ios devices */
/* source: http://stackoverflow.com/questions/12238587/eliminate-300ms-delay-on-click-events-in-mobile-safari */
html {
  -ms-touch-action: manipulation;
  touch-action: manipulation;
}


