@charset "UTF-8";
body {
  margin: 0;
  border:1px solid lightgrey;
}

.clearfix:after {
  content: "";
  display: table;
  clear: both;
}

*, *:before, *:after {
  box-sizing: inherit;
}

/* Wrapper */
.speedingFines-wrapper {
  position: relative;
  font-family: 'Open Sans', sans-serif;
  margin: 0 auto;
  max-width: 780px;
  /* iframe height 780px */
  min-height: 780px;
  max-height: 780px;
  min-width: 280px;
  width: 100%;
  background-color: #003ab0;
  background-image: -webkit-linear-gradient(to bottom, #003ab0, #003ab0);
  background-image: -webkit-linear-gradient(top, #003ab0, #003ab0);
  box-shadow: 0px 3px 3px 0px rgba(50, 50, 50, 0.25);
  border-radius: 5px;
  overflow: hidden;
  box-sizing: border-box;
}

/* Background */
.speedingFines-svg {
  position: absolute;  
  top: 80px;
  width: 100%;
}

/* Header */
.speedingFines-header {
  background: white;
  padding: 1.5em 1em;
  text-align: center;
  border-bottom: 1px solid lightgrey;
  

}

.brandLogo {
  width: 12em;
  height: 2em;
  margin:auto;
}

/* Main */
.speedingFines {
  position: relative;
  z-index: 2;
  padding: 1em;
}

/* Panels */
.speedingFines-wrapper .panelTwo,
.speedingFines-wrapper.is-next .panelOne {
  display: none;
}

.speedingFines-wrapper.is-next .panelTwo {
  display: block;
}

/* Column */
.speedingFines-column {
  text-align: center;
}

@media (min-width: 600px) {
  .speedingFines {
    padding: 2em;
  }

  .speedingFines-column {
    display: inline-block;
    float: left;
    width: 50%;
    padding-right: 1em;
  }


  .speedingFines-column:last-of-type {
    padding-left: 1em;
  }
}
/* Introduction */
.speedingFines-content {
  max-width: 32em;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
  padding-top: 70px;
}


.speedingFines-content h1{
  font-size: 51px;
  line-height: 57px;
}

/* Typography*/
h1 {
  color: white;
}

.description {
  color: #dbf2ff;
  font-size: 1.2em;
}

mark {
  background: #dbf2ff;
  border-radius: 5px;
}

.additional-information {
  display: block;
  text-align: center;
  padding: .5em;
  font-size: .75em;
}

/* Button */
.button {
  display: inline-block;
  color: #ffffff;
  margin: 2em 0;
  padding: 1.5em 5em;
  font-size: 1em;
  border-radius: 5px;
  box-shadow: 0 3px 3px 0 rgba(50, 50, 50, 0.25);
  text-transform: uppercase;
  text-align: center;
  letter-spacing: .1em;
  text-decoration: none;
  font-weight: 700;
  border: 0;
  background-color: #1485df;
  background-image: -webkit-linear-gradient(top, #1485df, #1485df);
  background-image: linear-gradient(to bottom, #1485df, #1485df);
  cursor: pointer;
}

/*Form*/
.speedingFines-form {
  margin: 0;
}

.speedingFines-input-wrapper {
  margin-bottom: 2em;
}

.speedingFines-form label {
  display: block;
  text-align: center;
  color: #000000;
  font-size: 1em;
  font-weight: 300;
  padding-bottom: .5em;
  margin-bottom: .5em;
}

/* Salary input */
.salaryInput-wrapper {
  position: relative;
  text-align: center;
  max-width: 540px;
  width: 100%;
  margin: auto;

}

.poundsign{
    font-size: 1.5em;
    font-weight: 800;
    color: #999;
}

#salaryInput {
  width: 40%;
  border-radius: 5px;
  font-size: 1.25em;
  font-weight: 400;
  padding:  0.40em 1em;
}

/* Speed Limit */
.speedLimitLabel {
  display: inline-block;
  vertical-align: middle;
  background: white;
  border: solid 0.75rem #CC0000;
  border-radius: 50%;
  padding: 0.7rem;
  line-height: 1;
  font-size: 2em;
  font-weight: 600;
  color:black;
}

/* Speed up/down*/
.speedLimitUp,
.speedLimitDown {
  display: inline-block;
  border-radius: 5px;
  padding: 0.5rem;
  color: #707070;
  /* Permalink - use to edit and share this gradient: https://colorzilla.com/gradient-editor/#fdfdfd+0,f4f4f4+100 */
  background: #fdfdfd; /* Old browsers */
  background: -moz-linear-gradient(top,  #fdfdfd 0%, #f4f4f4 100%); /* FF3.6-15 */
  background: -webkit-linear-gradient(top,  #fdfdfd 0%,#f4f4f4 100%); /* Chrome10-25,Safari5.1-6 */
  background: linear-gradient(to bottom,  #fdfdfd 0%,#f4f4f4 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#fdfdfd', endColorstr='#f4f4f4',GradientType=0 ); /* IE6-9 */
  font-size: 1.5em;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid lightgray;
}

@media (min-width: 400px) {
  .speedLimitUp,
  .speedLimitDown {
    padding: .1rem 1rem;
    font-size: 2em;
  }
}
.speedLimitUp {
  margin-left: .5em;
}

.speedLimitDown {
  margin-right: .5em;
}

/* Message output */
.calculatorMessage {
  background: white;
  border-radius: 5px;
  padding: 1em;
}

.fineAmount {
  font-size: 3em;
  color: #cc0000;
  margin: .25em 0;
}

/* Speed */
.speedLabel-wrapper {
  margin: 1em 0;
  font-weight: 300;
  color:#000000;

}

.speedLabel {
  font-size: 2em;
  font-weight: 400;
  margin-right: .1em;
}

/*Range input */
#speedInput {
  width: 100%;
  background: transparent;
}

#speedInput[type=range] {
  -webkit-appearance: none;
  width: 100%;
}

#speedInput[type=range]:focus {
  outline: none;
}

#speedInput[type=range]::-webkit-slider-runnable-track {
  width: 100%;
  height: 0.5em;
  cursor: pointer;
  background: lightgray;
  border-radius: 5pc;
}

#speedInput[type=range]::-webkit-slider-thumb {
  height: 20px;
  width: 20px;
  border-radius: 50%;
  background: #0575cf;
  cursor: pointer;
  -webkit-appearance: none;
  margin-top: -8px;
}

#speedInput[type=range]:focus::-webkit-slider-runnable-track {
  background: lightgray;
}

