body {
  font-family: 'Open Sans', sans-serif;
  font-size: 15pt;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-weight: 700;
  text-align: center;
}

h2.sub_portfolio {
  font-size: 200%;
  color: cadetblue;
}

h1 {
  font-weight: 800;
  font-size: 300%;
  margin: 1ex 0px 3ex 0px;
}

.nowrap {
  white-space: nowrap;
}

a {
	color: rgb(34, 83, 90);
}

ul {
	padding: 0px;
}
@media (max-width: 575.98px) {
	h1, .landing h1 {font-size: 160%;}
	h2, .landing h2 {font-size: 140%;}
	h3 {font-size: 120%;}
}






.jumbotron p {
  margin: 2ex 15%;
}

p.sectionhead {
  margin-bottom: 5ex;
  text-indent: 0px;
}

@media (max-width: 991.98px){ 
  .jumbotron p {
    margin: 2ex 0px;
  }
  p.sectionhead {
    margin-bottom: 3ex;
  }
  h1 {
    margin-bottom: 2ex;
  }
}

p.noindent {
  text-indent: 0px;
}

ul {
  list-style-type: none;
}


.nav-up {
    top: -60px;
}






/*
  Ad-hoc menu stuff
*/
.center-menu {
  margin: 1ex auto;
  text-align: center;
}
nav li {
  display: inline;
  font-weight: 700;
}
nav a {
  color: black;
  margin-top: 2px;
}



/* Front page matter */

.landing {
  padding-top: 10ex;
  background-image: url('../img/deco/landing-background.svg');
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
}

#profile-picture {
  border-radius: 100%;
  max-width: 40%;
  margin: 4ex 0px;
  border: 1px dotted white;
}

.landing h1 {
  font-size: 200%;
  margin: 0px;
}

.landing h2 {
  font-size: 160%;
}

ul.teaser {
  margin-top: 3ex;
  padding: 0px;
}

/*Similar elements in footer*/
.landing ul.teaser li span, .landing ul.teaser li i {
  margin-right: 4px;
}

.landing ul.teaser li{
  margin: 1ex 0px;
  white-space: nowrap;
}

ul .researchgate-logo {
  font-family: serif;
  color: black;
}

ul .researchgate-logo sup {
  font-size: 50%;
  vertical-align: super;
}

.landing ul.teaser a:visited, .landing ul.teaser a {
  cursor: pointer;
  color: black;
}


/*Landing teasers*/
.teaser-vcenter{
  display: flex;
  align-items: center;
  padding: 0px;
}

.landing-teaser {
  margin: 12px 0px;
  padding: 0px;
}

.landing-teaser h2 {
  text-align: left;
}

.landing-teaser p {
  margin: 0px;
  position: relative;
  left: 5ex;
}

.teaser-p2{
  margin-left: 1.9ex;
}

.teaser-p3{
  margin-left: 3.8ex;
}

.indicator {
  float: left;
  visibility: hidden;
}

.indicator i {
  font-size: 200%;
  color: rgb(94, 110, 90);
  position: relative;
  top: 22px;
  right: 25pt;
}

.teaser-vcenter a, .teaser-vcenter a:visited  {
  color: black;
}
.landing ul.teaser a:hover, .teaser-vcenter a:hover a:hover, ul.portfolio_menu li:hover {
	color: rgb(16, 76, 110);
	cursor: pointer;
	text-decoration: underline;
}

@media (max-width: 767.98px){ 
  .landing-teaser {
    margin: 12px 0px;
    width: 100%;
  }
  .jumbotron {
    padding-bottom: 2ex;
  }
  .teaser-vcenter {
    margin-top: 4ex;
  }
  .landing-teaser p {
    left: 0px;
    margin: 0px;
    text-align: center;
    text-indent: 0px;
  }
  .landing-teaser h2 {
    text-align: center;
    margin: 3px;
    padding-top: 1ex;
    border-top: 1px solid white;
  }
  div.indicator {
    display: none;
  }
}
@media (max-width: 575.98px) {
	.landing h1 {
		font-size: 160%;
	}
	.landing h2 {
		font-size: 120%;
		margin-top: 4px;
	}
}








/* Blog matter  */

.white {
  background-color: white;
}






/* Portfolio matter */
.portfolio-card {
  margin-top: 3ex;
}

div.card-image {
  background-color: white;
  background-position: center bottom;
  background-size: cover;
  min-height: 160px;
  text-align: center;
  border-bottom: 1px solid rgb(221, 221, 221);
}

.portfolio-card .card-body p {
  margin: 0px;
}

.portfolio-card .card-body h3 {
  font-size: 120%;
  color: hsl(0, 0%, 19%);
}

#card-img-eastwards {
  max-height: 100px;
  margin-top: 2ex;
}

.displayportfolio {
	cursor: pointer;
	padding: 0px;
}

@media (min-width: 767.98px) {
	.displayportfolio {
		padding: 1ex;
	}
}



/* Zoomed portfolio items */

