/* Core Stuff */
* {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

body {
    font-size: 0.9rem;
    line-height: 1.7;
    color: #2e2e2d; /*#606d6e;*/
    font-family: Roboto, 'Noto Sans', Helvetica Neue, Helvetica, Arial, sans-serif;
}

figure {
    float: left;
    padding-right: 15px;
    padding-left: 26px;
    padding-top: 35px;
    padding-bottom: 60px;
    margin: 0px;
}

figure img {
    box-shadow: 3px 3px 5px rgb(30, 30, 30, 0.2);
}

a figure:hover {
    filter:hue-rotate(180deg);
    /* filter: url('#drops'); */
    transition: 0.5s ease-in-out;
    text-decoration: none;
    /* font-weight: bold;*/
}

figure:hover a {
    filter:hue-rotate(180deg);
    /* filter: url('#drops'); */
    transition: 0.5s ease-in-out;
    text-decoration: none;
    /*font-weight: bold;*/
}

figcaption {
    text-align: left;
    text-transform: lowercase;
    /*font-style: italic;*/
    font-size: 0.7em;
    line-height: 0.8em;
    /* margin-top:  -1px;*/
    color: #000;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: #454B4D;
}

a {
    color: #2e2e2d;
    /*color: darkred;*/
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
    /*color: darkred;*/

}

pre {
    background: #F0F0F0;
    margin: 1rem 0;
    border-radius: 2px;
}

blockquote {
    border-left: 10px solid #eee;
    margin: 0;
    padding: 0 2rem;
}

table,
th,
td {
    /*border: 1px solid black;*/
    vertical-align: top;
    padding-top: 5px;
}

table {
  border-collapse: collapse;
}

table TR TD:first-child {
    padding-right: 40px;
}

/* Utility Classes */
.wrapper {
    /* margin: 0 3rem; */
}

.padding {
    padding: 0.5rem;
}

.left {
    float: left;
}

.right {
    float: right;
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.text-left {
    text-align: left;
}

.mobile-visible {
    display:  none;
    font-size: 1.5rem;
    padding-bottom: 0.5rem;
    line-height: 2.5rem;
    /*float: left;*/
}

/* Content Styling */
.header .padding {
    padding: 0.5rem;
}

.header {
    color: black;
    text-align: center;
}

.header a {
    color: black;
}

.clear {
    clear: both;
}

.footer {
    background-color: #eee;
}

/* MENU Settings */
.main-nav ul {
    font-family: Helvetica, sans-serif;
    font-size: 2rem;
    letter-spacing: -1rem;
    text-align: left;
    margin-left: 40px;
    margin-top: 5px;
    padding: 0;
    width: 300px;
    float: left;
    /*border: 2px solid darkblue;*/
}

.main-nav ul li {
    display: inline-block;
    letter-spacing: normal;
    /* text-shadow: 1px 1px #565656;*/
}

.main-nav ul li a {
    text-decoration: none;
    position: relative;
    display: block;
    line-height: 45px;
    color: black;
    padding: 17px 20px;
    white-space: nowrap;
    animation-name: smiley;
    animation-duration: 6s;
    animation-iteration-count: infinite;
}

@keyframes smiley {
  0%   {color: black;}
  20%  {color: orangered;}
  50%  {color: yellowgreen;}
  80%  {color: orangered;}
  100% {color: black;}
}

/*.main-nav > ul > li > a {
    border-radius: 2px;
}
*/
/*Active dropdown nav item */
.main-nav ul li:hover > a {
    text-decoration: underline;
}

/* Selected Dropdown nav item */
.main-nav ul li.selected > a {
    display: none;
}

/* Dropdown CSS */
.main-nav ul li { position: relative; }

.main-nav ul li ul {
    position: absolute;
    background-color: #1F8DD6;
    min-width: 100%;
    text-align: left;
    z-index: 999;

    /*display: none;*/
}
.main-nav ul li ul li {
    display: block;
}

/* Dropdown CSS */
.main-nav ul li ul ul {
    left: 100%;
    top: 0;
}

/* Active on Hover */
.main-nav li:hover > ul {
    display: block;
}

/* Child Indicator */
.main-nav .has-children > a {
    padding-right: 30px;
}
.main-nav .has-children > a:after {
/*    font-family: FontAwesome;*/
    content: '\f107';
    position: absolute;
    display: inline-block;
    right: 8px;
    top: 0;
}

.main-nav .has-children .has-children > a:after {
    content: '\f105';
}

#images-section {
    font-family: Helvetica, sans-serif;
    font-size: 2rem;
    text-align: left;
    margin-top: 5px;
    margin-left: 55px;
    margin-bottom: 0;
    padding-top: 18px;
    width: 70px;
    /*border:  1px solid green;*/
}

#images-section a {
    color:  orchid;
    animation-name: smiley;
    animation-duration: 6s;
    animation-iteration-count: infinite;
}

