* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  list-style: none;
}

div.main-container {
  --left: 50;
}

a {
  text-decoration: none;
}

body {
  font-family: "Manrope", sans-serif;
  background-image: url("images/pattern-circles.svg"),
    url("images/bg-pattern.svg");
  background-repeat: no-repeat;
  /* background-size: cover; */
  background-position: center top 60px, top;
  /* height: 100vh; */
  margin: 5.5rem 2rem 1.5rem 2rem;
  display: grid;
  justify-content: center;
  justify-items: center;
  background-color: hsl(230, 100%, 99%);
  color: hsl(225, 20%, 60%);
  font-weight: 600;
}

h1 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: hsl(227, 35%, 25%);
}

#pageViews {
  letter-spacing: 2px;
}

#main-container {
  margin: 4rem 0;
  padding: 3rem 0 2rem 0rem;
  width: 380px;
  background-color: white;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0px 10px 30px rgb(230, 230, 230);
}

#main-container div {
  margin-bottom: 1rem;
}

#main-container div:nth-child(4) {
  margin-bottom: 3rem;
}

/* #sliderContainer {
    width: 85%;
    margin-left: 1.9rem;
} */

#slider {
  width: 88%;
  margin: 1.5rem 0 2.5rem 0;
  -webkit-appearance: none;
  appearance: none;
  border-radius: 50px;
  background-color: hsl(224, 65%, 95%);
  --left :50
}

input[type="range"]::-webkit-slider-runnable-track {
  height: 9px;
  border-radius: 50px;
  background-image: linear-gradient(to right, #a4f3eb calc(var(--left) * 1%), transparent 0%);
}

#slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 40px;
  height: 40px;
  background-color: hsl(174, 86%, 45%);
  border-radius: 50px;
  cursor: pointer;
  background-image: url(images/icon-slider.svg);
  background-repeat: no-repeat;
  background-size: 23px 13px;
  background-position: center;
  position: relative;
  bottom: 15px;
  box-shadow: 0px 17px 25px 7px hsl(174, 77%, 80%);
}

#cost {
  font-weight: 800;
  font-size: 2.8rem;
  color: hsl(227, 35%, 25%);
}

#checkbox-container {
  display: inline-flex;
}

input[type="checkbox"] {
  display: none;
}

#toggle {
  width: 48px;
  height: 27px;
  border-radius: 200px;
  background-color: hsl(223, 50%, 87%);
  position: relative;
  top: 7px;
  margin: 0 0.5rem;
}

#toggle::before {
  content: "";
  width: 23px;
  height: 23px;
  background-color: aliceblue;
  border-radius: 200px;
  position: absolute;
  top: 2px;
  left: 2px;
}

#check:checked + #toggle {
  background-color: hsl(174, 86%, 45%);
}

#check:checked + #toggle::before {
  transform: translateX(21px);
}

#billing-container {
  margin-top: 2rem;
}

#discount {
  font-size: 1rem;
  color: hsl(15, 100%, 70%);
  background-color: hsl(14, 92%, 95%);
  padding: 3px 10px;
  border-radius: 50px;
  font-weight: 800;
  margin-left: 0.5rem;
}

#above-border {
  padding-top: 1.8rem;
  border-top: 1px solid rgb(214, 214, 214);
}

#button {
  margin-top: 1.4rem;
  padding: 1rem 3.8rem;
  border-radius: 50px;
  color: hsl(223, 50%, 87%);
  text-align: center;
  background-color: hsl(227, 35%, 25%);
  display: inline-block;
  /* width: 200px; */
}

@media screen and (min-width: 600px) {
  body {
    font-size: 15px;
    margin: 4rem 2rem 1.5rem 2rem;
  }

  #main-container {
    margin: 1rem 0 1rem 0;
    padding: 2rem 0;
    width: 500px;
    height: 370px;
    display: grid;
    justify-items: center;
    align-items: center;
    grid-template-columns: 1fr 1fr;
    border-radius: 7px;
    box-shadow: 7px 7px 30px rgb(230, 230, 230);
  }

  #main-container div {
    margin-bottom: 0;
  }

  #main-container div:nth-child(4) {
    margin-bottom: 2rem;
  }

  #pageViews {
    font-size: 0.8rem;
  }

  #slider {
    grid-row: 2/3;
    grid-column: 1/3;
    width: 80%;
    height: 7px;
    /* background-color: hsl(174, 77%, 80%); */
    margin-top: 2rem;
  }

  #billing-container {
    margin-top: 0;
    grid-column: 1/3;
    font-size: 0.8rem;
  }

  #toggle {
    width: 38px;
    height: 20px;
  }

  #toggle::before {
    width: 13.6px;
    height: 13.6px;
    top: 3px;
    left: 3.5px;
    background-color: white;
  }

  #check:checked + #toggle::before {
    transform: translateX(17.6px);
  }

  label:hover {
    cursor: pointer;
  }

  #above-border {
    padding-top: 2rem;
    border-top: none;
  }

  #line {
    height: 1px;
    width: 100%;
    background-color: #ddd;
    grid-column: 1/3;
  }

  #cost {
    font-size: 2.4rem;
  }

  h1 {
    font-size: 1.3rem;
  }

  #perks-container div {
    margin-bottom: 0.7rem;
    text-align: left;
  }

  #discount {
    font-size: 0.7rem;
    padding: 3px 8px;
  }

  #main-container > #button {
    /* margin-bottom: 0; */
    margin: 0;
    padding: 0.7rem 3rem;
    font-size: 0.8rem;
  }

  #main-container > #button:hover {
    cursor: pointer;
    color: white;
  }
}
