/* CSS Reset - Modern Reset based on Josh Comeau's Custom CSS Reset */
/* https://www.joshwcomeau.com/css/custom-css-reset/ */

/* 1. Use a more-intuitive box-sizing model */
*, *::before, *::after {
    box-sizing: border-box;
}

/* 2. Remove default margin and padding */
* {
    margin: 0;
    padding: 0;
}

/* 3. Allow percentage-based heights in the application */
html, body {
    height: 100%;
}

/* 4. Typographic tweaks */
body {
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 5. Improve media defaults */
img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
}

/* 6. Remove built-in form typography styles */
input, button, textarea, select {
    font: inherit;
}

/* 7. Avoid text overflows */
p, h1, h2, h3, h4, h5, h6 {
    overflow-wrap: break-word;
}

/* 8. Create a root stacking context */
#root, #__next {
    isolation: isolate;
}

/* 9. Remove list styles */
ul, ol {
    list-style: none;
}

/* 10. Remove default link styles */
a {
    text-decoration: none;
    color: inherit;
}

/* 11. Remove button defaults */
button {
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

/* 12. Remove table defaults */
table {
    border-collapse: collapse;
    border-spacing: 0;
}

/* 13. Remove fieldset defaults */
fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

/* 14. Remove textarea resize */
textarea {
    resize: vertical;
}

/* 15. Remove iOS input shadows */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
input[type="tel"],
input[type="url"],
textarea {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* 16. Remove number input spinners */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* 17. Remove autofill background color */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px white inset !important;
}

/* 18. Smooth scrolling */
html:focus-within {
    scroll-behavior: smooth;
}

/* 19. Remove focus outline for mouse users, keep for keyboard */
:focus:not(:focus-visible) {
    outline: none;
}

/* 20. Set core body defaults */
body {
    min-height: 100vh;
    text-rendering: optimizeSpeed;
}