/**
 * All of the CSS for your public-facing functionality should be
 * included in this file.
 */

.kalkulaator {
  margin: 0 auto;
  background: #3a3738;
  color: #fff;
  padding: 60px;
  margin-bottom: 80px;
  margin-top: 80px;
}
label {
  display: block;
  margin-bottom: 5px;
}
input[type="range"] {
  width: 100%;
  background: transparent;
}

.kalkulaator-inner {
  display: grid;

  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  grid-gap: 30px;
  margin-bottom: 30px;
}
input#total {
  background: transparent;
  border: unset;
  text-align: center;
  font-size: 60px;
  width: 100%;
  color: #1adf8f;
}
.calc-inputs {
  padding-bottom: 30px;
}
label.hidden {
  display: none;
}
input#product_amount {
  width: 100%;
  background: transparent;
  display: inline-block;
}
.calc-total {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #f3f3f3;
  padding: 30px 10px;
  color: #000;
}
.total-img {
  position: relative;
  display: block;
  width: 100%;
  text-align: center;
  display: flex;
  justify-content: center;
}
.calc-total img {
  max-width: 100px;
  position: absolute;
  top: 0;
}
span.total-desc {
  display: block;
  margin: 35px 0;
  font-size: 18px;
}
span.total-extra {
  font-size: 28px;
}

.calc-inputs label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0;
  margin-top: 25px;
  font-size: 17px;
  font-weight: 300;
  align-items: center;
}

span#width_value, span#height_value, span#kogus_value, input#width_value, input#height_value, input#kogus_value {
  display: inline-block;
  border: 1px solid #fff;
  padding: 10px;
  max-width: 60px;
  text-align: center;
  background: transparent;
  width: 100%;
}

.calc-extra {
  text-align: center;
}

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  cursor: pointer;
  width: 100%;
}

/********** Range Input Styles **********/
/*Range Reset*/
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  cursor: pointer;
  width: 100%;
}

/* Removes default focus */
input[type="range"]:focus {
  outline: none;
}

/***** Chrome, Safari, Opera and Edge Chromium styles *****/
/* slider track */
input[type="range"]::-webkit-slider-runnable-track {
  background-color: #fff;
  border-radius: 10px;
  height: 2px;
}

/* slider thumb */
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; /* Override default look */
  appearance: none;
  margin-top: -7px; /* Centers thumb on the track */

  /*custom styles*/
  background-color: #f3f3f3;
  height: 15px;
  width: 15px;
  border-radius: 20px;
}

/******** Firefox styles ********/
/* slider track */
input[type="range"]::-moz-range-track {
  background-color: #053a5f;
  border-radius: 0.5rem;
  height: 0.5rem;
}

/* slider thumb */
input[type="range"]::-moz-range-thumb {
  border: none; /*Removes extra border that FF applies*/
  border-radius: 0; /*Removes default border-radius that FF applies*/

  /*custom styles*/
  background-color: #fff;
  height: 1rem;
  width: 1rem;
  border-radius: 1rem;
}

section.kalkulaator h3 {
  padding-top: 0;
  margin-top: 0;
  font-weight: 400;
  color: #fff;
  text-align: center;
  margin-bottom: 40px;
}

/* Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Firefox */
input[type="number"] {
  -moz-appearance: textfield;
}

@media all and (max-width: 720px) {
  .kalkulaator {
    padding: 30px;
    margin-left: 30px;
    margin-right: 30px;
  }
}

div#selectcontainer {
  padding-right: 10px;
  border: 1px solid #fff;
  margin-top: 10px;
}

select#product {
  color: #fff;
  background: transparent;
  padding: 10px;
  border: unset;
  width: 100%;
}
select#product option {
  color: #000;
}

@media all and (max-width: 768px) {
    .kalkulaator {
        margin-left: 0;
        margin-right: 0;
    }
.calc-total {
    padding-bottom: 60px;
}

}

@media all and (max-width: 500px) {

.kalkulaator-inner {
    grid-template-columns: 1fr;
}


}

section.kalkulaator {
    position: relative;
}
section.kalkulaator:before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: 100%;
    height: 100%;
    background: #3a3738;
    z-index: -1;
}
section.kalkulaator:after {
    content: "";
    position: absolute;
    top: 0;
    right: 50%;
    width: 100%;
    height: 100%;
    background: #3a3738;
    z-index: -1;
}

body {
    overflow-x: hidden;
}