/* variables for colours in the site, preventing multiple declarations of colours */
:root { 
    --one-color: #FFF;
    --two-color: #ebe8ff;
    --three-color: #144189;
    --four-color: #b6465f;
    --five-color: #ebd4cb;
    --white: #FFF;
    --black: #000;
  }

* {
    color: var(--three-color);
}

.noScroll {
    overflow: hidden;
}

body {
    font-family: Arial, Helvetica, sans-serif,monospace;
    color:var(--three-color);
    margin:-1px;
    background-color: var(--one-color);
}

#container {
    width:80%;
    min-width:300px;
    margin: 0 auto;
    padding: 10px;
    background-color: var(--one-color);
}

#myHeader {
    display: flex;
    align-items: flex-end;
    padding-bottom: 10px;
    background-color: var(--one-color);
    border-bottom: solid 2px var(--three-color);
    transition:height 1s;
    box-sizing: border-box;
}

.initial {
    height:130px;
}

#mobileNav {
    max-height: 100%;
    height:100%
}

#mobileMenu {
    display:none;
    flex-direction: column;
    height:calc(100vh - 69px);
    width:84%;
    z-index: 1;
    background-color: var(--one-color);
    opacity: 97%;
    position: fixed;
    top: 0;
    left:0;
    margin-top:72px;
    padding-left:8%;
    padding-right:8%;
}

.mobileNavBtn {
    background-image: url(../images/mobileMenu.png);
    background-repeat: no-repeat;
    height:100%;
    width:50px;
    background-size: 100% 100%;
    background-color: var(--one-color);
    border:none;
}

.mobileNavBtnOn {
    background-image: url(../images/mobileMenuExp.png);
    background-repeat: no-repeat;
    height:100%;
    width:50px;
    background-size: 100% 100%;
    background-color: var(--one-color);
    border:none;
}

#myHeader.sticky {
    position: fixed;
    top: 0;
    width: 80%;
    padding-top:10px;
    left: 0;
    box-sizing: border-box;
    margin-left: 10%;
    margin-right: 10%;
    height: 70px;
}

/* ensures content doesnt jump rapidly when header becomes fixed */
.sticky + main {
    padding-top: 150px;
}

header img {
    height: 100%;
}

nav {
    padding-left: 10px;
    display: flex;
    flex-direction: row;
    height:100%;
    align-items: flex-end;
    flex-grow: 1;
    justify-content: right;
}

.navButton {
    appearance: none;
    border:none;
    font-weight: 800;
    max-width: 150px;
    height:100%;
    font-size: 14pt;
    flex-grow: 1;
    margin-left:10px;
    margin-right:10px;
    background-color: var(--one-color);
}

.navButtonCurrent:hover, .navButton:hover {
    background-color: var(--three-color);
    color:var(--one-color);
}

.navButton:active {
    background-color: var(--three-color);
    color:var(--one-color);
}

.mobileMenuHeader {
    text-align: left;
}

.navButtonM {
    appearance: none;
    text-align: left;
    border:none;
    font-weight: 800;
    max-height:80px;
    font-size: 16pt;
    flex-grow: 1;
    margin-left:10px;
    margin-right:10px;
    background-color: var(--one-color);
}

.navButtonM:hover {
    background-color: var(--three-color);
    color:var(--one-color);
}

.navButtonM:active {
    background-color: var(--three-color);
    color:var(--one-color);
}

.navButtonMSub {
    appearance: none;
    text-align: left;
    border:none;
    font-weight: 800;
    max-height:60px;
    font-size: 13pt;
    flex-grow: 1;
    margin-left:10px;
    margin-right:10px;
    background-color: var(--one-color);
}

.navButtonMSub:hover {
    background-color: var(--three-color);
    color:var(--one-color);
}

.navButtonMSub:active {
    background-color: var(--three-color);
    color:var(--one-color);
}

hr {
    border: 1px solid var(--three-color);
}

.navButtonCurrent {
    background-color: var(--two-color);
}

a.navButtonCurrent {
    font-weight: 800;
}

h1#title {
    text-decoration: underline double;
    font-size: 28pt;
    margin-top: 5px;
}

