* {
  margin: 0;
  padding: 0;
  font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
}

article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
nav,
section,
main {
  display: block;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

a:hover,
a:active,
a:focus,
a img {
  outline: 0;
}

a {
  color: #454545;
}

a:hover {
  color: #c60;
  transition: 500ms ease-in-out;
}

body {
  font-size: 100%;
  color: #454545;
  background-color: #dedede;
}

p {
  line-height: 150%;
  padding-bottom: 10px;
}

ul.list {
  padding: 10px 0 0 12px;
}

ul.list li {
  line-height: 150%;
  padding-bottom: 10px;
}

ol {
  padding: 10px 0 0 17px;
}

ol li {
  line-height: 150%;
  padding-bottom: 10px;
}

.clear {
  clear: both;
}

div#container {
  background-color: #fff;
}

footer {
  text-align: right;
}

header {
  display: block;
  background: #5484de url(../images/nematode-title.png) no-repeat 0 0;
  background-size: cover;
  position: relative;
  z-index: 5;
}

h1.header {
  display: block;
  font-size: 0;
}

#mobile-button {
  display: none;
  width: 30px;
  height: 30px;
  top: 15px;
  right: 20px;
  position: absolute;
  background: url(../images/ios_button.png) no-repeat top center;
  background-size: 100%;
  font-size: 0;
  border: none;
  cursor: pointer;
  z-index: 2002;
}

#mobile-button.selected {
  background-position: bottom center;
}

h2 {
  font-size: 24px;
  font-weight: 100;
  border-bottom: 1px solid #ccc;
  margin-bottom: 20px;
}

h3 {
  font-size: 20px;
  font-weight: 100;
  border-bottom: 1px solid #ccc;
  margin: 20px 0;
  clear: right;
}

h4 {
  font-size: 19px;
  font-weight: 700;
}

h5 {
  font-size: 18px;
  font-weight: 100;
  font-style: italic;
  border-bottom: 1px solid #ccc;
}

header address {
  padding: 10px;
  position: absolute;
  top: 50%;
  -ms-transform: translateY(-50%);
  -webkit-transform: translateY(-50%);
  transform: translateY(-50%);
  right: 20px;
  text-align: right;
  font-style: normal;
  font-size: 16px;
  color: #fff;
}

header address a {
  color: #fff;
  text-decoration: none;
}

header address a:hover {
  color: #000;
}

ul#main-nav {
  list-style: none;
}

ul#main-nav li {
  display: inline-block;
  margin: 0 5px;
  text-align: center;
}

ul#main-nav li a {
  font-weight: bold;
  text-decoration: none;
  border: 1px solid #999;
  border-radius: 3px;
  padding: 2px 10px;
  line-height: 30px;
  color: #454545;
}

ul#main-nav li a:hover,
ul#main-nav li a.nav-selected {
  background-color: #c60;
  color: #fff;
  transition: 500ms ease-in-out;
}

div#contents {
  padding: 20px;
}

.popText {
  text-align: justify;
  padding: 10px;
}

.leftImage img {
  border: 10px solid #ddd;
  border-radius: 5px;
  width: calc(100% - 20px);
}

.rightImage {
  float: right;
  border: 10px solid #ddd;
  border-radius: 5px;
  margin: 10px 0 10px 10px;
}

.diagram-holder {
  position: relative;
  border: 10px solid #ddd;
  border-radius: 10px;
  margin: 10px 0;
  background: url(../images/lifecycle.png) no-repeat;
}

.hidden {
  position: absolute;
}

.hidden a {
  display: block;
  font-size: 0;
}

strong.me {
  color: #000;
}

#parasiticFemale-link {
  width: 13.04%;
  height: 10%;
  left: 34%;
  top: 6%;
}

a#parasiticFemale {
  width: 100%;
  height: 100%;
  display: block;
}

#infectiveL3s-link {
  width: 15.8%;
  height: 6%;
  left: 13%;
  top: 40%;
}

a#infectiveL3s {
  width: 100%;
  height: 100%;
  display: block;
}

#freeFemale-link {
  width: 13%;
  height: 6%;
  left: 34%;
  top: 71%;
}

a#freeFemale {
  width: 100%;
  height: 100%;
  display: block;
}

#freeMale-link {
  width: 13%;
  height: 6%;
  left: 34%;
  top: 85%;
}

