/**
 * VV Theme based on Pico Default
 * @version 3.0
 */

* {
    box-sizing: border-box;
    border: 0 none;
    margin: 0;
    padding: 0;
}

.hidden { display: none !important; }
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0 none;
}

.slide {
    overflow-y: hidden !important;
    -webkit-transition: height .5s ease-in !important;
            transition: height .5s ease-in !important;
}

/*** BASIC LAYOUT ***/

html, body { height: 100%; }

body { display: flex; flex-direction: column; }
#main { flex: 1 0 auto; }
#header, #footer { flex: 0 0 auto; }

#header {
    padding: none;
}

#main {
    padding-bottom: 4em;
    background-color: #000000;
}

.container {
    /*max-width: 48em;*/
    /*padding: 0 0.5em;*/
    /*margin: 0 auto;*/
}

#header .container {
    padding: 0.5em 0.5em 0.5em 0.5em;
    margin: 0 auto;
    
}

.widescreen .container { max-width: 72em; }

/* very ugly overflow fix, avoid this whenever possible! */
#main .container { overflow-x: auto; }

/*** BASIC LAYOUT: HEADER ***/

#header { background: #000000; }

#title, #logo, #tagline {
    float: left;
    padding: 0em 3em;
}

#tagline p {
    padding: 0;
    margin: 0;
}

#title * { margin: 0; color: #ffffff; }
#title p { font-style: italic; }

#logo { 
    /*height: 10.8em;*/
}

#logo * {
    display: inline-block;
    /*height: 100%;*/
}

#logo img {
    /*min-width: 4.8em;*/
}

#logo + #title h1 { margin: 0.8rem 0; }
#logo + #title.tagline h1 { margin: 0; }

#nav {
    display: block;
    clear: left;
    padding: 0em;
    text-align: right;
    padding: 0em 3em 1em 3em;
}

#nav a {
    display: inline-block;
    padding: 0em 0.5em;
    border-left: 2px solid #C0C0C0;
}

#nav a.portfolioLink {
    border-right: 2px solid #C0C0C0;
}

#nav a, #nav-toggle {
    color: #e00000;
}

#nav .active a, #nav a:hover, #nav-toggle:hover {
    color: #fff;
}

#nav-toggle {
    display: none;
    width: 3em;
    height: 3em;
    background-image: url('../img/navToggle.svg');
    background-position: center;
    background-size: cover;
    background-repeat:no-repeat;
    float: right;
    cursor: pointer;
    margin-bottom: 2em;
}

/* IE8 + IE9 clearfix */
#header > .container:after {
    content: '';
    display: block;
    clear: both;
}

/*** BASIC LAYOUT: FOOTER ***/

#footer {
    background: #000000;
    color: #C0C0C0;
    border-top: 1px solid #303030;
    padding: 2em 0em 0em 0em;
}

#footer a { color: #ddd; }
#footer a:hover { color: #fff; }

#footer p {
    margin: 0;
    padding: 3em 0;
}

#footer .social {
    display: block;
    float: right;
    clear: both;
    padding: 2em 1em 1.5em 1em;
    font-size: 2rem;
}

#footer .social a {
    display: inline-block;
    width: 40px;
    height: 40px;
}

#legal {
    padding: 0 0.5rem;
    margin: 0 auto;
    max-width: 48rem;
    text-align: center;
}

.navLegal {
    display: inline-block;
    padding: 0 0.5rem;
}

/*** UTILITIES ***/

.align-left { text-align: left; }
.align-center { text-align: center; }
.align-right { text-align: right; }
.align-justify { text-align: justify; }

.image { display: block; margin: 0 auto; }
.image.xsmall { width: 20%; }
.image.small { width: 40%; }
.image.large { width: 60%; }
.image.xlarge { width: 80%; }
.image.float-left { float: left; margin: 1em 2em 1em 0; }
.image.float-right { float: right; margin: 1em 0 1em 2em; }
.image img { display: block; width: 100%; }

img.cross_left, img.cross_right {
    display: block;
    width:40px;
    height:40px;
}

img.cross_right {
    float:right;
}