h2 {
    text-decoration: underline;
    font-size: 22pt;
}

h3 {
    text-decoration: underline;
    font-size: 16pt;
}

h4 {
    text-decoration: underline;
    font-size: 14pt;
}

main {
    padding: 0 10px;
}

main ul li {
    list-style:square;
    padding-bottom: 5px;
}

.res_wrapper {
    display: flex;
}

footer a {
    color:var(--three-color);
}

footer a:link, footer a {
    color:var(--three-color);
    text-decoration: underline;
}

main p a:link, main p a:visited {
    text-decoration: none;
    color:var(--three-color);
    text-decoration: underline dotted;
    font-style:italic;
}

main p a:hover {
    text-decoration: underline dotted;
    font-weight:700;
    font-style:normal;
}

footer a:hover, footer a {
    color:var(--three-color);
    text-decoration: none;
}

nav ul {
    display: flex;
    flex-direction: row;
    flex-grow: 1;
    padding: 5px 10px;
}

main ol ul li {
    list-style: square;
}

main ol li {
    list-style:upper-roman;
}

.square li {
    list-style: square;
}

h2 {
    color:var(--three-color);
}

.left {
    text-align: left;
}

.right {
    text-align: right;
}

.center {
    text-align:center;
}

.justify {
    text-align:justify;
}

.rightul {
    text-align: right;
    text-decoration: underline;
}

nav li:hover {
    background-color: var(--four-color);
    color:var(--five-color);
    border-radius: 10px;
}

nav li:active {
    background-color: var(--three-color);
    color:var(--five-color);
    border-radius: 10px;
}

nav li a, nav li a:visited {
    display: block;
    text-decoration: none;
    color:var(--three-color);
}

nav li a:hover {
    display: block;
    text-decoration: none;
    color:var(--five-color);
}

footer {
    margin-top:15px;
    text-align: center;
}
footer div {
    padding-bottom: 10px;
}

footer ul {
    display: flex;
    flex-direction: row;
    flex-grow: 1;
    padding: 5px 10px 5px 10px;
    margin:0 auto;
    align-items: center;
    justify-content: center;
}

footer li {
    /* margin-left: 50px; */
    list-style: none;
    padding: 5px 10px 5px 10px;
    text-align: center;
}

footer img {
    height: 50px;
    width: 50px;
}

#mainImage img {
    width:100%;
}

#mainImage {
    width:35%;
    flex-shrink: 0;
    flex-grow: 0;
}

#mainText {
    font-size:48pt;
    text-align: center;
    margin: auto;
    line-height: 150%;
}

#mainDesc {
    font-size:32pt;
    text-align: center;
    margin: auto;
    line-height: 150%;
}

#mainText {
    padding-left: 20px;
    width: 65%;
    font-size:48pt;
    text-align: center;
    margin: auto;
    line-height: 150%;
}

#mainContent {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#message {
    padding:0 10px 10px 10px;
    font-weight: 800;
    color:#df0707;
    line-height: 1.5;
}

#message li {
    color:#df0707;
    font-weight: 400;
}
#fNameMessage, #sNameMessage, #emailMessage  {
    color:#df0707;
    padding-left:10px;
}

.resTable {
    width:100%;
}

.resTableStudy {
    width: 100%;
    border-collapse:collapse;
}

.resTableLeft {
    width:150px;
    text-align: right;
    vertical-align: top;
    border-right: solid 2px var(--three-color);
    padding-right: 3px;
}

.resTableRight {
    text-align: left;
    padding-left: 3px;
}

.tableBreak {
    border-top: solid 2px var(--three-color);
}

.resTableStudy th, .resTableStudy td {
    border:solid 1px var(--three-color);
}
.resTable1 {
    width:15%;
    text-align: center;
    vertical-align: middle;
    padding: 5px;
}

.resTable2 {
    width:40%;
    text-align: center;
    vertical-align: middle;
    padding: 5px;
}

.resTable3 {
    width:15%;
    text-align: center;
    vertical-align: middle;
    padding: 5px;
}

