/* 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 {
    --headingColour:#C79751;

	--backColour:#EDEDED;
    --itemColour:#F7F7F7;
    --selectedColour:#FFFFFF;
    --textColour:#535353;
    --fadedTextColour:#FDFDFD;
}

[data-theme="light"] {
	--backColour:#EDEDED;
    --itemColour:#F7F7F7;
    --selectedColour:#FFFFFF;
    --textColour:#535353;
    --fadedTextColour:#B9B8B8;
}

[data-theme="dark"] {
	--backColour:#313131;
    --itemColour:#393939;
    --selectedColour:#585858;
    --textColour:#FDFDFD;
    --fadedTextColour:#585858;
}

a[href], input[type='submit'], input[type='image'], label[for], select, button, .pointer {
       cursor: pointer;
}

@media (max-width: 576px) {
    .margin {
        padding-left: 1.5em;
        padding-right: 1.5em;
    }

    h1 {
        font-size: 3em;
    }

    h2 {
        font-size: 1em;
    }

    h6 {
        font-size: 15pt;
    }

    p {
        font-size: 13pt;
    }

    .item p {
        font-size: 11pt;
    }

    #code .item {
        padding: 1em;
    }

    #film .item .description {
        padding: 1.5em;
    }

    .full {
        margin-top: 1.5em;
    }

    .section {
        margin-bottom: 2.5em;
    }

    .sidebar {
        display: none;
    }

    .avatarWrapper {
        width: 25%;
        right: 0em;
        bottom: 0em;
    }

    .avatar {
        width: 100%;
    }

    #code .item .imageWrapper {
        background-size:cover;
        background-repeat: no-repeat;
        background-position: center;
    }
}

@media (min-width: 576px) {
    .bio {
        max-width: 500px;
    }

    .avatarWrapper {
        bottom: 0em;
        right: 0em;
    }

    .avatar {
        width: 180px;
/*        height: 180px;
*/    }

    #code .item .imageWrapper {
        background-size:contain;
        background-repeat: no-repeat;
        background-position: center;
    }

}

@media (min-width: 576px) and (max-width: 1220px) {
    .margin {
        margin-left: 14%;
        margin-right: 14%;
    }

    h1 {
        font-size: 5em;
    }

    h2 {
        font-size: 1.8em;
    }

    h6 {
        font-size: 20pt;
    }

    p {
        font-size: 16pt;
    }

    .item p{
        font-size: 14pt;
    }

    #code .item {
        padding: 1.5em;
    }

    #film .item .description {
        padding: 2em;
    }

    .full {
        margin-top: 3em;
    }

    .sidebar {
        left: 3.5%;
    }

    .section {
        margin-bottom: 6em;
    }

    .section {
        transition: opacity 0.2s;
    }

    /* .avatarWrapper {
        bottom: 0em;
        right: 0em;
    } */

    header {
        display: block;
    }

}

@media (min-width: 1220px) {
    .margin {
        margin-left: 22%;
        margin-right: 22%;
    }

    h1 {
        font-size: 5em;
    }

    h2 {
        font-size: 1.8em;
    }

    h6 {
        font-size: 20pt;
    }

    p {
        font-size: 16pt;
    }

    .item p{
        font-size: 14pt;
    }

    #code .item {
        padding: 1.5em;
    }

    #film .item .description {
        padding: 2em;
    }

    .full {
        margin-top: 3em;
    }

    .sidebar {
        left: 7%;
    }

    .section {
        margin-bottom: 6em;
    }

    .section {
        transition: opacity 0.2s;
    }

    .bio {
        max-width: 500px;
    }
}

html {
    overscroll-behavior: none;
}

h1 {
    font-family: Raleway;
    font-weight: 800;
	margin-bottom: 0.2em;
    color: var(--headingColour);
}

h2 {
    font-family: Raleway;
    font-weight: 600;
	margin-bottom: 0.2em;
    color: var(--headingColour);
}

h6 {
    font-family: Karla;
    font-weight: 600;
    color: var(--textColour);
    opacity: 0.75;
    -moz-osx-font-smoothing: grayscale;
    -webkit-font-smoothing: antialiased;
    line-height: 120%;
}

p {
    font-family: Karla;
    color: var(--textColour);
    -moz-osx-font-smoothing: grayscale;
    -webkit-font-smoothing: antialiased;
    line-height: 120%;
}

