/* Prevent adjustments of font size after orientation changes in IE on Windows Phone and in iOS. */
html { -ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%; }

/* Remove gaps in links underline in iOS 8+ and Safari 8+ */
a { -webkit-text-decoration-skip: objects; }

/* Remove the bottom border in Chrome 57- and Firefox 39-. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari. */
abbr[title] { border-bottom: none; text-decoration: underline; text-decoration: underline dotted; }

/* Add the correct font weight in Chrome, Edge, and Safari. */
b, strong { font-weight: bolder; }

/* Add the correct font size in all browsers. */
small { font-size: 80%; }

/* Prevent `sub` and `sup` elements from affecting the line height in all browsers. */
sub, sup { font-size: 75%; line-height: 0; position: relative; vertical-align: baseline; }
sub { bottom: -0.25em; }
sup { top: -0.5em; }

/* Remove the margin in Firefox and Safari */
button, input, optgroup, select, textarea { margin: 0; }

/* Show the overflow in Edge */
button, input { overflow: visible; }

/* Remove the inheritance of text transform in Firefox */
button, select { text-transform: none; }

/* 1. Prevent a WebKit bug where (2) destroys native `audio` and `video` controls in Android 4.
 * 2. Correct the inability to style clickable types in iOS and Safari. */
button,
html [type="button"], /* 1 */
[type="reset"],
[type="submit"] {
  -webkit-appearance: button; /* 2 */
}

/* Remove the inner border and padding in Firefox */
button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner { border-style: none; padding: 0; }

/*Restore the focus styles unset by the previous rule */
button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring { outline: 1px dotted ButtonText; }

/* Add the correct vertical alignment in Chrome, Firefox, and Opera */
progress { vertical-align: baseline; }

/* Correct the cursor style of increment and decrement buttons in Chrome */
[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button { height: auto; }

/* Correct the odd appearance in Chrome and Safari. Correct the outline style in Safari. */
[type="search"] { -webkit-appearance: textfield; outline-offset: -2px; }

/* Remove the inner padding and cancel buttons in Chrome and Safari on macOS */
[type="search"]::-webkit-search-cancel-button,
[type="search"]::-webkit-search-decoration { -webkit-appearance: none; }

/* 1. Correct the inability to style clickable types in iOS and Safari.
 * 2. Change font properties to `inherit` in Safari. */
::-webkit-file-upload-button {
  -webkit-appearance: button; /* 1 */
  font: inherit; /* 2 */
}

/* Add the correct display in Edge, IE, and Firefox */
details, menu { display: block; }