/* Universal Selector to remove default browser settings */
* {
  padding: 0rem;
  margin: 0rem;
  box-sizing: border-box;
}

@font-face {
  font-family: "Main";
  src: url("./assets/fonts/RedHatDisplay-VariableFont_wght.ttf");
}

/* CSS Variables */
:root {
  /* Primary */
  --Pale_blue: hsl(225, 100%, 94%);
  --Bright_blue: hsl(245, 75%, 52%);
  --White: hsl(360, 100%, 100%);

  /* Neutral */
  --Very_pale_blue: hsl(225, 100%, 98%);
  --Desaturated_blue: hsl(224, 23%, 55%);
  --Dark_blue: hsl(223, 47%, 23%);
}

html {
  font-size: 16px;
}

body {
  font-family: "Main";
  font-weight: 500;
}

:where(h1, .content > p, .button, .cancel) {
  text-align: center;
}

:where(h1, .content > p, .plan-container, .button) {
  margin-bottom: 20px;
}

h1 {
  font-size: 28px;
  font-weight: 900;
}

p {
  color: var(--Desaturated_blue);
  line-height: 1.5;
}

main {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background-color: var(--Pale_blue);
  background-image: url("./assets/images/pattern-background-desktop.svg");
  background-repeat: repeat-x;
}

section {
  display: inherit;
  flex-direction: column;
  width: 450px;
  height: 696px;
  gap: 40px;
  background-color: var(--White);
  border-radius: 20px;
  box-shadow: 0 0px 50px -10px var(--Desaturated_blue);
}

.img-container img {
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
}

.content {
  padding: 0 50px;
}

.plan-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--Very_pale_blue);
  padding: 25px;
  margin-bottom: 30px;
  border-radius: 10px;
}

.plan-details {
  display: inherit;
}

.plan-details img {
  margin-right: 20px;
}

h2 {
  color: var(--Dark_blue);
  font-size: 16px;
  font-weight: 900;
}

.change {
  color: var(--Bright_blue);
  text-decoration: underline;
  font-weight: 900;
}

.button {
  width: 100%;
  background-color: var(--Bright_blue);
  color: var(--Very_pale_blue);
  font-weight: 700;
  padding: 16px;
  border-radius: 12px;
  box-shadow: 0 10px 40px -15px var(--Bright_blue);
}

.cancel {
  color: var(--Dark_blue);
  font-weight: 700;
}

.change:active {
  text-decoration: none;
  font-weight: 700;
}

.button:active {
  background-color: hsl(245, 75%, 52%, 0.8);
}

.cancel:active {
  font-weight: 900;
}

@media (hover: hover) {
  .change,
  .button,
  .cancel {
    cursor: pointer;
  }
}

/* Extra small devices (phones, 600px and down) */
@media only screen and (max-width: 600px) {
  main {
    background-image: url("./assets/images/pattern-background-mobile.svg");
  }

  section {
    width: 327px;
    height: 565px;
    gap: 25px;
  }

  .img-container img {
    width: 327px;
  }

  h1 {
    font-size: 20px;
  }

  .content {
    padding: 0 30px;
  }

  .plan-container {
    padding: 18px;
    /* align-items: center; */
  }

  .plan-container,
  h2 {
    font-size: 14px;
  }

  .plan-details {
    align-items: center;
  }

  .change {
    font-size: 12px;
  }

  h2 {
    font-weight: 700;
  }
}

/* Small devices (portrait tablets and large phones, 600px and up) */
@media only screen and (min-width: 600px) and (max-width: 767px) {
}

/* Medium devices (landscape tablets, 768px and up) */
@media only screen and (min-width: 768px) and (max-width: 991px) {
}

/* Large devices (laptops/desktops, 992px and up) */
@media only screen and (min-width: 992px) and (max-width: 1199px) {
}

/* Extra large devices (large laptops and desktops, 1200px and up) */
@media only screen and (min-width: 1200px) {
}
