#mainContainer {
  display: flex;
  justify-content: center;
  margin: 0 auto;
  background-color: #fff;
}

#contentContainer {
  width: 100%;
  max-width: inherit;
}

#mainContainer img {
  max-width: 100%;
}

#mainContainer h1 {
  font-size: 25px;
  margin: 5px 15px;
}

#mainContainer p {
  font-size: 18px;
  margin: 5px;
  line-height: 1.4;
}

#mainContainer .content-section {
  width: 95%;
  margin: 0 auto;
  padding: 10px 0;
}

#mainContainer .content-section.card-style {
  padding: 10px;
  background-color: white;
  box-shadow: 0 2px 5px 0 gray;
  margin: 15px auto;
}

#mainContainer .center {
  text-align: center;
  justify-content: center;
}

#mainContainer .bold {
  font-weight: bold;
}

#mainContainer .italic {
  font-style: italic;
}

#mainContainer .normal-font-weight {
  font-weight: 300;
}

#mainContainer .underline {
  text-decoration: underline;
}

#mainContainer .left-margin {
  margin-left: 25px;
}

#mainContainer .no-margin {
  margin: 0;
}

#mainContainer .tool-title-block {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: #333;
  color: white;
  padding: 5px;
}

#mainContainer .top-border {
  border-top: 1px solid #ccc;
}

/* -- Conveter tool general -- */
#converterTool #Volume {
  height: auto;
}

#converterTool #Weight,
#converterTool #Length,
#converterTool #Time,
#converterTool #Temperature {
  display: none;
  height: auto;
}

#converterTool a:link,
#converterTool a:visited {
  color: white;
}

#converterTool a:hover,
#converterTool a:active {
  color: #6cf;
}

/* -- Converter tool tabs -- */
#converterTool .tab-block {
  display: flex;
  overflow-x: scroll;
  -ms-overflow-style: none;
}

#converterTool .tab-block::-webkit-scrollbar {
  display: none;
}

#converterTool .tab {
  height: 40px;
  width: 100%;
  margin: 0;
  font-size: 12px;
  background-color: #4e73df;
  color:white;
  border: 0;
  border-radius: 0;
  cursor: pointer;
  outline: none;
}

#converterTool .tab.selected {
  background-color: #eee;
  color:black;
}

#converterTool .tab:hover {
  background-color: #999;
}

#converterTool .tab.selected:hover {
  background-color: #eee;
}

/* -- Converter tool blocks -- */
#converterTool .unit-block {
  width: 100%;
  margin: 0;
  padding: 10px 0 20px 0;
  color: black;
  background-color: #fff;
}

#converterTool .row {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: center;
}

#converterTool .row.margin {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: center;
  margin: 0 15px;
}

#converterTool .row.header {
  height: 40px;
  justify-content: center;
  align-items: center;
  color: white;
  background-color: #4e73df;
  margin: 0;
}

#converterTool .row.title {
  margin: 15px 0 2px 0;
}

#converterTool .row.title.margin {
  margin: 15px 15px 2px 15px;
}

#converterTool .row.title.center {
  justify-content: center;
}

#converterTool .row.buttons {
  margin-top: 10px;
}

#converterTool .row.bottom-note {
  margin: 30px 20px 10px 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

#converterTool .row.bottom-note div {
  margin-bottom: 10px;
}

#converterTool .row.checkbox {
  align-items: baseline;
  justify-content: flex-start;
  margin: 20px 20px 20px 10px;
}

#converterTool .row.tabs {
  overflow: hidden;
}

#converterTool .row.tabs .tab {
  width: 50%;
}

/* -- Converter inputs -- */
#converterInput {
  height: auto;
  width: 100%;
  padding: 5px;
  color: #eee;
  background-color: #333;
}

#converterTool input {
  padding: 2px;
}

#converterTool textarea {
  resize: none;
  padding: 2px;
  font-size: 16px;
  outline: none;
}

#converterTool .converter-input {
  font-size: 14px;
  width: 63%;
  height: 50px;
  margin-right: 3%;
  border-radius: 0px;
  border: 1px solid;
  padding: 5px;
  outline: none;
}

#converterTool .vdropDown {
  font-size: 16px;
  height: 50px;
  width: 100%;
  border: 1px solid #000;
  border-radius: 0px;
  padding: 5px;
  color: #000;
  outline: none;
}