.resTable4 {
    width:15%;
    text-align: center;
    vertical-align: middle;
    padding: 5px;
}

.skillLabel {
    font-weight:800;
    min-width: 190px;
}

.skillCat {
    font-size: 14pt;
    font-weight: 800;
    border-top: solid 1px var(--three-color);
    padding-top: 5px;
}

.skills td {
    height:30px;
}

.skills {
    padding-left: 10px;
}

.footerMore {
    text-decoration: underline;
    cursor:pointer;
}

/* Dropdown Button */
/* .dropbtn {
    background-color: #04AA6D;
    color: white;
    padding: 16px;
    font-size: 16px;
    border: none;
  } */
  
  /* The container <div> - needed to position the dropdown content */
  .dropdown {
    position: relative;
    display: flex;
    height:100%;
    max-width: 150px;
    flex-grow: 1;
    margin-left:10px;
    margin-right:10px;
    background-color: var(--one-color);
  }
  
  /* Dropdown Content (Hidden by Default) */
  .dropdown-content {
    display: none;
    flex-direction: column;;
    position: absolute;
    top:calc(100%);
    left:calc(6%);
    background-color: #f1f1f1;
    min-width: 140px;
    max-width: 150px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
  }
  
  /* Links inside the dropdown */
  .dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
  }
  
  /* Change color of dropdown links on hover */
  .dropdown-content a:hover {background-color: #ddd;}
  
  /* Show the dropdown menu on hover */
  .dropdown:hover .dropdown-content {display: flex;}
  
  /* Change the background color of the dropdown button when the dropdown content is shown */
  .dropdown:hover .dropbtn {background-color: #3e8e41;}

fieldset {
    padding:10px;
    margin:10px 0;
}

.formEntry, .formRadio {
    display: flex;
    width:100%;
    margin-bottom: 5px;
}

.formEntry label {
    width: 150px;
}

.formEntry input {
    max-width: 450px;
    flex-grow: 1;
}

.formRadio label {
    max-width: 150px;
    flex-grow: 1;
}

.project {
    padding:15px;
    border:var(--three-color) 1px solid;
    margin: 15px 0;
    border-radius: 10px;
}

.project h3 {
    margin-top:0;
} 

.noUnderline {
    text-decoration: none;
}

.projectHead {
    padding-bottom: 8px;
    font-size: 14pt;
}

.demoWrap {
    display: flex;
}

.demoImage {
    flex-grow: 1;
    max-width: 300px;
    margin-right: 10px;
}

.demoText {
    flex-grow: 1;
    font-style: italic;
    font-size: 14pt;
}

.jsExample {
    height: 50px;
    font-size: 20pt;
    margin-bottom:10px;
    margin-right:10px;
    width: 250px;
}

#operator {
    margin-right:10px;
}

.jsButton {
    height: 50px;
    width: 80px;
}


/* controls adjustments for screen sizes and print*/
@media screen and (max-width:1200px) {
    #myHeader {
        height: 100px;
    }
}

@media screen and (max-width:1055px) {
    #myHeader {
        height: 85px;
    }
}

@media screen and (max-width:800px) {
    #myHeader {
        height: 60px;
        transition:height 0s;
    }

    #container {
        width:95%;
    }

    #myHeader.sticky {
        width: 95%;
        margin-left: 2.5%;
        margin-right: 2.5%;
    }

    .navButton {
        display:none;
    }

    .demoWrap {
        display: block;
    }

}

@media screen and (min-width:801px) {
    #mobileNav {
        display:none;
        height:100%
    }
}

@media print {
    nav {
        display: none;
    }

    #myHeader {
        height: 50px;
    }

    .sticky + main, main {
        padding-top:50px;
    }

    main {
        padding-top:50px;
    }

    *, hr, h1, h2, h3, h4 {
        color:var(--black);
    }
    
    body {
        font-size: 16pt;
    }

    .resTableStudy th, .resTableStudy td {
        border: solid 1px var(--black);
    }

    .resTableLeft, .resTableRight {
        border-color: var(--black);
    }

    #myHeader {
        border-color: var(--black);
    }
}