@import url('https://fonts.googleapis.com/css2?family=Red+Hat+Display:wght@500;700;900&display=swap');

:root {
  --pale: hsl(225, 100%, 94%);
  --bright: hsl(245, 75%, 52%);
  --very-pale: hsl(225, 100%, 98%);
  --desaturated-blue: hsl(224, 23%, 55%);
  --dark-blue: hsl(223, 47%, 23%);
}

*, html {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Red Hat Display', sans-serif;
}

body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-image: url("./images/pattern-background-mobile.svg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 100vw 100vh;
  width: 100vw;
  height: 100vh;
  
}

h1 {
  font-size: 24px;
  color: var(--dark-blue);
  font-weight: 900;
  text-align: center;
  margin-top: 40px;
  margin-bottom: 30px;
}

p {
  font-size: 16px;
  line-height: 20px;
  color: var(--desaturated-blue);
  text-align: center;
}

button {
  padding: 1rem;
  width: 100%;
  border-radius: 15px;
  font-weight: 700;
}


.order-component {
  min-width: 320px;
  max-width: 420px;
  background-image: url("./images/illustration-hero.svg");
  background-position: top;
  background-repeat: no-repeat;
  padding: 200px 24px 24px 24px;
  border-radius: 15px;
  background-size: 420px 200px;
  background-color: white;
  margin-bottom: 2rem;
}

.order-component .subtitle {
  margin-bottom: 30px;
  padding: 0px 24px;
}

.pricing-box {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  background: var(--very-pale);
  padding: 1rem;
  border-radius: 15px;
  margin-bottom: 24px;
}

.plan-and-price {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  margin-right: 6rem;
}

.annual-plan {
  color: var(--dark-blue);
  font-weight: 700;
}

.button-primary {
  background: var(--bright);
  border: 1px solid var(--bright);
  color: white;
  margin-bottom: 12px;
}

.button-primary:hover {
  background: #766CF1;
  border: 1px solid #766CF1;
}

.button-secondary {
  background: transparent;
  border: 1px solid transparent;
  color: var(--desaturated-blue);
}

.button-secondary:hover {
  color: var(--dark-blue);
}

.change {
  color: var(--bright);
}

.change:hover {
  text-decoration: none;
  color: #766CF1;
}

@media (max-width: 375px) {
  .order-component {
    margin: 0 24px 2rem 24px;
  }

  .plan-and-price {
    margin-right: 0;
  }
}

@media (min-width: 376px) {
  body {
    background-image: url("./images/pattern-background-desktop.svg");
    background-position: center;
    background-repeat: no-repeat;
    background-size: 100vw 100vh;
  }
}