/* ===============================================
  CSS

  Colors:
  Linear Gradient: hsl(236, 72%, 79%) to hsl(237, 63%, 64%)
  Very Light Grayish Blue: hsl(240, 78%, 98%)
  Light Grayish Blue: hsl(234, 14%, 74%)
  Grayish Blue: hsl(233, 13%, 49%)
  Dark Grayish Blue: hsl(232, 13%, 33%)
================================================== */
/* HSL and Hex */
/* ==================================================
  Bootstrap Overrides
================================================== */
.btn {
  margin-top: 1em;
}
.btn-primary {
  background: #F7F7FF;
  border-color: hsl(237, 63%, 64%);
  color: hsl(237, 63%, 64%);
}
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary.active,
.open > .dropdown-toggle.btn-primary {
  background: hsl(237, 63%, 64%);
  border-color: #F7F7FF;
}
.btn-primary:active,
.btn-primary.active {
  background: hsl(234, 14%, 74%);
  box-shadow: none;
}
.custom-control-label {
  color: hsl(234, 14%, 74%);
}
.custom-control-input {
  background-color: hsl(237, 63%, 64%);
}
.no-padding {
  padding-left: 0;
  padding-right: 0;
}
/* ==================================================
  Typography
================================================== */
body {
  font-family: 'Montserrat', sans-serif;
  font-size: 20px;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
}
h1:first-of-type {
  color: hsl(233, 13%, 49%);
}
header a,
header a:hover {
  color: #FFFFFF;
  font-size: 1.2rem;
}
.attribution {
  font-size: 1rem;
  text-align: center;
}
.attribution a,
.attribution a:hover {
  color: hsl(237, 63%, 64%);
}
.plan-name {
  font-size: 1.2rem;
  color: hsl(233, 13%, 49%);
}
.plan-name-alt {
  color: #F7F7FF;
  padding-top: 1em;
}
.plan-price {
  font-size: 2.8rem;
  margin-bottom: 1.5rem;
}
/* ==================================================
  Custom Toggle
================================================== */
body section:first-of-type p {
  display: inline;
  margin: 1.2em;
  font-family: "Montserrat";
  color: hsl(234, 14%, 74%);
  font-weight: bold;
  font-size: 1em;
}
body section:first-of-type .switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
  top: -5px;
}
body section:first-of-type .switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
body section:first-of-type .slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to right, hsl(236, 72%, 79%) 0%, hsl(237, 63%, 64%) 100%);
  -webkit-transition: 0.4s;
  transition: 0.4s;
}
body section:first-of-type .slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  -webkit-transition: 0.4s;
  transition: 0.4s;
}
body section:first-of-type input:checked + .slider {
  background-color: hsl(236, 72%, 79%);
}
body section:first-of-type input:focus + .slider {
  box-shadow: 0 0 1px hsl(236, 72%, 79%);
}
body section:first-of-type input:checked + .slider:before {
  -webkit-transform: translateX(26px);
  -ms-transform: translateX(26px);
  transform: translateX(26px);
}
body section:first-of-type .slider.round {
  border-radius: 34px;
}
body section:first-of-type .slider.round:before {
  border-radius: 50%;
}
/* ==================================================
  Layout
================================================== */
body {
  background-color: #F7F7FF;
  height: 100vh;
}
body > img {
  position: absolute;
  z-index: -1;
}
body > img:first-of-type {
  right: 0;
  top: 0;
}
body > img:last-of-type {
  bottom: 0;
}
header {
  background-image: linear-gradient(to right, hsl(236, 72%, 79%), hsl(237, 63%, 64%));
  color: #F7F7FF;
  padding: 0.5em 10%;
}
.article-link {
  float: right;
  clear: both;
}
.attribution {
  padding-top: 2rem;
}
.plan-card {
  background-color: #F7F7FF;
  border: 1px solid #FFFFFF;
  border-radius: 5px;
  margin-top: 1em;
  padding: 1.5em;
}
.plan-card:first-of-type {
  box-shadow: -20px 30px 68px -30px rgba(0, 0, 0, 0.3);
}
.plan-card:last-of-type {
  box-shadow: 10px 20px 68px -30px rgba(0, 0, 0, 0.3);
}
.plan-card p {
  border-top: 1px solid hsl(234, 14%, 74%);
  line-height: 2;
  padding-top: 1em;
}
.plan-card p:last-of-type {
  border-bottom: 1px solid hsl(234, 14%, 74%);
  padding-bottom: 1em;
}
.plan-card-alt {
  background-color: hsl(237, 63%, 64%);
  background-image: linear-gradient(hsl(236, 72%, 79%), hsl(237, 63%, 64%));
  border: 1px solid #F7F7FF;
  color: #F7F7FF;
  padding-bottom: 2.5em;
}
.gradient {
  background-image: linear-gradient(to right, hsl(236, 72%, 79%), hsl(237, 63%, 64%));
  color: #F7F7FF;
}
.plans {
  padding-top: 2em;
  margin: 0 10%;
}
/* ==================================================
  Media Queries
================================================== */
@media (min-width: 576px) {
  .plan-card-alt {
    margin-top: 0;
  }
}
@media (min-width: 768px) {
  .plan-price {
    font-size: 2.9rem;
  }
}
@media (min-width: 992px) {
  .plan-price {
    font-size: 3.2rem;
  }
}
