/* https://stackoverflow.com/questions/146106/how-should-i-organize-the-contents-of-my-css-files */

/*
 * html, body
 *
 */

body {
  padding: 0;
  margin: 0;
}

/* full screen map */
html, body, #map {
  height: 100%;
  width: 100%;
}

/*
 * text size 
 *
 */

.h3, h3 {
  font-size: 3vh;
}

.h4, h4 {
  font-size: 2.6vh;
}

.h5, h5 {
  font-size: 2.2vh;
}

.btn {
  font-size: 1.8vh; /* to match user id */
}

input.form-control,
textarea.form-control {
  font-size: 2vh;
}

/*
 * Modal dialog  
 *
 */

.modal-dialog {
  margin-top: 5vh;  /* how far is the modal from the top of the browser window */
  margin-left: 25vw;
}

.modal-dialog .modal-content {
  min-height: 90vh; /* calc(100vh - 100px); */
}

.modal-alert {
  margin-top: 25vh;
  margin-left: 25vw;
}

.modal-alert .modal-content {
  min-height: 25vh;
}

  .modal-title {
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
  }
  
  h5.modal-title {
    font-weight: 700;
  }

  .modal-body p {
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
    font-size: 2vh; /* 18px; */
  }
  
  .modal-content {
    width: 50vw;
  }

#modal_start_survey .modal-dialog .modal-content {
  min-height: 50vh;
}

#modal_contact .modal-dialog {
  margin-left: 30vw;  
}

#modal_contact .modal-dialog .modal-content {
  width: 40vw;
  min-height: 30vh;
  border: 10px solid #d9d9d9;
  background-color: #ffffff;
}

#modal_mandatory .modal-dialog {
  margin-left: 30vw;
}

#modal_mandatory .modal-dialog .modal-content {
  width: 40vw;
  min-height: 30vh;
  border: 10px solid #ffd480;
  background-color: #f2f2f2;
}

.modal-header {
  padding: 1rem 1rem 1rem 2rem;
}

.modal-header-empty {
  border-bottom: none;
}

.modal-body {
  padding: 3vh; /* 2rem; */ 
}

.modal-footer {
  padding: 1rem;
}

div#question-interface {
  margin-top: 3.5vh; /* 30px; */
  margin-bottom: 0; /* 15px; */
}

.btn, #survey_next {
  font-family: 'Open Sans', sans-serif;
  font-weight: 400;
  height: 100%; /* make the height of the button match the height of the user ID alert */
}

#gis_help {
  /* height: 5vh; */
}

select#multi-select {
  margin: 20px auto 50px auto;
  width: 100%;
  font-size: 2vh;
}

option {
  font-family: 'Open Sans', sans-serif;
  font-weight: 400;
}

.btn-multi-choice {
  margin-bottom: 1.3vh; /* 15px; */
  padding: 10px 30px;
  border-radius: 5px !important;
  font-family: 'Open Sans', sans-serif;
  font-weight: 400;
}

.user-id {
  font-family: 'Open Sans', sans-serif;
  font-weight: 400;
  font-size: 1.7vh; /* 16px; */  
}

/* user id code is monospace font */
.user-id-code {
  font-family: 'Source Code Pro', monospace;
  font-size: 2vh;
}

/*
 * Map control panel
 *
 */

#ppgis_control_panel {
  background-color: #FFFFFF;
  color: #000000;
  font-size: 14px;
  font-family: 'Open Sans', sans-serif;
  width: 98.7vw; /* 750px !important; */
  top: 10px;
  /* height: 19vh; */  /* 153px; */
  padding: 0.5vw 1vw;
  border-radius: 6px;
  opacity: 0.9;
}

  #ppgis_control_panel h4 {
    font-weight: 600;
    /* line-height: 3.8vh; */
    vertical-align: bottom;
    margin-bottom: 0px;
    color: #333;
  }

  .ppgis_hidden {
    display: none;
  }

  .progress {
    margin: 15px;
  }

/*
 * CSS for vertical alignment of radio labels
 * https://codepen.io/migli/pen/xGRwje
 */

.btn-group-vertical {
  margin: 0 auto;
} 

.radio-label-vertical-wrapper {
  padding-bottom: 13px;
  position: relative;
  display: inline-block;
  margin-bottom: 20px;
  margin-left: 80px;
}

.radio-label-vertical-wrapper:before {
  content: ' ';
  display: block;
  width: 100%;
  height: 30px;
  background: #fff;
  position: absolute;
  bottom: 0;
}

.radio-label-vertical-wrapper label:not(.radio-label-vertical) {
  display: block;
  width: 100%;
}

.radio-label-vertical {
  position: relative;
  display: inline-block;
  vertical-align: middle;
  padding: 0px 20px;
  text-align: center;
  font-size: 16px;
  cursor: pointer;
  font-family: 'Open Sans', sans-serif;
  font-weight: 400;
}

.radio-label-vertical input {
  position: absolute;
  top: 35px;
  left: 50%;
  margin-left: -10px;
  display: block;
  cursor: pointer;
  height: 25px;
  width: 25px;
}

/*
control panel for GIS questions
*/

#gis_questions {
  background-color: #FFFFFF;
  color: #000000;
  font-size: 1.7vh; /* 14px; */
  font-family: 'Open Sans', sans-serif;
  width: 23vw; /* 280px !important; */
  top: 10px;
  max-height: 90vh;
  padding: 10px 10px 10px 10px;
  border-radius: 6px;
  opacity: 0.9;
}

#gis_msg_content {
  background-color: #FFFFFF;
  color: #000000;
  font-size: 14px;
  font-family: 'Open Sans', sans-serif;
  width: 180px !important;
  top: 10px;
  max-height: 80vh;
  padding: 10px 10px 10px 10px;
  border-radius: 6px;
  opacity: 0.9;
}
 
#gis_questions img {
  margin-left: 20px;
  margin-right: 5px;
  cursor: pointer;
}
  
img.drag {
  height: 3vh;
  width: 3vh;
}
  
.marker_group {
  padding: 0.5vh; /* 5px; */
  cursor: pointer;
  border-width: 2px;
  border-style: solid;
  border-radius: 0.7vh; /* 8px; */
}
  
.marker_unselected {
  border-color: #FFFFFF;
  background-color: #FFFFFF;
}
  
.marker_selected {
  border-color: #009933;
  background-color: #e6ffee;
}

#gis_done,
#reset_map {
  width: 100%;
}

span.badge {
  font-size: 1.7vh; /* 14px; */
}

.badge_tooltip {
  font-size: 1.7vh; /* 14px; */
  font-family: 'Open Sans', sans-serif;  
}

.tooltip-inner {
    max-width: 350px;
    /* If max-width does not work, try using width instead */
    width: 350px;
}

/*
marker popup
*/

#marker_popup {
  font-size: 1.7vh; /* 14px; */
  font-family: 'Open Sans', sans-serif;  
}

#marker_popup p {
  margin: 8px 0px;
}

#marker_popup button {
  width: 100%;
}

#marker_popup textarea {
  resize: none;
}

.leaflet-tooltip {
  font-family: 'Open Sans', sans-serif;
  font-size: 1.5vh;
  background-color: #000000;
  color: #ffffff;
  border: 1px solid #000000;
}

#start_survey {
  font-size: 2.6vh;
}

/*
popover
*/

#mandatory_warning {
  font-size: 1.5vh; /* 14px; */
  font-family: 'Open Sans', sans-serif;   
}
