@import url('https://fonts.googleapis.com/css2?family=Red+Hat+Display:wght@500;700;900&display=swap');
:root {
  --pale-blue: hsl(225, 100%, 94%);
  --bright-blue: hsl(245, 75%, 52%);
  --bright-blue-hover: hsl(245, 83%, 68%);
  --bright-blue-bg: hsla(245, 75%, 52%, 20%);

  --very-pale-blue: hsl(225, 100%, 98%);
  --desaturated-blue: hsl(223, 23%, 55%);
  --dark-blue: hsl(223, 46%, 23%);

  --white: hsl(255, 100%, 100%);
}
html {
  font-size: 62.5%;
}
* {
  font-family: 'Red Hat Display', sans-serif;
  color: var(--desaturated-blue);
}
body {
  background: var(--pale-blue) url('images/pattern-background-mobile.svg') repeat-x;
  margin: 0;
  display: flex;
  min-block-size: 100vh;
  flex-direction: column;
  font-size: 1.5rem;
}
a {
  color: var(--bright-blue);
  text-underline-offset: 0.5rem;
}
a:hover {
  color: var(--bright-blue-hover);
  text-decoration: none;
}
main {
  flex-grow: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}
.order-summary .icon {
  inline-size: 4.8rem;
  block-size: 4.8rem;
}
.order-summary {
  max-inline-size: 45rem;
  background-color: var(--white);
  border-radius: 2rem;
  text-align: center;
  margin: 0 2.5rem;
}
.order-summary h1 {
  margin-block-start: 0;
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--dark-blue);
}
.order-summary img {
  inline-size: 100%;
  margin-inline-end: 1.5rem;
  border-radius: 2rem 2rem 0 0;
}
.order-summary section {
  padding: 2.5rem 2.5rem 1rem 2.5rem;
}
.order-summary p {
  padding: 0 0.5rem;
  line-height: 1.7em;
  margin-block-end: 2.5rem;
}
.order-summary .plan-type {
  font-size: 1.4rem;
  display: flex;
  border-radius: 1.1rem;
  background-color: var(--very-pale-blue);
  align-items: center;
  padding: 1.5rem;
}
.order-summary .plan-type h2 {
  margin: 0;
  font-weight: 900;
  color: var(--dark-blue);
  font-size: inherit;
}
.order-summary .plan-type a {
  font-size: 1.3rem;
  font-weight: 700;
  margin-inline-start: auto;
}
button {
  font-weight: 900;
  font-size: 1.5rem;
  background: none;
  border: 0;
  inline-size: 100%;
  display: block;
  margin-block: 1rem;
  padding: 1.5rem;
  cursor: pointer;
}
button.button-primary {
  border-radius: 1.1rem;
  background-color: var(--bright-blue);
  color: var(--white);
  box-shadow: 0 2rem 2rem var(--bright-blue-bg);
}
button.button-primary:hover {
  background-color: var(--bright-blue-hover);
}
button.button-secondary:hover {
  color: var(--dark-blue);
}
footer {
  margin: 1rem;
  font-size: 1.1rem;
  text-align: center;
}

/* 768px = 48em */
@media only screen and (min-width: 48em) {
  body {
    background-image: url('images/pattern-background-desktop.svg');
  }
}
