.footer {
  clear: both;
  z-index: 2;
  margin: 20px 0px 0px 0px;
  width: 100%;
  font-size: 85%; 
  text-align: center;
  border-style: solid;
  border-width: 0px 0px 0px 0px;
  box-shadow: 0 -2px 5px 0 rgba(0,0,0,0.16),0 -2px 10px 0 rgba(0,0,0,0.12);
#  background: #dddddd;
  padding: 10px 10px 10px 10px;
}

.text {
  padding-bottom: 10px;
  text-align: justify;
#  overflow: hidden;
}

.title-text {
  margin: 30px 40px 0px 40px;
}

.twitter-mobile, .twitter {
  float: right;
  height: 560px; 
  margin: -10px 0px 0px 10px; 
  font-size: 50%; 
  border-radius: 25px 25px 25px 25px; 
  box-shadow: 5px 10px 10px -2px rgba(0,0,0,0.16), -5px -10px 10px -4px rgba(0,0,0,0.16);
  padding: 10px;
  transform: scale(0.9);
}

hr {
  clear: both;
  height: 2px;
  border: 0;
  box-shadow: 0 10px 10px -2px #8c8c8c inset;
  margin: 20px 40px 20px 40px;
}


/* Team */

.team {
  clear: both;
  padding: 0px 80px 0px 80px;
}
.team-photo {
  float: right;
  width: 150px;
  display: flex;
  vertical-align: middle;
  margin-bottom:10px;
  padding-bottom:8px;
}
.team-id {
  display: inline-block;
  width: 400px;
  padding-top: 10px;
}
.team-bib {
  padding-top: 20px;
}
.team-contacts {
  display: inline-block;
  vertical-align: top;
  padding-top: 10px;
}
.team-name {
  font-weight: bold;
}
.team-status {
  font-style: italic;
}
.team-phone, .team-room, .team-email {
  padding-bottom: 10px;
}
.team-phone::before {
  content: "Phone: "
}
.team-room::before {
  content: "Room: "
}
.team-email::before {
  content: "E-mail: "
}
.orcid {
  background: no-repeat url('figures/orcid.svg');
  background-size: 20px;
  background-position: 0% 80%;
  text-indent: 28px;
}
.scholar {
  background: no-repeat url('figures/scholar.svg');
  background-size: 20px;
  background-position: 0% 80%;
  text-indent: 28px;
}
.team > ul > li {
  margin-bottom: 2px;
}

/* Publications */

.pubindex {
  position: absolute;
  right: 0;
  text-align: center;
  margin: 40px 20px 0 0;
  box-shadow: 2px 0 5px 0 rgba(0,0,0,0.16), 2px 0 10px 0 rgba(0,0,0,0.12);
  padding: 20px 40px 20px 40px;
  width: 18%;
}
.pubindex-year {
  display: inline-block;
}
.pub-list {
  margin: 0px 30px 20px 30px;
  width: 75%;
}
.pub-list h3 {
  font-size: 130%;
  font-weight: bold;
}
.pub-list li {
  padding-bottom: 7px;
}
.pub-author::after {
  content: '. '
}
.pub-title::after {
  content: '. '
}
.pub-title {
  font-style: italic;
}
.pub-volume::after {
  content: ', ';
}
.pub-year::before {
  content: '(';
}
.pub-year::after {
  content: ')';
}
.pub-arxiv {
  padding-left: 5px;
}
.pub-doi a {
  color: rgb(0,0,220);
  text-decoration: none;
}

/* Teaching */