/*MAIN PAGE*/
#main-page {
    background: rgb(247,244,240);
    background: linear-gradient(90deg, rgba(247,244,240,1) 0%, rgba(255,251,246,0.01) 100%);
    padding-left: 20px;
}


#main-page .header .logo {
    font-size: 2rem;
    text-transform: lowercase;
    text-align: center;
    position:fixed;
    /*width: 300px;*/
    right:0;
    top:0;
    padding-right: 30px;
    padding-top: 24px;
    z-index: 10;
    text-shadow: 1px 0px 0px rgb(80, 80, 80, 0.3);
    /*border:  1px solid darkred;*/
}

/*#main-page .header {
    position:sticky;
    top: 400px;
    z-index: 10;
    border:  1px solid darkred;
}
*/

.sticky {
    position: -webkit-sticky;
    position: sticky;
    top: 0px;
}



/* PROJECT PAGES*/
#project-page {
    /*background-color: #fefffa;*/
    background: rgb(255,249,254);
    background: linear-gradient(90deg, rgba(255,249,254,0.8) 0%, rgba(255,247,254,0.01) 100%);
}

#content-project {
/*    max-width: 97rem;
    min-width: 80rem;*/
    width: 90%;
    padding: 0;
    padding-left: 70px;
    padding-top: 30px;
    /*border:  1px red solid;*/
    /*box-shadow: 3px 3px 5px rgb(30, 30, 30, 0.2);*/
    /*text-shadow: 1px 0px 0px rgb(80, 80, 80, 0.1);*/
}

#content-project .header {
    top: 0;
    padding: 0;
    margin-left: -60px;
    width: 100%;
    position: fixed;
    /*border: lightcoral dotted 2px;*/
}

#project-page img {
    /*float: left; */
    margin-left: 0;
    box-shadow: 3px 3px 5px rgb(30, 30, 30, 0.2);
}

#project-page img.project-vertical {
    /*padding-bottom: 15px;*/
}

h1.project {
    /*text-transform: lowercase;*/
    padding: 0px;
    text-align: left;
    margin-top: 0px;
    font-weight: normal;
    width: 80%;
    line-height: normal;
    /* border:  2px solid greenyellow;
    color: yellow;
    text-shadow: 1px 1px 2px rgb(30, 30, 30, 0.2);*/
}

#content-project table {
/*border: salmon 2px solid;*/
}

#content-project table tr td.project-text {
    min-width:25rem;
    max-width: 42rem;
    font-size: 0.9rem;
    /*border:  3px green solid;*/
}

#content-project table tr td.project-text a {
    text-decoration: underline;
}

#content-project table tr td.project-images {
    min-width:35rem;
    max-width: 60rem;
    /*border: 3px yellow solid;*/
}

#content-project .project-navigation {
    display:  block;
    position:  fixed;
    top:  70px;
    right: 30px;
    padding: 0;
    /*width: auto;*/
}

#content-project .project-navigation ul { 
    margin:  0;
    padding: 0;
    padding-top: 35px;
    /*border: 1px green dotted;*/
    text-align: left;
    font-size: 0.8rem;
}

#content-project .project-navigation ul li { 
    list-style: none;
    margin:  0;
    padding: 0;
}

#content-project .project-close .logo {
    font-size: 2rem;
    margin: 0;
    padding-top: 27px;
    position: fixed;
    top: 0px;
    right: 200px;
    width: auto;
}

.embed-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  max-width: 82%;
}

.embed-container iframe,
.embed-container object,
.embed-container embed {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}


/*RESUME PAGE*/
#resume {
    text-transform: lowercase;
    line-height: 1.2em;
    font-size: 0.9rem;
    padding-left: 60px;
    padding-top: 0;
}



/*LAPTOP SCREENS SPECIFIC*/
@media screen and (max-width: 1200px) {
    tbody {
    display: grid; 
    }
    tr {
    display: contents;
    /*border:solid red*/
    }
    td {
    display: block;
    }
    tr td + td {
    order: 1;
    }

#content-project table tr td.project-images {
    min-width:35rem;
    max-width: 40rem;
    /*border: 3px yellow solid;*/
    text-align: center;
}

#content-project table tr td.project-images img {
    /*margin: auto;*/
    /*border:  1px solid blue;*/
}

}


