body {
  margin: 0;
  background: rgb(20, 20, 32);
}

* {
  box-sizing: border-box;
  font-family: Consolas, monospace, sans-serif;
  font-size: 0.85rem;
}

nav {
  width: 100%;
  height: 60px;
  background: rgb(32, 32, 45);
  color: orange;
  position: fixed;
  display: flex;
  z-index: 100;
}

nav li {
  list-style: none;
  padding: 20px;
  font-size: 1.5rem;
  cursor: pointer;
  transition: 0.2s;
}

main {
  position: fixed;
  top: 60px;
  width: 100%;
  height: calc(100% - 60px);
  display: flex;
  flex-direction: column;
  padding-top: 20px;
  overflow: auto;
}

table {
  position: relative;
  border-collapse: collapse;
  color: rgb(153, 153, 153);
  width: 1%;
  table-layout: fixed;
  margin-left: 10px;
}

table td {
  border: 1px solid white;
  padding: 10px;
  width: 5.5rem;
  text-align: right;
  height: 13.5px;
}

table td.diffDown {
  color: white;
  background: red;
}

table td.diffUp {
  color: white;
  background: green;
}

table td.rel0to10Percent {
  background-image: linear-gradient(to left, rgba(0, 0, 0, 0) 80%, darkgreen 20%);
}

table td.rel10to20Percent {
  background-image: linear-gradient(to left, rgba(0, 0, 0, 0) 80%, rgb(0, 192, 0) 20%);
}

table td.rel20to30Percent {
  background-image: linear-gradient(to left, rgba(0, 0, 0, 0) 80%, lightgreen 20%);
}

table td.rel30to40Percent {
  background-image: linear-gradient(to left, rgba(0, 0, 0, 0) 80%, yellowgreen 20%);
}

table td.rel40to50Percent {
  background-image: linear-gradient(to left, rgba(0, 0, 0, 0) 80%, yellow 20%);
}

table td.rel50to60Percent {
  background-image: linear-gradient(to left, rgba(0, 0, 0, 0) 80%, rgb(255, 204, 0) 20%);
}

table td.rel60to70Percent {
  background-image: linear-gradient(to left, rgba(0, 0, 0, 0) 80%, rgb(255, 136, 0) 20%);
}

table td.rel70to80Percent {
  background-image: linear-gradient(to left, rgba(0, 0, 0, 0) 80%, orangered 20%);
}

table td.rel80to90Percent {
  background-image: linear-gradient(to left, rgba(0, 0, 0, 0) 80%, red 20%);
}

table td.rel90to100Percent {
  background-image: linear-gradient(to left, rgba(0, 0, 0, 0) 80%, darkred 20%);
}

table th {
  border-bottom: 2px solid white;
  width: 5.5rem;
  word-wrap: break-word;
}

#Timer {
  position: absolute;
  top: 0;
  right: 0;
  font-size: 1.5rem;
  color: rgb(153, 153, 153);
  padding: auto;
  padding: 20px;
  font-size: 1.5rem;
  padding-right: 1rem;
}

/* ===== Scrollbar CSS ===== */
/* Firefox */
* {
  scrollbar-width: auto;
  scrollbar-color: #b2b2b2 #ffffff00;
  scroll-behavior: smooth;
}

/* Chrome, Edge, and Safari */
*::-webkit-scrollbar {
  width: 16px;
}

*::-webkit-scrollbar-track {
  background: #ffffff00;
}

*::-webkit-scrollbar-thumb {
  background-color: #b2b2b2;
  border-radius: 10px;
  border: 3px solid #ffffff00;
}

#modal {
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  width: 100%;
}

#modal-content {
  background: rgba(32, 32, 45, .98);
  color: white;
  padding: 20px;
  border: 1px solid white;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 95%;
  max-height: 90%;
}

.modal-item {
  margin: 10px;
  padding: 10px;
  border: 1px solid white;
  border-radius: 10px;
  transition: 0.2s;
  height: 10rem;
  min-width: 11rem;
  max-width: 22rem;
}

.input-container {
  display: flex;
  font-weight: bold;
  flex-direction: row;
  flex-wrap: nowrap;
  /* align-content: center; */
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid white;
  cursor: pointer;
  user-select: none;
}

.input-container>input {
  display: none;
}

.modal-item.large {
  width: 22rem;
}

.sub-modal-item {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  flex-wrap: wrap;
  max-height: 8rem;
  user-select: none;
}

.sub-modal-item div {
  width: 11rem;
}

