@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@100..900&display=swap');

:root {
    --clr--Primary--SoftBlue: hsl(215, 51%, 70%);
    --clr--Primary--Cyan: hsl(178, 100%, 50%);

    --clr--Neutral--VeryDarkBlue--mainBG: hsl(217, 54%, 11%);
    --clr--Neutral--VeryDarkBlue--cardBG: hsl(216, 50%, 16%);
    --clr--Neutral--VeryDarkBlue--line: hsl(215, 32%, 27%);
    --clr--Neutral--White: hsl(0, 0%, 100%);
}
/* 1. Use a more-intuitive box-sizing model */
*, *::before, *::after {
    box-sizing: border-box;
  }
  
  /* 2. Remove default margin */
  * {
    margin: 0;
  }
  
  /* 3. Enable keyword animations */
  @media (prefers-reduced-motion: no-preference) {
    html {
      interpolate-size: allow-keywords;
    }
  }
  
  body {
    /* 4. Add accessible line-height */
    line-height: 1.5;
    /* 5. Improve text rendering */
    -webkit-font-smoothing: antialiased;
  }
  
  /* 6. Improve media defaults */
  img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
  }
  
  /* 7. Inherit fonts for form controls */
  input, button, textarea, select {
    font: inherit;
  }
  
  /* 8. Avoid text overflows */
  p, h1, h2, h3, h4, h5, h6 {
    overflow-wrap: break-word;
  }
  
  /* 9. Improve line wrapping */
  p {
    text-wrap: pretty;
  }
  h1, h2, h3, h4, h5, h6 {
    text-wrap: balance;
  }
  
  /*
    10. Create a root stacking context
  */
  #root, #__next {
    isolation: isolate;
  }

  body {
    display: flex;
    min-height: 100vh;
    align-items: center;
    justify-content: center;
    position: relative;

    background-color: var(--clr--Neutral--VeryDarkBlue--mainBG);

    font-family: "Outfit", sans-serif;
    font-size: 1.125rem;
    color: var(--clr--Primary--SoftBlue);
  }
  footer {
    bottom: 0;
    margin: -2rem;
    position: absolute;
  }
  .container {
    max-width: 23rem;
    background-color: var(--clr--Neutral--VeryDarkBlue--cardBG);
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: 0rem 2rem 3.125rem 2rem hsl(215, 55%, 8%);
  }

  picture {
    position: relative;
    overflow: hidden;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
  }
  .card-img {
    max-width: 20rem;
    justify-self: center;
    object-fit: cover;
    display: block;
    transition: all 0.3s ease;
  }
  .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--clr--Primary--Cyan);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1; /* Behind the eye */
  }
  .eye-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2; /* Eye is above the overlay */
    display: none; /* hidden by default */
  }

  .heading {
    color: var(--clr--Neutral--White);
    text-decoration: none;
    font-size: 1.4rem;
    font-weight: 500;
  }
  .card-info {
    font-weight: 300;
    margin-top: 1rem;
  }

  .flex-group-1 {
    display: flex;
    justify-content: space-between;
    padding: 1.5rem 0rem;
  }
  .flex-item-1 , .flex-item-2 {
    display: flex;
    align-items: center;
  }
  .label {
    color: var(--clr--Primary--Cyan);
    font-weight: 450;
    padding-left: 0.5rem;
  }
  .time-left {
    padding-left: 0.5rem;
  }
  .line {
    border: 1px solid var(--clr--Neutral--VeryDarkBlue--line);
  }

  .flex-group-2 {
    display: flex;
    align-items: center;
    padding: 1rem 0rem;
  }
  .avatar-img {
    max-width: 2rem;
    border: solid 1px var(--clr--Neutral--White);
    border-radius: 50%;
    margin-right: 1rem;
  }
  .name {
    color: var(--clr--Neutral--White);
    text-decoration: none;
  }
  .creation-of-text {
    font-weight: 300;
  }
/* active states */
  .heading:hover , .name:hover{
    color: var(--clr--Primary--Cyan);
  }
  picture:hover .overlay {
    opacity: 50%;
  }
  
  picture:hover .eye-container{
    display: flex;
  }
  @media(max-width: 430px){
    .container {
        max-width: 20rem;
        padding: 1rem;
    }
  }