.aga-main {
  margin-bottom: 20px;
}

.version {
  float: right;
  text-transform: none;
  font-family: arial;
  font-size: 70%;
  line-height: 34px;
  letter-spacing: normal;
}

.aga-canvas {
  position: relative;
}

.table > thead > tr > th,
.table > tbody > tr > th,
.table > tfoot > tr > th,
.table > thead > tr > td,
.table > tbody > tr > td,
.table > tfoot > tr > td {
  padding: 3px;
}

.aga-alignment-hlayout {
  display: flex;
}

.aga-alignment-labels {
  position: relative;  
  width: 150px;
}

.aga-aa-label {
  width: 147px;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: block;
  overflow: hidden;
  text-align: right;
  padding: 1px 5px;
  background-color: #ddd;
  box-sizing: border-box;
}

.aga-nt-label {
  width: 147px;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: block;
  overflow: hidden;
  text-align: right;
  padding: 0px 5px;
  background-color: #ddd;
  box-sizing: border-box;
}

.aga-alignment-view {
  flex-grow: 1;
  overflow: auto;
  background-color: #eee;
  background-image: url(marker.png);
  background-repeat: no-repeat;
  background-position: bottom center;
  cursor: default;
}

.aga-genome-image {
  cursor: move;
  margin: 10px auto;
}

.aga-genome-image .scroller {
  border-top: 1px solid gray;
  border-bottom: 1px solid gray;
  box-sizing: border-box;
}

.aga-genome-image .left {
  position: absolute;
  left: 0px;
  top: -1px;
  bottom: -1px;
  background-color: rgba(255,255,255,0.5);
  border-right: 1px solid gray;
  border-top: 1px solid white;
  border-bottom: 1px solid white;
  cursor: default;
}

.aga-genome-image .right {
  position: absolute;
  right: 0px;
  top: -1px;
  bottom: -1px;
  background-color: rgba(255,255,255,0.5);
  border-left: 1px solid gray;
  border-top: 1px solid white;
  border-bottom: 1px solid white;
  cursor: default;
}

.aga-nt {
  /*border: 1px solid black;*/
  font-size: 9px;
  font-family: courier;
  white-space: pre;
  overflow: visible;
  line-height: 13px;
}

.aga-nt span, .aga-nt div {
  width: 5.6px;
  display: block;
  text-align: center;
  position: absolute;
}

.aga-label-top {
  display: block;
  position: absolute;
  top: -20px;
  left: 10px;
  font-family: arial;
}

.aga-label-bottom {
  display: block;
  position: absolute;
  bottom: -20px;
  left: 10px;
  font-family: arial;
}

.aga-label-left {
  position: absolute;
  left: -260px;
  width: 250px;
  overflow: visible;
  text-align: right;
  top: 8px;
}

.aga-pos {
  position: relative;
}

.aga-pos div {
  border-left: 1px solid black;
  margin-left: 2px;
  padding-left: 3px;
  font-family: arial;
}

.aga-pos div.aga-tick {
  height: 6px;
  margin-top: 14px;
}

.aga-aas span, .aga-aas div {
  width: 16.6px;
  display: block;
  text-align: center;
  position: absolute;
}

.aga-nt .A {
  background-color: #f00;
}

.aga-nt .C {
  background-color: #0f0;
}

.aga-nt .G {
  background-color: #ff0;
}

.aga-nt .T {
  background-color: #00f;
}


.aga-aa .A {
  background-color: #1980e6;
}

.aga-aa .C {
  background-color: #e68080;
}

.aga-aa .D {
  background-color: #cc4dcc;
}

.aga-aa .E {
  background-color: #cc4dcc;
}

.aga-aa .F {
  background-color: #1980e6;
}

.aga-aa .G {
  background-color: #e6994d;
}

.aga-aa .H {
  background-color: #19b3b3;
}

.aga-aa .I {
  background-color: #1980e6;
}

.aga-aa .K {
  background-color: #e63319;
}

.aga-aa .L {
  background-color: #1980e6;
}

.aga-aa .M {
  background-color: #1980e6;
}

.aga-aa .N {
  background-color: #19cc19;
}

.aga-aa .P {
  background-color: #cccc00;
}

.aga-aa .Q {
  background-color: #19cc19;
}

.aga-aa .R {
  background-color: #e63319;
}

