img#me {
    height: 300px;
    width: 300px;
    float: left;
    border-radius: 4px;
    object-fit: cover;
}

body {
    background: linear-gradient(to bottom, #f8f9fa 0%, #e9ecef 100%);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
    text-align: center;
    font-size: 12pt;
    line-height: 1.6;
    color: #2c3e50;
    margin: 0;
    padding: 0;
}

#main {
    margin: 0 auto;
    max-width: 900px;
    width: 100%;
    text-align: left;
    background-color: #ffffff;
    padding: 2em;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: 0 0 8px 8px;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    #main {
        padding: 1.5em;
        border-radius: 0;
    }
}

a, a:visited {
    text-decoration: none;
    color: #2563eb;
    transition: color 0.2s ease;
}

a:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

#header {
    margin: 0 auto;
    max-width: 900px;
    width: 100%;
    min-height: 350px;
    padding: 2em;
    background-color: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px 8px 0 0;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    #header {
        padding: 1.5em;
        min-height: auto;
        border-radius: 0;
    }
    
    #header img {
        float: none !important;
        display: block;
        margin: 0 auto 1em auto !important;
        padding: 0 !important;
    }
    
    #header .quote-box {
        float: none !important;
        width: 100% !important;
        margin-top: 1em;
    }
}

#header p {
    text-align: left;
    font-size: 20pt;
    font-weight: 600;
    color: #1a202c;
    border-bottom: 3px solid #2563eb;
    padding-bottom: 0.3em;
    margin-bottom: 1em;
}

#header ul {
	list-style: none;
	margin: 0;
	overflow: hidden;
	padding: 0;
	text-align: left;
}

#header li {
    padding-bottom: 0.5em;
}

#header img {
    float: left;
    margin-right: 1em;
    margin-left: 0;
    padding-right: 1em;
    padding-left: 0;
    margin-bottom: 0;
 }
#centeredmenu {
    text-align: center;
    width: 100%;
    background: #ffffff;
    margin: 0 auto 2em auto;
    overflow: hidden;
    padding: 0.8em 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}
#centeredmenu::before {
    content: "Charles (Chris) Johnson";
    display: block;
    font-size: 14pt;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 0.5em;
    opacity: 0;
    transition: opacity 0.3s ease;
}
#centeredmenu.scrolled::before {
    opacity: 1;
}
#centeredmenu ul {
   list-style: none;
   margin: 0 auto;
   padding: 0;
   text-align: center;
}
#centeredmenu ul li {
   display: inline-block;
   list-style: none;
   margin: 0;
   padding: 0.5em 0.5em;
   padding-top: 0;
}
#centeredmenu ul li a {
   padding: 0.4em 0.6em;
   border-radius: 4px;
   transition: all 0.2s ease;
   display: inline-block;
}
#centeredmenu ul li a:hover {
   background: #e9ecef;
   text-decoration: none;
   color: #1d4ed8;
}

@media (max-width: 768px) {
    #centeredmenu ul li {
        padding: 0.3em 0.3em;
        font-size: 0.9em;
    }
    #centeredmenu ul li a {
        padding: 0.3em 0.4em;
    }
    #centeredmenu::before {
        font-size: 12pt;
    }
}
/* #centeredmenu ul li a { */
/*    display:block; */
/*    margin:0 0 0 1px; */
/*    padding:3px 10px; */
/*    background:#ddd; */
/*    color:#000; */
/*    text-decoration:none; */
/*    line-height:1.3em; */
/* } */
/* #centeredmenu ul li a:hover { */
/*    background:#369; */
/*    color:#fff; */
/* } */
/* #centeredmenu ul li a.active, */
/* #centeredmenu ul li a.active:hover { */
/*    color:#fff; */
/*    background:#000; */
/*    font-weight:bold; */
/* } */

#main p {
    margin-top: 0;
    margin-bottom: 1em;
}

#main h3 {
    font-size: 16pt;
    font-weight: 600;
    color: #1a202c;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 0.3em;
    margin-bottom: 0.8em;
    margin-top: 1.5em;
}

#main h4 {
    font-size: 15pt;
    font-weight: 600;
    color: #1a202c;
    margin-top: 2.5em;
    margin-bottom: 0.5em;
}

#main h5 {
    font-size: 13pt;
    font-weight: 600;
    color: #374151;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
}

#main hr {
    border: none;
    border-top: 2px solid #e9ecef;
    margin: 0.5em 0 1.5em 0;
}

#main ul {
    margin-top: 0.5em;
    padding-top: 0;
    line-height: 1.8;
}

#projects dd {
    margin-bottom: 1.5em;
    line-height: 1.7;
}

#papers li {
    padding-bottom: 1em;
}

.pubs dd {
    padding-bottom: 1.2em;
    line-height: 1.7;
}

.pubs dt {
    font-style: italic;
    font-weight: 500;
    color: #1a202c;
}

.pubs dl {
    padding-top: 0;
    margin-top: 0;
}

.travel dd { 
    padding-bottom: 1em;
    line-height: 1.7;
}

.travel dt {
    font-weight: 500;
    color: #374151;
}
