/* GOOGLE FONT IMPORT */
@import url("https://fonts.googleapis.com/css2?family=Red+Hat+Display:ital,wght@0,300..900;1,300..900&display=swap");

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

/* CUSTOM VARIABLES */
:root {
  --blue-100: hsl(225, 100%, 94%);
  --blue-700: hsl(245, 75%, 52%);
  --blue-50: hsl(225, 100%, 98%);
  --blue-950: hsl(223, 47%, 23%);
  --grey: hsl(224, 23%, 55%);
}

/* CARD STYLING */
body {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  width: 100dvw;
  height: 100dvh;
  font-size: 16px;
  font-family: "Red Hat Display", sans-serif;
  background: url(./images/pattern-background-desktop.svg);
  background-repeat: no-repeat;
  background-position: top;
  background-color: var(--blue-100);
}

.card {
  max-width: 350px;
  border-radius: 1em;
  background-color: #fff;
}

.header-img {
  width: 100%;
  height: auto;
  border-radius: 1em 1em 0 0;
}

.card-body {
  padding: 1em;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.card-title {
  color: var(--blue-950);
  font-weight: 900;
  margin-top: 0.5em;
}

.card-text {
  text-align: center;
  color: var(--grey);
  font-weight: 700;
  opacity: 0.8;
  margin-top: 0.8em;
}

/* pricing section */

.icon {
  transition: all 0.3s ease;
}

.icon:hover {
  transform: rotate(20deg);
}

.pricing-plan {
  width: 90%;
  display: flex;
  justify-content: space-around;
  align-items: center;
  margin-top: 1.2em;
  gap: 4.5rem;
  background-color: var(--blue-50);
  padding: 1em;
  font-size: 0.8em;
  border-radius: 0.8em;
  transition: all 0.3s ease;
}

.pricing-plan:hover {
  box-shadow: 6px 6px 10px hsla(245, 75%, 52%, 0.05);
}

.plans {
  display: flex;
  align-items: center;
  gap: 1.2em;
}

.annual-plan {
  font-weight: 900;
}

.price {
  margin-top: 0.2em;
  color: var(--grey);
  font-weight: 500;
}

.link {
  color: var(--blue-700);
  font-weight: 900;
  transition: all 0.3s ease;
}

.link:hover {
  opacity: 0.5;
  text-decoration: none;
}

/* buttons */

.pay {
  padding: 1em;
  width: 90%;
  border: none;
  outline: none;
  background-color: var(--blue-700);
  color: var(--blue-50);
  font-weight: 900;
  border-radius: 0.5em;
  margin-top: 1.5em;
  box-shadow: 6px 6px 10px hsla(245, 75%, 52%, 0.1);
  cursor: pointer;
  transition: all 0.3s ease;
}

.pay:hover {
  opacity: 0.7;
  color: #fff;
  box-shadow: 6px 6px 10px hsla(245, 75%, 52%, 0.35);
}

.order {
  margin: 1.5em 0;
  border: none;
  border-radius: 0.5em;
  outline: none;
  color: var(--grey);
  font-size: 0.8em;
  background-color: transparent;
  font-weight: 900;
  cursor: pointer;
  transition: all 0.3s ease;
}

.order:hover {
  color: var(--blue-950);
  font-weight: 900;
}

/* FOOTER */
.attribution {
  margin-top: 2rem;
  font-size: 11px;
  text-align: center;
}
.attribution a {
  color: hsl(228, 45%, 44%);
}

/* background for mobile devices */
@media (max-width: 450px) {
  body {
    background: url(./images/pattern-background-mobile.svg);
    background-repeat: no-repeat;
    background-position: top;
    background-size: contain;
    background-color: var(--blue-100);
  }
}
