/** Google Fonts **/

@import url('https://fonts.googleapis.com/css?family=Muli:600,700');

/** General Styles **/

* {
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  font-family: 'Muli', sans-serif;
  margin: 0;
  padding: 0;
}

body {
  background-color: #ffe3e3;
  font-size: 16px;
}

.container {
  margin: 1em;
  padding: 1em;
}
#criteria {
  margin-left: 8em;
}
/** Navigation **/

div#bs-example-navbar-collapse-1.collapse.navbar-collapse {
  font-size: 15px !important;
}
ul.dropdown-menu li a {
  font-size: 15px !important;
}

.navbar-default {
  background-color: #0d0a38;
}

.nav.navbar-nav.navbar-right li a {
  color: #eadbdb;
}

.nav.navbar-nav.navbar-right li a:hover {
  color: #b4969a;
}

.navbar-default .navbar-nav>.active>a {
  background-color: #0b134d;
}

.navbar {
  margin-bottom: 0;
  border: 0;
  border-radius: 0;
}

.navbar-brand {
  padding: 0;
}

.navbar-nav {
  margin-bottom: 0px;
}

.navbar-brand>img {
  width: auto;
  height: 100%;
  padding: 0;
}

.dropdown-menu {
  padding: 0;
}

.dropdown-menu>li {
  text-align: left;
  font-size: 15px;
  border-bottom: 2px solid #fff;
  padding: 0;
}

.dropdown-menu>li>a {
  background-color: #0b134d;
  color: #fff;
}

.dropdown-menu>li>a>img {
  height: 1.2em;
  width: 2em;
  margin-left: 0px;
}

@media (min-width: 979px) {
  ul.nav li.dropdown:hover>ul.dropdown-menu {
    display: block;
  }
}

/** Header **/

h1 {
  text-align: center;
  font-weight: 700;
}

h2.minorh2 {
  margin-left: 4em;
}

/** Inputs **/

div.block {
  background-color: #D3D3D3;
  height: 6em;
  border: 2px solid #000;
  border-radius: 10px;
  max-width: 25em;
  margin: 0;
  padding: 0.3em;
}

label, input {
  display: inline-block;
  vertical-align: baseline;
}

input[type=number] {
  border: 1px solid #000;
  border-radius: 10px;
  text-align: center;
  outline: 0;
  box-shadow: inset 0px 0 5px #000;
  -moz-box-shadow: inset 0 0 5px #000;
  -webkit-box-shadow: inset 0 0 5px #000;
  background: #fff;
}

.minorInput {
  width: 14em;
}

.minor {
  width: 4.5em;
}

.no-spinners {
  -moz-appearance: textfield;
}

.no-spinners::-webkit-outer-spin-button, .no-spinners::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

#labelAge {
  margin-left: 10.5em;
}

#age {
  margin-left: 10em !important;
  width: 2.2em !important;
  max-height: 1.8em;
}

/** Outputs **/
#ageNote, #jointPainNote {
  display: none;
  margin-left: 9.5em;
}

#out {
  color: red;
}

#output {
  font-size: 18px;
  margin-left: 8em;
}

/** Select **/

#selectLeukocytosis, #selectFibrinogen {
  width: 86px;
}

select {
  border: 1px solid silver;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 25px;
  background: url(data:image/gif;base64,R0lGODlhCwALAJEAAAAAAP///xUVFf///yH5BAEAAAMALAAAAAALAAsAAAIPnI+py+0/hJzz0IruwjsVADs=);
  background-repeat: no-repeat;
  background-position: 95% 42%;
}

#mm {
  margin-left: .25em;
  padding: .05em .9em 0.2em .3em;
  border: 1px solid silver;
}

/** Checkboxes **/

.checkbox {
  padding-left: 20px;
}

.checkbox label {
  display: inline-block;
  position: relative;
  padding-left: 5px;
}