.aga-aa .S {
  background-color: #19cc19;
}

.aga-aa .T {
  background-color: #19cc19;
}

.aga-aa .V {
  background-color: #1980e6;
}

.aga-aa .W {
  background-color: #1980e6;
}

.aga-aa .Y {
  background-color: #19b3b3;
}

.aga-aa {
  /*border: 1px solid red;*/
}

.file-upload {
  padding-top: 7px;
}

.aga-aa-frame {
  /*border: 1px solid gray;*/
  padding-top: 2px;
  font-size: 17.5px;
  font-family: courier;
  white-space: pre;
  overflow: visible;
  line-height: 20px;
}

.aa-fs {
  background-color: red;
}

.aa-boundary {
  background-color: #444;
}

.corrected-mutations {
  font-size: 90%;
}

.corrected-mutations label {
  display: inline;
}

.corrected-mutations .explanation {
  font-size: 90%;
}

.stats-table td, .stats-table th {
  padding: 3px;
  text-align: center;
}

.stats-table td.left {
  text-align: left;
  padding-left: 3px;
}

.stats-table td.right {
  text-align: right;
  padding-right: 3px;
}

.stats-table td.id {
  padding-left: 10px;
}

.stats-table td.type {
  padding-top: 1em;
  text-align: left;
  font-weight: bold;
}

.stats-table td.type button {
  padding: 0px;
}

.stats-table td.nt {
  text-align: left;
  font-weight: bold;
}

.stats-table td.id span, .stats-table th.id span{
  display: block;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stats-table .mutations {
  font-size: 80%;
  text-align: left;
  display: none;
}

.stats-table.showmutations .mutations {
  display: table-cell;
}

.stats-table .mutations.th {
  text-align: right;
}

.stats-table .mutations span {
  display: block;
}

.form-group form span {
  display: block;
  height: 0px;
}

.form-control.Wt-spinbox {
  background-image: url(../aga/wt-resources/themes/bootstrap/3/spin-buttons.png);
}

@media (max-width: 1200px) {
  .aga-form .control-label {
    text-align: left;
  }
}

.aga-anchor-btn {
  cursor: pointer;
}

.stats-legend {
  font-size: 12px;
}

@media (max-width: 992px) {
  .container {
    width: auto;
  }

  .stats-table .concordance-col {
    width: 85px;
  }

  .stats-table .matches-col,
  .stats-table .identities-col {
    width: 100px;
  }
}

.center-align {
  text-align: center;
}

[cds-annotation] {
  position: relative;
}

[cds-annotation]:before,
[cds-annotation]:after {
  z-index: 98;
}

[cds-annotation]:before {
  bottom: -10px;
  /* calculate 50% width of the parent element minus width of the current element */
  left: calc(50% - 10px);
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 10px 10px 10px;
  border-color: transparent transparent #333 transparent;
  content: "";
  position: absolute;
  display: block;
}

[cds-annotation]:after {
  /* calculate single line height plus height of the arrow element */
  font-family: "Roboto", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 15px;
  background-color: #eee;
  top: calc(1em + 10px);
  border-radius: 5px;
  content: attr(cds-annotation);
  padding: 5px 10px;
  position: absolute;
  /* calculate 50% width of the parent minus half of the width of current element minus half of the padding */
  left: calc(50% - 100px); 
  /* requires fixed width for calculation above */
  width: 200px;
  text-align: center;
}

[nt-annotation] {
  position: relative;
}

[nt-annotation]:before,
[nt-annotation]:after {
  z-index: 98;
}

[nt-annotation]:before {
  top: -5px;
  /* calculate 50% width of the parent element minus width of the current element */
  left: calc(50% - 5px);
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 5px 5px 0px 5px;
  border-color: #333 transparent transparent transparent;
  content: "";
  position: absolute;
  display: block;
}

[nt-annotation]:after {
  /* calculate single line height plus height of the arrow element */
  font-family: "Roboto", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 13px;
  background-color: #eee;
  bottom: calc(1em + 5px);
  border-radius: 5px;
  padding: 5px 10px 0px;
  content: attr(nt-annotation);
  position: absolute;
  /* calculate 50% width of the parent minus half of the width of current element minus half of the padding */
  left: calc(50% - 30px); 
  /* requires fixed width for calculation above */
  width: 60px;
  text-align: center;
}