#speedInput[type=range]::-moz-range-track {
  width: 100%;
  height: 0.5em;
  cursor: pointer;
  animate: 0.2s;
  background: lightgray;
}

#speedInput[type=range]::-moz-range-thumb {
  height: 20px;
  width: 20px;
  border-radius: 50%;
  background: #0575cf;
  cursor: pointer;
}

#speedInput[type=range]::-ms-track {
  width: 100%;
  height: 0.5em;
  cursor: pointer;
  background: transparent;
  border-color: transparent;
  border-width: 16px 0;
  color: transparent;
}

#speedInput[type=range]::-ms-fill-lower {
  background: lightgray;
  border-radius: 2.6px;
}

#speedInput[type=range]::-ms-fill-upper {
  background: lightgray;
  border-radius: 2.6px;
}

#speedInput[type=range]::-ms-thumb {
  height: 25px;
  width: 25px;
  border-radius: 50%;
  background: #0575cf;
  cursor: pointer;
}

#speedInput[type=range]:focus::-ms-fill-lower {
  background: lightgray;
}

#speedInput[type=range]:focus::-ms-fill-upper {
  background: lightgray;
}

/* Fine messaging */
.calculatorMessage {
  background: white;
  border-radius: 5px;
  padding: 1em;
  margin-top: 0;
}

.calculatorMessage.offence .fineAmount {
  color: White;
}

.fineAmount {
  font-size: 2.5em;
  color: green;
  margin: .25em 0;
}

.fineBand{
  padding-bottom: 10px;
}

.finePoints{
  padding-bottom:10px;
}

/*Fine description*/
.fine,
.fineMessage {
  text-align: center;

}

.fine{
  border-radius: 5px 5px 0 0;
}

.fineMessage {
  background: #deecc1;
  color: #006522;
  padding: .5em;
  border-radius: 0 0 5px 5px ;
}

/* Has made an offence */
.calculatorMessage.offence .fineMessage {
  background: #FFDCDC;
  color: red;
}

/* Fine Disclaimer */
.fineDisclaimer {
  font-size: 0.9em;
  margin-bottom: 0;
  text-align: center;
}
.speedingFines-form,
  .fineOpener,
  .fineMessage {
    
    padding-top:20px;
    color:white;
  }

  .fineAmount{    
    margin: 0;
  }

/* Specific query sizing for iframe*/
@media (max-width: 600px) {
  .speedingFines-header {
    font-size: 70%;
  }

  .speedLabel {
    font-size: 3em;
  }

  .speedLimitLabel {
    font-size: 2em;
    border-width: .5rem;
  }

  .speedLimitUp,
  .speedLimitDown {
    padding: .5rem 1rem;
  }

  .speedingFines-form,
  .fineOpener,
  .fineMessage {
    font-size: 80%;
  }

  .calculatorMessage {
    margin-top: 0;
  }

  .fineAmount {
    font-size: 1.75em;
  }

  .fineDisclaimer {
    font-size: .75em;
  }

  .speedingFines-input-wrapper{
    padding: 1em;
  }
}
