@import url("https://fonts.googleapis.com/css?family=Open+Sans:400,600");

body,
html {
  margin: 0;
  padding: 1rem;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  font-size: 16px;
  font-family: "Open Sans", "Helvetica", sans-serif;
  -webkit-font-smoothing: antialiased;
  background-color: #EEE;
}

fieldset {
  width: 25vw;
  margin: auto;
  margin-top: 100px;
  border: 1px solid black;
  padding: 10px;
  /* aspect-ratio: 6/4; */
}

.results,
.resultBreakdown {
  text-align: center;
}

.results {
  font-size: 2em;
  font-weight: bold;
  color: red;
}

#averagePriceGetButton {
  display: flex;
  justify-content: center;
  margin-bottom: 15px;
}

.fuelTypeToggle * {
  outline: none !important;
  user-select: none;
}

.fuelTypeToggle {
  box-sizing: border-box;
  font-size: 0;
  display: flex;
  flex-flow: row nowrap;
  justify-content: center;
  align-items: stretch;
}

.fuelTypeToggle input {
  width: 0;
  height: 0;
  position: absolute;
  left: -9999px;
}

.fuelTypeToggle input+label {
  margin: 0;
  padding: 0.75rem 2rem;
  box-sizing: border-box;
  position: relative;
  display: inline-block;
  border: solid 1px #DDD;
  background-color: #FFF;
  font-size: 1rem;
  line-height: 140%;
  font-weight: 600;
  text-align: center;
  box-shadow: 0 0 0 rgba(255, 255, 255, 0);
  transition: border-color 0.15s ease-out, color 0.25s ease-out, background-color 0.15s ease-out, box-shadow 0.15s ease-out;
}

.fuelTypeToggle input+label:first-of-type {
  border-radius: 6px 0 0 6px;
  border-right: none;
}

.fuelTypeToggle input+label:last-of-type {
  border-radius: 0 6px 6px 0;
  border-left: none;
}

.fuelTypeToggle input:hover+label {
  border-color: #213140;
}

.fuelTypeToggle input:checked+label {
  background-color: #4B9DEA;
  color: #FFF;
  box-shadow: 0 0 10px rgba(102, 179, 251, 0.5);
  border-color: #4B9DEA;
  z-index: 1;
}

.fuelTypeToggle input:focus+label {
  outline: dotted 1px #CCC;
  outline-offset: 0.45rem;
}

.saved {
  text-align: center;
}

.heading {
  text-align: center;
  font-size: 1.2em;
  font-weight: bold;
}

.savedResult {
  cursor: pointer;
}

.savedExtra {
  display: none;
  background-color: #d2d2d2;
  color: black;
}

.savedExtraActive {
  display: block;
}

.fuel-diesel {
  color: black;
}

.fuel-petrol {
  color: #00963f;
}

#version {
  position: fixed;
  bottom: 10px;
  right: 10px;
  font-size: 0.8rem;
  color: #888;
  user-select: none;
}
