@import url("https://fonts.googleapis.com/css2?family=Karla:ital,wght@0,200..800;1,200..800&display=swap");

/* css reset */

/* Box sizing rules */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Prevent font size inflation */
html {
  -moz-text-size-adjust: none;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
}

/* Remove default margin in favour of better control in authored CSS */
body,
h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd {
  margin-block-end: 0;
}

/* Remove list styles on ul, ol elements with a list role, which suggests default styling will be removed */
ul[role="list"],
ol[role="list"] {
  list-style: none;
}

/* Set core body defaults */
body {
  min-height: 100vh;
  line-height: 1.5;
}

/* Set shorter line heights on headings and interactive elements */
h1,
h2,
h3,
h4,
button,
input,
label {
  line-height: 1.1;
}

/* Balance text wrapping on headings */
h1,
h2,
h3,
h4 {
  text-wrap: balance;
}

/* A elements that don't have a class get default styles */
a:not([class]) {
  text-decoration-skip-ink: auto;
  color: currentColor;
}

/* Make images easier to work with */
img,
picture {
  max-width: 100%;
  display: block;
}

/* Inherit fonts for inputs and buttons */
input,
button,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
}

/* Make sure textareas without a rows attribute are not tiny */
textarea:not([rows]) {
  min-height: 10em;
}

/* Anything that has been anchored to should have extra scroll margin */
:target {
  scroll-margin-block: 5ex;
}

/* css */
/* font-family: "Karla", sans-serif; */

:root {
  --Teal-dark: hsl(179, 62%, 43%);
  --Teal-light: hsl(179, 61%, 55%);
  --Green: hsl(71, 73%, 54%);
  --body-bg: hsl(204, 43%, 93%);
  --Gray: hsl(218, 22%, 67%);
}

body {
  font-family: "Karla", sans-serif;
  background-color: var(--body-bg);
  display: grid;
  place-items: center;
}

.box {
  background-color: white;
  display: grid;
  grid-template-columns: 1fr;
  grid-auto-rows: repeat(3, 1fr);
  /* gap: 2rem; */
  border-radius: 0.5rem;
  max-width: 30rem;
  box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
}

main {
  padding: 2rem;
}

.content {
  padding: 1.5rem;
}

.box__cardMiddle {
  background-color: var(--Teal-dark);
  color: white;
}

.box__cardBottom {
  background-color: var(--Teal-light);
  color: white;
}

.green {
  color: var(--Green);
  font-weight: 700;
}

.teal {
  color: var(--Teal-dark);
}

.title {
  font-size: 1.35rem;
}

.grey {
  color: var(--Gray);
  font-size: 0.9rem;
}

.light {
  opacity: 0.7;
  font-weight: 100;
}

.btn-green {
  background-color: var(--Green);
  color: white;
  font-weight: 700;
  font-size: 0.8rem;
}

.btn {
  min-width: 100%;
  padding: 0.8rem 0;
  border: none;
  border-radius: 0.5rem;
}

.btn:hover {
  cursor: pointer;
}

.small-txt {
  color: rgb(236, 236, 236);
  font-size: 0.8rem;
  max-width: 25ch;
  text-wrap: pretty;
}

.box__cardMiddle__prices {
  display: flex;
  align-items: center;
}

.price {
  font-size: 2rem;
  font-weight: 700;
  padding-right: 0.8rem;
}

.box__cardMiddle p {
  margin-top: 0;
  margin-bottom: 1.5rem;
}

@media (min-width: 50rem) {
  .box {
    grid-template-columns: repeat(2, 1fr);
    max-width: 50vw;
  }

  .box__cardTop {
    grid-column-start: 1;
    grid-column-end: 3;
  }

  .small-txt {
    max-width: 26ch;
  }

  .grey {
    max-width: 60ch;
  }

  .box__cardMiddle {
    border-bottom-left-radius: 0.5rem;
  }

  .box__cardBottom {
    border-bottom-right-radius: 0.5rem;
  }
}
