/* Main page layout */
html,
body {
  height: 100%;
  width: 100%;
  margin: 0;
  padding: 0;
  font-family: "Nunito Sans", sans-serif;
  word-wrap: break-word;
  color: #3a3838;
}

/* .maincontainer {
  position: relative;
  margin: auto;
  width: 70%;
  min-width: 1200px;
  height: 100%;
} */

/* Drag and Drop */
.dragndrop_container {
  /* width: 100%;
  height: 100%; */
  margin: 0;
  padding: 0;
  /* position: absolute; */
  background-color: rgba(255, 255, 255, 0.185);
}

.dragndrop_zone {
  margin: 2em auto;
  width: 30%;
  height: 20%;
  background-color: rgba(46, 126, 206, 0.185);
  border: dashed 2px rgb(77, 121, 255);
  border-radius: 10px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  min-height: 9em;
}

.dragndrop_zone:hover {
  cursor: pointer;
  background-color: rgba(46, 126, 206, 0.4);
  border-color: rgb(26, 83, 255);
}

.dragndrop_zone br {
  margin-top: 5px;
}

/* Model selections */
.model_select_container {
  position: relative;
  margin: 10px auto;
  top: 20px;
  height: 70px;
}

.model_select_container li {
  text-align: left;
  padding: 14px 16px;
  text-decoration: none;
  color: #3a3838;
  font-size: 25px;
  display: inline-block;
  float: left;
  margin: 0em 0.5em 0.5em 0.5em;
  cursor: pointer;
  border: #f3f3f3 solid 3px;
  border-radius: 10px;
  background-color: #cae3ff;
}

.model_select_container li:hover {
  background-color: #89c0ff;
  border-color: #4a9dfc;
}

.model_select_container li.currently_displayed_model {
  background-color: #62abff;
  border-color: #3e98fe;
}

/* Model data summary */
.model_summary {
  position: relative;
  margin: 20px auto;
  width: auto;
  height: 50px;
}

.model_summary li {
  text-align: left;
  padding: 14px 16px;
  text-decoration: none;
  color: #3a3838;
  font-size: 25px;
  display: inline-block;
  float: left;
  margin: 0em 0.5em 0.5em 0.5em;
}

/* Model chains quality */
.chain_quality_container {
  position: relative;
  margin-top: 10px;
  width: auto;
  height: auto;
  text-align: center;
  float: left;
}

.chain_quality_container table tr td,
.chain_quality_container table thead th {
  padding: 5px;
  text-align: center;
  border: 2px solid white;
}

/* D3JS heatmaps */
.chain_pae_matrix_container {
  position: relative;
  width: auto;
  height: auto;
  float: left;
  margin-left: 10px;
}

.iptm_matrix_container {
  position: relative;
  width: auto;
  height: auto;
  float: left;
  margin-left: 10px;
}

.pae_matrix_container {
  position: relative;
  width: auto;
  height: auto;
  float: left;
  margin-left: 10px;
  padding: 0;
}

/* PAE selector things */
.pae_unselection_button {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background-color: rgb(223, 223, 223);
    border: 1px solid black;
}
.pae_unselection_button:after{
    display: inline-block;
    content: "\00d7";
    padding-left: 2px;
    padding-top: -2px;
}
.pae_unselection_button:hover {
    cursor: pointer;
    background-color: rgb(255, 255, 255);
    border-color: rgb(50, 50, 50);
}


/* Tooltip styles */
.tooltip {
  position: absolute;
  z-index: 1070;
  display: block;
  margin: 0;
  font-style: normal;
  font-weight: 400;
  line-height: 1.5;
  text-align: left;
  text-align: start;
  text-decoration: none;
  text-shadow: none;
  text-transform: none;
  letter-spacing: normal;
  word-break: normal;
  word-spacing: normal;
  white-space: normal;
  line-break: auto;
  font-size: .875rem;
  word-wrap: break-word;
  opacity: 0;
}

/* MolStar viewer */
.molstarviewer {
  position: relative;
  width: auto;
  height: 700px;
  margin-bottom: 20px;
}

