html, body {
  font-family: 'Roboto', 'Helvetica', sans-serif;
  background: #ECEFF1;
  color: rgba(0,0,0,0.87);
}

main, #places-card {
  height: 100%;
  padding-bottom: 0;
}

a {
  color: rgb(3,155,229);
}

h4 {
  font-family: 'Archive';
  font-size: 32px;
}
@font-face {
  font-family: 'Archive';
  src: url('fonts/Archive.eot');
  src: url('fonts/Archive.eot?#iefix') format('embedded-opentype'),
    url('fonts/Archive.woff') format('woff'),
    url('fonts/Archive.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

.mdl-layout__header-row span {
  margin-left: 15px;
  margin-top: 17px;
}
.mdl-grid {
  max-width: 1024px;
  margin: auto;
}
.material-icons {
  font-size: 36px;
  top: 8px;
  position: relative;
}
.mdl-layout__header-row {
  padding: 0;
  margin: 0 auto;
}
.mdl-card__supporting-text {
  width: auto;
  height: 100%;
  padding-top: 0;
}
#visited, #tovisit {
  overflow-y: auto;
  margin-bottom: 10px;
  height: calc(100% - 90px);
  flex: 1 1 auto;
  flex-direction: column;
  display: flex;
}
#visited-filler, #tovisit-filler {
  flex-grow: 1;
}

.places-container:first-of-type {
  border-top-width: 0;
}
.places-container {
  display: block;
  margin-top: 10px;
  border-top: 1px solid #f3f3f3;
  padding-top: 10px;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}
.places-container.visible {
  opacity: 1;
}
.places-container .pic {
  background-image: url('/images/profile_placeholder.png');
  background-repeat: no-repeat;
  width: 30px;
  height: 30px;
  background-size: 30px;
  border-radius: 20px;
}
.places-container .check {
  margin-top: -1px;
  width: 30px;
  height: 30px;
  background-size: 30px;
  border-radius: 20px;
}
.places-container .spacing {
  display: table-cell;
  vertical-align: top;
}
.places-container .place {
  display: table-cell;
  width: calc(100% - 40px);
  padding: 5px 0 5px 10px;
}
.places-container .name {
  display: inline-block;
  width: 100%;
  padding-left: 40px;
  color: #bbb;
  font-style: italic;
  font-size: 12px;
  box-sizing: border-box;
}

#placeTitle {
  text-align: center;
  font-size: 16px;
  margin: 8px;
}

.mdl-card {
  min-height: 0;
}
.mdl-card {
  background: linear-gradient(white, #f9f9f9);
  justify-content: space-between;
}
#message-form {
  display: flex;
  flex-direction: row;
  width: 100%;
  float: left;
}
#image-form {
  display: flex;
  flex-direction: row;
  width: 48px;
  float: right;
}
#message-form .mdl-textfield {
  width: 70%;
}
#message-form button {
  vertical-align: center;
  margin-top: 15px;
}
#user-container {
  position: absolute;
  display: flex;
  flex-direction: row;
  top: 22px;
  width: 100%;
  right: 0;
  padding-left: 10px;
  justify-content: flex-end;
  padding-right: 10px;
}
#user-container #user-pic {
  top: -3px;
  position: relative;
  display: inline-block;
  background-image: url('/images/profile_placeholder.png');
  background-repeat: no-repeat;
  width: 40px;
  height: 40px;
  background-size: 40px;
  border-radius: 20px;
}
#user-container #user-name {
  font-size: 16px;
  line-height: 36px;
  padding-right: 10px;
  padding-left: 20px;
}
#image-form #submitImage {
  width: auto;
  padding: 0 6px 0 1px;
  min-width: 0;
}
#image-form #submitImage .material-icons {
  top: -1px;
}
.message img {
  max-width: 300px;
  max-height: 200px;
}
#mediaCapture {
  display: none;
}
@media screen and (max-width: 610px) {
  header {
    height: 113px;
    padding-bottom: 80px !important;
  }
  #user-container {
    top: 72px;
    background-color: rgb(3,155,229);
    height: 38px;
    padding-top: 3px;
    padding-right: 2px;
  }
  #user-container #user-pic {
    top: 2px;
    width: 33px;
    height: 33px;
    background-size: 33px;
  }
}
.mdl-textfield__label:after {
  background-color: #0288D1;
}
.mdl-textfield--floating-label.is-focused .mdl-textfield__label {
  color: #0288D1;
}
.mdl-button .material-icons {
  top: -1px;
  margin-right: 5px;
}

#title {
  max-width: 700px;
  margin: 40px auto;
  box-shadow: 0 1px 3px 0 rgba(0,0,0,0.2),0 1px 1px 0 rgba(0,0,0,0.14),0 2px 1px -1px rgba(0,0,0,0.12);
  border-radius: 2px;
  background: white;
  padding: 16px 24px;
}

#title h1 {
  font-size: 42px;
  font-weight: 500;
  text-align: center;
  margin: 0 0 16px;
}
#title h5 {
  text-align: center;
}

#content-window {
  max-width: 500px;
  margin: 40px auto;
  box-shadow: 0 1px 3px 0 rgba(0,0,0,0.2),0 1px 1px 0 rgba(0,0,0,0.14),0 2px 1px -1px rgba(0,0,0,0.12);
  border-radius: 2px;
  background: white;
  padding: 16px 24px;
}
#content-window h1 {
  font-size: 22px;
  font-weight: 500;
  text-align: center;
  margin: 0 0 16px;
}
#content-window p {
  font-weight: 300;
  line-height: 150%;
}
#content-window ul {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  text-align: center;
}
#content-window li a {
  display: inline-block;
  padding: 8px;
  text-transform: uppercase;
  text-decoration: none;
  font-weight: 500;
  background: rgb(3,155,229);
  color: white;
  border: 1px solid rgb(3,155,229);
  border-radius: 3px;
  font-size: 14px;
  box-shadow: 0 2px 5px 0 rgba(0,0,0,.26);
}

#map {
  width: 100%;
  height: 400px;
}

footer {
  text-align: center;
}
