@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%);
  --very-pale-blue: hsl(225, 100%, 98%);
  --desaturated-blue: hsl(224, 23%, 55%);
  --dark-blue: hsl(223, 47%, 23%);
}

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

body {
  background-color: var(--pale-blue);
  text-align: center;
}

.bg-image {
  background: url(./images/pattern-background-desktop.svg) no-repeat
    center/cover;
  height: 400px;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
}

main {
  margin: 20px auto;
  width: 25%;
  background-color: white;
  border-radius: 10px;
  padding-bottom: 40px;
  box-shadow: 3px 3px 3px hsla(224, 21%, 42%, 0.15);
}

.main-img {
  width: 100%;
  border-radius: 10px 10px 0 0;
}

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

.main-text {
  text-align: center;
  margin: 20px auto;
  width: 300px;
  line-height: 1.3;
  color: var(--desaturated-blue);
  font-size: 15px;
}

.plan {
  background-color: var(--very-pale-blue);
  width: 90%;
  margin: 20px auto;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
}

article {
  display: flex;
}

article img {
  margin-right: 20px;
}

.plan h4 {
  font-size: 0.8rem;
  color: var(--dark-blue);
  font-weight: 700;
  margin-bottom: 10px;
}

.plan a {
  color: var(--bright-blue);
  font-weight: bold;
  transition: all 0.2s ease-in-out;
  font-size: 11px;
}

.plan a:hover {
  text-decoration: none;
  font-weight: lighter;
  opacity: 0.8;
}

.plan p {
  color: var(--desaturated-blue);
  font-size: 0.8rem;
}

button {
  width: 80%;
  padding: 10px;
  background-color: var(--bright-blue);
  border: none;
  border-radius: 10px;
  margin: 20px auto;
  color: white;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

button:hover {
  opacity: 0.8;
}

.cancel {
  background-color: transparent;
  cursor: pointer;
  outline: none;
  text-decoration: none;
  color: var(--desaturated-blue);
  font-size: 0.8rem;
  transition: all 0.2s ease-in-out;
}

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

@media (max-width: 1024px) {
  main {
    width: 80%;
  }
  .bg-image {
    background: url(./images/pattern-background-mobile.svg) no-repeat
      center/cover;
    height: 50vh;
  }
}