.teaching h1 {
  font-size: 130%;
  font-weight: bold;
}
.teaching, .popular, .topic {
  margin: 30px 50px 30px 50px;
}
.teaching > ul > li {
  font-style: italic;
}
.teaching > ul > ul {
  margin-bottom: 8px;
}
.teaching-img {
  float: right;
  margin: 50px 50px 0px 0px;
  text-align: center;
}
.teaching-motivation {
  font-style: italic;
  margin: 0 0 15px 0;
  color: DarkGreen;
}
.teaching-reading {
  margin: 15px 0 -20px 0;
}
.teaching-reading li {
  padding-bottom: 7px;
}
.teaching-reading ul {
  margin-top: 12px;
}
.teaching-exp, .teaching-material, .teaching-person, .teaching-technology, .teaching-theory, .teaching-exp-sc {
  margin: 5px 0 5px 0;
}
.teaching-theory::before {
  content: "Concepts / Theory: ";
  font-style: italic;
}
.teaching-exp-sc::before {
  content: "Experiment: ";
  font-style: italic;
}
.teaching-exp::before {
  content: "Experimental technique: ";
  font-style: italic;
}
.teaching-material::before {
  content: "Material: ";
  font-style: italic;
}
.teaching-technology::before {
  content: "Technology / Material: ";
  font-style: italic;
}
.teaching-person::before {
  content: "Person: ";
  font-style: italic;
}
.teaching-reading::before {
  content: "Supplemental materials: ";
  font-style: italic;
}
.teaching-concept::before {
  content: "Key concept: ";
  font-style: italic;
}
.teaching-problem::before {
  content: "Open problem: ";
  font-style: italic;
}
.teaching-illustration {
  float: right;
}
.teaching-download {
  margin: -35px 20px 15px 0; 
  float: right; 
  background: no-repeat url('figures/download.svg');
  background-size: 20px;
  background-position: 0% 80%;
  text-indent: 28px;
}
.teaching-figure {
  padding-bottom: 20px; 
  margin-left: 20px;
  max-width: 100%;
}
.teaching div {
  padding-bottom: 5px;
}

/* Popular */

.popular-title {
  font-weight: bold;
}
.popular-location {
  font-size: 95%;
  font-style: italic;
  margin: 5px 0 5px 0;
}
.popular-subtitle {
  font-size: 95%;
}
.popular-description {
  font-size: 90%;
}
.popular-description ul {
  margin: 5px;
}
.popular-img {
  float: right;
  margin: 20px 50px 30px 70px;
}

/* Topics */

.topic-title {
  font-weight: bold;
  padding-bottom: 7px;
}
.topic-description {
  text-align: justify;
}
.topic-img {
  float: right;
  margin: 20px 50px 20px 50px;
}


/* Twitter vs. Screen width */

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

.twitter-mobile {
  display: none;
}

}

@media only screen and (max-width: 500px) {

.twitter {
  display: none;
}

}


/* Mobile */

@media only screen and (max-width: 900px) {

hr {
  margin: 20px 20px 20px 20px;
}
.title {
  font-size: 80%; !important
}
.title-text {
  margin: 30px 20px 0px 20px;
}
.footer {
  font-size: 70%;
}
.w3-image {
  padding-top: 50px;
}
.team-photo {
  float: none;
}
.team-id {
  display: block;
  width: 100%;
}
.team-contacts {
  display: block;
  width: 100%;
}
.pub-list {
  width: 100%;
  margin:20px 0px 0px 30px;
  padding-right: 20px;
}
.pub-list h3 {
  margin-left: 20px;
}
.pubindex {
  position: relative;
  width: 100%;
  margin: 10px;
}
.pubindex-year {
  padding: 0px 3px 0px 3px;
}
.pub-list, ul {
  margin-left: 0px;
}
.pub-list li {
  margin-left: 0px;
}
.teaching-img {
  display: none;
}
.teaching h1 {
  margin-left: 0px;
}
.teaching, ul {
  margin-left: -10px;
}
.teaching li {
  margin-left: -20px;
}
.teaching {
  margin-left: 20px;
}
.teaching-download {
  float: none;
  margin: 0 0 15px 0;
}
.popular, .topic {
  margin: 30px 25px 30px 25px;
}
.popular-img {
  margin: 30px 60px 30px 60px;
}

}