.portfolio-zoom {
  padding: 0px;
  padding-bottom: 4ex;
  display: none;
  margin-bottom: 0px;
}

.portfolio-zoom p {
  text-indent: 3ex;
}

.portfolio_content h3 {
  text-align: center;
  margin-bottom: 2ex;
}


.portfolio_content img {
  width: 100%;
}

.portfolio_content .card-body p {
    color: gray;
    text-indent: 0ex;
    font-size: 80%;
    padding: 0ex;
    margin: 0px;
    margin-top: 1ex;
}


video {
  width: 480px;
  height: 332px;
}
@media (min-width: 1200.01px){video {width: 640px; height: 480px;}}



@media (min-width: 992.01px){ 

  .portfolio_content .card-body p.comment {
    margin-top: 0px;
    border-left: 1px solid gray;
    padding: 1ex 3ex;
    font-size: 80%;
  }


  .portfolio_content h3 {
    text-align: center;
    font-size: 140%;
    margin-top: 1ex;
  }
}

@media (max-width: 575.98px) {
	.portfolio-zoom p {
		text-indent: 1.5ex;
	}
}





.jumbotron-portfolio {
  margin-bottom: 0px;
}
@media (max-width: 767.98px){ 
  .jumbotron-portfolio {
   margin-bottom: 8ex;
  }
}
.jumbotron-arrow {
  width: 40%;
}


/* Portfolio sub-menu */

#portfolio_menu {
  display: none;
  text-align: center;
  margin-bottom: 8ex;
}

ul.portfolio_menu {
	padding: 0px;
  margin-top: 2ex;
}

ul.portfolio_menu li {
  display: inline;
  margin: 0px 1ex;
  white-space: nowrap;
  color: rgb(34, 83, 90);
}




/* Resume matter */

h2.subcol {
  margin-top: 1ex;
}









/* Resumé matter */

ul.publications li {
  text-indent: -2ex;
  padding-left: 2ex;
}

ul.cv, ul.publications{
  padding: 0px;
  margin-top: 4ex;
}

ul.cv span.date {
  font-family: monospace;
  color: gray;
}








/* Portfolio sub-pages */
.postman {
  margin: 4ex auto;
}
.postman img {
  margin: 0px;
  width: 100%;
  min-height: 150px;
}
.postman-map-right, .postman-map-left {
  background-repeat: repeat-x;
  background-size: contain;
 } 
.postman-map {
  padding: 0px;
}
.postman-map-right {
  background-image: url('../img/portfolio/postman-map-right.svg');
}
.postman-map-left {
  background-image: url('../img/portfolio/postman-map-left.svg');
}
.postman-legend {
  text-align: center;
  margin: 3ex 2ex;
}
.postman-legend span {
  margin: 0px 1ex;
}

.hangout-left {
  width: 50%;
  float: right;
  display: block;
}

.hangout-left img{
  width: 100%;
}

.hangout-left span {
  color: gray;
  font-size: -5;
}

div#eastwards_map {
  width:100%;
  height: 260px;
  background: #ffffff url('../img/portfolio/eastwards_fullwith_background.jpg');
  background-size: cover;
  border: 1px solid gray;
  border-left: 0px; border-right: 0px;
  text-align: center;
  position: relative;
}

div#eastwards_map img {
  min-height: 170px;
}



@media (max-width: 767.98px){ 
  div#eastwards_map img {
   min-height: 140px;
   margin-top: 2.5ex;
  }
}

div#eastwards_map p {
  position: absolute;
  bottom: 0px;
  text-indent: 0px;
  margin: 0px 20%;
  color: white;
  font-size: 60%;
}









/* Footer */
.jumbotron-footer {
  background-color: rgb(54, 54, 54);
  color: white;
  text-align: center;
    margin-bottom: 0px;
  padding-bottom: 2ex;
}

.jumbotron-footer h1 {
  font-size: 120%;
  margin-bottom: 2ex;
}

.jumbotron-footer ul {
  margin-top: 2ex;
}
ul.contacts li {
  margin-bottom: 0.7ex;
}

.jumbotron-footer a, .jumbotron-footer a:visited {
  color: white;
}
.jumbotron-footer a:hover {
	color: rgb(171, 220, 226);
}

ul.footer-menu li {
    margin-bottom: 1.5ex;
}

ul.footer-menu strong {
display: block;
line-height: 1;
}


@media (min-width: 991.98px){ 
  .extra-left-margin{
    margin-left: 20%;
  }
  .extra-right-margin{
    margin-right: 20%;
  }
}







/* The very smallest screens*/
@media (max-width: 320.02px) {
	nav li a.navbar-brand {
		font-size: 100%;
	}
	.landing h2 {
		font-size: 100%;
	}
	.jumbotron-footer h1 {
		font-size: 90%;
	}
	.portfolio-card .card-body h3 {
		font-size: 100%;
	}
	p, li{
		font-size: 80%;
	}
}


.video-wrapper {
  position: relative;
  padding-bottom: 20%;
  height: 0;
}
