@import url('https://fonts.googleapis.com/css2?family=Karla:wght@400;700&display=swap');

:root {
  /* ? COLOR */
  /* Primary */
  --cyan: hsl(179, 62%, 43%);
  --cyan-light: rgba(74, 189, 188, 1);
  --bright-yellow: hsl(71, 73%, 54%);

  /* Neutral */
  --light-gray: hsl(204, 43%, 93%);
  --grayish-blue: hsl(218, 22%, 67%);

  /* ? FONTS */
  --ff-karla: 'Karla', sans-serif;
}



/*********************************************************/
/* ! GLOBAL RESET */
/* Box sizing rules */
*,
*::before,
*::after {
  box-sizing: border-box;
}
/* Remove default margin */
body,
h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd {
  margin: 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 root defaults */
html:focus-within {
  scroll-behavior: smooth;
}
/* Set core body defaults */
body {
  min-height: 100vh;
  text-rendering: optimizeSpeed;
  line-height: 1.5;
}
/* A elements that don't have a class get default styles */
a:not([class]) {
  text-decoration-skip-ink: auto;
}
/* Make images easier to work with */
img,
picture {
  max-width: 100%;
  display: block;
}
/* Inherit fonts for inputs and buttons */
input,
button,
textarea,
select {
  font: inherit;
}
/* Remove all animations, transitions and smooth scroll for people that prefer not to see them */
@media (prefers-reduced-motion: reduce) {
  html:focus-within {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
/* ! END OF GLOBAL RESET */
/**************************************************************/




html {
  font-size: 62.5%;
  font-family: var(--ff-karla);
}

body {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--light-gray);
}

.container {
  width: 300px;
  margin-top: 50px;
  margin-bottom: 50px;
  background-color: white;
  border-radius: 5px;
  overflow: hidden;
}

h2 {
  font-size: 1.8rem;
}

h3 {
  font-size: 1.4rem;
  margin: 0 20px;
  line-height: 2rem;
}

.card-join {
  background-color: white;
}

.card-join h2 {
  color: var(--cyan);
  margin: 20px;
}

.card-join h3 {
  color: var(--bright-yellow);
}

.card-join p {
  font-size: 1.3rem;
  margin: 20px;
  padding-bottom: 10px;
  color: var(--grayish-blue);
  line-height: 2.2rem;
}

.card-subscription {
  background-color: var(--cyan);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.card-subscription h2 {
  color: white;
  margin-left: 20px;
  padding: 15px 0;
}

.card-subscription p:nth-child(2) {
  color: white;
  font-size: 3rem;
  font-weight: 700;
  margin: 0 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.card-subscription p:nth-child(2) span {
  color: var(--light-gray);
  font-size: 1.6rem;
  opacity: 0.7;
}

.card-subscription p:nth-child(3) {
  color: var(--light-gray);
  margin-left: 20px;
  font-size: 1.53rem;
}

button {
   margin: 20px;
   padding: 10px;
   border: none;
   border-radius: 5px;
    background-color: var(--bright-yellow);
    color: white;
    font-size: 1.6rem;
    box-shadow: 1px 8px 15px 1px rgba(0, 0, 0, 0.2);
}

.card-why {
  background-color: var(--cyan-light);
  overflow: hidden;
}

.card-why h2 {
  color: white;
  padding: 20px;
}

.card-why ul {
  list-style-type: none;
  padding: unset;
  margin: 0;
  color: var(--light-gray);
  opacity: 0.8;
  font-size: 1.4rem;
  padding: 0px 0px 20px 20px;
}




@media (min-width: 900px) {

.container {
  margin: unset;
  width: 60vw;
  max-width: 835px;
  height: 70vh;
  max-height: 445px;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

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

.card-join h2 {
  margin: 30px 20px 15px 40px;
}

.card-join h3 {
  margin-left: 40px;
}

.card-join p {
  padding: unset;
  margin: 5px 30px 0 40px;
  width: 80%;
}

}
