h1, h2, h3, h4 {
  font-weight: 400;
  color: #303030;
}
b {
  color: #303030;
}
h1 {
  text-align: center;
  font-weight: normal;
  font-size: 300%;
  margin-top: 0.3em;
}
@media (max-width:749px) {
  h1 {
    font-size: 1.5em;
  }
  h3 {
    font-size: 1.3em;
  }
}
a {
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
.modal-footer .share-buttons {
  display: inline-block;
  vertical-align: middle;
  margin-right: 1em;
}
.share-buttons {
  margin-top : 1em;
}
.share-buttons img {
  width: 35px;
  padding: 5px;
  border: 0;
  box-shadow: 0;
  display: inline;
}
.hidden {
  display: none;
}
.warning-zoom-closer {
  display: none;
  color: red;
}
.orig-geoanswer {
  padding: 10px;
  background: #eee;
}
.orig-geoanswer h3 {
  margin: 0px 0px 1em 0px;
}
.geoanswer-comment {
  margin-top: 10px;
}
.geoanswer-comment legend {
  font-size: 1.17em;
  font-weight: bold;
}
.geoanswer-comment textarea {
  width: 100%;
  height: 5em;
}

a img:hover {
  opacity: 0.7;
}
.begin-text {
  margin-right: 50px;
  /*float: right;
  text-align: right;*/
}
.begin-controls {
  float: right;
}
.begin-row {
  padding: 20px 0px;
  width: 100%;
  overflow: hidden;
}
.begin {
  font-size: 250%;
  padding: 10px 25px 7px 25px;
}
.language-controls {
  height: 55px;
}
a.change-language {
  float: right;
  margin: 0em 0em 1em 1em;
  padding: 5px 9px 2px 9px;
  background: #303030;
  color: white;
  border-radius: 3px;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
}
.description {
  text-align: justify;
  margin: 0 auto;
}
.vertical-align-top {
  display: inline-block;
  vertical-align: top;
}
.pageelements {
  margin-right: 20px;
  margin-left: 20px;
}

.control-previous-next {
  /*position: -webkit-sticky;
  position: -moz-sticky;
  position: -ms-sticky;
  position: -o-sticky;
  position: sticky;*/
  bottom: 0px;
  background: #fff;
  margin-right: 0px;
  margin-left: 0px;
  padding: 20px 0px 20px 0px;
  margin-top: 2em;
  font-size: 1.2em;
  font-weight: bold;
  text-align: center;
}
.control-previous-next-shadow {
  /*box-shadow: 0px 5px 30px  rgba(0,0,0,1);
  -webkit-box-shadow: 0px 5px 30px  rgba(0,0,0,1);
  -moz-box-shadow: 0px 5px 30px  rgba(0,0,0,1);*/
}
.control-previous-next a {
  padding: 0.5em 3em;
}
.draw-dialog-text {
  margin-bottom: 5px;
  width: 178px;
}
.marker-drag-dialog,
.line-polygon-dialog {
  display: none;
}
.draw-dialogs {
  text-align:center;
  position: absolute;
  top: 55%;
  left: 50%;
  padding: 5px;
  display: none;
  box-shadow: 3px 3px 5px -1px #888;
  border: 1px solid #888;
  z-index: 1500;
  background: white;
  margin-left: -100px;
}
#menu {
  position: absolute;
  bottom: 22px;
  right: 0px;
  z-index: 11;
}

#cover {
  width: 100vw;
  height: 100vh;
  background: #dee4ea;
  z-index: 10;
  position: absolute;
}

#map {
  top: 0px;
  position: absolute;
  height: 100%;
  width: 100%;
}
.toggle-elements {
  margin-right: 2%;
  display: inline-block;
  vertical-align: top;
}
.hidden-for-client,
.depends-on-answer {
  display : none;
}
.front-page-top img,
.front-page-bottom img {
  max-width: 100%;
}
.photo-label {
  height: 18px;
  padding: 1px;
}
.draw-dialog-buttons {
  font-size: 1.2em;
}
.dropup .pure-button {
  background: white;
  border: 1px solid #999;
  border-radius: 3px;
}
.dropup .far {
  font-size: 2em;
}
a.report-offensive {
  font-size: 0.8em;
}
a.report-offensive span {
  display: none;
}
a.report-offensive:hover span {
  display: inline-block;
  text-decoration: underline;
}

.loading-spinner {
  box-sizing: border-box;
  position: relative;
  top: 0px;
  left: 7px;
  width: 42px;
  height: 42px;
  margin-bottom: 6px;
  margin-right: 0px;
  margin-left: -14px;
  border-radius: 50%;
  border: 8px solid #4a4a4a;
  border-top: 8px solid #fff;
  -webkit-animation: spin 2s linear infinite;
  animation: spin 2s linear infinite;
}