.bold {
	font-weight: 700;
}

.underlined {
	text-decoration: underline;
}

a, u {
    text-decoration: none;
    color: inherit;
}

.moreLink {
    font-weight: 600;
    text-align: center;
    color: var(--fadedTextColour);
    padding: 0.5em;
    padding-left: 1em;
    padding-right: 1em;
    margin: 0.2em;
    border-radius: 10em;
    width: auto;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
    transition: background-color 0.1s, color 0.2s;
}

.moreLink:hover {
    background-color: var(--selectedColour);
    color: var(--textColour);
}


.full {
	background-color: var(--backColour);
    transition: background-color 0.2s;
}

.sidebar {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: auto;
}

.sidebarItem {
    padding: 0.5em;
    margin: 0.2em;
    border-radius: 10em;
}

header {
    position: relative;
    display: block;
    flex-wrap: wrap;
    justify-content: space-between;
}

#themeToggle {
    position: absolute;
    top: 0em;
    right: 0em;
    /* background-color: var(--itemColour); */
    /* padding: 0.5em; */
    font-size: 2em;
    color: var(--fadedTextColour);
    cursor: pointer;
    transition: background-color 0.5s, color 0.1s;
    /* border-radius: 1em; */
}

#themeToggle:hover {
    color: var(--textColour);
    /* background-color: var(--fadedTextColour); */
}


.avatarWrapper {
    max-width: 500px;
    position: absolute;
    margin: 0 0 0 0px;
}

.avatar {
    border-radius: 12px;
    opacity: 90%;
    vertical-align: text-bottom;
    max-width: 250px;
    /* margin-bottom: 3em; */
    /* float: right; */
}

.sidebarItem p {
    font-weight: 1000;
    text-align: center;
    color: var(--fadedTextColour)
}

.selected {
    background-color: var(--selectedColour);
}

.selected p {
    color: var(--textColour);
}

.section {
    opacity: 0.1;
}

.section:hover {
    opacity: 1;
}

.inView {
    opacity: 1;
}

.item {
    background-color: var(--itemColour);
    transition: background-color 0.2s 0.1s;
    border-radius: 0.75em;
    margin-bottom: 1em;
    display: inline-flex;
    width: 100%;
    justify-content: space-between;
    box-sizing: border-box;
}

.item:hover{
    box-shadow: 0 2px 5px 0 rgba(0,0,0,.13);
}

.button {
    padding: 0.5em;
    margin: 0.2em;
    border-radius: 10em;
    background-color: #FFFFFF;
}

#code .item .description {
    width: 70%;
    /* flex-grow: 2; */
}

#code .item .imageWrapper {
    margin-left: 1.5em;
    /* background-color: #D6D6D6; */
    width: 30%;
    /* flex-grow: 1; */
    border-radius: 0.75em;
    overflow: hidden;
    position: relative;
    display: inline-block;
}

#code .item .imageWrapper:after {
    padding-top: 66.6%;
    /* 16:9 ratio */
    display: block;
    content: '';
}

#film .item {
    display: inline-flex;
    width: 100%;
    justify-content: space-between;
}

#film .item .description {
    padding-right: 0em;
    width: 30%;
}

.filmWrapper {
    width: 60%;
    display: inline-block;
    position: relative;
}

.filmWrapper:after {
    padding-top: 56.25%;
    /* 16:9 ratio */
    display: block;
    content: '';
}

iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 0em 0.75em 0.75em 0em;
    opacity: 0.75;
}

footer {
    padding: 3em;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.1);
    margin-left: 0;
}

#design .item {
    height: 33vh;
    background-size:cover;
    background-repeat: no-repeat;
    background-position: center;
    position: relative;
}

.lower_third {
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(
      rgba(0, 0, 0, 0), #000000
    );
    border-radius: inherit;
}

.lower_third h2 {
    position: absolute;
    bottom: 0px;
    padding: 1em;
    margin-bottom: 0;
}

.bio p {
    margin-bottom: 0.5em;
}


.material-icons.md-18 { font-size: 18px; }
.material-icons.md-24 { font-size: 24px; }
.material-icons.md-36 { font-size: 36px; }
.material-icons.md-48 { font-size: 48px; }
/*.material-icons.white { color: white; }*/
