html, body { 
 padding: 0;
 margin: 0;
 width: 100%;
}
html {  height: 100%; }
body {
  min-width: 375px;
}

@font-face {
  font-family: 'Alegreya Sans SC';
  font-style: normal;
  font-weight: 400;
  src: local('Alegreya Sans SC'), local('AlegreyaSansSC-Regular'), url(http://themes.googleusercontent.com/static/fonts/alegreyasanssc/v1/6kgb6ZvOagoVIRZyl8XV-KisNWI8qEu_hw_BXmaMF84.woff) format('woff');
}

@font-face {
 font-family: 'Signika'
  src: url(http://fonts.googleapis.com/css?family=Oswald|Signika:300) 
}


ul { margin: 0; }

.nameheading {
  z-index: 5;
  right: 58%;
  top: 0;
  position: fixed;
  padding-right: 10px;
  border-right: solid 8px rgb(13,84,110);
  height: 73px;
  width: 35%;
  min-width: 380px;
  text-decoration: none;
}

.nameheading span{
  color: white;
  font-size: 2.4em;
  font-family: Georgia,Serif;
  padding: 14px 12px;
  display: inline-block;
  width: 94%;
  height: 60%;
  min-width: 350px;
}

.nameheading:hover { border-right-color: rgb(0,35,63); }
.nameheading span:hover { background: rgb(0,35,63); }

.nameheading:active { border-right-color: #666; }
.nameheading span:active { background: #666; }

@media (max-width:1000px), handheld {
  .nameheading {
    width: 67%;
    right: 23%;
  }
    .nameheading span {
      width: 93%;
    }
}
@media (max-width:575px), handheld {
  .nameheading {
    border: none;
    right: auto;
    left: 7%;
  }
}
@media (max-width:500px), handheld {
  .nameheading {
    width: 100%;
    left: 0;
    position: fixed;
    padding: 0;
    min-width: 375px;
  }
    .nameheading span {
      width: 100%;
    }
}
@media (max-width:375px), handheld {
  .nameheading {
    height:60px;
  }
    .nameheading span {
      font-size: 1.8em;
    }
}



.tinymenubutton-cb {
  visibility: hidden;
  top: -99px;
  position: fixed;
}
.tinymenubutton {
  display: none;
  background: rgb(19,100,20);
  width: 40px;
  height: 40px;
  border-radius: 0 0 5px 5px;
  position: fixed;
  right: 7%;
  top: 0;
  z-index: 5;
  cursor: pointer;
}

.navmenu {
  font-size: 1.5em;
  z-index: 5;
  right: 7%;
  top: 0;
  position: fixed;
}

.navmenu li {
  display: inline-block;
  list-style-type: none;
  margin-right: -6px;
  opacity: .65;
  background: rgb(19,100,20);
  text-align: center;
  padding: 5px 5px;
  width: 120px;
}
.navmenu li.CV { width: 50px; }

.navmenu li:hover {
  opacity: .85;
  padding: 5px 5px 10px;
}
.navmenu li:active {
  opacity: 1;
}

.navmenu li.current {
  opacity: 1;
  padding: 10px 8px 25px;
  margin-top: -5px;
}

.navmenu a, .navmenu span {
  display: inline-block;
  color: white;
  font-family: Georgia,Serif;
  text-decoration:none;
  max-width: 85%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.navmenu span { cursor: default; }
.navmenu a:active {
  color: rgb(192, 217, 210);
}


@media (max-width:1000px), handheld {
  .tinymenubutton {
    display: block!important;
  }
  .tinymenubutton:active {
    background: rgb(192, 217, 210);
  }
  
  .navmenu {
    display: none;
    top: 40px;
    right: 7%;
  }
  .navmenu li {
    display: list-item;
    margin-right: 0;
    opacity: .85;
    padding: 0;
  }
  .navmenu li:hover {
    padding: 0;
    opacity: 1;
  }
  .navmenu li.CV {
     width: 120px;
  }
  .navmenu li.current {
     background: #DFDFDF;
     margin-top: 0;
     padding: 0;
  }
  .navmenu li.current span {
     font-weight: bold;
     color: #666;
  }
  .navmenu a, .navmenu span {
    width: 110px;
    max-width: 100%;
    padding: 12px 5px 5px;
  }
  .navmenu a:hover {
    padding: 10px 5px;
    color: #DFDFDF;
  }
  .navmenu a:active {
    color: black;
  }
  
  .tinymenubutton-cb:checked + .tinymenubutton {
    border-radius: 0;
    background: #666;
  }
  .tinymenubutton-cb:checked + .tinymenubutton + .navmenu {
    display: block;
  }
}

@media (max-width:500px), handheld {
  .tinymenubutton {
    position: fixed;
    top: 72px;
    width: 100%;
    padding: 0;
    right: auto;
    left: 0;
    border-radius: 0;
    text-align: center;
    background: black;
  }
  
  .navmenu {
    top:112px;
    width:100%;
    right:0;
  }
    .navmenu li,.navmenu li.CV  {
      display: block;
      width:100%;
    }
}

@media (max-width:375px), handheld {
  .tinymenubutton {
    top: 59px;
  }
  .navmenu {
    top: 99px;
  }
}


.intromenu {
  margin: 170px 35px 0 0;
  text-align: right;
  font-family: Lucida Grande, Arial, Helvetica, sans-serif;
  font-weight: 200;
  font-size: 2.5em;
}

.intromenu li {
  list-style-type: none;
  padding: 10px 0;
}

.intromenu a { 
  text-decoration:none;
  color: black;
  
  -moz-box-shadow: 0 3px 5px -4px #888;
  -webkit-box-shadow: 0 3px 5px -4px #888;
  box-shadow: 0 3px 5px -4px #888;
  border-radius: 6px;
  padding: 0 5px;
}
.intromenu a:hover {
  color: rgb(13,84,110);
  -moz-box-shadow: 0 3px 5px -4px rgb(13,84,110);
  -webkit-box-shadow: 0 3px 5px -4px rgb(13,84,110);
  box-shadow: 0 3px 5px -4px rgb(13,84,110); 
}
.intromenu a:active { color: grey; }

.greygreen {
  background: rgb(192, 217, 210);
}

.forestgreen {
  background: rgb(19,100,20);
}

.mintgreen {
  background: rgb(82, 162, 139);
}

.capriblue {
  background: rgb(13,84,110);
}

.maincontent {
  margin: 90px auto 0;
  width: 80%;
  min-width: 375px;
  background: rgb(212, 237, 230);
  text-align: center;
  display: block;
  color: #333333;
  font-size: 1em;
  font-family: Signika, 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

@media (max-width:500px), handheld {
  .maincontent {
    width: auto;
    margin-top: 112px;
  }
}
@media (max-width:375px), handheld {
  .maincontent {
    margin-top: 99px;
  }
}

.maincontent.contact {
    font-family:  'Quando', serif;
}
.maincontent .title {
  font-size: 1.7em;
  color: rgb(13,84,110);
  font-weight: bold;
  color: white;
  font-family: Georgia,serif;
  
  padding-right: 3%;
  border-right: solid 18px rgb(19,100,20);
  margin-bottom: 10px;
}
.maincontent.contact .title {
  font-size: 1.5em;
}
.maincontent .title.lefttoo {
  padding-left: 3%;
  border-left: solid 18px rgb(19,100,20);
}
  .maincontent .title .bit {
    background: rgb(19,100,20);
    width: 100%;
    padding: 5px 0;
  }
.maincontent .label {
  font-weight: 700;
}
.maincontent .lines {
  color: #333;
  padding: 5px 25px 5px;
  text-align: left;
  clear: both;
}
  .maincontent .lines:last-of-type {
    padding-bottom: 25px;
  }
  
  .maincontent .lines .linetitle {
    color: rgb(0,35,63);
    font-style: italic;
    margin-bottom: 1em;
    font-family:  'Quando', serif;
  }
  
  .maincontent .lines a {
    text-decoration: none;
    color: rgb(0,35,63);
    border-bottom: 1px dotted rgb(0,35,63);
    font-size: 10px;
    font-family:  'Quando', serif;
  }
    .maincontent .lines a:hover {
      color: rgb(13,84,110);
      border-bottom: 1px dotted rgb(13,84,110);
    }
    .maincontent .lines a:active {
      color: #666;
      border-bottom: 1px dotted #666;
    }

.maincontent .contentimage {
  float:left;
  padding: 0 8px; 
  text-align:center;
  margin-right: 12px;
}
  .maincontent .contentimage img {
    width: 150px; 
    height: 150px; 
    display: block;
    margin-bottom: 3px;
  }
  .maincontent .contentimage a {
  }

.maincontent .more {
  width: 100%;
  clear: both;
}

.followfoot {
  height: 60px;
  content: " ";
}
@media (max-width:500px), handheld {
  .followfoot {
    height: 45px;
  }
}




.topbar {
  height: 100px;
  top: 0;
  position: fixed;
  width: 100%;
  z-index: 2;
}

.topbar .topline {
  height: 8px;
}

.topbar .midline {
  height: 5px;
}

.topbar .bottomline {
  height: 35px;
}


.bottombar {
  height: 45px;
  bottom: 0;
  position: fixed;
  width: 100%;
}

.bottombar .topline {
  height: 5px;
}

.bottombar .midline {
  height: 20px;
}

.bottombar .bottomline {
  height: 18px;
  text-align: center;
  padding-top: 2px;
  font-size: .7em;
  color: #DDD;
  text-decoration:none;
  background: rgb(0,35,63);
}

@media (max-width:375px), handheld {
  .bottombar .bottomline span {
    display: none;
  }
}

  .bottombar .bottomline a {
    color: white;
    text-decoration: none;
  }


.frontpic {
  -moz-box-shadow: 0 3px 10px 1px #888;
  -webkit-box-shadow: 0 3px 10px 1px #888;
  box-shadow: 0 3px 10px 1px #888;
  border-radius: 5px;
  
  width: 90%;  
  margin-top: 120px;
}

.CVdownload {
  position: absolute;
  top: 102px;
  right: 15%;
  text-align: center;
}
  .CVdownload a {
    background: white;
    border-radius: 5px;
  
    width: 85px;
    padding: 6px 12px;
    color: rgb(0,35,63);
    text-decoration: none;
    font-size: .5em;
    font-weight: bold;
  }
  .CVdownload a:hover {
    box-shadow: 0 0 2px 2px white; 
  }
  .CVdownload a:active {
    background: white;
    box-shadow: inset 0 0 4px grey;
  }
  
  .CVdownload a img { 
    display: none;
  }
  
@media (max-width: 875px), handheld {
  .CVdownload {
    top: 190px;
  }
} 
@media (max-width:500px), handheld {
  .CVdownload {
    top: 169px;
    left: 15px;
    right: auto;
  }
    .CVdownload a {
      font-size: .4em;
    }
}
  
  
.CVHeading {
  margin: 10px auto;
  width: 400px;
}
  .CVHeading .leftside {
    float:left;
    text-align: right;
    padding-right: 5px;
    border-right: 1px solid black;
  }
  .CVHeading .rightside {
    float:right;
    text-align: left;
    padding-left: 5px;
    border-left: 1px solid black;
  }
  
	.CVHeading .KaPow{
	  font-weight: bold;
	  font-size: 18px;
	  display: inline-block;
	}

.CV {
  text-align: left;
  padding: 25px 35px 15px 25px;
}
.CV .secHead {
  font-weight: bold;
  font-family:  'Quando', serif;
}
.CV .section {
  padding: 8px 10px 25px;
  position: relative;
}
.CV .section .aRef {
	display: inline-block;
	max-width: 50%;
	min-width: 350px;
}

.CV .section div {
  padding: 3px 0;
  font-size: 16px;
  color: black;
}
.CV .section.service div {
  padding-left: 75px;
}
  .CV .section div .years {
    width: 75px;
    display: inline-block;
  }
  .CV .section.service div .years {
    position: absolute;
    left: 10px;
  }
.CV .section .inneraddition {
  padding: 2px 10px 5px;
  font-size: 13px;
  color: #444;
}


.researchchoice {
  width:50%; 
  float:left;
  padding:5px 0;
}
.researchchoice:hover {
  background: #DADADA;
}
.researchchoice:active {
  background: rgb(19,100,20);
  color: white;
}



.puborwsip-checkbox {
    display: none;
}
.puborwsiplabel {
    display: block; 
    overflow: hidden; 
    cursor: pointer;
    background: white; 
    color: #666!important; 
    font-size: 16px; 
    text-align:center; 
    padding: 5px 25px 5px!important;
    height: 18px;
}
.onoffswitch-inner {
    width: 200%; margin-left: -100%;
    -moz-transition: margin 0.3s ease-in 0s; -webkit-transition: margin 0.3s ease-in 0s;
    -o-transition: margin 0.3s ease-in 0s; transition: margin 0.3s ease-in 0s;
}
.onoffswitch-inner:before, .onoffswitch-inner:after {
    float: left; 
    width: 50%; 
    height: 30px; 
    padding: 0; 

    -moz-box-sizing: border-box; 
    -webkit-box-sizing: border-box; 
    box-sizing: border-box;
}
.onoffswitch-inner:before {
    content: "Publications";
    padding-right: 10px;
    text-align:right;
}
.onoffswitch-inner:after {
    content: "Works In Progress";
    padding-right: 10px;
}

.puborwsip-checkbox:checked + .puborwsiplabel .onoffswitch-inner {
    margin-left: 0;
}
.puborwsip-checkbox:checked + .puborwsiplabel .onoffswitch-switch {
    right: 0px; 
}

.puborwsip-checkbox:checked ~ .publications {
 display: none;
}
.puborwsip-checkbox:checked ~ .wsip {
 display: block;
}


.workingpapertitle {
  padding: 8px 35px;
}



.picturehalf {
  float: right; 
  min-width: 300px; 
  width: 55%; 
  height:100%;
}
.contenthalf {
  float: right;
  position: relative;
  min-width: 400px;
  width: 44%;
  height: 100%;
  min-height: 470px;
}

@media (max-width: 925px) {
  .picturehalf {
    min-width: 300px;
    width: 90%;
    margin: 0 auto;
    float: none;
    height: auto;
    min-height: 0px;
  }
    .picturehalf .frontpic {
      width: 100%;
      margin: 120px auto 0;
    }
    
  .contenthalf {
    float: none;
    width: auto;
    height: auto;
    min-height: 0px;
    padding-bottom: 45px;
  }
  .contenthalf > div {
    position: relative !important;
    bottom: auto !important;
    right: auto !important;
    margin: 45px 0 0 0 !important;
  }
  .contenthalf > div .maincontent.contact {
    float: none !important;
  }
  
  .contenthalf .intromenu {
    position: relative;
    bottom: auto;
    right: auto;
    text-align: left;
	margin-top: 45px;
	padding-left: 50px;
	margin-left: 5%;
  }
  
}