
/* MAIN DEFINITIONS, MARGINS, etc */

:root {
    --main-bg-color: #F9F9F9;  /* "page" color */
    --body-bg-color: #2C2C32;  /* dark header/footer */
    --copy-text-color: #383838;
    --gray-text-color: #71717f;
    --light-gray-color: #c3c3d8;
    --definition-bg-color: #d3e5e5;
    --green-text-color: #1d6854;
    --color-link-hover: lightblue;
    --font-size-body: 18px;
    --line-height: 32px;
    --warning-bg-color: #a34;
    --warning-text-color: #bdd;
}


* {
    /* Reset to default */
    box-sizing: border-box;
    margin: 0px;
    padding: 0px;
}

body:lang(sv) span:lang(en) { display: none; }
body:lang(en) span:lang(sv) { display: none; }
body:lang(sv) span:has([lang]):lang(sv) { display: inline; }
body:lang(en) span:has([lang]):lang(en) { display: inline; }


html {
    color: var(--copy-text-color);
    font-family: 'Source Sans Pro', sans-serif;
    font-size: var(--font-size-body);
    line-height: var(--line-height);
}

html, nav, footer {
    background-color: var(--body-bg-color);
}


header, main, footer {
    padding: 0rem 4rem;
    margin: 0px auto;
    max-width: 48rem;
}

main {
    background-color: var(--main-bg-color);
    border: 1px solid var(--light-gray-color);
    border-radius: 12px;
}

header > nav, footer > div {
    margin: 0px auto;
    max-width: 48rem;
    display: inline-block;
}


/* HEADER & NAVIGATION */

header {
    background-color: var(--body-bg-color);
    font-weight: 600;
    font-size: 80%;
}

header nav {
    color: var(--main-bg-color);
    padding: 0.5rem 0px;
    display: flex;
    justify-content: space-between;
}

header nav ul {
    text-align: center;
    margin: 0px;
    width: 100%;
    padding: 0px;
}

header nav ul li {
    display: inline-block;
    padding: 0;
    width: 6em;
}

header #menu {
    height: 2rem;
    margin-left: 1rem;
}

header #lang-select {
    width: 5rem;
    margin-right: 1rem;
}


/* ALL LINKS will be subtle, no need to highlight them */

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

a:hover {
    color: var(--color-link-hover);
}


/* IMAGES */

img.logo {
    height: 3rem;
}


h1 img.logo {
	display: inline-block;
	position: relative;
	padding-left: 1.5rem;
}


img.wide-banner {
    border: none;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    height: 240px;
}


/* MISC TYPE SETTING */

h1, h2, h3, h4, .notification, header {
    font-family: 'Ubuntu', sans-serif;
    color: var(--copy-text-color);
}

p {
    margin-top: var(--line-height);
    margin-bottom: var(--line-height);
}

h2, h3, h4 {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

h1 {
    padding-top: 6rem;
    margin-top: 0px;
    font-size: 275%;
    line-height: normal;
}

h2 {
    font-size: 125%;
}

span.version {
    vertical-align: super;
    font-size: 0.7rem;
    color: var(--gray-text-color);
}


h1 span {
    color: var(--gray-text-color);
    font-size: 66%;
}


q.tag-line::before {  content: ''; }
q.tag-line::after  {  content: ''; }
q.tag-line {
    position: relative;
    font-size: 125%;
    top: -1.2em;
    color: var(--green-text-color);
}


/* NOTE/WARNING */

div.notification {
    background-color: var(--warning-bg-color);
    color: var(--warning-text-color);
    border-radius: 1.1rem;
    padding: 2rem;
    margin: 2rem 12%;
    text-align: center;
    font-weight: 500;
    font-size: 1.2rem;
    border: 2px solid;
    border-color: var(--light-gray-color);
}

div.notification i {
    display: block;
}

div.notification span, p, img, i {
    vertical-align: middle;
}


/* WORD DEFINITIONS */

div.definition {
    background-color: var(--definition-bg-color);
    border: 1px var(--light-gray-color) solid;
    border-width: 1px 0 1px 0;
    margin: 3rem 10%;
    padding: 1.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
    grid-template-rows: auto;
    grid-gap: 2rem;
    justify-content: space-evenly;
}

.definition dl dt {
    font-size: 150%;
}

.definition dl span.word-class {
    font-size: 66%;
    font-style: italic;
    margin-left: 1rem;
    color: var(--gray-text-color);
}

.definition dl dd {
    font-size: 75%;
    margin-left: 1.5rem;
}

.definition ol {
    padding-left: 1em;
    list-style-position: outside;
}

.definition ol li {
    padding-left: 1em;
}

.definition dd.phonetic {
    color: var(--gray-text-color);
    line-height: normal;
}

.definition dd.definition {
    margin-top: 0.2em;
    line-height: 1.2em;
}

.definition dd span.topic {
    border-radius: .3em;
    background-color: var(--light-gray-color);
    padding: 0.03em 0.4em;
    margin-right: 0.4em;
    font-variant: all-small-caps;
}


/* BULLET POINTS */

.bullets {
    overflow: auto;
    margin-bottom: 6rem;

    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
    grid-template-rows: auto;
    grid-gap: 1rem;
    justify-content: space-evenly;
}

.bullets i.m-icons {
    color: var(--green-text-color);
}

.bullets section {
    margin: 0 auto;
    min-width: 11rem;
    margin: 0;
    padding: 0;
}

.bullets section ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}


