body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
    background-color: #110c13;
    background-image: url('images/bg.jpg');
    background-repeat: repeat;
    color: white;
}

main { 
    margin: 50px;
}

.navbar {
background: #36105c;
background: linear-gradient(0deg,rgba(54, 16, 92, 1) 0%, rgba(73, 28, 112, 1) 100%);    padding: 20px 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.title a {
    font-size: 32px;
    color: white;
    letter-spacing: 1px;
    margin-bottom: 15px;
    text-align: center;
    text-decoration: none;
}

.navbar nav {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.navbar nav a {
    color: #b0a8d0;
    font-weight: bold;
    text-decoration: none;
    position: relative;
}

.navbar nav a:hover {
    color: #9b59b6;
}

.navbar nav a::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #9b59b6;
    transition: width 0.3s ease;
}

.navbar nav a:hover::after {
    width: 100%;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 40px;
}

@media (max-width: 900px) {
    .gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    .flex-container {
    flex-direction: column; 
    align-items: center;
    margin-right: 0px;
  }

   .flex-img {
    margin-right: 0; 
  }
}

@media (max-width: 500px) {
    .gallery {
        grid-template-columns: 1fr;
    }
      .flex-container {
    margin-right: 0px;
  }
}

.gallery-item {
    aspect-ratio: 1 / 1;
    position: relative;
    overflow: hidden;
    border-radius: 2px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: #111;
}

.overlay {
  position: absolute;
  inset: 0;
  background: rgba(23, 4, 37, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  text-align: center;
  transition: opacity 0.5s ease;
}

.gallery-item:hover .overlay {
    opacity: 1;
}

.overlay span {
    color: white;
    font-size: 32px;
    letter-spacing: 0.5px;
    text-align: center;
}

.overlay p {
    color: white;
    font-size: 25px;
    letter-spacing: 0.5px;
    text-align: center;
    font-weight:normal;
    margin: 5px;
}

.flex-container {
  display: flex;
  align-items: flex-start; 
  margin-right: 100px;
}

.flex-img {
  margin-right: 20px; 
  width: 400px;  
}

table td {
    padding: 8px;
}

footer {
    text-align: center; 
    padding-top: 10px;
  padding-bottom: 10px;
  margin-bottom: 0px;
    background-color: black;
}

footer a  {
    text-decoration: none;
}


/* Button link */
.button-link {
  text-decoration: none;
    display: flex;
  justify-content: center;
  margin: 40px 0;
}

/* Button styling */
.button {
	display: inline-block;
	padding: 14px 36px;
	font-size: 16px;
	font-weight: 600;
	color: #ffffff;
	border-radius: 999px;
	background: linear-gradient(135deg, #8936b7, #860cff);
	transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

/* Hover effect */
.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 40px rgba(125, 41, 236, 0.185);
  filter: brightness(1.05);
}

/* Active click */
.button:active {
  transform: translateY(0);
  box-shadow: 0 10px 25px rgba(99, 102, 241, 0.35);
}

/* Keyboard focus*/
.button:focus-visible {
  outline: 3px solid #22d3ee;
  outline-offset: 4px;
}