/* MolStar color legend */
.molstar_legend_container {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 5fr;
  grid-template-rows: auto;
  width: 100%;
  height: 100px;
  padding: 10px 1em;
  background-color: rgb(238, 236, 231);
  border: 2px solid rgb(200, 198, 193);
  border-radius: 10px;
  margin-bottom: 10px;
}

.molstar_legend_container li {
  text-align: left;
  padding: 12px 16px;
  text-decoration: none;
  font-size: 25px;
  display: inline-block;
  float: left;
  margin: 0em 0.2em 0.2em 0;
  border: #f3f3f3 solid 0;
  border-radius: 10px;
}
.molstar_legend_container ul.plddt {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto;
}
.molstar_legend_container ul.plddt li {
  font-size: 12px;
  padding: 2px 6px;
}
.molstar_legend_container ul.plddt li span {
  border: 0px solid;
  border-radius: 5px;
  height: 2em;
  width: 2em;
  display: inline-block;
  margin-right: 5px;
  top: 0.5em;
  position: relative;
}

/* Restart button
https://codepen.io/perry_nt/pen/NxobOm
*/
.closebutton {
  position: absolute;
  margin: auto;
  width: 50px;
  top: 20px;
  right: 20px;
  cursor: pointer;
  z-index: 19;
}

.closebutton .inner {
  width: inherit;
  text-align: center;
}

.closebutton .inner label {
  font-size: 0.8em;
  line-height: 4em;
  text-transform: uppercase;
  color: #077bff;
  transition: all 0.3s ease-in;
  opacity: 0;
  cursor: pointer;
}

.closebutton .inner:before,
.closebutton .inner:after {
  position: absolute;
  content: "";
  height: 1px;
  width: inherit;
  background: #077bff;
  left: 0;
  transition: all 0.3s ease-in;
}

.closebutton .inner:before {
  top: 50%;
  transform: rotate(45deg);
}

.closebutton .inner:after {
  bottom: 50%;
  transform: rotate(-45deg);
}

.closebutton:hover label {
  opacity: 1;
}

.closebutton:hover .inner:before,
.closebutton:hover .inner:after {
  transform: rotate(0);
}

.closebutton:hover .inner:before {
  top: 0;
}

.closebutton:hover .inner:after {
  bottom: 0;
}


/* 
 * Switch button input 
 * Strongly inspired from: https://codepen.io/z-/pen/XPQyMo
*/
span.switcher {
  /*position: absolute;
  bottom: 2em;
  right: 5em;
  */
  position: relative;
  width: 150px;
  height: 50px;
  border-radius: 25px;
}
span.switcher input {
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  position: relative;
  width: 150px;
  height: 50px;
  border-radius: 25px;
  background-color: #1e1e1e;
  outline: none;
  font-family: "Oswald", sans-serif;
  transition: 0.25s -0.1s;
  cursor: pointer;
}
span.switcher input:before, span.switcher input:after {
  z-index: 2;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #ffffff;
}
span.switcher input:before {
  content: "pLDDT";
  left: 20px;
}
span.switcher input:after {
  content: "ChainID";
  right: 20px;
}
span.switcher label {
  z-index: 1;
  position: absolute;
  top: 10px;
  bottom: 10px;
  border-radius: 20px;
  margin: 0;
}
span.switcher input:checked {
  background-color: #ffffff;
}
span.switcher input:checked:before {
  color: #ffffff;
  transition: color 0.5s 0.2s;
  cursor: default;
}
span.switcher input:checked:after {
  color: #bbbbbb;
  transition: color 0.5s;
}
span.switcher input:checked + label {
  left: 10px;
  right: 75px;
  background: #1e1e1e;
  transition: left 0.5s, right 0.4s 0.2s;
  cursor: default;
}
span.switcher input:not(:checked) {
  background: #1e1e1e;
  transition: background 0.5s -0.1s;
}
span.switcher input:not(:checked):before {
  color: #cccccc;
  transition: color 0.5s;
}
span.switcher input:not(:checked):after {
  color: #1e1e1e;
  transition: color 0.5s 0.2s;
  cursor: default;
}
span.switcher input:not(:checked) + label {
  left: 75px;
  right: 10px;
  background: #ffffff;
  transition: left 0.4s 0.2s, right 0.5s, background 0.35s -0.1s;
  cursor: default;
}
