/* ------------------------------------------ CSS FOR TABS ------------------------------------------------- */
.tab-section {
  display: flex;
}
.container--tabs {
  margin: 2rem 0;
}
@media (max-width: 600px) {
  .container--tabs {
    margin: 1.5rem 0;
  }
}
.container--tabs .nav-tabs {
  width: 15%;
  margin: 0;
  list-style-type: none;
  /* border-bottom: 1px solid #ddd; */
  display: flex;
  flex-direction: column;
  padding-inline-start: 0;
}
.container--tabs .nav-tabs > li {
  float: left;
  margin-bottom: -1px;
}
.container--tabs .nav-tabs > li > a {
  float: left;
  margin-right: 2px;
  line-height: 1.42857143;
  padding: 10px;
  /* border: 1px solid transparent; */
  border-radius: 4px 4px 0 0;
  width: 100%;
}
.container--tabs .nav-tabs > li > a:hover {
  border-color: #eee #eee #ddd;
}
.container--tabs .nav-tabs > li.active > a,
.container--tabs .nav-tabs > li.active > a:hover,
.container--tabs .nav-tabs > li.active > a:focus {
  color: #555;
  cursor: default;
  background-color: #fff;
  border: 1px solid #ddd;
  /* border-bottom-color: transparent; */
}
.container--tabs .tab-content {
  float: left;
  width: 100%;
}
.container--tabs .tab-content > .tab-pane {
  display: none;
}
.container--tabs .tab-content > .tab-pane.active {
  display: block;
  padding: 2.5% 3.5%;
  /* background-color: #efefef; */
  border: 1px solid #ddd;
}
.container--tabs .tab-content > .active {
  display: block;
}

@media (max-width: 600px) {
  .tab-section {
    display: block;
  }
  .nav.nav-tabs {
    flex-direction: row;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
  }
  .nav.nav-tabs::-webkit-scrollbar {
      width: 0px;
      height: 0px;
  }
  .container--tabs .tab-content > .tab-pane {
    margin-bottom: 20px;
  }
}

/* ------------------------------------------ CSS FOR TABS ------------------------------------------------- */

/* ------------------------------------------ CSS FOR CONTAINER INPUT ------------------------------------------------- */
.container-input {
  display: flex;
  justify-content: space-between;
}

.copy-result {
  cursor: pointer;
  padding: 0 4px;
}
.copy-result:hover {
  background: #c5cbe3;
}

.container-input-left,
.container-input-right {
  /* flex: 1; */
  width: 50%;
}

.unit-input,
.unit-output {
  width: 90%;
  padding: 5px;
  font-size: 16px;
}

.unit-output {
  color: #00887a;
  font-weight: bold;
  cursor: pointer;
}
.unit-output:hover {
  background-color: white;
}
/* ------------------------------------------ CSS FOR CONTAINER INPUT ------------------------------------------------- */

/* ------------------------------------------ CSS FOR UNIT OPTIONS ------------------------------------------------- */
.unit-options-wrapper {
  margin-top: 4px;
  background-color: white;
  border: 1px solid rgb(118, 118, 118);
  width: 95%;
  border-radius: 4px;
}

.unit-options {
  width: 100%;
  margin: 0;
  list-style-type: none;
  border-bottom: 1px solid #ddd;
  display: flex;
  flex-direction: column;
  padding-inline-start: 0;
  overflow-x: hidden;
  overflow-y: auto;
  max-height: 350px;
}
.unit-options > li {
  /* float: left; */
  margin-bottom: -1px;
  padding: 5px;
  white-space: nowrap;
  min-height: 17px;
}

.unit-options > li:hover {
  background-color: #e8e9e9;
}
.unit-options > li.active,
.unit-options > li.active:hover,
.unit-options > li.active:focus {
  color: #555;
  cursor: default;
  background-color: #00887a;
  color: white;
  border: 1px solid #ddd;
  /* border-bottom-color: transparent; */
}

@media (max-width: 768px) {
  .unit-options {
    max-height: 250px;
  }
}

/* ------------------------------------------ CSS FOR UNIT OPTIONS ------------------------------------------------- */

/* ------------------------------------------ CSS FOR BATCH ------------------------------------------------- */
.batch-convert-toggle {
  width: 192.5%;
  margin: 12px auto;
  padding: 4px;
  position: relative;
  z-index: 100;
  cursor: pointer;
  border: 1px solid rgb(118, 118, 118);
  border-radius: 4px;
}

.batch-convert-toggle:hover, .batch-convert-toggle.active {
  color: #fff;
  background: #00887a;
}

.batch-convert-toggler {
  margin: 13px auto;
  padding: 4px;
  position: relative;
  z-index: 1;
  visibility: hidden;
}

.batch-convert-toggle > span {
  float: right;
  margin-right: 12px;
}

.batch-convert-input, .batch-convert-output {
  display: none;
  position: relative;
}

.unit-inputs, .unit-outputs, .batch-convert-btn, .batch-convert-output > .fake-unit-output > .copy-result {
  resize: none;
  margin-bottom: 8px;
}

.batch-convert-input, .batch-convert-output {
  width: 93.3%;
}

.batch-convert-output {
  /* display: flex; */
  justify-content: flex-end;
}

.batch-convert-btn {
  position: absolute;
  right: -23.2%;
  top: 40%;
  font-size: 30px;
  z-index: 10000;
}

.batch-convert-input, .batch-convert-output > .fake-unit-output {
  /* float: right; */
  width: 84%;
}

.unit-outputs {
  width: 100%;
  margin-bottom: 6px;
  padding: 5px 0px 0px 5px;
  line-height: 1.5;
}

.unit-inputs {
  width: 90%;
  padding: 5px 0px 0px 5px;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .batch-convert-btn {
    right: -32.7%;
    top:37%;
  }
}

/* ------------------------------------------ CSS FOR BATCH ------------------------------------------------- */


/* ------------------------------------------ CSS FOR UNIT RESULT ------------------------------------------------- */
.result {
  display: flex;
  justify-content: center;
  margin-top: 20px;
  flex-direction: column;
}

.result > .how {
  margin-bottom: 24px;
}

.result > .how > h3 {
  margin-bottom: 12px;
}

.result > .how > h4 {
  margin-bottom: 8px;
}

.result > .res > h2 {
  padding-bottom: 8px !important;
}

.result h2 {
  font-family: Arial, Helvetica, sans-serif !important;
}

.result-value {
  color: #00887a;
  font-weight: bold;
}
/* ------------------------------------------ CSS FOR UNIT RESULT ------------------------------------------------- */
