body {
  margin: 0;
  padding: 0;
  background-image:url("https://purpleyoshi.neocities.org/yoshi.jpg");
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  padding: 20px;
}
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 15px;
  width: 100%;
  max-width: 1200px;
}
.gallery img {
  width: 50%;
  height: auto;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.3s ease;
}
.gallery img:hover {
  transform: scale(1.05);
}
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}
.lightbox img {
  max-width: 30%;
  border-radius: 10px;
}
.lightbox .prev,
.lightbox .next {
  height: 50px;
  width: 50px;
  position: absolute;
  transform: translateY(-50%);
  font-size: 2.5rem;
  background-color: transparent;
  color: #ffffff;
  padding: 10px;
  border: none;
  cursor: pointer;
  border-radius: 50%;
  z-index: 1001;
}
.lightbox .prev {
  left: 20px;
}
.lightbox .next {
  right: 20px;
}
.lightbox .close {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 2rem;
  color: #ffffff;
  background: none;
  cursor: pointer;
  border: none;
  z-index: 1001;
}
 /* colors */ 
              
                --content: #ab87de;
            }
              * {
                box-sizing: border-box;
            }
            #container {
                max-width: 1000px;
                /* this is the width of your layout! */
                /* if you change the above value, scroll to the bottom
      and change the media query according to the comment! */
                margin: 0 auto;
                /* this centers the entire page */
            }
             /* the area below is for all links on your page
    EXCEPT for the navigation */
            #container a {
                color: #2c024a;
                font-weight: bold;
                text-decoration:none; 
            }
             #header {
                width: 100%;
                height: 600px;
                /* this is only for a background image! */
                /* if you want to put images IN the header, 
      you can add them directly to the <div id="header"></div> element! */
                background-color: #ebb8fc;
                background-size: 100%;
            }
              /* navigation section!! */
            #navbar {
                height: 40px;
                background-color: #c525fa;
                /* navbar color */
                width: 100%;
            }

            #navbar ul {
                display: flex;
                padding: 0;
                margin: 0;
                list-style-type: none;
                justify-content: space-evenly;
            }

            #navbar li {
                padding-top: 10px;
            }

            /* navigation links*/
            #navbar li a {
                color: #2c024a;
                /* navbar text color */
                font-weight: 800;
                text-decoration: none;
                /* this removes the underline */
            }

            /* navigation link when a link is hovered over */
            #navbar li a:hover {
                color: #a49cba;
                text-decoration: underline;
            }

            #flex {
                display: flex;
            }
            
             main {
                    order: 1;
                }
                
                #navbar ul {
                    flex-wrap: wrap;
                }
   @media only screen and (max-width: 800px) {
                #flex {
                    flex-wrap: wrap;
                }center
  }
  p {
        text-align: center;
    } 
  h1 {
        text-align: center;
    }
  h2 {
        text-align: center;
    }
  h3 {
        text-align: center;
    }
  h4 {
        text-align: center;
    }
  h5 {
        text-align: center;
    }
  h6 {
        text-align: center;
    }
    </style>