/* Page Reset
   from https://www.joshwcomeau.com/css/custom-css-reset/
*/

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

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

/*
  3. Allow percentage-based heights in the application
*/
html,
body {
  height: 100%;
}

/*
  Typographic tweaks!
  4. Add accessible line-height
  5. Improve text rendering
*/
body {
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

/*
  7. Remove built-in form typography styles
*/
input,
button,
textarea,
select {
  font: inherit;
}

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

/*
  9. Create a root stacking context
*/

#root #__next {
  isolation: isolate;
}
:root {
--yellow:hsl(47, 88%, 63%);
--white: hsl(0, 0%, 100%);
--gray500: hsl(0, 0%, 42%);
--gray950: hsl(0, 0%, 7%);
}

  .card {
    background-color: var(--white);
    border: .1rem solid black;
    margin: 8rem auto;
    width: 20rem;
    border-radius: 1rem;
    padding: 1.2rem;
    box-shadow:  .4rem .4rem 0 0  var(--gray950);
  }

    .card-img {
    margin: 0 auto;
    width: 18rem;
    border-radius: .8rem;
}
    .section {
    margin: 1.2rem 0 .7rem 0;
    padding: .5rem;
    background-color: var(--yellow);
    font-size: 1rem;
    font-weight: 800;
    width: 7rem;
    border-radius: .5rem;
    text-align: center;
}

.publish-date {
    font-size: .8rem;
    color: var(--gray950);
    margin: .5rem 0;
}
 .subject-link {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--gray950);
    text-decoration: none;
    margin: 1.3rem 0;
}
a:active {
  color: var(--yellow);
}

.description {
    margin: 1rem 0;
    font-size: .9rem;
    color: var(--gray500);
}
.creator {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-top: 1.5rem;
}
.name {
    font-size: .9rem;
    font-weight: 800;
    color: var(--gray950);
}
.avatar-img {
    width: 2.5rem;
    border-radius: 50%;
}
@media only screen and (min-width: 768px) and (max-width: 1440px) {
  /* ABOVE CHANGES SETTINGS AT 768px SCREEN SIZE TO 1440px SCREEN SIZE*/
}

/* PLACE ALL ELEMENT FORMATTING BELOW HERE*/

html {
    font-size: 16px;
    font-family: figtree, sans-serif;
  /* ABOVE EFFECTS ALL ELEMENTS */
}

body {
  position: relative;
  width: 100%;
  height: 100vh;
  background-color: var(--yellow);

  .attribution {
    font-size: 0.6875rem;
    text-align: center;
   
  }

  .attribution a {
    color: hsl(228, 45%, 44%);
     text-align: center;
  }
}

/* ABOVE EFFECTS BODY ELEMENTS */

.abs {
  position: absolute;
}

/* ABOVE GIVES ELEMENTS ABSOLUTE POSITION */

.rel {
  position: relative;
}

/* ABOVE GIVES ELEMENTS RELATIVE POSITION */

.flexr {
  display: flex;
  flex-direction: row;
}

/* ABOVE MAKES A FLEX ROW */

.flexc {
  display: flex;
  flex-direction: column;
}

/* ABOVE MAKES A FLEX COLUMN */

.fcenter {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* ABOVE MAKES FLEX ELEMENTS CENTERED */