/*IPAD MINI SCREENS SPECIFIC*/
@media screen and (max-width: 768px) {

    #project-page a {
        text-decoration: underline;
    }


    #content-project .project-navigation {
        max-width: 768px;
        min-width: 150px;
        width: 430px;
        padding: 0;
        padding-bottom: 30px;
        margin:  0;
        position: relative;
        display: block;
        left: 0px;
        top:  10px;
        /*display: none;*/
        /*width: auto;*/
        /*border: 1px solid royalblue;*/
    }

    #content-project .project-navigation ul {
        padding-top: 10px;
    }

   #content-project .project-navigation ul li {
        padding-top: 2px;
    }

    #content-project .project-close .logo {
        font-size: 2rem;
        margin: 0;
        padding-top: 0;
        position: fixed;
        top: 0px;
        right: 10px;
        width: auto;
    }

}

/*MOBILE PHONE SPECIFIC*/
@media screen and (max-width: 480px) {
    #main-page {
        max-width: 480px;
        min-width: 0px;
        /*width: 480px;*/
        /*border:  1px solid greenyellow;*/
    }

    #content {
        /*border:  1px solid indianred;*/
    }

    figure {
        padding-top: 10px;
        padding-bottom: 10px;
        padding-left: 10px;
        clear: both;
    }

    figcaption {
        font-size: 1em;
        line-height: 0.8em;
    }

    a figcaption {
        text-decoration: underline;
        }

    tbody {
    display: grid; 
    }
    tr {
    display: contents;
    /*border:solid red*/
    }
    td {
    display: block;
    }
    tr td + td {
    order: 1;
    }

    .header {
        padding-bottom: 50px;
    }

    .main-nav ul {
        position: absolute;
        top:  0px;
        padding-top: 7px;
        /*padding-bottom: 30px;*/
        left: -40px;
        text-align: left;
    }

    .main-nav ul li {
        padding-top: 10px;
    }

    .main-nav ul li a {
        text-decoration: underline;
    }

    #main-page .header .logo {
        position: absolute;
        right: 0px;
        top: 5px;
        margin-right: -15px;
        /*display: none;*/
        /*padding-bottom: 30px;*/
    }

    #resume { margin-top: 65px; }

    #project-page {
        max-width: 480px;
        min-width: 0px;
        /*border:  1px solid greenyellow;*/
    }

    #content-project .logo {
        right: -50px;
        top: 0px;
        margin: 0;
        padding: 0;
        /*    float: right;
        position: absolute;
        clear: both;
        color:  darkgoldenrod;
        border: 1px dotted darkseagreen;*/
    }

    h1.project {
        margin-left: 0px;
    }

    #images-section {
        font-size: 1.6rem;
        text-align: left;
        margin-top: 0;
        padding: 0;
        padding-top: 25px;
        width: 30px;
        margin-left: -10px;
    }

    #images-section a { text-decoration: underline; }

    .mobile-visible {
        display:  inline-block;
        font-size: 1rem;
        line-height: 2.5rem;
        /*float: left;*/
    }

    #content-project {
        padding-left: 0;
        padding-top: 0;
        width: 100%;
        max-width: 480px;
        min-width: 0px;
    }

    #project-page a {
        text-decoration: underline;
    }

    #project-page img {
        margin:  5%;
    }

    #content-project table {
        max-width: 480px;
        min-width: 0px;
        /*border:  2px green solid;*/
    }

    #content-project table tr td.project-text {
        max-width: 480px;
        min-width: 0px;
        width: 100%;
        /*border:  2px darkred solid;
        color: palevioletred;*/
        text-align: left;
        padding: 5px;
        /*display: none;*/
    }

 
    #content-project table tr td.project-images {
        max-width: 480px;
        min-width: 0px;
        /*border:  2px greenyellow dotted;*/
    }


    #content-project .project-navigation {
        max-width: 480px;
        min-width: 150px;
        width: 330px;
        padding: 0;
        padding-bottom: 30px;
        margin:  0;
        position: relative;
        display: block;
        left: 35px;
        top:  10px;
        /*display: none;*/
        /*width: auto;*/
        /*border: 1px solid royalblue;*/
    }

    #content-project .project-navigation ul {
        padding-top: 10px;
    }

   #content-project .project-navigation ul li {
        padding-top: 2px;
    }

    #content-project .project-close .logo {
        font-size: 2rem;
        margin: 0;
        padding-top: 0;
        position: fixed;
        top: 0px;
        right: 10px;
        width: auto;
    }

    #content-project .project-close .logo { text-decoration: none; }

    #resume {
        padding: 0;
        margin-left: -10px;
    }
}