body {
  margin: 0px;
  padding: 0px;
  background: #fff;
}

.logo-bar {
  position: absolute;
  top: 0px;
  width: 100%;
  height: 39px;
  background: #dcfaa8;
  border-bottom: 1px solid #bade6b;
}

.chatapp {
  position: absolute;
  font-family: Helvetica, sans-serif;
  width: 960px;
  left: 50%;
  margin-left: -480px;
  top: 0px;
  bottom: 0px;
}

#logo {
  position: absolute;
  left: 0;
  width: 185px;
  text-align: center;
  font-weight: bold;
  letter-spacing: 1px;
  color: #444;
  font-family: 'Montserrat', sans-serif;
  text-transform: uppercase;
}

#logo img {
  margin-bottom: 8px;
}

.menu-section {
  position: absolute;
  left: 0px;
  width: 195px;
  background: #eee;
  top: 132px;
  bottom: 0px;
  overflow: auto;
  font-size: 13px;
  border-top-left-radius: 5px;
  border-top-right-radius: 5px;
}

.menu-section span.section {
  text-transform: uppercase;
  color: #444;
  font-weight: bold;
  text-shadow: 0px 1px #fff;
  display: block;
  margin: 10px 5px 5px 5px;
}

.menu-section .load-more {
  width: 90%;
  padding: 6px;
  margin: 5%;
}

#header {
  position: absolute;
  left: 200px;
  top: 0px;
  height: 40px;
  line-height: 40px;
  right: 0px;
}

.lodge-name {
  font-family: 'Montserrat', sans-serif;
  display: inline-block;
}

.lodge-name .alternate {
  font-size: 9pt;
  color: #666;
  margin-left: 5px;
}

.user-menu {
  position: absolute;
  right: 0px;
  top: 0px;
}

.user-menu .avatar {
  width: 32px;
  height: 32px;
  vertical-align: middle;
}

.user-menu ul {
  background: #dcfaa8;
  border-right: 1px solid #bade6b;
  border-left: 1px solid #bade6b;
  border-bottom: 1px solid #bade6b;
  display: none;
  position: absolute;
  z-index: 100;
  line-height: normal;
  padding: 0px;
  margin: 0px;
  right: 0px;
  top: 39px;
  width: 100px;
  list-style: none;
}

.user-menu:hover ul, .user-menu:focus ul {
  display: block;
}

.user-menu ul li {
  padding: 10px;
}

#content {
  position: absolute;
  background: #fff;
  left: 200px;
  top: 40px;
  bottom: 0px;
  right: 0px;
  overflow: hidden;
}

.menu-list, .event-list {
  margin: 0px;
  padding: 0px;
}

.past-event-list {
  opacity: 0.7;
}

.message-list {
  position: absolute;
  left: 0px;
  right: 200px;
  top: 0px;
  bottom: 50px;
  margin: 0px;
  padding: 5px;
  overflow-x: hidden;
  overflow-y: scroll;
}

.sidebar {
  position: absolute;
  right: 0px;
  top: 0px;
  bottom: 0px;
  width: 190px;
  padding: 5px;
  margin-top: 10px;
  overflow-x: hidden;
  overflow-y: auto;
}

.sidebar div {
  padding: 8px;
  margin-bottom: 10px;
  border-radius: 5px;
  background: #eee;
}

.message-list-item, .event-list-item, .menu-list li {
  list-style: none;
  padding: 12px 14px 14px;
}

.message-list-item.presence .message-text {
  font-style: italic;
  color: #444;
}

.message-list-item {
  border-bottom: 1px solid #ddd;
  min-height: 44px;
}

.event-messages .message-list-item.initial-message {
  border-bottom: none;
}

.event-list-item, .menu-list li {
  border-bottom: 1px solid #ccc;
  cursor: pointer;
}

.event-list:hover .event-list-item:hover, .menu-list li:hover {
  background-color: #fdfffa;
}