.checkbox label::before {
  content: "";
  display: inline-block;
  position: absolute;
  width: 17px;
  height: 17px;
  left: 0;
  margin-left: -20px;
  border: 1px solid #43e8d8;
  border-radius: 3px;
  background-color: #43e8d8;
  -webkit-transition: border 0.15s ease-in-out, color 0.15s ease-in-out;
  -o-transition: border 0.15s ease-in-out, color 0.15s ease-in-out;
  transition: border 0.15s ease-in-out, color 0.15s ease-in-out;
}

.checkbox label::after {
  display: inline-block;
  position: absolute;
  width: 16px;
  height: 16px;
  left: 0;
  top: 0;
  margin-left: -20px;
  padding-left: 3px;
  padding-top: 1px;
  font-size: 11px;
}

.checkbox input[type="checkbox"] {
  opacity: 0;
}

.checkbox input[type="checkbox"]:checked+label::after {
  font-family: 'FontAwesome';
  content: "\f00c";
}

.checkbox.checkbox-circle label::before {
  border-radius: 50%;
}

.checkbox-info input[type="checkbox"]:checked+label::before {
  background-color: #43e8d8;
  border-color: #43e8d8;
}

.checkbox-info input[type="checkbox"]:checked+label::after {
  color: #fff;
}

.main {
  color: #da251c;
  font-weight: 900;
}

/** Radios **/

.radio {
  margin-top: -.5px;
  padding-left: 20px;
}

.radio label {
  display: inline-block;
  position: relative;
  padding-left: 5px;
}

.radio label::before {
  content: "";
  display: inline-block;
  position: absolute;
  width: 17px;
  height: 17px;
  left: 0;
  margin-left: -20px;
  border: 1px solid #cccccc;
  border-radius: 50%;
  background-color: #fff;
  -webkit-transition: border 0.15s ease-in-out;
  -o-transition: border 0.15s ease-in-out;
  transition: border 0.15s ease-in-out;
}

.radio label::after {
  display: inline-block;
  position: absolute;
  content: " ";
  width: 11px;
  height: 11px;
  left: 3px;
  top: 3px;
  margin-left: -20px;
  border-radius: 50%;
  background-color: #555555;
  -webkit-transform: scale(0, 0);
  -ms-transform: scale(0, 0);
  -o-transform: scale(0, 0);
  transform: scale(0, 0);
  -webkit-transition: -webkit-transform 0.1s cubic-bezier(0.8, -0.33, 0.2, 1.33);
  -moz-transition: -moz-transform 0.1s cubic-bezier(0.8, -0.33, 0.2, 1.33);
  -o-transition: -o-transform 0.1s cubic-bezier(0.8, -0.33, 0.2, 1.33);
  transition: transform 0.1s cubic-bezier(0.8, -0.33, 0.2, 1.33);
}

.radio input[type="radio"] {
  opacity: 0;
}

.radio input[type="radio"]:checked+label::after {
  -webkit-transform: scale(1, 1);
  -ms-transform: scale(1, 1);
  -o-transform: scale(1, 1);
  transform: scale(1, 1);
}

.radio-danger input[type="radio"]+label::after {
  background-color: #d9534f;
}

.radio-danger input[type="radio"]:checked+label::before {
  border-color: #d9534f;
}

/** Footer **/

footer {
  margin: .5em;
}

/** Media Queries **/

@media (max-width: 500px) {
  .container {
    padding-left: 5px;
    padding-right: 4px;
  }

  body {
    font-size: 13px;
  }

  h1 {
    font-size: 20px;
  }

  h2 {
    font-size: 18px;
  }

  #output {
    font-size: 16px;
    margin-left: .1em;
  }


  #selectLeukocytosis, #selectFibrinogen {
    max-width: 6.5em;
  }

  #mm {
    padding: .1em 2.1em 0.2em .3em !important;
  }

  div.col-md-6, div.col-md-4 {
    padding: 0;
    margin: 0;
  }

  .minor {
    width: 3.8em;
  }

  .minorInput {
    width: 13.5em;
  }
}

@media (max-width: 991px) {
  h2.minorh2, h2 {
    margin-left: 0em;
    font-weight: 700;
  }
  #criteria {
    margin-left: 0em;
  }
  #ageNote, #jointPainNote {
    margin-left: .5em;
  }
}
