/* ========== Box sizing ========== */
*,
*::before,
*::after {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

/* ========== Reset common tags ========== */
html,
body,
h1,
h2,
h3,
h4,
h5,
h6,
ul,
ol,
dl,
li,
dt,
dd,
p,
div,
span,
img,
a,
table,
tr,
th,
td,
form,
fieldset,
legend,
input,
textarea,
button,
figure,
figcaption {
  margin: 0;
  padding: 0;
  border: 0;
  font: inherit;
  vertical-align: baseline;
}

/* ========== HTML5 elements ========== */
header,
footer,
nav,
section,
article,
main,
aside,
figure,
figcaption {
  display: block;
}

/* ========== Body and html ========== */
html,
body {
  height: 100%;
}

/* ========== List ========== */
ol,
ul {
  list-style: none;
}

/* ========== Link ========== */
a {
  color: inherit;
  text-decoration: none;
}

/* ========== Image ========== */
img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
  border-style: none;
}

/* ========== Table ========== */
table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* ========== Button ========== */
button {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

/* ========== Form elements ========== */
input,
textarea,
select,
button {
  font: inherit;
  color: inherit;
  background: transparent;
  vertical-align: middle;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

/* ========== Textarea resize ========== */
textarea {
  resize: vertical;
}
