html {
  box-sizing: border-box;
}

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

body {
  height: 100%;
  font-family: "Montserrat", sans-serif;
  font-size: 15px;
  background: rgba(105, 111, 221, 0.1);
  /* background-image: url(images/bg-top.svg);
  background-repeat: no-repeat;
  background-position: left 100% top; */
  background-image: url(images/bg-top.svg), url(images/bg-bottom.svg);
  background-position: right top, left bottom;
  background-repeat: no-repeat;
}

/* utilities */
.sub__header {
  font-weight: 700;
  color: rgba(73, 76, 95, 0.8);
  font-size: 1rem;
}
.sub__header--light {
  font-weight: 700;
  color: #fff;
  font-size: 1rem;
}

.price__monthly {
  font-size: 3rem;
  font-weight: 700;
  color: hsl(232, 13%, 33%);
  margin: 1rem 0;
}

.price__monthly--light {
  color: #fff;
}

.m-heading {
  text-align: center;
  margin-top: 4rem;
  color: rgba(73, 76, 95, 0.8);
  font-weight: 700;
}

/* Header Section - Toggle Switch written at the bottom */
.container {
  text-align: center;
}
.container .slider_label {
  display: inline-block;
  vertical-align: middle;
  margin: 0rem 0.5rem;
  color: hsl(234, 14%, 74%);
  font-weight: 700;
}

/* Section - plans */
.plans__list {
  max-width: 60rem;
  min-height: 30rem;
  margin: 3rem auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

.plan {
  flex: 1;
  padding: 3rem;
  background: #fff;
  border: 1px solid #fff;
  text-align: center;
  align-self: center;
}

.plan:first-child {
  border-bottom-left-radius: 10px;
  border-top-left-radius: 10px;
  /* box-shadow: -2px -2px 5px 5px hsl(234, 14%, 74%); */
}

.plan:last-child {
  border-bottom-right-radius: 10px;
  border-top-right-radius: 10px;
  /* box-shadow: 2px -2px 5px 5px hsl(234, 14%, 74%); */
}

.plan__features {
  list-style: none;
  font-family: inherit;
  margin: 0;
  padding: 0;
  color: rgba(73, 76, 95, 0.8);
}

.plan__features--light {
  color: #fff;
}

.plan li {
  padding: 1rem 0;
  border-bottom: 0.5px solid #444;
  font-family: inherit;
  font-weight: 700;
}

.plan li:first-child {
  border-top: 0.5px solid #444;
}
.plan li:last-child {
  border-bottom: none;
}
.plan li a {
  text-decoration: none;
  font-family: inherit;
  display: block;
  padding: 0.6rem 0.5rem;
  color: #fff;
  background-image: linear-gradient(
    to right,
    hsl(236, 72%, 79%),
    hsl(237, 63%, 64%)
  );
  border-radius: 8px;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.plan--highlighted {
  border: none;
  border: 1px solid hsl(236, 72%, 79%);
  background-image: linear-gradient(
    to right bottom,
    hsl(236, 72%, 79%),
    hsl(237, 63%, 64%)
  );
  color: #fff;
  z-index: 1;
  align-self: stretch;
  border-radius: 10px;
  padding-top: 4.3rem;
}

.plan--highlighted li {
  border-bottom: 0.5px solid hsl(236, 72%, 79%);
}

.plan--highlighted li:first-child {
  border-top: 0.5px solid hsl(236, 72%, 79%);
}
.plan--highlighted li:last-child {
  border-bottom: none;
}

.plan--highlighted li a {
  color: hsl(237, 63%, 64%);
  background: #fff;
}
.attribution {
  text-align: center;
  color: hsl(232, 13%, 33%);
}

.attribution a {
  text-decoration: none;
  color: hsl(232, 13%, 33%);
}

/* media queries */
@media only screen and (max-width: 800px) {
  body {
    background-image: url(images/bg-top.svg);
    background-position: right top;
    background-size: 80%;
    background-repeat: no-repeat;
  }
  .plans__list {
    flex-wrap: wrap;
    min-height: 30rem;
    min-width: 30rem;
  }
  .plan {
    flex: 1 1 100%;
    margin: 1rem 2rem;
    box-shadow: 0 0 10px 2px hsl(234, 14%, 74%);
  }
  .plan:first-child {
    border-bottom-left-radius: 0;
    border-top-left-radius: 0;
    border-radius: 5px;
    box-shadow: 0 0 10px 2px hsl(234, 14%, 74%);
  }

  .plan:last-child {
    border-bottom-right-radius: 0;
    border-top-right-radius: 0;
    border-radius: 5px;
    box-shadow: 0 0 10px 2px hsl(234, 14%, 74%);
  }
  .attribution {
    width: 70%;
    margin: 0 auto;
    text-align: center;
  }
}

/* toggle switch */

.switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 20px;
}

/* Hide default HTML checkbox */
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

/* The slider */
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: hsl(237, 63%, 64%);
  -webkit-transition: 0.4s;
  transition: 0.4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  top: 1px;
  left: 20px;
  bottom: 2px;
  background-color: white;
  -webkit-transition: 0.4s;
  transition: 0.4s;
}

input:checked + .slider {
  background-color: hsl(236, 72%, 79%);
}

input:focus + .slider {
  box-shadow: 0 0 1px hsl(236, 72%, 79%);
}

input:checked + .slider:before {
  -webkit-transform: translateX(-20px);
  -ms-transform: translateX(-20px);
  transform: translateX(-20px);
}

/* Rounded sliders */
.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}
