html {
    min-height : 100%;
    background-color: #333;
}

body {
    font-family: "Helvetica", sans-serif;
    overflow: auto;
    display: flex;
    flex-direction: row;
    color: #333;
    justify-content: center;
    background-image: url("../img/Griebnitzsee_2009_2560.jpg");
    background-repeat: no-repeat;
    background-position: center 0px;
    background-attachment: fixed;
    min-height: 100%;
    margin: 0;
    font-size: 16px;
}

h1 {
    margin-top: 20px;
    margin-left: auto;
    margin-right: auto;
    max-width: 23em;
    text-align: center;
}

h2, h3 {
   color: #333;
   margin-bottom: 0;
}

p {
   margin-bottom: 0;
}

a {
    color: #333;
}

a:hover {
    color: #97312f; 
}

#logo {
    margin: 15px 30px 15px 0;
    width: 200px;
    height: 140px;
}

#content {
    padding: 0;
    max-width: 1200px;
    background-color: rgba(256,256,256,0.9);
}

nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 16em;
    height: 100%;
    background-color: rgba(33,33,33,0.9);
    color: #ccc;
    display: flex;
    flex-direction: column;
    padding: 3em 1em 0 1em;
    z-index: 1;
}

.navcontrol {
    position: fixed;
    top: 0;
    right: 0;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.navcontrol:hover {
    color: #fff;
}


nav a {
    text-decoration: none;
    color: #ccc;
    font-weight: bold;
    font-size: smaller;
    display: block;
    margin: 15px;
}

nav a:hover {
    color: #fff;
    text-decoration: underline;
}

#opennav {
    color: #97312f;
}

section {
    padding: 1.5em;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    margin: 0;
}

.h1sub {
    font-size: smaller;
}

#header {
    display: flex;
    flex-direction: row;
    margin-bottom: 15px;
}

ul.nomarker li {
    list-style-type: none;
}

ul.wide {
    padding: 0;
}

ul.wide li {
    padding: 8px 15px;
    border-color: #ccc;
    border-style: solid;
    border-width: 1px 0 0 0;
}

ul.wide li:first-child {
    border: 0;
}

ul.program li {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
}

.programtime {
    width: 9em;
    flex-shrink: 0;
}

.programentry {
    min-width: 9em;
}

.icons {
    margin-left: 0.5em;
    position: relative;
    bottom: 0.1em;
    color: #97312f;
    z-index: 0;
}

#footer {
    background-color: #333;
    font-size: 0.9em;
    color: #aaa;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    flex-wrap: wrap;
    z-index: 2;
    position: relative;
}

#footer a {
    color: #aaa;
}

#footer a:hover {
    color: #eee;
}

.contact {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}

.contact p {
    margin: 0 2em 1em 0;
    min-width: 13em;
}

.footer_section {
    padding: 15px;
}

.subsection-wrapper {
    display: flex;
    flex-direction: row;
    justify-content: center;
}

.subsection {
    margin-left: 2em;
    flex-grow: 1;
}

.subsection:first-child {
    margin-left: 0 ;
}

.half {
    width: 45%;
}

.subsection h2 {
    margin-top: 2em;
}

.subsection h2:first-child {
    margin-top: 30px;
}

.talk-title {
  font-style: italic;
  margin-left: 1em;
}

#theform {
  display : flex;
  flex-direction : column;
  flex-wrap : wrap;
}

.inputblock {
  display : flex;
  flex-direction : row;
  flex-wrap : wrap;
  margin: auto;
  padding: 1em;
}

.inputfield {
  display : flex;
  flex-direction : column;
  flex-wrap : wrap;
  margin : auto;
  padding : 1em 1em 1.5em 1em;
  position : relative;
}

#captchaWrap {
  display : flex;
  flex-direction : row;
  flex-wrap : wrap;
  margin : auto;
  padding : 1em 1em 1.5em 1em;
  position : relative;
}

#captchaText {
  padding : 0.5em 0.3em 0.3em 0.3em;
}

#theform #captchaInput {
  width : 3em;
}

#theform input[type=text] {
  width : 20em;
}

#theform input[type=reset] {
  padding : 0.6em;
}

#theform input[type=submit] {
  padding : 0.6em;
}

#theform label.error {
  position: absolute;
  color: #cc0000;
  left: 2em;
  bottom: 0;
}

#theform #affiliation {
  width : 43em;
}

#venue_wrapper {
  display : flex;
  flex-direction : row;
  flex-wrap : wrap;
}

#venue_left {
    width: 32em;
    margin: 0 0 2em 2em;
}

#venue_img1 img{
    width: 32em;
}

#venue_img2 img{
    width: 32em;
}

#city_wrapper {
  display : flex;
  flex-direction : row;
  flex-wrap : wrap;
  margin-top : 1em;
}
.city_img img{
    width: 32em;
}

figure {
    margin: 0 0 1em 1em;
}

figcaption {
    padding-right: 1em; 
    font-size: x-small;
}


@media (max-width: 54em) {
    html {
	background-color: #aaa;
    }
    body {
	color: #333;
	background-image: none;
    }
    .subsection-wrapper {
       flex-direction: column;
    }
    .subsection {
        margin-left: 0;
        width: 100%;
    }
    #header {
	flex-wrap: wrap;
	justify-content: center;
	padding-right: 0;
    }
    ul.wide li {
	padding-left: 2px;
	padding-right: 2px;
    }
    #venue_left {
	width: 90%;
	margin: 0 0 1em 0;
    }
    #venue_img1 img {
	width: 90%;
    }

    #venue_img2 img {
	width: 90%;
    }

    .city_img img {
	width: 90%;
    }
    ul.program li {
	flex-direction: column;
    }
    .wideonly {
	display : none;
    }
    span.breakwide::after {
       content: "- ";
    }
}

@media (max-width: 43em) {
    #theform #affiliation {
      width : 20em;
    }
}

