body{
  height: auto;
}

textarea {
  resize: vertical !important;
}

#topmenu{
  height: 50px;
  width: 100%;
  padding: 0 20px;
  position: fixed;
  top: 0;
  background-color: #333;
  display: flex;
  align-items: center;
  box-sizing: border-box;
  z-index: 999999;
}

#topmenu h3 a{
  color: #eee;
}

#topmenu h3 a:hover{
  text-decoration: underline;
  color: white;
}

#topmenu h3{
  line-height: 50px;
  color: white;
  margin: 0;
}

body.gradient{
  background: -moz-linear-gradient(top, rgba(51,34,24,1) 0%, rgba(51,34,24,0) 300px);
  background: -webkit-linear-gradient(top, rgba(51,34,24,1) 0%,rgba(51,34,24,0) 300px);
}

.ui.grid > .banner.row{
  padding: 15rem 0 5rem 0;
  color: white;
  background-image: url(../img/img-01.jpg);
  background-size: cover;
}

.ui.login.container{
  max-width: 900px !important;
}

.intro-text.column{
  margin-top: -7.5rem !important;
}

.login h1.header{
  color: white;
}

.login h3.header{
  color: #F7941E;
}

.banner.row .column{
  padding: 0 2.5rem !important;
}

.logo.column{
  display:flex !important;
  justify-content:center;
  align-items: center;
}

.main.logo{
  align-items:flex-end;
}

.logo img{
  max-width: 80px;
  max-height: 80px;
}

#form{
  padding-top: 80px;
}

a.reset{
  display: block;
  float: right;
  line-height: 36px;
}

#sidebar{
  padding: 30px;
  background-color: #444;
  color: white !important;
}

#sidebar .sticky{
  padding-top: 80px;
}

#sidebar *{
  color: white;
  
}

#nav > *{
  margin: 20px 0;
  padding-left: 10px;
}

.map{
  width: 100%;
  height: 500px;
  margin-bottom: 1em;
}

.legend{
  margin: 10px 0 0 10px;
  font-weight: bold;
}

.legend .label{
  border: 2px solid white;
}

.ui.sidenote{
  color: #666;
  position: absolute;
  padding: 0 2em 1em 0;
  margin: 0 1em 0 -1em;
}

#sticky_div {
  position: fixed;
  top: 50px;
  padding-left: calc(1rem + 7px);
  padding-top: 5px;
  padding-bottom: 5px;
  padding-right: 10px;
  margin-left: -1rem;
  vertical-align: center;
  height: 50px;
  width: calc(100% + 1rem);
  background: white;
  z-index:1100;
  -webkit-box-shadow: 0 2px 6px 0 rgba(0,0,0,0.25);
  box-shadow: 0 2px 6px 0 rgba(0,0,0,0.25);
}

#sticky_div_content .form-section--header-text {
  position: absolute;
  left: 84px;
  top: 10px;
}

.spreadsheet.button{
  position: absolute;
  right: 15px;
  top: 100px;
}

.ui.header.form-section {
  position: relative;
  background: white;
}
.header--to-front {
  z-index: 1200;
}

.hidden {
  visibility: hidden;
}

.comment .avatar .icon{
  visibility: hidden;
  font-size: 2em;
}

.comment .ui.reply.form{
  display: none;
}

#measurements{
  display: none;
}

tbody + tbody{
  border-top: 2px solid #666;
}

#measurements .fields{
  margin: 0;
}

#menu_button {
  position: fixed;
  right: 15px;
  top: 5px;
  width:40px;
  height: 40px;
  z-index: 3000;
  visibility: hidden;
  background: white;
}

#menu_icon {
  pointer-events: none;
}

#uploadedFiles .download.button, #uploadedFiles .delete.button{
  position: relative;
  float: right;
}

#uploadedFiles img{
  max-width: 100%;
  margin-bottom: 15px;
}

#uploadedFiles .title span{
  font-weight: normal;
}

#accordion_title0, #accordion_content0{
  display: none;
}

.stakeholder.segment{
  overflow: hidden;
}

.delete.label{
  cursor: pointer;
}

#sidebar__topmenu-buttons {
  display: none;
}

#sidebar__topmenu-buttons .button {
  margin-bottom: 5px;
}

#form_sticky {
  position: fixed;
  top: 0px;
}

@media (max-width: 767px) {

  #sticky_div {
    padding-top: 14px;
    left: 0px;
  }

  #sticky_div_content .form-section--header-text {
    margin-top: 6px;
    margin-left: -2px;
  }

  #sticky_div_content, .ui.header.form-section {
    font-size: 16px;
  }

  .ui.header.form-section {
    margin-left: -4px;
  }

  #sidebar {
    width: 250px !important;
  }

  #form{
    padding-top: 80px !important;
  }

  body.gradient{
    background: white;
    padding-top: 1rem;
  }

  .banner.row{
    background-image: none !important;
    color: black !important;
  }

  .login h1.header, .login h3.header{
    color: black;
  }
}

@media (min-width: 768px) and (max-width: 991px) {

  #sidebar {
    width: 300px !important;
  }
  .ui.cards {
    padding-left: 15px;
   }

  .ui.header.form-section {
    margin-left: 10px;
  }
}

@media (max-width: 991px) {

  #form_sticky {
    position: relative;
  }

  #sidebar__topmenu-buttons {
    display: inline;
  }

  #sticky_div {
    margin-left: calc(10px + -1rem);
  }
  
  #sticky_div_content .form-section--header-text {
    position: absolute;
    left: 84px;
    top: 10px;
  }

  #menu_header {
    font-size: 18px !important;
  }
  .ui.sub.header {
    font-size: 16px !important;
  }
  #sidebar {
    position: fixed;
    right: 0px;
    top: 50px;
    z-index: 1300;
    visibility: hidden; 
  }

  #menu_button {
    visibility: visible;
  }
  #sidenotes {
    display: none;
    position: absolute;
  }
  .sub_header_description, .ui.sub.header {
    pointer-events: none;
  }

  #topmenu__buttons {
    display: none;
  }
}

@media (min-width: 992px) and (max-width: 1200px) {
  #nav {
    max-width: 180px !important;
  }
  #menu_header {
    font-size: 24px !important;
  }

  /* .measurement_input{
    width: 150px !important;
  } */
}

form + .ui.button{
  margin-top: 1em;
}

.accordion_title_name {
  font-weight: bold;
}

.map_container {
  position: relative;
}

.edit_button {
  position: absolute;
  right: 5px;
  top: 5px;
  /* width: 50px;
  height: 50px; */
  background: rgb(255,255,255);
  cursor: pointer;
  padding-top: 3px;
  padding-bottom: 3px;
  padding-left: 8px;
  padding-right: 8px;
  pointer-events: auto;
  border-radius: 3px;
  border-color:  black;
  border-width: 1px;
  border-style: solid;
  color: black;
}

.edit_button:hover {
  background: rgb(240,240,240);
}

/* .edit_button--clicked {
  color: grey;
  pointer-events: none;
} */

.edit_button.disabled {
  pointer-events: none;
  opacity: 0.65;
}

#kp_id, 
.ui.selection.compact.sample_type,
.ui.selection.compact.media_id,
.ui.selection.compact.path_id,
.ui.selection.icon.labeled.dropdown.data_source_type,
.ui.selection.icon.labeled.dropdown.test_data_certainty
 {
  margin-left: 0px;
}

.calendar--disabled {
  pointer-events: none;
}