:root {
  --blue-100: hsl(225, 100%, 94%);
  --blue-700: hsl(245, 75%, 52%);

  --blue-50: hsl(225, 100%, 98%);
  --gray-600: hsl(224, 23%, 55%);
  --blue-950: hsl(223, 47%, 23%);

  --white: hsl(0, 0%, 100%);
}

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

img,
picture,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
}

ul,
ol {
  list-style: none;
}

body {
  font-family: "Red Hat Display", sans-serif;
  background-color: var(--blue-100);
  background-image: url(./images/pattern-background-desktop.svg);
  background-position: left -5vw;
  background-repeat: no-repeat;
  background-size: 100vw;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.order-summary {
  background-color: var(--white);
  overflow: hidden;
  border-radius: 1rem;
  text-align: center;
  max-width: 28rem;
  box-shadow: 0 30px 25px rgba(0, 0, 0, 0.1);
}

.order-summary__image {
  object-fit: cover;
}

.order-summary__description {
  margin: 3rem 3rem;
}

.order-summary__title {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--blue-950);
}

.order-summary__text {
  margin-top: 1rem;
  color: var(--gray-600);
  font-weight: 500;
  line-height: 1.5;
}

.order-summary__plan {
  background-color: var(--blue-50);
  margin: 0 3rem;
  padding: 1.5rem 0;
  border-radius: 0.6rem;
  display: flex;
  justify-content: space-around;
}

.order-summary__plan-title {
  font-weight: 900;
  font-size: 1rem;
  color: var(--blue-950);
}

.order-summary__plan-price {
  color: var(--gray-600);
  font-weight: 700;
}

.order-summary__plan-change {
  margin-top: 0.5rem;
  color: var(--blue-700);
  font-weight: 800;
}

.order-summary__button {
  padding: 0 0 3rem 0;
}

.order-summary__button-primary {
  margin: 2rem auto;
  padding: 1rem 6rem;
  border-radius: 0.6rem;
  display: block;
  background-color: var(--blue-700);
  color: var(--white);
  font-weight: 700;
  box-shadow: 0 15px 15px hsla(245, 75%, 52%, 0.2);
}

.order-summary__plan-change:hover {
  color: hsl(245, 83%, 68%);
  text-decoration: none;
}

.order-summary__button-primary:hover {
  cursor: pointer;
  background-color: hsl(245, 83%, 68%);
}

.order-summary__cancel {
  text-decoration: none;
  color: var(--gray-600);
  font-weight: 800;
}

.order-summary__cancel:hover {
  color: var(--blue-950);
}

@media (min-width: 320px) and (max-width: 767px) {
  body {
    background-image: url(./images/pattern-background-mobile.svg);
    background-position: top 0vw;
    background-size: 100vw;
    background-repeat: no-repeat;
    margin: 1rem;
  }
  .order-summary__title {
    font-size: 1.5rem;
  }
  .order-summary__description {
    margin: 2.4rem 2rem;
  }
  .order-summary__plan {
    margin: 0 1.2rem;
  }

  .order-summary__plan-title,
  .order-summary__plan-price {
    margin: 0 1.4rem 0 1rem;
  }

  .order-summary__button-primary {
    margin: 2rem auto;
    padding: 1rem 3.5rem;
  }
}
