/* 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;
}

/* Reset margins and paddings */
body, h1, h2, h3, h4, h5, h6, p, blockquote, pre,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, dialog, figure, footer, header,
hgroup, nav, section {
    margin: 0;
    padding: 0;
}

/* Remove default list styles (bullets, etc.) */
ul, ol {
    list-style: none;
}

/* Remove default underline from links */
a {
    text-decoration: none;
}

/* Remove default border from images */
img {
    border: 0;
    vertical-align: middle;
}

/* Remove default styling from tables */
table {
    border-collapse: collapse;
    border-spacing: 0;
}

/* Remove default styling from buttons and inputs */
button, input, select, textarea {
    font-size: 100%;
    margin: 0;
    vertical-align: baseline;
    vertical-align: middle;
}

/* Normalize forms */
button, input[type="button"], input[type="submit"], input[type="reset"] {
    cursor: pointer;
    -webkit-appearance: button;
}

input[type="checkbox"], input[type="radio"] {
    box-sizing: border-box;
    padding: 0;
}

textarea {
    overflow: auto;
    vertical-align: top;
}

/* Normalize fieldset and legend */
legend {
    border: 0;
    margin-left: -7px;
    margin-right: -7px;
}

/* Normalize button appearance in IE */
button, input {
    line-height: normal;
}

/* Remove inner padding and border in button elements */
button::-moz-focus-inner, input::-moz-focus-inner {
    border: 0;
    padding: 0;
}

/* Restore the cursor in anchor elements */
a {
    cursor: pointer;
}