img.headshot {
    box-sizing: content-box;
    padding: 0.5em 5em 1em 1em;
    width: 200px;
    height: 200px;
    float: right;
    clear: both;
}

@media (max-width: 767px) {
    .image.xsmall { width: 60%; }
    .image.small { width: 80%; }
    .image.large, .image.xlarge { width: 100%; }
    .image.float-left, .image.float-right { float: none; margin: 0 auto; }
}

/*** BASIC LAYOUT: EXTRA SMALL DEVICES ***/

@media (max-width: 767px) {
    #main {
        padding: 2em 0 1em;
    }

    #title, #logo {
        padding: 0em 5vw;
    }

    #logo { 
        display: inline-block;
        /*height: 8.8em;*/
    }

    #tagline {
        display: inline-block;
        padding: 0em 5vw 2em 5vw;
        max-width: 20em;
    }

    #nav {
        clear: both;
    }

    #nav ul {
        padding-bottom: 1em;
    }

    #nav ul li {
        display: block;
        margin-left: 0;
        text-align: center;
    }

    #nav ul li a {
        display: block;
        padding: 0.5em 0;
    }

    #navtoggle {
        display: block;
       
    }

    .js #nav-toggle {
        display: block;
    }

    #footer p { padding: 1em 0; }
    #footer .social { padding: 0.5em 1em 0.5em 1em; }

    img.cross_right {
        clear: left;
    }
}

/*** TYPOGRAPHY ***/

html { font-size: 18px; }

body {
    font-family: 'Barlow Thin', 'Helvetica', 'Arial', sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    font-variant-ligatures: common-ligatures;
    text-rendering: optimizeLegibility;
    font-kerning: normal;
    color: #ffffff;
}

.showcaseContainer {
    position: relative;
    margin:0em 0em 2em 0em;
}

.showcaseContainer img {
    display: block;
    position: relative;
    margin: 2em 0em;
}

.showcaseContainer img.topShowcaseImage {
    margin: 0rem 0rem 2rem 0rem;
}

.showcaseContainer div {
    font-family: 'BarlowCondensed Light', 'Helvetica', 'Arial', sans-serif;
    font-size: 2rem;
    line-height: 0.9em;
    display:block;
    position: absolute;
    top: 2vw;
    left: 2vw;
}

.showcaseContainer div span.thin {
    font-size: 1rem;
    font-family: 'BarlowCondensed Thin', 'Helvetica', 'Arial', sans-serif;
}

p {
    padding: 0 0.5rem;
    margin: 0 auto;
    max-width: 48rem;
}