a#freeMale {
  width: 100%;
  height: 100%;
  display: block;
}

.dynamicImage {
  position: absolute;
  border: 10px solid #ccc;
  border-radius: 10px;
  margin: 10px 0;
  top: 20px;
  left: -430px;
  display: none;
}

p.notation {
  font-size: 12px;
  font-style: italic;
}

.dynamicImage p.notation {
  position: absolute;
  bottom: -40px;
  left: 20px;
  font-size: 12px;
  font-style: italic;
}

#left-nav {
  float: left;
  margin: 10px 0 50px 60px;
  list-style: none;
  color: #454545;
}

#left-nav li {
  padding-bottom: 10px;
  position: relative;
  margin-bottom: 5px;
}

#left-nav li a {
  position: relative;
  font-size: 18px;
}

#left-nav li a span {
  position: absolute;
  height: 1px;
  width: 420px;
  left: 0;
  bottom: -2px;
  background-color: #ddd;
  overflow: hidden;
  display: none;
}

#left-nav li a {
  color: #454545;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
}

#left-nav li a:hover,
#left-nav li a.selected {
  color: #c60;
}

#left-nav li a.selected span {
  display: block;
}

#tab-holder {
  position: relative;
  padding: 20px;
  border: 1px solid #ddd;
  border-radius: 5px;
  min-height: 386px;
}

.tab {
  background-color: #fff;
}

ul.citation {
  padding: 10px;
  list-style: none;
}

ul.citation li {
  padding-bottom: 10px;
  line-height: 150%;
}

ul.lab-members {
  padding: 10px 10px 10px 0;
  list-style: none;
}

ul.lab-members li {
  padding-bottom: 5px;
  line-height: 150%;
}

ul.lab-members li a {
  text-decoration: underline;
  color: #454545;
}

ul.lab-members li a:hover {
  color: #c60;
}

ul.former {
  padding: 10px 10px 10px 12px;
  list-style: square;
}

ul.former li {
  padding-bottom: 5px;
  line-height: 150%;
}

div#mark_viney {
  position: relative;
}

div#mark_viney div.padding {
  height: 0;
  padding-top: 67.3%;
  position: relative;
}

div#mark_viney div.padding img {
  position: absolute;
  cursor: pointer;
}

img#viney_young {
  display: block;
  z-index: 1;
  top: 0;
  left: 0;
}

img#viney_old {
  display: block;
  z-index: 2;
  top: 0;
  left: 0;
}

/* youtube fluid */
.video-holder {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  padding-top: 0px;
  height: 0;
  margin-bottom: 20px;
  width: 100%;
}

.video-holder iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

img.float-left {
  display: block;
  width: calc(100% - 2.2rem);
  max-width: 585px;
  float: left;
  border: 1px solid #ddd;
  border-radius: 5px;
  padding: 1rem;
  margin: 0 2rem 2rem 0;
}