#converterTool .dropDown {
  font-size: 16px;
  height: 50px;
  width: 100%;
  border: 1px solid #000;
  border-radius: 0px;
  padding: 5px;
  color: #000;
  outline: none;
}

#converterTool .desired-container {
  align-self: flex-end;
  margin-bottom: 2px;
}

/* -- Converter output -- */
#converterTool .conversion-output {
  display: flex;
  justify-content: center;
  background-color: white;
  padding: 5px;
}

#converterTool .conversion {
  display: flex;
  flex-direction: column;
  width: 45%;
}

#converterTool .conversion-equals {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 30px;
  color: black;
  padding: 5px;
}

#converterTool .conversion-or {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 14px;
  padding: 5px;
}

#converterTool .conversion-out {
  text-align: center;
  height: 50px;
  width: 100%;
  font-size: 14px;
  border: 1px solid;
  background-color: white;
}

#converterTool .conversion-out-top {
  font-size: 16px;
  text-align: center;
  width: 100%;
  background-color: white;
  border: none;
  outline: none;
}

#converterTool .output-top {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  height: 50px;
}

#converterTool .conversion-out-bottom {
  font-size: 16px;
  text-align: center;
  width: 100%;
  background-color: white;
  border: none;
  outline: none;
}

#converterTool .output-bottom {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  height: 50px;
}


/* -- Tool Desc -- */
#toolDesc a:link,
#toolDesc a:visited {
  color: black;
}

#toolDesc a:hover,
#toolDesc a:active {
  color: dodgerblue;
}

/* -- Tool styles -- */
#converterTool {
  display: flex;
  flex-wrap: wrap;
  font-size: 16px;
  width: 100%;
  color: #333;
  margin: 5px auto;
}

/* -- Tool Buttons -- */
#converterTool .btn {
  color: #555;
  border: solid 1px #333;
  text-align: center;
  outline: none;
  padding: 5px;
}

#converterTool .btn2 {
  clear: none;
  display: block;
  color: #555;
  border: 0;
  text-align: center;
  padding: 5px;
}

#converterTool .btnR {
  clear: none;
  display: block;
  color: #555;
  border: 0;
  text-align: center;
  padding: 5px;
}

#converterTool .btn:hover,
#converterTool .btn2:hover,
#converterTool .btnR:hover {
  border: 2px solid #555;
}

#converterTool .convertButton {
  font-size: 16px;
  height: 50px;
  width: 34%;
  color:white;
  background-color: #4e73df;
}

#converterTool .swapUnitsContainer {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 5px 0 5px 5px;
}

#converterTool .swapUnitsButton {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 24px;
  font-weight: bold;
  height: 40px;
  width: 40px;
  text-align: center;
  color: white;
  background-color: #4e73df;
  border: solid 1px #333;
}

#converterTool .swapUnitsButton:hover {
  border: 2px solid #555;
}

#converterTool .swapUnitsButton:active {
  background-color: #AED6F1;
}

#converterTool .unit-type-button {
  background-color: #4e73df;
  color:white;
  font-size: 16px;
  width: 50px;
  height: 50px;
  margin-right: 15px;
}

@media only screen and (min-width: 500px) {
  #converterTool .tab-block {
    display: flex;
    flex-wrap: nowrap;
    justify-content: stretch;
    overflow: hidden;
  }

  #converterTool .tab {
    font-size: 14px;
  }

  #converterTool .converter-input,
  #converterTool .convertButton,
  #converterTool .unit-type-button,
  #converterTool .vdropDown,
  #converterTool .dropDown,
  #converterTool .conversion-out,
  #converterTool .conversion-out-top,
  #converterTool .conversion-out-bottom {
    font-size: 20px;
  }

}

@media only screen and (min-width: 768px) {
  #mainContainer h1 {
    font-size: 40px;
  }

  #converterTool {
    font-size: 16px;
    margin: 5px auto;
  }

}

@media only screen and (min-width: 800px) {
  #mainContainer .content-section {
    max-width: 1100px;
    width: 95%;
    margin: 5px auto;
    padding: 5px 0;
  }

  #converterTool {
    flex-wrap: nowrap;
  }

  #converterInput {
    color: #eee;
    background-color: #333;
  }

}