p, td, th, li, dd {
    text-align: justify;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

p, hr, table, .table-responsive, ol, ul, dl, dd, pre, blockquote, fieldset {
    margin-bottom: 1em;
}

a {
    color: #e00000;
    text-decoration: none;
    -webkit-transition: color .2s ease-in;
            transition: color .2s ease-in;
}

a:hover { color: #ffffff; }

h1, h2, h3, h4, h5, h6 {
    box-sizing: border-box;
    display: block;
    font-family: 'Barlow Semi Bold', 'Helvetica', 'Arial', sans-serif;
    max-width: 48rem;
    padding: 0 0.5rem;
    /*
    margin-bottom: 0.6em;
    margin-block-start: auto !important;
    margin-block-end: auto !important;
    margin-inline-start: auto !important;
    margin-inline-end: auto !important;
    */
    overflow: auto;
    margin: 0 auto !important;
    
    font-weight: bold;
    color: #C0C0C0;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.7rem; }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.1rem; }
h5 { font-size: 1rem; }
h6 { font-size: 1rem; font-weight: normal; font-style: italic; }

img {
    max-width: 100%;
}

hr {
    border: 0.15em solid #f5f5f5;
    border-radius: 0.3em;
    background: #f5f5f5;
}

abbr { text-decoration: underline dotted; }


/*** TABLES ***/

table { border-spacing: 0; }

td, th {
    padding: 0.4em 1em;
    vertical-align: top;
}
th {
    font-weight: bold;
    text-align: center;
    background: #000000;
    color: #000000;
}

td, th {                                         border: 1px solid #ccc; }
tr:not(:last-child) td, tr:not(:last-child) th { border-bottom: 0 none; }
thead tr:last-child th {                         border-bottom: 0 none; }
td:not(:last-child), th:not(:last-child) {       border-right: 0 none; }

tr:first-child td:first-child, tr:first-child th:first-child { border-top-left-radius: 0.3em; }
tr:first-child td:last-child, tr:first-child th:last-child {   border-top-right-radius: 0.3em; }
tbody tr:last-child td:first-child {                           border-bottom-left-radius: 0.3em; }
tbody tr:last-child td:last-child {                            border-bottom-right-radius: 0.3em; }
table thead + tbody tr:first-child td {                        border-radius: 0 !important; }

.table-responsive { overflow-x: auto; }
.table-responsive > table { margin-bottom: 0; }

/*** LISTS ***/

ol, ul {
    list-style-position: outside;
    padding-left: 1.5em;
    margin: 0 auto;
    margin-bottom: 1em;
    max-width: 48em;
}
ol { padding-left: 2.5em; }
li { padding-left: 0.5em; }

dt { font-weight: bold; }
dd { margin-left: 2em; }

/*** CODE ***/

code {
    padding: 0.1em 0.2em;
    margin: 0 auto;
    max-width: 48em;
    border: 1px solid #C0C0C0;
    border-radius: 0.3em;
    background: #f5f5f5;
    font-family: 'Droid Sans Mono', 'Courier New', 'Courier', monospace;
    font-size: 0.85rem;
    line-height: 1.9824;
}

pre {
    padding: 0 1em;
    border: 1px solid #C0C0C0;
    border-radius: 0.3em;
    background: #f5f5f5;
}

pre code {
    display: block;
    margin: 0;
    padding: 1.1111em 0;
    border: 0 none;
    background: transparent;
    overflow-x: auto;
    line-height: 1.4;
}

/*** BLOCKQUOTE ***/

blockquote {
    padding: 0.1em 0.2em;
    padding-left: 1em;
    margin: 0 auto;
    max-width: 48em;
    font-style: italic;
    border-left: 0.5em solid #C0C0C0;
}

/*** FORMS ***/

label, fieldset legend { font-weight: bold; }

input:not([type="checkbox"]):not([type="radio"]), button, select, textarea, fieldset, fieldset legend {
    border: 1px solid #C0C0C0;
    border-radius: 0.3em;
    background: #fff;
    -webkit-transition: none .2s ease-in;
            transition: none .2s ease-in;
    -webkit-transition-property: border-color, background, box-shadow;
            transition-property: border-color, background, box-shadow;
}

input:not([type="checkbox"]):not([type="radio"]), button, select, textarea {
    padding: 0.5em 1em;
    outline: 0 none;
    font-size: 1rem;
}
input:focus:not([type="checkbox"]):not([type="radio"]), button:focus, select:focus, textarea:focus {
    border-color: #ffffff;
    box-shadow: 0 0 8px #2EAE9B;
}
input[type="button"]:focus, input[type="submit"]:focus, input[type="reset"]:focus, button:focus,
input[type="button"]:hover, input[type="submit"]:hover, input[type="reset"]:hover, button:hover {
    background: #f5f5f5;
    cursor: pointer;
}

textarea, select[multiple] {
    vertical-align: bottom;
    overflow: auto;
}

fieldset {
    padding: 1em;
    background: #C0C0C0;
}
fieldset legend { padding: 0 0.5em; }

fieldset label, fieldset input, fieldset button,
fieldset select, fieldset textarea {
    margin: 0.2em 0.5em;
}
fieldset label:first-child, fieldset input:first-child, fieldset button:first-child,
fieldset select:first-child, fieldset textarea:first-child {
    margin-left: 0;
}
fieldset label:last-child, fieldset input:last-child, fieldset button:last-child,
fieldset select:last-child, fieldset textarea:last-child {
    margin-right: 0;
}

/* Firefox input size fix */
input::-moz-focus-inner, button::-moz-focus-inner {
    border: 0;
    padding: 0;
}
