*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
    background-image: linear-gradient(to bottom right, #EAB7C7, black, black, #EAB7C7, black, black, #EAB7C7);
    min-height: 100%;
    margin: 0;
    overflow-x: hidden;
}

body {
    min-height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-content: center;
    justify-content: space-around;
    align-items: stretch;
}

.homepageanchor {
  text-decoration: none;
  color: black;
  cursor: pointer;
}

.heading{
  margin: 0 auto;
}

.abril-fatface-regular {
  font-family: "Abril Fatface", serif;
  font-weight: 400;
  font-style: normal;
}


.headersection {
  font-family: "Times New Roman", Times, Arial, sans-serif;
  display: flex;
  background-image: linear-gradient(to bottom right, gray, #EAB7C7, #EAB7C7, white, #EAB7C7, #EAB7C7, gray);
  text-shadow: 0.3125rem 0.3125rem 0.5rem pink;
  font-size: clamp(1.8rem, calc(7vw + 1rem), 5rem);
  flex-direction: column;
  flex-wrap: nowrap;
  align-content: space-around;
  justify-content: space-between;
  align-items: center;
}

.kiddtattoosheader {
  font-size: clamp(2.4rem, calc(7vw), 5rem);
  text-align: center;
  white-space: normal;
  margin-bottom: 2rem;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-content: space-around;
  justify-content: space-between;
  align-items: center;
  font-weight: 200;
}

#kiddtattoologo {
  max-width: 19%;
  min-width: 14%;
  height: auto;
  margin: -5px;
  animation: spin 3s ease-in-out 1;
}

/*@keyframes spin {
  0% {

  }
  100% {
    transform: rotate(360deg);
    border-radius: 50%;
  }
}*/

.tattoo-gun {
  height: 3.3rem;
  width: 3rem;
  margin: 4px 4px 5px 10px;
  animation-name: leave;
  animation-duration: 3s;
  flex-direction: column;
  flex-wrap: nowrap;
  align-content: space-around;
  justify-content: space-between;
  align-items: center;
}

@keyframes leave {
  0% {
    transform: translateX(0px);
  }
  100% {
    transform: translateX(-55px);
  }
}

.tattoo-gun2 {
  height: 3.3rem;
  width: 3rem;
  margin: 4px 4px 5px 10px;
  animation-name: leaverev;
  animation-duration: 3s;
  flex-direction: column;
  flex-wrap: nowrap;
  align-content: space-around;
  justify-content: space-between;
  align-items: center;
}

@keyframes leaverev {
  0% {
    transform: translateX(0px);
  }
  100% {
    transform: translateX(55px);
  }
}


