/* 
- Mobile: 375px
- Desktop: 1440px

- 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%)

- Font size (paragraph): 16px
- Weights: 500, 700, 900

  font-family: "Red Hat Display", sans-serif;
  font-optical-sizing: auto;
  font-weight: 900;
  font-style: normal;
*/
@import url('https://fonts.googleapis.com/css2?family=Red+Hat+Display:ital,wght@0,500;1,500&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Red+Hat+Display:ital,wght@0,700;1,700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Red+Hat+Display:ital,wght@0,900;1,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%);
}

* {
  padding: 0;
  margin: 0;
}

html {
  height: 100dvh;
}
body {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--Pale-blue);
  font-family: 'Red Hat Display', sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
}

.backgroundImg {
  width: 100%;
  position: absolute;
  top: 0;
}

.container {
  width: 450px;
  height: 700px;
  position: absolute;
  display: flex;
  flex-direction: column;
  background: white;
  border-radius: 1.5rem;
}

.heroImg {
  border-top-left-radius: 1.5rem;
  border-top-right-radius: 1.5rem;
}

.textSection {
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
  height: 476px;
  position: relative;
  top: 20px;
}
h1 {
  font-weight: 900;
  font-size: 28px;
  color: var(--Dark-blue);
}
p {
  font-weight: 500;
  font-size: 16px;
  text-align: center;
  width: 295px;
  color: var(--Desaturated-blue);
  position: relative;
  bottom: 15px;
}

.planSection {
  display: flex;
  flex-direction: column;
  height: 250px;
  position: relative;
  bottom: 15px;
}

button {
  cursor: pointer;
}
.planContainer,
.paymentBtn,
.cancelBtn {
  width: 355px;
  font-family: inherit;
  border-radius: 10px;
}
.paymentBtn,
.cancelBtn {
  height: 50px;
  border: none;
}
.planContainer {
  display: flex;
  justify-content: space-around;
  align-items: center;
  background: var(--Very-pale-blue);
  height: 98px;
  margin-bottom: 32px;
}
.musicImg {
  position: relative;
  right: 5px;
}
.planDiv {
  font-size: 16px;
  line-height: 1.6;
  position: relative;
  right: 40px;
}
h2 {
  color: var(--Dark-blue);
  font-weight: 900;
  font-size: inherit;
}
.year {
  color: var(--Desaturated-blue);
  font-size: inherit;
}
.changeBtn {
  color: var(--Bright-blue);
  font-weight: 900;
  font-size: 14px;
  border: none;
  background: inherit;
  font-family: inherit;
  text-decoration: underline;
}
.changeBtn:hover {
  color: #766cf1;
  text-decoration: none;
}
.paymentBtn {
  background: var(--Bright-blue);
  color: white;
  font-size: 14px;
  font-weight: 900;
  filter: drop-shadow(0px 10px 10px hsl(245deg 100% 83.19% / 64%));
}
.paymentBtn:hover {
  background: #766cf1;
}
.cancelBtn {
  background: white;
  color: var(--Desaturated-blue);
  font-weight: 900;
  font-size: 14px;
  margin-top: 20px;
}
.cancelBtn:hover {
  color: var(--Dark-blue);
}

.attribution {
  font-size: 11px;
  text-align: center;
  position: absolute;
  bottom: 5px;
}
.attribution a {
  color: hsl(228, 45%, 44%);
}

@media screen and (max-width: 500px) {
  .container {
    width: 328px;
    height: 567px;
  }
  .textSection {
    justify-content: space-around;
  }
  h1 {
    font-size: 22px;
  }
  p {
    font-size: 14px;
    width: 242px;
  }
  .planSection {
    align-items: center;
  }
  .planContainer {
    height: 80px;
  }
  .musicImg {
    right: 0px;
  }
  .planDiv {
    font-size: 14px;
    right: 10px;
  }
  .changeBtn {
    font-size: 14px;
  }
  .planContainer,
  .paymentBtn,
  .cancelBtn {
    width: 279px;
  }
}