#checkbox-container {
  display: flex;
  align-items: center;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  overflow: auto;
  max-height: 75vh;
}

.sub-modal-container {
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  height: 7.3rem;
}



@media (max-width: 464px) {
  .modal-item.large {
    width: 95%;
  }

  .modal-item {
    margin: 10px;
    padding: 10px;
    border: 1px solid white;
    border-radius: 10px;
    transition: 0.2s;
    height: auto;
    width: 95%;
  }

  .sub-modal-container {
    height: auto;
  }

  .sub-modal-item {
    flex-wrap: nowrap;
    max-height: none;
    font-size: 1rem;
    width: 100%;
  }

  .sub-modal-item div {
    width: 100%;
  }
}

.hidden {
  display: none !important;
}

#option-container {
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  border-bottom: 1px solid white;
  margin-top: -10px;
}

#option-container li {
  list-style: none;
  padding: 10px;
  font-size: 1.3rem;
  cursor: pointer;
  transition: 0.2s;
  color: lightsalmon;
}

#option-container-left,
#option-container-right,
#option-container-center {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  width: 33%;
}

li.active {
  text-decoration: underline;
}

nav>a {
  text-decoration: none;
  color: orange;
  font-size: 2rem;
  padding: 1rem;
  padding-right: 0rem;
  position: absolute;
  top: 0;
  right: 6rem;
  text-align: center;
  vertical-align: middle;
}



footer {
  position: fixed;
  bottom: 0;
  width: 100%;
  height: auto;
  margin-top: auto;
  margin-bottom: 20px;
  display: flex;
  flex-direction: row;
}

footer #config-container {
  position: relative;
  width: 80%;
  height: 100%;
  display: flex;
  flex-direction: row;
}

#config-container .toggle-button {
  list-style: none;
  font-size: 1.5rem;
  cursor: pointer;
  transition: 0.2s;
  background-color: gray;
  border: 1px solid white;
  border-radius: 10px;
  width: 10rem;
  height: 3rem;
  text-align: center;
  user-select: none;
  margin: 5px 10px;
  padding: 0.5rem;
}

#config-container .toggle-button.on {
  background-color: #608ccf;
}

@media (orientation: portrait) and (max-width: 600px) {
  #config-container .toggle-button {
    margin: 5px;
  }

  #config-container #btn-mark {
    font-size: 0;
    background-image: url(icon/Marker.svg);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 75%;
    width: 3rem;
    min-width: 3rem;
    min-height: 3rem;
  }

  #config-container #btn-change {
    font-size: 0;
    background-image: url(icon/Delta.svg);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 75%;
    width: 3rem;
    min-width: 3rem;
    min-height: 3rem;
  }

  #config-container #btn-minmax {
    font-size: 0;
    background-image: url(icon/MinMax.svg);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 75%;
    width: 3rem;
    min-width: 3rem;
    min-height: 3rem;
  }

  #config-container #btn-diff {
    font-size: 0;
    background-image: url(icon/Diff.svg);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 75%;
    width: 3rem;
    min-width: 3rem;
    min-height: 3rem;
  }
}

footer #site-select {
  position: relative;
  width: 20%;
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  bottom: 0;
  margin-top: auto;
}

.btn-site {
  list-style: none;
  font-size: 1.5rem;
  cursor: pointer;
  transition: 0.2s;
  background: orange;
  border: 1px solid white;
  border-radius: 10px;
  width: 3rem;
  height: 3rem;
  min-height: 3rem;
  min-width: 3rem;
  padding: 0.5rem;
  margin: 5px 10px;
  text-align: center;
  user-select: none;
}

#btn-site-up {
  transform: rotate(-90deg);
}

#btn-site-down {
  transform: rotate(90deg);
}

#datenschutz {
  position: fixed;
  bottom: 0;
  right: 0;
  background-color: rgba(255, 255, 255, 0.7);
}

@media (orientation: portrait) and (max-width: 600px) {
  #btn-mode {
    display: block;
  }

  nav > ul { 
    position: absolute;
    background: rgb(32, 32, 45);
    top:60px;
    padding: 0;
    margin: 0;
  }
}

@media (orientation: landscape) or (min-width: 600px) {
  #btn-mode {
    display: none;
  }

  nav > ul {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    height: 100%;
    margin: 0;
    padding: 0;
  }

  #dropdownMenu.hidden{
    display: flex !important;
  }
}

tr.marked {
  border: 2px solid orange;
}

#calc-hr {
  width: 100%;
  height: calc(35px/1.5);
}