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

/* http://meyerweb.com/eric/tools/css/reset/ 
   v2.0 | 20110126
   License: none (public domain)
*/

html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}

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

body {
    line-height: 1;
}

ol,
ul {
    list-style: none;
}

blockquote,
q {
    quotes: none;
}

blockquote:before,
blockquote:after,
q:before,
q:after {
    content: '';
    content: none;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

:root {
    --padding: 20px;
    --form-field-padding: 15px;

    --color-link: #1a73e8;
    --color-link-hover: #1558b0;


    --input-border-width: 1px;
    --color-input-border: #000;
    --color-input-text: #000;
    --color-input-shadow: #000;
    --color-button-border: #000;
    --color-button-background: #000;
    --color-button-text: #fff;

    --font-family-primary: 'Montserrat', sans-serif;
    --font-family-secondary: 'Cormorant', serif;



    /* changing based on theme */
    --color-page-bg: #fff;
    --color-surface-bg: #fff;
    --color-header-bg: #f9f9f9;
    --color-footer-bg: #f9f9f9;

    --color-text: #222222;
    --color-text-muted: #666666;
    --color-text-inverse: #ffffff;

    --color-success: #28a745;
    --color-warning: #ffc107;
    --color-danger: #dc3545;
    --color-info: #17a2b8;

}

@media (prefers-color-scheme: dark) {
    :root {
        /* Backgrounds */
        --color-page-bg: #212121;
        --color-surface-bg: #303030;
        --color-header-bg: #181818;
        --color-footer-bg: #181818;

        /* Text */
        --color-text: #ffffff;
        --color-text-muted: #bbbbbb;
        --color-text-inverse: #000000;

        --color-input-border: #fff;
        --color-input-text: #fff;
        --color-input-shadow: #fff;
        --color-button-border: #fff;
        --color-button-background: #fff;
        --color-button-text: #000;


    }

    input {
        color-scheme: dark;
    }
}


@media (max-width: 499px) {
    :root {
        --padding: 10px;
        --form-field-padding: 7px;
    }
}

@media (max-width: 900px) {
    :root {
        --form-field-padding: 10px;
        --padding: 15px;
    }
}

html {
    font-size: 18px;
}

html,
body {
    width: 100%;
    height: 100%;
    font-optical-sizing: auto;
    font-family: var(--font-family-primary);
    font-weight: 100;
    font-style: normal;
    background: var(--color-page-bg);
    color: var(--color-text);
    transition: background var(--transition-default), color var(--transition-default);
}

@media only screen and (max-width: 900px) {
    html {
        font-size: 17px;
    }
}

@media only screen and (max-width: 599px) {
    html {
        font-size: 16px;
    }
}


.flex-column {
    display: flex;
    flex-direction: column;
    gap: var(--padding);
}

.flex-row {
    display: flex;
    flex-direction: row;
    gap: var(--padding);
}


.muted {
    color: var(--color-text-muted);
}

a {
    color: var(--color-link);
    text-decoration: none;
}

b {
    font-weight: bold;
}

u {

    text-decoration: underline;
    text-underline-offset: 10px;
    text-decoration-thickness: 0.5px;
    line-height: 2rem;
}