.event-list-item.active, .menu-list li.active,
.event-list:hover .event-list-item.active,
.event-list:hover .event-list-item.active:hover {
  background-color: #f9fff0;
  cursor: default;
}

.menu-list li a {
  color: #547805;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  text-decoration: none;
  font-weight: bold;
}

.event-name {
  color: #547805;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  margin: 0;
}

.message-list-item {
  clear: both;
}

.message-list-item .avatar {
  float: left;
  width: 48px;
  height: 48px;
  margin-right: 10px;
}

.message-author-name {
  color: #547805;
  font-size: 13px;
  margin: 0;
}

.message-time {
  color: #b3b3b3;
  float: right;
  font-size: 12px;
}

.message-text {
  font-size: 14px;
  padding-top: 10px;
}

.message-composer textarea {
  box-sizing: border-box;
  font-family: inherit;
  font-size: 14px;
  width: 100%;
  resize: none;
}

.message-section .message-composer {
  position: absolute;
  left: 0px;
  right: 200px;
  height: 40px;
  bottom: 0px;
  padding: 5px;
}

.message-section .load-more {
  width: 94%;
  margin: 0px 3%;
  padding: 5px;
}

.new-event-section {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: auto;
}

.event-composer {
  background: #eee;
  margin-bottom: 15px;
  padding: 5px;
}

.event-composer label {
  display: block;
}

.event-composer input, .event-composer textarea {
  display: block;
  margin: 10px 0;
}

input.venues-search {
  width: 400px;
}

ul.venues-suggestions {
  width: 400px;
  list-style: none;
  padding-left: 0;
}

li.venues-suggestion {
  padding: 3px 0;
  clear: both;
}

.venues-suggestion:hover {
  background: #ddd;
  cursor: pointer;
}

.venues-suggestion .category-icon {
  float: left;
}

.venues-suggestion .name {
  display: block;
  font-size: 12pt;
}

.venues-suggestion .location {
  display: block;
  font-size: 10pt;
  color: #666;
}

.clearfix {
  overflow: auto;
}

.avatar {
  width: 64px;
  height: 64px;
}

.email-notification-settings p span {
  color: #666;
  font-size: smaller;
  display: block;
  margin-left: 20px;
}

.edit-event {
  height: 420px;
  margin-top: -210px;
}

.change-rsvp {
  padding-top: 0px;
  text-align: center;
}

.change-rsvp a {
  display: inline-block;
  margin: 5px;
  padding: 7px;
  color: #fff;
  background-color: #9bc964;
  border: none;
  border-radius: 5px;
  box-shadow: 0 3px #4d6d27;
  min-width: 120px;
  text-decoration: none;
}

.change-rsvp a:hover,
.change-rsvp a.hover {
  background-color: #83b941;
}

.change-rsvp a:active,
.change-rsvp a.active {
  background-color: #83b941;
  box-shadow: 0 1px #4d6d27;
  transform: translateY(2px);
}

.event-time-location {
  margin: 3px 0px;
}

.latest-message {
  margin-top: 5px;
  color: #666;
}

.modal.event-map {
  top: 10%;
  left: 10%;
  right: 10%;
  bottom: 10%;
  width: auto;
  height: auto;
  margin-left: 0;
  margin-top: 0;
}

#event-map-container {
  position: absolute;
  top: 50px;
  left: 10px;
  right: 10px;
  bottom: 10px;
}

.watch-unwatch button {
  display: block;
  margin-bottom: 3px;
}

.watch-unwatch {
  font-size: 10pt;
  color: #666;
}

/* Header */

.lodge-quickswitcher {
  position: absolute;
  display: inline-block;
  margin-left: 10px;
}

.lodge-quickswitcher ul {
  background: #dcfaa8;
  border-right: 1px solid #bade6b;
  border-left: 1px solid #bade6b;
  border-bottom: 1px solid #bade6b;
  display: none;
  position: relative;
  z-index: 100;
  line-height: normal;
  padding: 0px;
  margin: 0px;
  width: 150px;
  list-style: none;
  top: -1px;
}