/* RESPONSIVE TWEAKS for small devices */

@media (max-width: 1024px) {
    header, main, footer {
        padding: 0rem 4rem;
        font-size: 100%;
    }

    h1 {
        padding-top: 1em;
    }

    div.definition {
        margin: 2rem 0%;
    }

    div.notification {
        margin: 2rem 0%;
    }
}

@media (max-width: 480px) {
    header, main, footer {
        padding: 0rem 1rem;
        font-size: 100%;
    }

    header nav ul {
        display: none;
    }

    h1 {
        padding-top: .5em;
    }
}


/** FOOTER **/

footer {
    background-color: var(--body-bg-color);
    padding-top: 3rem;
    padding-bottom: 3rem;
    color: var(--main-bg-color);
    font-style: normal;
    font-size: 75%;
    line-height: normal;
}

footer > div {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
    grid-template-rows: 1fr;
    overflow: auto;
    grid-gap: 2rem;
    align-items: end;
}

footer address {
    grid-column: 1;
    font-style: normal;
}

footer .social-links {
    grid-column: 2;
}

footer a {
    display: block;
}

footer .social-links #linkedin img {
    height: 1.1em;
    filter: saturate(0%) brightness(200%);
    vertical-align: baseline;
}

footer .social-links .m-icons {
    margin-left: 0px;
    margin-right: 0px;
    font-size: 1.2em;
    height: 1.2em;
    width: 1.2em;
    color: var(--light-gray-color);
}


/*  MATERIAL ICONS  */
.m-icons {
    display: inline-block;
    font-family: 'Material Icons Round';
    font-weight: normal;
    font-style: normal;
    text-transform: none;
    letter-spacing: normal;
    word-wrap: normal;
    white-space: nowrap;
    direction: ltr;
    /* Support for all WebKit browsers. */
    -webkit-font-smoothing: antialiased;
    /* Support for Safari and Chrome. */
    text-rendering: optimizeLegibility;
    /* Support for Firefox. */
    -moz-osx-font-smoothing: grayscale;
    /* Support for IE. */
    font-feature-settings: 'liga';
    vertical-align: -0.2rem;
}

.m-icons.separate {
    font-size: 2rem;  /* Preferred icon size */
    line-height: 1;
}

.m-icons.inline {
    font-size: 1.6rem;
    margin: 0 .75em 0 .75em;
}

/* Rules for sizing the icon. */
.m-icons.md-18 { font-size: 18px; }
.m-icons.md-24 { font-size: 24px; }
.m-icons.md-36 { font-size: 36px; }
.m-icons.md-48 { font-size: 48px; }

/* Rules for using icons as black on a light background. */
.m-icons.md-dark { color: rgba(0, 0, 0, 0.54); }
.m-icons.md-dark.md-inactive { color: rgba(0, 0, 0, 0.26); }

/* Rules for using icons as white on a dark background. */
.m-icons.md-light { color: rgba(255, 255, 255, 1); }
.m-icons.md-light.md-inactive { color: rgba(255, 255, 255, 0.3); }
