/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
    display: block;
}

/* Reset margins and paddings */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box; /* Ensures padding and border are included in the element's total width and height */
}

/* Remove default list styles */
ul, ol {
    list-style: none;
}

/* Remove default inline-block spacing */
button, input, select, textarea {
    vertical-align: middle;
}

/* Remove default table spacing */
table {
    border-collapse: collapse;
    border-spacing: 0;
}

/* Remove text formatting */
body, h1, h2, h3, h4, h5, h6, p, blockquote, pre,
dl, dt, dd, ol, ul, figure,
hr, fieldset, legend {
    margin: 0;
    padding: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}

/* Set default font family */
body {
    line-height: 1.5;
    font-family: Arial, sans-serif; /* Replace with your preferred font */
}

/* Remove default styling from links */
a {
    color: inherit;
    text-decoration: none;
}

/* Remove focus outline for better UX, but provide an alternative for accessibility */
:focus {
    outline: 0;
}

/* Ensure images are scaled correctly */
img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

/* Remove default form element borders and padding */
button, input, select, textarea {
    background: transparent;
    border: 0;
    padding: 0;
    margin: 0;
}

/* Ensure buttons have consistent cursor */
button {
    cursor: pointer;
}

/* Remove default scrollbar styling in WebKit browsers */
::-webkit-scrollbar {
    width: 0;
}

::-webkit-scrollbar-thumb {
    background-color: #888;
}

::-webkit-scrollbar-track {
    background-color: #f1f1f1;
}

/* Normalize form elements */
input[type="checkbox"],
input[type="radio"] {
    box-sizing: border-box;
    padding: 0;
}

textarea {
    overflow: auto;
}

/* Optimize rendering of modern browsers */
html {
    -ms-text-size-adjust: 100%; /* For Windows Phone */
    -webkit-text-size-adjust: 100%; /* For mobile webkit browsers */
}

/* Improve image quality when scaled in IE */
img {
    -ms-interpolation-mode: bicubic;
}

/* Remove tap highlight color on iOS */
a,
button {
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

/* Remove blue border around clickable elements in iOS Safari */
*:focus {
    -webkit-tap-highlight-color: transparent;
}

/* Optional: Add a global font smoothing/antialiasing rule */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
div{
    box-sizing: border-box;
}