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

/* Remove default margin */
* {
    margin: 0;
    padding: 0;
}

/* Improve text rendering */
body {
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    font-smooth: always;
}

/* Remove built-in form typography styles */
input, button, textarea, select {
    font: inherit;
    color: inherit;
}

/* Set default body text rules */
body {
    min-height: 100vh;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
        Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
    background-color: #111;
    color: #eee;
}

/* Make images scale properly */
img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
}

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

/* Remove default link styles */
a {
    text-decoration: none;
    color: inherit;
}

/* Make buttons clickable without ugly defaults */
button {
    border: none;
    background: none;
    cursor: pointer;
}

/* Improve typography for headings */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.25;
}

/* Prevent text overflows */
p, h1, h2, h3, h4, h5, h6 {
    overflow-wrap: break-word;
}

/* For full-height layouts with header/footer */
#root, #__next {
    isolation: isolate;
}

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

/* Links & buttons should be accessible */
a, button {
    transition: 0.2s ease-in-out;
}