body.modal-open {
  overflow: hidden;
}

.modal {
  position: fixed; /* Stay in place */
  z-index: 10; /* Sit on top */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100vh; /* Full height */
  overflow-y: scroll; /* Enable scroll if needed */
  background-color: rgb(0,0,0); /* Fallback color */
  background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

.modal:not(.open) {
  display: none;
}

/* Modal Content */
.modal-content {
  background-color: #fefefe;
  margin: auto;
  margin-top: 2vh;
  padding-top: 20px;
  border: 1px solid #888;
  width: 92%;
  min-height: 50vh;
  max-height: 96vh;
  overflow-y: hidden;
}

.modal.small-modal .modal-content {
  margin-top: 25vh;
  padding: 20px;
  border: 1px solid #888;
  width: 300px;
  max-width: 92%;
  min-height: inherit;
  max-height: 50vh;
}
.modal.small-modal .modal-body {
  height: inherit;
}

.modal-header {
  position: relative;
  display: inline-block;
  width: 100%;
  min-height: 40px;
}
.modal-title {
  text-align: center;
  font-size: 1.5em;
  /*height: 2em;*/
}
.modal-header .remove {
  /*float: right;*/
  position: absolute;
  right: 0px;
  top: 0px;
  /*margin-top: 1em;*/
  height: 3em;
  cursor: pointer;
}

.modal-header .back {
  position: absolute;
  left: 0px;
  top: 0px;
  /*float: left;*/
  height: 3em;
  cursor: pointer;
}
.modal-header .modal-title {
  /*float: left;*/
  margin: 0em;
}


/* Gene Selection Modal
*/
.modal-body {
  width: 100%;
  display: inline-block;
  text-align: center;
  height: calc(80vh);
  overflow-y: auto;
}

.modal-body .category_name {
  float: left;
  text-transform: capitalize;
}

.search_container {
  text-align: center;
}

/* Image slection modal
*/

.tab_names .text_button {
  letter-spacing: 1.2px;
  margin: 0.4em;
}
.tab_names {
  white-space: nowrap;
  overflow-x: auto;
}


/* Share Image Modal */
.share-option {
  background-color: white;
  display: inline-flex;
  width: calc(100% - 16px);
  margin: 8px;
  margin-top: 4px;
  margin-bottom: 4px;
  /* */

  border: 1px solid lightgray;
  padding-left: 8px;
  padding-right: 8px;
  text-align: center;
  
  cursor: pointer;
}
.share-option a {
  text-decoration: none;
}

.share-option h2 {
  width: 100%;
}
.share-option:hover  {
  box-shadow: 0 2px 3px 0 rgba(0, 0, 0, 0.1); 
}


@media only screen and (max-width: 800px) {
    .modal-content {
      width: 96%;
    }
    .modal-body .gene {
      width: calc(50% - 10px);
      margin: 5px;
    }
    .genes_container .gene {
      width: 60%;
      margin: 5px;
    }
    .modal button {
        font-size: 1em;
        padding: 0.5em;
        margin: 0.5em;
        margin-left: 0.25em;
        margin-right: 0.25em;
    }
}