@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@200..800&display=swap');
*{
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
.container1, .container2, .container3, body, .check-div, .price-div{
    display: flex;
    align-items: center;
}
body, .trial-btn{
    font-family: "Manrope", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
    background: hsl(230, 100%, 99%);
}
body{
    flex-direction: column;
    position: relative;
    background-image: url(assets/images/bg-pattern.svg);
    background-repeat: no-repeat;
    position: top;
    background-position-y: -40%;
    background-size: contain;
    caret-color: transparent;
}
main{
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: hsl(240, 6%, 93%) 1px 1px 10px 1px;
    width:500px;
}
.header{
    text-align: center;
    margin-bottom: 50px;
    margin-top: 70px;
}
.container1, .container3{
    justify-content: space-between;
}
.container1{
    margin-bottom: 40px;
}
.container2{
    justify-content: flex-end;
    margin-top: 40px;
}
hr{
    width:500px;
    margin-left: -40px;
    opacity: 0.1;
    margin-top: 30px;
    margin-bottom: 30px;
}
.check-div{
    margin-bottom: 7px;
}
.icon-check{
    margin-right: 10px;
}
h1{
    font-size: 32px;
    font-weight: 800;
    color: hsl(227, 35%, 25%);
}
h2{
    font-size: 28px;
    margin-bottom: 7px;
    color: hsl(227, 35%, 25%);
}
h3, .description, span{
    font-size: 15px;
}
h3, .description, span, p, .trial-btn{
    color: hsl(225, 20%, 60%);
    font-weight: 600;
}
p{
    font-size: 13px;
}
.discount-text{
    color:hsl(15, 100%, 70%);
    font-size: 10px;
}
.discount{
    background:hsl(14, 92%, 95%);
    border-radius: 10px;
    padding: 4px;
    margin-left: 5px;
}
.span-text{
    margin-left: 5px;
    margin-top: 10px;
}
.trial-btn{
    color:white;
    border: none;
    background: hsl(227, 35%, 25%);
    width:150px;
    height: 40px;
    border-radius: 20px;
    font-size: 12px;
}
.switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    margin-left: 7px;
    margin-right: 7px;
  }
  .switch input {
    opacity: 0;
    width: 0;
    height: 0;
  }
  .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left:0;
    right: 0;
    bottom: 0;
    background-color: hsl(174, 77%, 80%);
    -webkit-transition: .4s;
    transition: .4s;
  }
  .slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
  }
  input:checked + .slider {
    background: hsl(224, 65%, 95%);
  }
  input:focus + .slider {
    box-shadow: 0 0 1px hsl(224, 65%, 95%);
  }
  .slider.round {
    border-radius: 34px;
  }
  .slider.round:before {
    border-radius: 50%;
  }
  input:checked + .slider:before {
    transform: translateX(20px);
  }
  .pattern-circles{
    position: absolute;
    width: 120px;
    top:8%;
    left:50%;
    transform: translate(-50%);
    opacity: 0.7;
  }
  .icon-slider{
    filter: brightness(6)
  }
  button{
    cursor: pointer;
  }

  #slider-container {
    width: 100%;
    position: relative;
  }
  
  #slider {
    width: 100%;
  }
  
  #progress-bar {
    position: absolute;
    height: 8px;
    border-radius: 4px;
    top: 8px;
    width: 100%;
    z-index: 0;
    overflow: hidden;
  }
  
  #progress-bar-before {
    width: 50%; 
    height: 100%;
  }
  #slider {
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    cursor: pointer;
  } 
  
  #slider::-webkit-slider-runnable-track {
    background: transparent;
    height: 8px;
    border-radius: 4px;
    z-index: 1;
  }
  
  #slider::-moz-range-track {
    background: transparent;
    height: 8px;
    border-radius: 4px;
    z-index: 1;
  }
  
  #slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 44px;
    height: 44px;
    margin-top: -18px;
    background: url(assets/images/icon-slider.svg)  no-repeat center, #10d5c2;
    border-radius: 22px;
    box-shadow: 0 16px 32px #10d5c280;
    touch-action: none;
  }
  
  #slider:active::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 44px;
    height: 44px;
    margin-top: -18px;
    background: url(assets/images/icon-slider.svg)  no-repeat center, #087066;
    border-radius: 22px;
    box-shadow: 0 16px 32px #10d5c280;
    touch-action: none;
  }
  
  #slider::-moz-range-thumb {
    -webkit-appearance: none;
    appearance: none;
    border: none;
    width: 44px;
    height: 44px;
    margin-top: -18px;
    background: url(assets/images/icon-slider.svg)  no-repeat center, #10d5c2;
    border-radius: 22px;
    box-shadow: 0 16px 32px #10d5c280;
    touch-action: none;
  }
  
  #slider:active:-moz-range-thumb {
    -webkit-appearance: none;
    appearance: none;
    border: none;
    width: 44px;
    height: 44px;
    margin-top: -18px;
    background: url(assets/images/icon-slider.svg) no-repeat center, #087066;
    border-radius: 22px;
    box-shadow: 0 16px 32px #10d5c280;
    touch-action: none;
  }
  
  #progress-bar {
    background-color: #eaeefb;;
  }
  
  #progress-bar-before {
    background-color: #10d5c2
  }

  @media(max-width:500px){
    body{
        overflow-x: hidden;
        max-width: 500px;
        background-size: auto;
        background-position-y:0%;
    }
    .header{
        display: flex;
        align-items: center;
        flex-direction: column;
     }
     main,hr{
         width: 400px;
     }
     main{
        margin-bottom: 40px;
     }
     .container1, .container3{
         flex-direction: column;
         align-items: center;
     }
     .container2{
        margin-top: 20px;
     }
     .trial-btn{
         margin-top: 25px;
         width: 170px;
     }
     .list{
         display: flex;
         flex-direction: column;
         align-items: center;
     }
    h2{
        font-size: 23px;
    }
    h3{
        margin-bottom: 80px;
    }
    .description{
        width:200px;
    }
   #slider, #progress-bar{
      position: absolute;
      top:-55%;
   }
  }