html {
  line-height: 1.15;
  -ms-text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
}
article,
aside,
footer,
header,
nav,
section {
  display: block;
}
h1 {
  font-size: 2em;
  margin: 0.67em 0;
}
figcaption,
figure,
main {
  display: block;
}
figure {
  margin: 1em 40px;
}
hr {
  box-sizing: content-box;
  height: 0;
  overflow: visible;
}
pre {
  font-family: monospace, monospace;
  font-size: 1em;
}
a {
  background-color: transparent;
  -webkit-text-decoration-skip: objects;
}
abbr[title] {
  border-bottom: none;
  text-decoration: underline;
  text-decoration: underline dotted;
}
b,
strong {
  font-weight: inherit;
}
b,
strong {
  font-weight: bolder;
}
code,
kbd,
samp {
  font-family: monospace, monospace;
  font-size: 1em;
}
dfn {
  font-style: italic;
}
mark {
  background-color: #ff0;
  color: #000;
}
small {
  font-size: 80%;
}
sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}
sub {
  bottom: -0.25em;
}
sup {
  top: -0.5em;
}
audio,
video {
  display: inline-block;
}
audio:not([controls]) {
  display: none;
  height: 0;
}
img {
  border-style: none;
}
svg:not(:root) {
  overflow: hidden;
}
button,
input,
optgroup,
select,
textarea {
  font-family: sans-serif;
  font-size: 100%;
  line-height: 1.15;
  margin: 0;
}
button,
input {
  overflow: visible;
}
button,
select {
  text-transform: none;
}
button,
html [type="button"],
[type="reset"],
[type="submit"] {
  -webkit-appearance: button;
}
button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
  border-style: none;
  padding: 0;
}
button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
  outline: 1px dotted ButtonText;
}
fieldset {
  padding: 0.35em 0.75em 0.625em;
}
legend {
  box-sizing: border-box;
  color: inherit;
  display: table;
  max-width: 100%;
  padding: 0;
  white-space: normal;
}
progress {
  display: inline-block;
  vertical-align: baseline;
}
textarea {
  overflow: auto;
}
[type="checkbox"],
[type="radio"] {
  box-sizing: border-box;
  padding: 0;
}
[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
  height: auto;
}
[type="search"] {
  -webkit-appearance: textfield;
  outline-offset: -2px;
}
[type="search"]::-webkit-search-cancel-button,
[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
}
::-webkit-file-upload-button {
  -webkit-appearance: button;
  font: inherit;
}
details,
menu {
  display: block;
}
summary {
  display: list-item;
}
canvas {
  display: inline-block;
}
template {
  display: none;
}
[hidden] {
  display: none;
}

.clearfix:after {
  visibility: hidden;
  display: block;
  font-size: 0;
  content: "";
  clear: both;
  height: 0;
}

html {
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  border: 0;
  padding: 0;
  white-space: nowrap;
  clip-path: inset(100%);
  clip: rect(0 0 0 0);
  overflow: hidden;
}
:root {
  --cyan: hsl(180, 62%, 55%);
  --red: hsl(0, 78%, 62%);
  --orange: hsl(34, 97%, 64%);
  --blue: hsl(212, 86%, 64%);
  --white: hsl(0, 0%, 100%);
  --grey-400: hsl(212, 6%, 44%);
  --grey-500: hsl(234, 12%, 34%);
}

html {
  font-family: "Poppins", sans-serif;
  font-size: 15px;
  color: hsl(234, 12%, 34%);
}

body {
  display: flex;
  flex-direction: column;
  gap: 60px;
}

/* -------------------------------header text styling -----------------------*/
header {
  text-align: center;
  margin-top: 60px;
}
header span {
  font-weight: 400;
  color: hsl(212, 6%, 44%);
}

header p {
  width: 80%;
  margin: 0 auto;
  color: hsl(212, 6%, 44%);
}

/* main {
  max-width: 1024px;
} */

main .card:first-child {
  margin-top: 0;
}

/*--------------------------- card styling------------------------- */
.card {
  width: 314px;
  height: 250px;
  border-radius: 10px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  margin: 32px auto;
  padding: 32px;
  position: relative;
  top: 0;
  left: 0;
  z-index: 0;
  /* border-top-width: 8px; */
}

.card::before {
  content: "";
  display: block;
  height: 100%;
  width: 100%;
  border-radius: 10px;
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
}

.card:nth-of-type(1)::before {
  background: linear-gradient(0deg, var(--white) 98%, var(--cyan) 98%);
}
main div .card:nth-of-type(1)::before {
  background: linear-gradient(0deg, var(--white) 98%, var(--red) 98%);
}
.card:nth-of-type(2)::before {
  background: linear-gradient(0deg,var(--white) 98%, var(--orange) 98%);
}
.card:nth-of-type(3)::before {
  background: linear-gradient(0deg, var(--white) 98%, var(--blue) 98%);
}

.card img {
  float: right;
}

h2 {
  margin: 0;
}

.card p {
  color: hsl(212, 6%, 44%);
}

/* ---------------Footer Styles----------------- */
.attribution {
  font-size: 11px;
  text-align: center;
}
.attribution a {
  color: hsl(228, 45%, 44%);
}

footer {
  text-align: center;
}

/* --------------Media Queries---------------------- */

@media screen and (min-width: 768px) and (max-width: 1024px) {
  header h1 {
    font-size: 1.8rem;
  }
  header p {
    width: 70%;
  }
  main {
    display: flex;
    flex-direction: column;
  }
  main .middle-card-group {
    display: flex;
    justify-content: space-evenly;
  }
  main .middle-card-group .card {
    margin: 0;
  }
}

@media (min-width: 1025px) {
  header p {
    width: 35%;
  }

  main {
    display: flex;
    justify-content: center;
    align-items: center;
    /* margin: 0 auto; */
    /* width: 80vw; */
	gap: 32px;
  }

  main .middle-card-group {
    display: flex;
    flex-direction: column;
    /* justify-content: space-around; */
    /* height: 45vh; */
	gap: 32px;
  }

  main .middle-card-group .card {
    margin: 0;
  }

  .card {
    margin: 0;
  }
}
