@import url('https://fonts.googleapis.com/css2?family=Inconsolata:wght@200..900&family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&family=Libre+Franklin:ital,wght@0,100..900;1,100..900&display=swap');

* {
margin: 0;
padding: 0;
box-sizing: border-box;
}

body {background-color: black
}

img{
  width: 50%;
  display: block;
  margin: auto;
  margin-bottom: 30px;
}

iframe{
  display: block;
  margin: auto;
  margin-bottom: 30px; 
  width: 80%;
  height:50vw;
}

a{
  color: #0013ff;
}

.returnlink{
  margin-bottom: 30px;
  text-align: center;
}

h1{
    font-family: "elza", sans-serif;
    font-size: 50px;
    color: white;
}

p{
  font-family: 'Times New Roman';
  font-size: 20px;
  text-align: center;
  color: white;
  margin-bottom: 30px;
}

/*HEADER AND NAV BAR*/
header{
    margin: 20px 0px 30px 40px;
}

.header {
  display: flex;
  align-items: baseline;
  z-index: 1000;
}

/*NAVIGATION*/
.nav {
  list-style: none;
  display: flex;
  margin-left: 50px;
  gap: 20px;
  z-index: 1000;
}

.gallnav{
  list-style: none;
  display: flex;
  width: fit-content;
  margin: 0 auto;
  margin-bottom: 30px;
  gap: 20px;
  z-index: 1000;
}

.nav li a,
.gallnav li a{
  font-family: "elza", sans-serif;
  text-decoration: none;
  font-size: 20px;
  color: white;
  font-weight: bold;
}

.hamburger {
  display: none;
  font-size: 30px;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
    z-index: 1001;
}

@media (max-width: 768px) {
  .nav {
    display: none;
    flex-direction: column;
    background-color: #ff0077;
    position: absolute;
    top: 60px;
    right: 10px;
    padding: 10px;
    z-index: 1000;
  }

  .nav.active {
    display: flex;
  }

  .hamburger {
    display: block;
    position: absolute;
    z-index: 10;
    top: 15px;
    right: 10%;
  }

  .header {
    position: relative;
  }
}


/*HOME GIFS*/
.image-container {
    width: 80%;
    margin: 7% 10% 0% 10%;
    overflow: hidden;        /* This hides any part of the image that overflows */
    position: relative;
    z-index: 999;
  }

#randomImage {
    width: 100%;
    height: 100%;
    object-fit: cover;       /* This makes sure the image fills the container and crops as needed */
    object-position: center; /* Keep the image centered */
    display: block;
 }

/*INDEX BUTTON TABLE*/
table {
      border-collapse: collapse;
      width: 25%;
      margin: 20px auto;
    }
td {
    padding: 10px;
    text-align: center;
    }
#itemtable button {
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    border: none;
    background-color: #a7a7a7;
    color: blue;
    text-decoration: underline;
    }

#itemtable button:hover {
    color: #ff0077;
    }


/*IMAGE GRID*/
.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 15px;
  padding: 20px;
}

.image-grid img {
  width: 100%;
  height: 300px;
  display: block;
  object-fit: cover;
}

.lightbox {
  display: none;
  position: fixed;
  z-index: 1000;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.85);
  align-items: center;
  justify-content: center;
  padding: 0; 
  margin: 0;
}

.lightbox img {
  display: block;
  width: 80%;
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  margin: 0;
  padding: 0;
}
