/* Emily Gorgees ITWP 1050 This project is following formatted
instructions similar to Homework assignments in this course with set requirements,
but incorporating your own content and creativity */

/* pageColor global variable using the :root selector */
:root {
   
    --pageColor: #8f8fe6;
}

/*font face rule */
@font-face {
    font-family: 'headlineFont';
    src: url('webfonts/ComicRelief-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
  }
  
  /*font face rule for bold text */
  @font-face {
    font-family: 'headlineFont';
    src: url('webfonts/ComicRelief-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
  }

  /*rule for the body selector that sets font family and more */
  body {
    font-family: headlineFont, Arial, Helvetica, sans-serif;
    margin: 3rem;
    padding: 0;
    box-sizing: border-box;
    background: url('images/background.jpg') no-repeat center fixed;
    background-size: cover;
  }

  /*rule for the h1 selector */
  h1 {
    font-family: headlineFont, Arial, Helvetica, sans-serif;
    text-shadow: var(--pageColor);
    text-align: center;
  }

  /*rule for the footer selector */
  footer {
    font-family: headlineFont, Arial, Helvetica, sans-serif;
    text-align: center;
    font-size: .75rem;
    margin-top: 50px;
    margin-bottom: 50px;
  }

  /*first psuedo-class named "a" */
  a {
    text-decoration: underline;
    color: var(--pageColor);
  }

  /*second pseudo-class name "a:link" */
  a:link {
    text-decoration: underline;
    color: var(--pageColor);
    font-weight: bold;
  }

  /*third pseudo-class named "a:visited" */
  a:visited{
    text-decoration: underline;
    color: plum;
  }

  /* fourth pseudo-class named "a:hover" */
  a:hover{
    text-decoration: none;
    color: rgb(184, 179, 255);
    font-weight: bold;
  }

  /*last pseudo-class named "a:active" */
  a:active {
    text-decoration: underline wavy steelblue;
    font-weight: bold;
  }

  /* .responsive-text class */
  .responsive-text {
    font-size: 3rem;
    line-height: 1.5;
    color: antiquewhite;
  }

  /* introductory responsive text p.response-text */
  p.responsive-text {
    font-size: 1rem;
    line-height: 1.5;
    color: antiquewhite;
    text-align: justify;
  }

  /* image-text responsive text */
  .image-text {
    font-size: 1rem;
    text-align: center;
    margin-top: 20px;
    color: antiquewhite; /* I had to add this so the text is readable :) */
  }

  /*media query for the responsive-text class */
  @media (max-width: 599px) {
    .image-text{
        font-size: 1.5rem;
    }
  }

  /* grid layout */
  .container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
  }

  .gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    padding: 10px;
  }

  .gallery img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 2px 4px 8px 10px rgb(0, 0, 0, 0.1);
    transition: transform 0.4s ease-in-out;
  }

  .gallery img:hover{
    transform: scale(1.3);
  }