@media only screen and (min-width: 320px) {
  div#container {
    width: 100%;
    margin: 0 0;
    background-color: #fff;
    border: none;
    border-radius: 0;
  }

  header address {
    display: none;
  }

  #mobile-button {
    display: block;
  }

  header {
    height: 60px;
    border: none;
    border-radius: 0;
  }

  h1.header {
    position: relative;
    height: 60px;
  }

  footer {
    width: 90%;
    margin: 10px auto;
    text-align: right;
    padding: 5%;
  }

  footer address {
    display: block;
    color: #454545;
    position: relative;
    top: auto;
    -ms-transform: translateY(0);
    -webkit-transform: translateY(0);
    transform: translateY(0);
    right: auto;
    font-style: normal;
    padding: 10px 0 0 0;
  }

  div#nav-holder {
    width: calc(100% - 40px);
    background-color: #fff;
    position: absolute;
    top: -500px;
    padding: 20px;
    z-index: 4;
    box-shadow: #777 0 0 10px 0;
  }

  ul#main-nav {
    list-style: none;
    width: 100%;
    padding: 0;
  }

  ul#main-nav li {
    display: block;
    margin: 0 0 10px 0;
    text-align: left;
    width: 100%;
    border-bottom: 1px solid #999;
  }

  ul#main-nav li a {
    font-weight: bold;
    text-decoration: none;
    border: none;
    border-radius: 0;
    padding: 5px;
    line-height: 30px;
    color: #454545;
    width: calc(100% - 10px);
    display: block;
  }

  ul#main-nav li a:hover,
  ul#main-nav li a.nav-selected {
    background-color: #c60;
    color: #fff;
    transition: 500ms ease-in-out;
  }

  .mainText,
  .leftImage {
    float: none;
    width: 100%;
    padding: 0;
    margin: 0 0 20px 0;
  }

  .citations-holder {
    padding: 0;
    margin: 0;
  }

  #left-nav {
    float: none;
    margin: 10px 0 0 0;
    list-style: none;
    color: #454545;
  }

  #left-nav li {
    padding-bottom: 10px;
    position: relative;
    margin-bottom: 5px;
  }

  #left-nav li a {
    position: relative;
  }

  #left-nav li a span {
    position: absolute;
    height: 1px;
    width: 100%;
    left: 0;
    bottom: -2px;
    background-color: #ddd;
    overflow: hidden;
    display: none;
  }

  #left-nav li a {
    color: #454545;
    text-decoration: none;
    font-weight: 700;
    font-size: 18px;
  }

  #left-nav li a:hover,
  #left-nav li a.selected {
    color: #c60;
  }

  #left-nav li a.selected span {
    display: block;
  }

  .rightImage {
    float: none;
    border: 10px solid #ddd;
    border-radius: 5px;
    margin: 10px 0 10px 0;
    width: calc(100% - 20px);
  }

  .diagram-holder {
    border: 10px solid #ddd;
    border-radius: 10px;
    margin: 10px 0;
    width: calc(100% - 20px);
    height: auto;
    background: url(../images/lifecycle.png) no-repeat;
    background-size: 100%;
  }

  .diagram-inner {
    height: 0;
    padding-top: 65.2%;
    position: relative;
    width: 100%;
  }

  .dynamicImage {
    position: absolute;
    border: 10px solid #fff;
    border-radius: 10px;
    margin: 10px 0;
    left: 0;
    top: 110%;
    display: none;
    width: calc(100% - 20px);
    background-color: #fff;
  }

  .dynamicImage img {
    width: calc(100% - 20px);
    border: 10px solid #ccc;
    border-radius: 10px;
  }

  .dynamicImage p.notation {
    position: relative;
    bottom: auto;
    left: auto;
    font-size: 16px;
    font-style: italic;
  }
}

@media only screen and (min-width: 480px) {
}

@media only screen and (min-width: 740px) {
  div#container {
    width: calc(95% - 20px);
    margin: 10px auto;
    border: 10px solid #fff;
    border-radius: 10px;
  }

  header {
    width: calc(100% - 2px);
    border: 1px solid #999;
    border-radius: 5px;
    height: 150px;
  }

  #mobile-button {
    display: none;
  }

  header address {
    display: block;
  }

  div#nav-holder {
    width: calc(100% - 40px);
    position: relative;
    top: auto;
    padding: 20px 20px 0 20px;
    box-shadow: none;
    display: block;
  }

  ul#main-nav {
    width: auto;
  }

  ul#main-nav li {
    margin: 0 5px;
    text-align: center;
    width: auto;
    display: inline-block;
    border: none;
    margin: 0 0.5rem 1rem 0;
  }

  ul#main-nav li a {
    font-weight: bold;
    text-decoration: none;
    border: 1px solid #999;
    border-radius: 3px;
    padding: 2px 10px;
    line-height: 30px;
    color: #454545;
    display: inline-block;
    width: auto;
    white-space: nowrap;
  }

  ul#main-nav li a:hover,
  ul#main-nav li a.nav-selected {
    background-color: #c60;
    color: #fff;
    transition: 500ms ease-in-out;
  }

  footer {
    padding: 20px 5%;
  }

  footer address {
    display: none;
  }

  .mainText,
  #left-nav {
    float: right;
    width: 45%;
    text-align: justify;
    padding: 20px 0 10px 5%;
  }

  .leftImage {
    float: left;
    width: 45%;
    text-align: justify;
    padding: 20px 5% 10px 0;
  }

  .rightImage {
    float: right;
    border: 10px solid #ddd;
    border-radius: 5px;
    margin: 10px 0 20px 10px;
    width: calc(50% - 20px);
  }

  .dynamicImage {
    left: -129%;
    top: -30px;
  }
}

@media only screen and (min-width: 980px) {
  div#contents {
    padding: 50px;
  }
}
