*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
ul,
hr,
figure,
a {
  padding: 0;
  margin: 0;
  list-style-type: none;
  text-decoration: none;
}

img {
  max-width: 100%;
}

button {
  border: none;
  background: none;
}

:root {
  --soft-cyan-clr: hsl(174, 77%, 80%);
  --strong-cyan-clr: hsl(174, 86%, 45%);
  --light-grayish-red-clr: hsl(14, 92%, 95%);
  --light-red-clr: hsl(15, 100%, 70%);
  --pale-blue-clr: hsl(226, 100%, 87%);
  --white-clr: hsl(0, 0%, 100%);
  --very-pale-blue-clr: hsl(230, 100%, 99%);
  --light-grayish-blue-clr: hsl(224, 65%, 95%);
  --light-grayish-blue-clr2: hsl(223, 50%, 87%);
  --grayish-blue-clr: hsl(225, 20%, 60%);
  --dark-desaturated-blue-clr: hsl(227, 35%, 25%);
  --fs: 15px;
  --primary-ff: "Manrope", sans-serif;
}

body {
  font-size: var(--fs);
  font-family: var(--primary-ff);
  font-weight: 600;
  background-image: url(../img/bg-pattern.svg);
  background-repeat: no-repeat;
  background-size: cover;
  background-color: var(--very-pale-blue-clr);
}

main {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
}

.bg {
  text-align: center;
  background-image: url(../img/pattern-circles.svg);
  background-position: center;
  background-repeat: no-repeat;
  padding: 40px 0px;
}

.title {
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--dark-desaturated-blue-clr);
}

.text {
  color: var(--grayish-blue-clr);
  font-weight: 600;
}

.letter-space {
  letter-spacing: 3px;
}

.box {
  background-color: var(--white-clr);
  width: 500px;
  border-radius: 10px;
  box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.2);
  position: relative;
}

.wrapper {
  padding: 2rem;
}

.grid-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  align-items: center;
}

.grid-item:first-child {
  margin-bottom: 1.5rem;
}

.grid-item:nth-child(2) {
  justify-self: end;
  margin-bottom: 1.5rem;
}

.grid-item:last-child {
  grid-column: 1 / 3;
  margin-bottom: 1.5rem;
}

.price {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--dark-desaturated-blue-clr);
  margin-right: 1rem;
}

.slider {
  -webkit-appearance: none;
  width: 100%;
  height: 20px;
  background-color: var(--light-grayish-blue-clr);
  border-radius: 100vh;
  outline: none;
}

.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--strong-cyan-clr) url(../img/icon-slider.svg) no-repeat
    center;
  cursor: pointer;
  position: relative;
  z-index: 1;
  transition: 200ms ease-in-out;
}

.slider::-moz-range-thumb {
  -webkit-appearance: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--strong-cyan-clr) url(../img/icon-slider.svg) no-repeat
    center;
  cursor: pointer;
  position: relative;
  z-index: 1;
}

.slider::-ms-thumb {
  -webkit-appearance: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--strong-cyan-clr) url(../img/icon-slider.svg) no-repeat
    center;
  cursor: pointer;
  position: relative;
  z-index: 1;
}

.slider::-webkit-slider-thumb:hover {
  background-color: var(--soft-cyan-clr);
}

.slider::-webkit-slider-thumb:active {
  background-color: var(--strong-cyan-clr);
}

.slider::-moz-range-thumb:hover {
  background-color: var(--soft-cyan-clr);
}

.slider::-moz-range-thumb:active {
  background-color: var(--strong-cyan-clr);
}

.slider::-ms-thumb:hover {
  background-color: var(--soft-cyan-clr);
}

.slider::-ms-thumb:active {
  background-color: var(--strong-cyan-clr);
}

.progress-bar {
  position: absolute;
  top: 0;
  left: 0;
  background-color: var(--soft-cyan-clr);
  height: 20px;
  border-radius: 100vh;
}

.toggle-btn {
  width: 3rem;
  height: 1.5rem;
  border-radius: 100vh;
  background-color: var(--light-grayish-blue-clr2);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  transition: 200ms ease-in-out;
}

.toggle-btn.active {
  justify-content: flex-end;
}

.toggle-btn:hover {
  background-color: var(--soft-cyan-clr);
}

.circle {
  display: block;
  width: 20px;
  height: 20px;
  background-color: var(--white-clr);
  border-radius: 50%;
  margin: calc(1.5rem - 20px);
}

.discount {
  display: block;
  padding: 5px 10px;
  background-color: var(--light-grayish-red-clr);
  color: var(--light-red-clr);
  border-radius: 100vh;
}

.line {
  color: var(--grayish-blue-clr);
}

ul li:not(:last-child) {
  margin-bottom: 10px;
}

ul li img {
  margin-right: 10px;
}

.primary-btn {
  background-color: var(--dark-desaturated-blue-clr);
  color: var(--pale-blue-clr);
  padding: 1rem 3.5rem;
  border-radius: 100vh;
  transition: 200ms ease-in-out;
}

.primary-btn:hover {
  color: var(--white-clr);
}

/* Media Queries */

@media all and (max-width: 768px) {
  .box {
    width: 90%;
    margin: 0px auto;
  }

  .wrapper {
    padding: 30px 15px;
  }

  .grid-container {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .grid-item:nth-child(2) {
    justify-self: center;
  }

  .grid-item:last-child {
    grid-column: auto;
    grid-row: 2 / 3;
    width: 100%;
  }

  ul {
    margin-bottom: 20px;
    text-align: center;
  }
}