.navbar {
    position: sticky;
    top: 0;
    z-index: 999;
    background-image: linear-gradient(to right, pink, white);
    padding: 0.5rem 0;
    margin: 0;
    border-bottom: 2px solid white;
    border-top: 2px solid white;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

ul {
  font-family: "Times New Roman", Times, Arial, sans-serif;
  font-size: clamp(2.5rem, 3vw, 3.5rem);
  display: flex;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

ul li {
    position: relative;
}


ul li a {
    padding: 0.6rem 1.2rem;
    text-decoration: none;
    color: black;
    transition: all 0.3s ease;
    border-radius: 5px;
}

ul li a:hover {
    color: rgb(235, 46, 156);
    background-color: rgb(229, 183, 213);
}

.navbar li:not(:first-child)::before {
    content:"";
    position: absolute;
    left: -0.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 1.5rem;
    background-color: rgba(0, 0, 0, 0.3);
}


.menu-toggle {
    display: none;
}


@media (max-width: 900px) {
  .navbar ul {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }

  .navbar li:not(:first-child)::before {
    display: none;
  }
}

@media (max-width: 900px) {

    .menu-toggle {
        display: block;
        width: 100%;
        padding: 1rem;
        border: none;
        background-image: linear-gradient(to right, black, #EAB7C7, white, #EAB7C7, black);
        cursor: pointer;
        color: black;
        font-family: "Times New Roman", Times, Arial, sans-serif;
        font-size: clamp(2.5rem, 3vw, 3.5rem);
    }

    .nav-links {
        display: none;
        flex-direction: column;
    }

    .nav-links.active {
        display: flex;
    }

    .navbar ul {
      display:none;
    }

    .navbar ul.active {
      display: flex;
      flex-direction: column;
    }
}

 .gallery-heading {
   color: white;
   text-align: center;
   font-size: clamp(4rem, calc(7vw + 1rem), 8rem);
   margin: 2rem;
   position: relative;
   justify-content: center;
   max-width: 100%;
   margin-top: 3rem;
   text-shadow: 0.1rem 0.1rem #F0007F;
   font-family: "Times New Roman", Times, serif, Arial (sans-serif);
}

  .gallery {
   display: grid;
   grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
   gap: 25px;
   padding: 20px;
}

 .gallery-item img {
  width: 100%;
  max-width: 750px;
  height: auto;
  max-height: 650px;
  border: 4px solid pink;
  display: block;
}

.gallery-item img.enlarged {
    width: auto;
    height: auto;
    max-width: 85vw;
    max-height: 90vh;
    display: block;
    border: 4px solid pink;
    padding: 0;
    margin: 0;
    object-fit: contain;
}

@media (max-width: 768px) {

    .gallery {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 15px;
    }

    .gallery-item img {
        max-width: 100%;
    }

    .enlarged {
        max-width: 95vw;
        max-height: 85vh;
    }

}

@media (max-width: 1200px) {

    .gallery {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 15px;
    }


    .enlarged {
        max-width: 95vw;
        max-height: 85vh;
    }

}

#overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    z-index: 999;
    pointer-events: none;
}

#overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

#prev,
#next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  font-size: 3rem;
  color: white;
  cursor: pointer;
  user-select: none;
  z-index: 2000;
}

#prev {
  left: 30px;
}

#next {
  right: 30px;
}


.gallery-item {
  display: flex;
  justify-content: center;
}

.other-img {
  cursor: pointer;
  transition: transform 0.3s ease;
  opacity: 1;
 }


.enlarged {
  display: block;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 85vw;
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border: 4px solid pink;
  box-sizing: border-box;
  z-index: 1000;
}

@media (max-width: 768px) {
    .enlarged {
        max-width: 95vw;
        max-height: 85vh;
    }
}

 .close-btn {
    display: none;
    position: fixed;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: white;
    cursor: pointer;
    z-index: 1001;
    user-select: none;
}

.enlarged + .close-btn {
    display: block;
}

a:link {
  color: black;
}

#footerinfo:link {
  color: rgb(223, 43, 133);
}


footer {
  justify-content: center;
  padding: 30px 25px;
  border: 25px;
  background-image: linear-gradient(to bottom left, grey, #EAB7C7, white, white, white, #EAB7C7, grey);
  width: 100%;
  box-shadow: 3px 5px 12px 2px black;
  text-align: center;
}


.jersey-15-regular {
  font-family: "Jersey 15", sans-serif;
  font-weight: 400;
  font-style: normal;
}

.contact {
  text-decoration: underline;
  font-size: clamp(1.4rem, calc(5vw + 1rem), 4.2rem);
  font-family: "Jersey 15";
}

.insta-link {
  font-size: clamp(1.2rem, calc(4vw + 1rem), 3.8rem);
  font-family: "Times New Roman", Times, Arial, sans-serif;
}


#insta-icon {
  text-align: center;
}

#footerinfo {
  display: flex;
  justify-content: center;
  overflow: auto;
  margin-top: 50px;
}

#footerinfo a:visited {
  color: rgb(223, 43, 133);
}

.contact-info {
  overflow: scroll;
  overflow-x: hidden;
  overflow-y: hidden;
  text-align: center;
}