.lodge-quickswitcher:hover ul, .lodge-quickswitcher:focus ul {
  display: block;
}

.lodge-quickswitcher ul li {
  padding: 5px;
}

.lodge-quickswitcher li.lodge-switcher {
  margin-top: 5px;
  border-top: 1px solid #bade6b;
}

.lodge-quickswitcher a {
  text-decoration: none;
  color: #333;
}

/* Welcome page */

.welcome-image {
  background: url('/images/welcome.jpg');
  background-size: cover;
  position: relative;
  height: 300px;
}

#welcome-page #welcome-head.text {
  width: 100%;
  left: 50%;
  padding: 0;
  margin: 0;
  position: absolute;
  transform: translateX(-50%);
  top: 0;
}

#welcome-head #logo {
  position: absolute;
  top: 0;
  left: 0;
  width: 80px;
  text-align: center;
  font-weight: bold;
  letter-spacing: 1px;
  color: #444;
  font-family: 'Montserrat', sans-serif;
  text-transform: uppercase;
  z-index: 100;
}

#welcome-head #appstore-badge {
  position: absolute;
  top: 0;
  right: 0;
  width: 135px;
  margin: 20px 0;
}

#welcome-page .text {
  color: #444;
  max-width: 800px;
  margin: 20px auto;
  padding: 0 20px;
  line-height: 160%;
  font-size: 14pt;
  font-family: Helvetica, sans-serif;
}

.photos {
  padding: 30px 0;
  background: #e8e8d0;
  text-align: center;
}

.photos div {
  display: inline-block;
  height: 240px;
  width: 320px;
  margin: 10px;
  overflow: hidden;
}

.features {
  margin-left: 100px;
}

.features img {
  float: left;
  clear: both;
  margin: 0 20px 20px 0;
}

#appstore-badge-lower {
  margin: 60px 0;
  text-align: center;
}

.web-app-links {
  background: #e8e8d0;
  text-align: center;
  font-family: Helvetica, sans-serif;
  margin-bottom: 20px;
  padding: 20px;
}

.web-app-links a {
  font-size: 21pt;
  color: #000;
  display: inline-block;
  margin: 20px;
}

/* Log in / sign up */

#login {
  background-color: #d6f99a;
  border: 1px solid #bade6b;
  border-radius: 7px;
  width: 300px;
  padding: 20px;
  margin-top: 20px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  font-family: Helvetica, sans-serif;
}

.frontpage-banner {
  position: relative;
  text-align: center;
  color: #444;
  font-weight: bold;
  letter-spacing: 1px;
  font-family: 'Montserrat', sans-serif;
  text-transform: uppercase;
}

.frontpage-banner img {
  margin-bottom: 10px;
}

#login a {
  color: #000;
}

#login .smaller {
  font-size: 10pt;
}

form.log-in-page label {
  display: none;
}

form.log-in-page.forgot-password label {
  display: inherit;
  text-align: left;
}

form.log-in-page input[type=text], form.log-in-page input[type=password],
form.log-in-page input[type=email] {
  font-size: 14pt;
  padding: 3px;
  width: 100%;
}

form.log-in-page input[type=submit] {
  font-size: 14pt;
  padding: 3px;
}

/* Lodge waiting for more members */

.waiting-for-members {
  margin-right: 200px;
}

.member-countdown {
  font-size: 20pt;
  text-align: center;
}

form.schwag-address textarea {
  display: block;
  width: 60%;
  height: 100px;
}

/* Lounge */

.here-now ul {
  overflow: auto;
  list-style: none;
  padding: 5px;
  margin: 0;
}

.here-now li img.avatar {
  width: 32px;
  height: 32px;
  float: left;
  margin-right: 3px;
}

/* Members section */

.member-section .member-list {
  list-style: none;
  position: absolute;
  left: 0px;
  right: 200px;
  top: 0px;
  bottom: 0px;
  margin: 0px;
  padding: 10px;
  overflow-x: hidden;
  overflow-y: scroll;
}

