html{
    scroll-behavior: smooth;
}
body {
    background-color: #dedede;
    padding: 5px;
    margin: 15px;
    font-size: 25px;
    font-family:Arial, sans-serif;
}

h1 {
    text-align: center;
    font-family:Arial, sans-serif;
    font-size: 1.95em;
}

h2{
    text-align:center;
  }

  p{
    padding:20px;
  }
li{
    margin-top: 20px;
}

img {
    border: 5px solid grey;
    border-radius: 35px;
    max-width: 100%;
    height: auto;
  }
  
  figure {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  figcaption {
    padding: 10px;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 35px;
    text-align: center;
    margin-top: -20px; /* adjust this value to your liking */
  }

.label{
    text-align: center;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
}


  .grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .grid img {
    width: 100%;
    height: auto;
  }
  footer {
    background-color: #333;
    color: #fff;
    padding: 5px;
    text-align: center;
    clear: both;
    font-size: 16px;
  }
  
  footer a {
    color: #ffc107;
    text-decoration: none;
  }
  
  footer a:hover {
    color: #fff;
  }



  /* Tablet view */
@media (min-width: 772px) {
    .grid {
      grid-template-columns: repeat(2, 1fr);
    }
  
    figure {
      border-radius: 50%;
    }
    figure img {
        border-radius: 50%;
      }
  
    figure:last-child {
      grid-column: 1 / -1;
    }
  }
  
  /* Large screen view */
  @media (min-width: 992px) {
    figure:nth-child(3n) {
      grid-column: 1 / -1;
    }
  
    figure {
      border-radius: 0;
    }
    figure img {
        border-radius: 0;
    }
  }
  
  /* Prefers reduced motion */
  @media (prefers-reduced-motion: reduce) {
    html {
      scroll-behavior: auto;
    }
  }
  
  /* Dark mode */
  @media (prefers-color-scheme: dark) {
    figure {
      background-color: #333;
    }
  
    figcaption {
      color: #ffc107;
    }
  
    img {
      border-color: #000;
    }
  }