/* Safari */
@-webkit-keyframes spin {
  to { -webkit-transform: rotate(360deg); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}
.reload-icon {
  font-size: 14px; 
  color: #333333;"
}
@media (min-width:750px) {
  .reload-icon {
    font-size: 24px;
  }
}
.privacy-policy {
  margin-bottom: 15px;
}

.page-top {
  margin-top: 1em;
  margin-bottom: 0.5em;
  margin-right: 20px;
  margin-left: 20px;
}
.front-page {
  padding: 0 2% 0 2%;
}
.page {
  position: absolute;
  overflow-y: auto;
  overflow-x: auto;
  background: white;
  z-index: 11;
}
.page-maximized .page-not-top {
  display: block;
}
.page-not-top {
  display: none;
}
.page-maximized .page-name {
  display: inline-block;
  vertical-align: top;
}
.page-name {
  font-size: 2em;
  font-weight: bold;
  color: #303030;
  width: 80%;
  display: none;
}
@media (min-width:750px) {
  .page {
    border: 1px solid #999;
    border-color: rgba(0,0,0,.4);
  }
}

@media (min-width:750px) {
  .page {
    top: 5%;
    max-height: 90%;
    left: 50%;
  }
  .questionnaire-left-align .page {
    left: 10px;
  }
}
@media (min-width:750px) and (max-width:1449px) {
  .page-with-map {
    margin-left: -23%; /* width plus paddings divided by 2 */
  }
  .page-maximized.page-with-map {
    width: 40%;
  }
  .page-without-map {
    margin-left: -33%; /* width plus paddings divided by 2 */
  }
  .page-maximized.page-without-map {
    width: 60%;
  }
}
@media (min-width:1450px) {
  .page-with-map {
    margin-left: -320px; /* width plus paddings divided by 2 */
  }
  .page-maximized.page-with-map {
    width: 580px;
  }
  .page-without-map {
    margin-left: -465px; /* width plus paddings divided by 2 */
  }
  .page-maximized.page-without-map {
    width: 870px;
  }
}
@media (min-width:750px) {
  .questionnaire-layout-left-narrow .page {
    left: 10px;
  }
  .questionnaire-layout-left-narrow .page-without-map,
  .questionnaire-layout-left-narrow .page-with-map {
    margin-left: 0;
  }
  .questionnaire-layout-left-narrow .page-maximized.page-without-map {
    width: 660px;
  }
  .questionnaire-layout-left-narrow .page-maximized.page-with-map {
    width: 440px;
  }
}
@media (max-width:749px) {
  .front-page {
    padding: 0 2% 0 2%;
    width: 96% !important;
  }
  .questionnaire .page-maximized {
    height:100%;
    width:100%;
  }
  .questionnaire .page {
    z-index: 1100;
    top: 0;
  }
  .begin-text {
    width: 30%;
  }
}

.modal {
  z-index: 2000;
}
.modal-content {
  overflow: auto;
}
.modal-footer button {
  font-size: 1.5em;
}

.modal-footer {
  background-color: #fff;
  /*position: -webkit-sticky;
  position: -moz-sticky;
  position: -ms-sticky;
  position: -o-sticky;
  position: sticky;*/
  bottom: 0;
}

@media (min-width: 768px) {
  .modal-open .modal {
    overflow-y: hidden;
  }
  .modal-dialog {
    height: 100%;
  }
  .information-modal {
    width: 750px;
  }
  .information-modal-header {
    display: none;
  }

  .modal-content {
    /* max-height: calc(100% - 40px); This is what I want but it does not work in IE. See client/views/popup-geoanswer.coffee */
    overflow-y: auto;
  }
}

.modal-header .close {
  font-size: 3em;
  margin-top: -0.3em;
  opacity: 0.4;
}
.modal-header .close:hover {
  opacity: 0.9;
}

.leaflet-right {
  z-index: 9;
}
.leaflet-right:hover {
  z-index: 11;
}
.leaflet-control-locate a {
  text-align: center;
  padding-top: 3px;
}

.leaflet-control-layers,
.leaflet-control-geocoder,
.leaflet-bar {
  border-radius: 0px;
  -webkit-border-radius: 0px;
  border: 1px solid #999;
  border-color: rgba(0,0,0,.4);
  box-shadow: none;
}
.leaflet-bar.leaflet-control-zoom {
  border: 2px solid #999;
  border-color: rgba(0,0,0,.7);
}
.leaflet-bar.leaflet-control-zoom a:active, .leaflet-bar.leaflet-control-zoom a:hover {
  background-color: #ddd;
}
.leaflet-top.leaflet-right .pageelement-container {
  padding: 6px;
  background: white;
}
.leaflet-control-layers-list label:hover,
.leaflet-control-layers-list input:hover {
  cursor: pointer;
  background: #eee;
}
