/* 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);
}

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:100%;
    width:84%;
    z-index: 1;
    background-color: var(--one-color);
    opacity: 95%;
    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: 100%;
    padding-top:10px;
    left: 0;
    box-sizing: border-box;
    padding-left: 10%;
    padding-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: center;
}

.navButtonM {
    appearance: none;
    border:none;
    font-weight: 800;
    max-height:80px;
    font-size: 14pt;
    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);
}

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

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

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 {
    padding-left: 20px;
    width: 65%;
    font-size:48pt;
    text-align: center;
    margin: auto;
    line-height: 150%;
}

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

.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;
}

/* controls adjustments for screen sizes and print*/

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

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

    .navButton {
        display:none;
    }


}

@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);
    }
}