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

html {
  box-sizing: border-box;
}

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

body {
  min-height: 100vh;
  background-color: var(--pale-blue);
  background-image: url("../images/pattern-background-mobile.svg");
  background-repeat: no-repeat;
  background-size: 100% 50%;
  background-position: top;
  background-attachment: fixed;
}

main {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1.5rem;
}

.card figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 1rem 1rem 0 0;
  display: block;
}

.card-details {
  background-color: white;
  border-radius: 0 0 1rem 1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 2rem;
  font-family: "Red Hat Display", sans-serif;
  font-optical-sizing: auto;
  font-weight: 500;
  gap: 1.5rem;
}

.card-details header {
  text-align: center;
}

.card-details header h1 {
  font-weight: 900;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.card-details header p {
  color: var(--desaturated-blue);
  font-weight: 500;
  line-height: 1.5rem;
}

.plan-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  background-color: var(--very-pale-blue);
  padding: 1rem;
  border-radius: 0.5rem;
  width: 100%;
}

.plan-info img {
  width: 40px;
  height: 40px;
}

.plan-info a {
  color: var(--bright-blue);
  font-weight: 700;
  font-size: 0.9rem;
}

.plan-timing h2 {
  font-size: 0.9rem;
  font-weight: 900;
}

.plan-timing p {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--desaturated-blue);
}

.order-action {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.order-action button {
  flex: 1;
  font-weight: 700;
  padding: 1rem 0;
  border: none;
  border-radius: 0.5rem;
  font-size: 0.9rem;
  cursor: pointer;
  transition: 0.4s;
}

.order-action button:first-child {
  background-color: var(--bright-blue);
  color: white;
}

.order-action button:first-child:hover {
  background-color: var(--light-bright-blue);
}

.order-action button:last-child {
  background-color: white;
}

.order-action button:last-child:hover {
  background-color: var(--very-pale-blue);
}

@media (min-width: 768px) {
  body {
    background-image: url("../images/pattern-background-desktop.svg");
  }

  .card {
    max-width: 24rem;
  }
}
