html {
  font-size: 62.5%;
}

:root {
  --clr-pri: hsl(225, 100%, 94%);
  --clr-sec: white;
  --clr-sec-spt: hsl(225, 100%, 98%);
  --clr-txt: hsl(224, 23%, 55%);
  --box-shadow: hsla(224, 23%, 55%, .2);
  --clr-txt-sec: hsl(223, 47%, 23%);
  --clr-btn: hsl(245, 75%, 52%);
  --clr-btn-hover: hsla(245, 75%, 52%, .7);
}

body {
  font-family: "Red Hat Display", sans-serif;
  font-optical-sizing: auto;
  font-weight: 500;
  font-style: normal;
  font-size: 1.6rem;

  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  background: url(images/pattern-background-mobile.svg);
  background-color: var(--clr-pri);
  background-repeat: no-repeat;
  background-size: contain;
  background-position: top;
}

/*------------CONTAINER STYLING---------------*/
main.container {
  margin: 2rem 2rem 1rem;
  border-radius: 2rem;
  background-color: var(--clr-sec);
  overflow: hidden;
  max-width: 40rem;
  box-shadow: 0rem 1rem 2rem 1rem var(--box-shadow);
}

main.container > :first-child {
  width: 100%;
}

section.content {
  margin: 3rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  text-align: center;
}

/*h2*/
section.content > :first-child {
  font-weight: 900;
  color: var(--clr-txt-sec);
}

/*p tag*/
section.content > p:nth-of-type(1) {
  margin: 0 1.5rem;
  line-height: 1.6;
  color: var(--clr-txt);
  font-weight: 600;
}

/*--------ANNUAL PLAN CONTAINER-----------*/
div.annual-plan-changer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--clr-sec-spt);
  padding: 2rem;
  border-radius: 1rem;

}

/*div in annual*/
div.annual-plan-changer > :first-child {
  display: flex;
  gap: 2rem;
}

div.payment-plan {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: .5rem;
}

div.payment-plan h4 {
  font-weight: 800;
  color: var(--clr-txt-sec);
}

div.payment-plan div.yearly-price {
  color: var(--clr-txt);
}

div.annual-plan-changer a.change-button {
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--clr-btn);
}

div.annual-plan-changer a.change-button:hover {
  color: var(--clr-btn-hover);
  text-decoration: none;
}

button.payment-button {
  letter-spacing: .1rem;
  margin-top: .5rem;
  padding: 1.5rem;
  outline: none;
  border: none;
  border-radius: 1rem;
  font-weight: 800;
  color: var(--clr-sec);
  background-color: var(--clr-btn);
  box-shadow: 0rem 1.5rem 1.3rem .5rem var(--box-shadow);
}

button.payment-button:hover  {
  background-color: var(--clr-btn-hover);
}

a.cancel-order {
  text-decoration: none;
  font-weight: 800;
  color: var(--clr-txt);
}

a.cancel-order:hover  {
  color: var(--clr-txt-sec);
}


/*---------COMPONENT-----------*/
a:hover, button:hover {
  cursor: pointer;
}

/*---------RESPONSIVE DESIGN-----------*/
@media (min-width: 576px) {
  section.content {
    padding: 0 1.5rem;
  }
}

@media (min-width: 768px) {
  body {
    background: url(images/pattern-background-desktop.svg);
    background-color: var(--clr-pri);
    background-repeat: no-repeat;
    background-size: contain;
    background-position: top;
  }
}

.attribution { 
  font-size: 11px; 
  text-align: center; 
  color: var(--clr-btn);
}
.attribution a { 
  color: var(--clr-txt-sec); 
}