@font-face {
  font-family: Ubuntu;
  src: url("../fonts/Ubuntu-Regular.ttf");
  font-weight: normal;
  font-style: normal;
}
/*
@font-face { 
    font-family: Ubuntu; 
    src: url('../fonts/Ubuntu-Regular-Italic.ttf');
    font-weight: normal;
    font-style: italic;
}
*/
@font-face {
  font-family: Ubuntu;
  src: url("../fonts/Ubuntu-Bold.ttf");
  font-weight: bold;
  font-style: normal;
}
@font-face {
  font-family: UbuntuMono;
  src: url("../fonts/UbuntuMono-Regular.ttf");
  font-weight: normal;
  font-style: normal;
}
:root {
  --col-1: #CDD0CB;
  --col-2: #E8EAE6;
  --col-3: #CFDAC8;
  --col-4: #7C9473;
  --col-5: #3a4834;
  --col-6: #d98383;
  --cage-list-height: 60%;
  --cage-list-item-count: 10;
  --header-height: 70px;
}

body {
  margin: 0px;
  padding: 0px;
  font-family: Ubuntu;
  background-color: var(--col-2);
}

#app {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 99vh;
  width: 100vw;
  background-color: var(--col-2);
}

#header {
  width: 100%;
  max-width: 600px;
}
#header .header {
  width: 100%;
  height: var(--header-height);
  background-color: var(--col-4);
  color: var(--col-2);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: Ubuntu;
  font-weight: bold;
  font-size: 1em;
}
#header .header .text {
  padding-left: 10px;
  padding-right: 10px;
  font-size: 1.75em;
}
#header .header .btn-settings-open, #header .header .btn-settings-close {
  padding-left: 10px;
  padding-right: 10px;
  font-size: 2.25em;
  user-select: none;
}
#header .header .btn-settings-close {
  display: none;
}

#header .settings {
  display: none;
  justify-content: space-around;
  height: 100px;
  background-color: var(--col-3);
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: var(--col-4);
}
#header .settings .btn {
  margin: 15px;
}

#main {
  width: 90%;
  max-width: 600px;
  height: calc(98% - var(--header-height));
}

#range-view {
  height: 100%;
  display: flex;
  flex-direction: row;
  --top-margin: 10px;
}

#range-list {
  height: 100%;
  width: 100%;
}
#range-list .range-item {
  background-color: var(--col-3);
  color: var(--col-5);
  height: 9vh;
  min-height: 2.5em;
  margin-top: var(--top-margin);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-left-width: 5px;
  border-left-color: var(--col-4);
  border-left-style: solid;
  font-family: UbuntuMono;
  font-weight: bold;
  font-size: 1.2em;
}
#range-list .range-item .text {
  padding-left: 5px;
  font-size: 1.5em;
}
#range-list .range-item .status {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 1.75em;
  width: 1.75em;
  font-size: 1.5em;
  margin-right: 10px;
  margin-left: auto;
  border-radius: 5px;
}
#range-list .range-item .status-brown {
  background-color: brown;
  color: white;
}
#range-list .range-item .status-brown:before {
  content: "HV";
}
#range-list .range-item .status-white {
  background-color: white;
  color: #767070;
}
#range-list .range-item .status-white:before {
  content: "BV";
}
#range-list .range-item .btn {
  height: 80%;
  width: 15%;
  margin-right: 10px;
  font-size: 2em;
  display: flex;
  justify-content: center;
  align-items: center;
}
#range-list .range-item .btn svg {
  height: 70%;
}
#range-list .range-item .btn-checked, #range-list .range-item .btn-unchecked {
  height: 60%;
  width: 10%;
  margin-left: 10px;
  border-radius: 0;
  box-shadow: none;
  background-color: var(--col-3);
  color: var(--col-4);
}

#controls {
  height: calc(100% - var(--cage-list-height));
}

#tablet-id-area {
  display: none;
  height: 7vh;
  margin: 10px;
  justify-content: center;
  align-items: stretch;
}
#tablet-id-area #tablet-id {
  background-color: var(--col-3);
  margin-right: 10px;
  border-width: 0;
  font-family: Ubuntu;
  font-weight: bold;
  letter-spacing: 2px;
  font-size: 1.2em;
  text-align: center;
}

#overlay {
  position: fixed;
  display: none;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 2;
  cursor: pointer;
}
#overlay #overlay-text {
  position: absolute;
  top: 50%;
  left: 50%;
  font-size: 50px;
  color: white;
  transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  text-align: center;
}

#msgbox {
  position: fixed;
  display: none;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 2;
  cursor: pointer;
  justify-content: center;
  align-items: center;
}
#msgbox .msgbox {
  width: 50vw;
  max-width: 500px;
  height: 25vh;
  background-color: var(--col-3);
  display: flex;
  position: absolute;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-radius: 5px;
  border-style: solid;
  border-color: var(--col-4);
}
#msgbox .msgbox #msgbox-text {
  font-size: 2em;
  color: var(--col-5);
  letter-spacing: 2px;
  text-align: center;
}
#msgbox #btn-msgbox-close {
  position: absolute;
  top: 0px;
  right: 0px;
  width: 3em;
  height: 3em;
  box-shadow: -2px 2px 5px var(--col-6);
  border-top-right-radius: 0;
}
#msgbox #btn-msgbox-close:active {
  box-shadow: none;
}

.button-area {
  display: flex;
  align-items: center;
  justify-content: center;
}

#large-buttons {
  flex-direction: column;
  height: 70%;
}

#small-buttons {
  flex-direction: row;
  justify-content: space-around;
  height: 30%;
}

.btn {
  background-color: var(--col-4);
  color: var(--col-2);
  box-shadow: 2px 2px 6px var(--col-4);
  border-width: 0;
  border-radius: 5px;
  font-family: Ubuntu;
  font-size: 1.5em;
  font-weight: bold;
  user-select: none;
}

.btn-warning {
  background-color: var(--col-6);
  color: var(--col-2);
  box-shadow: 2px 2px 6px var(--col-6);
}

.btn:active, .btn-warning:active {
  box-shadow: none;
}

.btn:disabled, btn[disabled] {
  background-color: var(--col-1);
  box-shadow: none;
}

.btn-main-large {
  display: flex;
  justify-content: space-between;
  height: 32%;
  width: 100%;
  margin: 1%;
}
.btn-main-large span {
  margin: auto;
  letter-spacing: 0.1em;
  user-select: none;
  font-size: 1.75em;
}
.btn-main-large img, .btn-main-large svg {
  height: 80%;
  width: auto;
  margin-top: auto;
  margin-bottom: auto;
  background-color: var(--col-2);
  border-bottom-right-radius: 3px;
  border-top-right-radius: 3px;
  padding: 2px;
}

.btn-main-small {
  height: 80%;
  width: 30%;
  margin: 1%;
  font-size: 1.75em;
  letter-spacing: 0.1em;
}
