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

:root {
  --paleBlue: hsl(225, 100%, 94%);
  --brightBlue: hsl(245, 75%, 52%);
  --veryPaleBlue: hsl(225, 100%, 98%);
  --desaturatedBlue: hsl(224, 23%, 55%);
  --darkBlue: hsl(223, 47%, 23%);
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
.attribution {
  font-size: 11px;
  text-align: center;
  width: 100%;
  bottom: 5px;
  position: fixed;
}
.attribution a {
  color: hsl(228, 45%, 44%);
}

body {
  margin-top: 10vh;
  font-family: 'Red Hat Display', sans-serif;
  font-weight: 500;
  background-color: var(--paleBlue);
  display: flex;
  flex-direction: column;
  align-items: center;
  align-content: center;
  justify-content: center;
}

.card {
  margin: auto;
  display: flex;
  flex-direction: column;
  background-color: white;
  border-radius: 25px;
  border: 1px solid var(--paleBlue);
}

.card-header {
  border-radius: 25px 25px 0 0;
  background-size: cover;
  background-repeat: no-repeat;
  width: 100%;
  border-style: solid;
  border-color: var(--darkBlue);
  border-width: 1px 1px 0 1px;
  overflow: hidden;
}
.card-header img {
  width: 100%;
  height: 100%;
}
.card-body {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  font-weight: 700;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--paleBlue);
}

.card-body H3 {
  font-weight: 900;
  font-size: 25px;
  color: var(--darkBlue);
}

.details H5 {
  font-weight: 900;
  font-size: 14px;
  color: var(--darkBlue);
}

.card-body p {
  line-height: 1.6rem;
  font-size: 16px;
  font-weight: 500;
  text-align: center;
  color: var(--desaturatedBlue);
  padding: 20px;
}

.bill-plan {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  background-color: var(--veryPaleBlue);
  padding: 15px;
  border-radius: 10px;
  width: 85%;
  font-size: 12px;
  font-weight: 500;
}
.bill-plan a {
  font-weight: 900;
  font-size: 13px;
}
.bill-plan a:hover {
  color: hsla(245, 75%, 52%, 0.63);
}
button {
  margin-top: 30px;
  background: var(--brightBlue);
  width: 85%;
  border-radius: 15px;
  color: white;
  border: none;
  padding: 15px;
  font: inherit;
  cursor: pointer;
  outline: inherit;
  font-weight: 700;
  font-size: 14px;
}
button:hover {
  background-color: hsla(245, 75%, 52%, 0.63);
}
.cancel {
  margin-top: 20px;
  font-weight: 900;
  font-size: 14px;
  color: var(--desaturatedBlue);
}
.cancel:hover {
  color: var(--darkBlue);
  cursor: pointer;
}
.details {
  display: flex;
  flex-direction: column;
  align-items: left;
  justify-content: left;
  color: var(--desaturatedBlue);
  font-size: 14px;
  line-height: 1.6em;
}

@media screen and (max-width: 375px) {
  body {
    background-image: url('/assets/images/pattern-background-mobile.svg');
    background-repeat: repeat-x;
  }
  .card {
    max-width: 320px;
    height: 70vh;
    width: 80vw;
  }
  .card-header {
    height: 160px;
  }
}
@media screen and (min-width: 380px) {
  body {
    background-image: url('/assets/images/pattern-background-desktop.svg');
    background-repeat: repeat-x;
  }
  .card {
    width: 27vw;
    height: 75vh;
    min-width: 320px;
    max-width: 386px;
    max-height: 633px;
  }
  .details {
    margin-left: -20%;
  }
}
