@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700&display=swap');

:root {
  --gradient: linear-gradient(#a3a8f0, #696fdd);
  --veryLight: hsl(240, 78%, 98%);
  --Light: hsl(234, 14%, 74%);
  --grayshBlue: hsl(233, 13%, 49%);
  --darkGrayshb: hsl(232, 13%, 33%);
}

body {
  font-size: 15px;
  font-family: 'Montserrat', sans-serif;
  margin: 0;
  background-color: var(--veryLight);
  overflow: hidden;
}

.top-image {
  position: absolute;
  left: 79.5%;
  height: 75%;
  top: 0;
}

.bottom-image {
  position: absolute;
  top: 58%;
  bottom: 0;
}

.pricing-container {
  margin: 4% 45% 3% 45%;
  width: 50%;
}

.toggle {
  display: flex;
  flex-direction: row;
}

.pricing-container h1 {
  color: var(--grayshBlue);
  font-size: 28px;
  margin-left: 18px;
  margin-bottom: 34px;
}

.pricing-container p {
  color: var(--Light);
  margin: 2px 6px 0 4px;
  font-size: 13px;
}

.cards-container {
  display: flex;
  flex-direction: row;
  width: 64%;
  margin: 90px 20%;
}

.card,
.second-card {
  padding: 2px 15px;
  text-align: center;
  width: 40%;
  z-index: 1;
  height: 383px;
  background-color: white;
  border-radius: 15px;
  box-shadow: rgba(100, 100, 111, 0.2) 0 7px 29px 0;
}

.second-card {
  position: relative;
  padding-top: 30px;
  bottom: 30px;
  height: 410px;
  background: linear-gradient(#a3a8f0, #696fdd);
}

.white {
  color: white;
}

.card ul,
.second-card ul {
  list-style: none;
}

.card h2,
.second-card h2 {
  color: var(--darkGrayshb);
  font-size: 16px;
  margin-top: 20px;
}

.second-card h2 {
  color: white;
}

.price-text,
.second-card p {
  font-size: 53px;
  margin-top: 3px;
  margin-bottom: 30px;
  color: var(--darkGrayshb);
}

.second-card p {
  color: white;
}

.second-card hr {
  color: white;
  height: 0.3px;
  margin-bottom: 10px;
}

.details {
  color: var(--darkGrayshb);
  font-size: 14px;
  padding: 3px;
}

li {
  margin: 1px 0 19px 0;
  font-size: 14px;
}

button {
  background: linear-gradient(#a3a8f0, #696fdd);
  border: none;
  color: var(--veryLight);
  font-family: 'Montserrat', sans-serif;
  width: 96%;
  height: 40px;
  border-radius: 7px;
  font-size: 12px;
  letter-spacing: 2px;
  cursor: pointer;
}

button:hover,
.button-two {
  background: white;
  border: solid 1px var(--darkGrayshb);
  color: #696fdd;
}

.button-two {
  border: none;
  margin-top: 4px;
}

.button-two:hover {
  background: linear-gradient(#a3a8f0, #696fdd);
  color: white;
  border: solid 1px white;
}

.card hr {
  height: 0.3px;
  margin-bottom: 11px;
  background-color: gray;
  border: none;
}

/* The toggle switch */
.toggle p {
  margin: 5px 5px;
}

input[type="checkbox"].toggle {
  opacity: 0;
  position: absolute;
  left: -9000px;
  top: -9000px;
}

input[type="checkbox"].toggle + label {
  position: relative;
  display: flex;
  align-items: center;
  margin: 0 12px;
  cursor: pointer;
}

input[type="checkbox"].toggle + label::before {
  content: "";
  width: 50px;
  opacity: 0.4;
  height: 27px;
  background: linear-gradient(#a3a8f0, #696fdd);
  border-radius: 16px;
  margin-right: 4px;
  transition: background-color 200ms ease-in-out;
}

input[type="checkbox"].toggle + label::after {
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  content: "\2715";
  font-size: 8px;
  right: 10px;
  width: 19px;
  height: 19px;
  background-color: white;
  color: white;
  border-radius: 2em;
  transition: background-color 200ms ease-in-out, transform 200ms ease-in-out;
}

input[type="checkbox"].toggle:focus + label::before {
  outline: none;
}

input[type="checkbox"].toggle:checked + label::before {
  background-color: hsl(100, 70%, 90%);
  opacity: 0.9;
}

input[type="checkbox"].toggle:checked + label::after {
  transform: translateX(-116%);
}

@media screen and (max-device-width: 640px) {
  body {
    overflow: scroll;
    overflow-x: hidden;
    margin: 0;
  }

  .top-image {
    left: 60%;
    width: 58%;
    height: 50%;
  }

  .bottom-image {
    display: none;
  }

  .cards-container {
    margin: 40px 10%;
    flex-direction: column;
    justify-content: space-between;
    gap: 25px;
    width: 90%;
  }

  .pricing-container {
    margin: 15% 0 2% 20%;
    width: 50%;
  }

  .card,
  .second-card {
    padding: 2px 15px;
    text-align: center;
    width: 81%;
    height: 385px;
    background-color: white;
    border-radius: 15px;
    box-shadow: rgba(100, 100, 111, 0.2) 0 7px 29px 0;
  }

  .second-card {
    position: static;
    padding-top: 30px;
    height: 385px;
    background: linear-gradient(#a3a8f0, #696fdd);
  }

  .pricing-container h1 {
    color: var(--grayshBlue);
    font-size: 24px;
    margin-left: 20px;
    margin-bottom: 34px;
  }
}
