/* 1. Resetting default margins, padding, and borders */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 2. Remove default styling for lists */
ul,
ol {
    list-style: none;
}

/* 3. Remove default styling for links */
a {
    text-decoration: none;
    color: inherit;
}

/* 4. Resetting default styles for tables */
table {
    border-collapse: collapse;
    border-spacing: 0;
}

/* 5. Resetting default styles for blockquote and quotes */
blockquote,
q {
    quotes: none;
}

blockquote::before,
blockquote::after,
q::before,
q::after {
    content: '';
    content: none;
}

/* 6. Ensure images are not larger than their containers */
img,
video {
    max-width: 100%;
    height: auto;
}

/* 7. Ensure HTML5 elements display correctly in older browsers */
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
main,
nav,
section {
    display: block;
}

/* 8. Normalize line-height and font family */
body {
    line-height: 1.5;
    font-family: sans-serif;
}

/* 9. Reset button styles */
button,
input,
select,
textarea {
    font: inherit;
    color: inherit;
    border: none;
    background: none;
    outline: none;
}

/* 10. Reset form elements */
button,
input {
    overflow: visible;
}

/* 11. Handle box-sizing for all elements */
html {
    box-sizing: border-box;
}

/* 12. Add height to html and body for full-height pages */
html,
body {
    height: 100%;
}

/* 13. Remove text-transform from buttons */
button {
    text-transform: none;
}

/* 14. Remove spinners from number inputs */
input[type="number"] {
    -moz-appearance: textfield;
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* 15. Reset placeholder styling */
::placeholder {
    color: inherit;
    opacity: 0.5;
}

/* 16. Remove focus outline */
:focus {
    outline: none;
}

/* 17. Ensure a consistent border style */
hr {
    border: 0;
    border-top: 1px solid currentColor;
    margin: 1em 0;
}
