/* ### Primary

--primary-Cyan: hsl(179, 62%, 43%);
--primary-Bright-Yellow: hsl(71, 73%, 54%);

### Neutral

--neu-Light-Gray: hsl(204, 43%, 93%);
--neu-Grayish-Blue: hsl(218, 22%, 67%); */

:root {
  --primary-Cyan: hsl(179, 62%, 43%);
  --primary-Bright-Yellow: hsl(71, 73%, 54%);

  --neu-Light-Gray: hsl(204, 43%, 93%);
  --neu-Grayish-Blue: hsl(218, 22%, 67%);
}

/* 1. Use a more-intuitive box-sizing model */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* 2. Remove default margin */
* {
  margin: 0;
}

body,
#root,
main {
  background-color: #e7eff5;
  display: flex;
  justify-content: center;
  /* 3. Add accessible line-height */
  line-height: 1.5;
  /* 4. Improve text rendering */
  -webkit-font-smoothing: antialiased;
  height: 100vh;
}

/* 5. Improve media defaults */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

/* 6. Inherit fonts for form controls */
input,
button,
textarea,
select {
  font: inherit;
}

/* 7. Avoid text overflows */
p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}

/* 8. Improve line wrapping */
p {
  text-wrap: pretty;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  text-wrap: balance;
}

/*
    9. Create a root stacking context
  */
#root,
#__next {
  isolation: isolate;
}

main {
  font-family: "Karla";
}
.wrapper {
  display: grid;
  align-items: center;
  /* width: 800p x; */
  width: 50%;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  height: 60%;
  margin-block: auto;
  place-self: center;
}

h1 {
  color: var(--primary-Cyan);
}
h2 {
  color: #fffffd;
  font-weight: 400;
  margin-bottom: 0.5em;
}

.item {
  height: 100%;
  /* border: 3px solid green; */
  padding: 2em;
}

.item-1 {
  border-radius: 10px 10px 0 0;
  background-color: #ffffff;
  color: var(--neu-Grayish-Blue);
  grid-row-start: 1;
  grid-row-end: 1;
  grid-column-start: 1;
  grid-column-end: 3;
}
.item-1 > p:nth-child(2) {
  font-weight: 700;
  color: var(--primary-Bright-Yellow);
  margin-block: 0.5em;
}

.item-2 {
  border-radius: 0 0 0 10px;
  background-color: var(--primary-Cyan);
  color: var(--neu-Light-Gray);
  font-weight: 700;
  display: flex;
  flex-direction: column;
  gap: 0.5em;
}
.item-2 button {
  padding: 0.5em 0.8em;
  background-color: #c6dc55;
  color: white;
  border-radius: 10px;
  border: 1px solid #ace185;
  font-weight: 700;
}

.item-3 {
  border-radius: 0 0 10px 0;
  background-color: #6abcbc;
  color: var(--neu-Light-Gray);
  font-weight: 400;
}

.item-3 p {
  width: 80%;
}

span#price {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  color: #8bd8da;
  font-weight: 300;
}

span#price span {
  font-size: 2em;
  padding-right: 0.5em;
  color: white;
}
/* help with chatgpt */
@media (max-width: 600px) {
  .wrapper {
    grid-template-columns: 1fr; /* Single column layout */
    grid-template-rows: auto; /* Adjust rows to fit content */
  }

  .item-1 {
    grid-column: 1; /* Span the single column */
    grid-row: auto; /* Automatically stack in order */
    border-radius: 10px 10px 0 0; /* Keep styling */
  }

  .item-2 {
    grid-column: 1; /* Span the single column */
    grid-row: auto; /* Automatically stack in order */
    border-radius: 0; /* Adjust border for new layout */
  }

  .item-3 {
    grid-column: 1; /* Span the single column */
    grid-row: auto; /* Automatically stack in order */
    border-radius: 0 0 10px 10px; /* Adjust border for last item */
  }
}