.member-section .member-list li {
  clear: both;
}

.member-section .member-list img.avatar {
  float: left;
  margin: 0px 10px 10px 0px;
}

.member-section .member-list .username {
  display: block;
  font-weight: bold;
}

h1, h2, h3 {
  font-family: 'Montserrat', sans-serif;
}

h4 {
  margin: 5px 0;
}

/* About section */

.about-section .lodge-map {
  float: right;
  margin-left: 10px;
  margin-right: 220px;
  margin-bottom: 10px;
}

/* Event */

.event-heading {
  font-family: 'Montserrat', sans-serif;
}

.sidebar .map img {
  margin-left: -4px;
}

.rsvps h3 {
  margin: 10px 0px;
}

.rsvps ul {
  overflow: auto;
  list-style: none;
  padding: 5px;
  margin: 0;
}

.rsvps li img.avatar {
  width: 32px;
  height: 32px;
  float: left;
  margin-right: 3px;
}

/* Modals */

.modal {
  position: absolute;
  background-color: #eee;
  top: 50%;
  left: 50%;
  width: 400px;
  height: 300px;
  margin-left: -200px;
  margin-top: -150px;
  padding: 20px;
  border: 1px solid #ccc;
  z-index: 20;
  overflow: scroll;
}

.modal-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
  background-color: rgba(0,0,0,0.5);
}

.modal .cancel {
  position: absolute;
  top: 0;
  right: 0;
  padding: 3px;
  color: #666;
  font-size: 10pt;
  background: none;
  text-decoration: none;
}

.modal h2, .modal h3 {
  margin-top: 0;
}

.modal.lodge-finder .btn {
  display: inline-block;
  margin: 5px;
  padding: 7px;
  color: #fff;
  background-color: #9bc964;
  border: none;
  border-radius: 5px;
  box-shadow: 0 3px #4d6d27;
  min-width: 50px;
  text-decoration: none;
  text-align: center;
}

.modal.lodge-finder .btn:hover {
  background-color: #83b941;
}

.modal.lodge-finder .btn:active {
  background-color: #83b941;
  box-shadow: 0 1px #4d6d27;
  transform: translateY(2px);
}

.modal.lodge-finder .back {
  text-decoration: none;
  color: #666;
}

.modal.lodge-finder a {
  text-decoration: none;
  color: #000;
  font-size: 14pt;
}

.modal.lodge-finder a.cancel {
  font-size: 10pt;
}

.mobile-only {
  display: none;
}

.back-link a {
  text-decoration: none;
  color: #333;
}

/* Mobile */

@media only screen and (max-device-width: 480px) {
  .mobile-only {
    display: inherit;
  }

  .clickable {
    cursor: pointer;
  }

  .chatapp {
    width: auto;
    left: 0;
    right: 0;
    margin-left: 0;
  }

  .logo-bar {
    position: fixed;
    z-index: 200;
  }

  #logo {
    display: none;
  }

  #header {
    position: fixed;
    left: 0;
    z-index: 201;
  }

  #content {
    margin-top: 40px;
    position: static;
    left: 0px;
  }

  .sidebar {
    position: static;
    width: auto;
  }

  .menu-section {
    display: none;
  }

  .modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: auto;
    height: auto;
    margin: 0px;
    overflow: auto;
    z-index: 300;
  }

  .modal .cancel {
    font-size: 14pt;
  }

  .modal.lodge-finder a.cancel {
    font-size: 14pt;
  }

  /* Menu */

  .route-no-lodge-content .menu-section {
    position: static;
    width: 100%;
    top: 40px;
    display: block;
  }

  .route-no-lodge-content #content {
    display: none;
  }

  /* Lounge */

  .message-list {
    position: static;
    right: auto;
    bottom: auto;
  }

  .message-section .message-composer {
    position: static;
  }

  /* Log in / Sign up */

  .frontpage-banner {
    z-index: 210;
  }

  #login {
    width: 80%;
  }
}
