* {
    margin: 0;
    box-sizing: border-box;
    font-family: "Special Gothic Expanded One", sans-serif;
    font-weight: 400;
    font-style: normal;
}
html {
  background-color: black;
}
body {
    width: 100%;
    max-width: 768px;
    margin: 0 auto;
}

.header {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    background-image: url(images/Horizontal\ gothic\ ba.png);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    height: auto;
  
    width: 100%;
    border: 10px solid rgb(100, 100, 100);
  
}

@keyframes img-header-1 {
    0%, 100% { background-image: url(images/hero.jpg); }
    33% { background-image: url(images/hero2.jpg); }
    66% { background-image: url(images/hero3.jpg); }
}

.hero-header {
  display: flex;
  align-items: center;
  justify-content: center;
    position: relative;
      animation: img-header-1 15s linear infinite forwards;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    height: 166px;
    width: 305px;
    border: 10px solid black;
    margin-top: 80px;
    margin-bottom: 10px;
}

@media screen and (min-width: 769px)  {
  .hero-header {
    width: 510px;
    height: 272px;
    margin-top: 100px;
  
  }
.hero-header img {
  margin-top: 1000px;
  margin-bottom: 80px;
}
  }


    
  


nav {
    display: flex;
    justify-content: center;
    align-items: center;
    background-image: url(images/grate.jpg);
    border-bottom: 10px solid rgb(100, 100, 100);
    border-left: 10px solid rgb(100, 100, 100);
    border-right: 10px solid rgb(100, 100, 100);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    width: 100%;
    height: auto;
}
/* Glowing MENU button */
#menu-button {
  padding: 7px;
  cursor: pointer;
  color: red;
  user-select: none;
  text-align: center;
  font-size: 2rem;
      text-shadow:
  3px 0 black,
 -3px 0 black,
  0 3px black,
  0 -3px black,
  3px 3px black,
 -3px 3px black,
  3px -3px black,
 -3px -3px black;
}
#menu-button img {
  position: relative;
  bottom: -5px;
    height: auto;
    width: 160px;
      animation: click 2s ease-in-out infinite;

}
@keyframes click {
  0%   { transform: translateY(0) scale(1); }
  50%  { transform: translateY(-12px) scale(1.03); }
  100% { transform: translateY(0) scale(1); }
}

/* Popup container (hidden by default) */
#menu-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;               /* stays flex, but invisible */
  justify-content: center;
  align-items: center;
  background: rgba(0,0,0,0.6);

  opacity: 0;                  /* invisible */
  pointer-events: none;        /* can't click it when hidden */
  transition: opacity 0.5s ease;
}

/* When active, fade in */
#menu-popup.active {
  opacity: 1;
  pointer-events: auto;
}

/* Popup box */
.popup-content {
  background: #222;
  padding: 50px;
  border-radius: 10px;
  color: white;
  text-align: center;
  box-shadow: 0 0 20px black;
}





.popup-links {
  list-style: none;
  padding: 0;
  margin: 20px 0 0 0;

  display: flex;
  flex-direction: column;   /* makes it vertical */
text-align: center;
  align-items: center;      /* centers each link */
  gap: 17px;                /* clean spacing between items */
}

.popup-links a {
  color: white;

  font-size: 20px;
  text-decoration: none;
  transition: color 0.3s ease;
}
.popup-links li {
  width: 100%;
  display: flex;
  justify-content: center;  /* centers the link inside each li */
}

.popup-links a:hover {
  color: red;
}
main {
     height: auto;              /* or whatever height */
    display: flex; 
    width: 100%;  
    height: auto;
    flex-direction: column;
    justify-content:center;
    align-items: center;
    background-image:url(images/Vertical\ gothic\ rect.png);
    border-right: 10px solid rgb(100, 100, 100);
    border-left: 10px solid rgb(100, 100, 100);
    border-bottom:10px solid rgb(100, 100, 100);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;



}
.background {
  display: flex;
  z-index: -1;
  flex-direction: column;


}
.background img {
  width: 100%;
  height: auto;
}
.catagory-link {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
  
}
.original {
    width: 250px;
    height: 250px;
    background-image: url(images/hero.jpg);
    background-size: cover;
    background-position: center;
    border-radius: 50%;
    border: 10px solid black;
    animation: img-original 15s linear infinite forwards;
}
@keyframes img-original{
    0%, 100% { background-image: url(images/weekly\ cover.jpg)}
    33% { background-image: url(images/cyclops-large.jpg)}
    66% { background-image: url(images/mona-large.jpg)}
}
.portraits {
   width: 250px;
    height: 250px;
    background-image: url(images/bowie.jpg);
animation: img-portrait 15s linear infinite forwards;

    background-size: cover;
    background-position: center;
    border-radius: 50%;
    border: 10px solid black; 
}
@keyframes img-portrait{
    0%, 100% { background-image: url(images/bowie.jpg)}
    33% { background-image: url(images/tattoobw-large.jpg)}
    66% { background-image: url(images/dali-large.jpg)}
}
.motorcycle {
     width: 250px;
    height: 250px;
    background-image: url(images/hero.jpg);
    background-size: cover;
    background-position: center;
    border-radius: 50%;
    border: 10px solid black;
    animation: img-motorcycle 15s linear infinite forwards;
}
@keyframes img-motorcycle {
    0%, 100% { background-image: url(images/monster3-large.jpg)}
    33% { background-image: url(images/skull4-large.jpg)}
    66% { background-image: url(images/grim1-large.jpg)}
}
.web {
      width: 250px;
    height: 250px;
    background-image: url(images/java.jpg);
    background-size: cover;
    background-position: center;
    border-radius: 50%;
    border: 10px solid black;
    margin-bottom: 250px;
}
.catagory-link a{
  position: relative;
  font-size: 1.8rem;
  top: 200px;
  animation: acolor 6s linear infinite forwards;
}
.catagory-link a {
  text-decoration: none;
}
@keyframes acolor {
  0% {color: red;
    text-shadow:
  3px 0 black,
 -3px 0 black,
  0 3px black,
  0 -3px black,
  3px 3px black,
 -3px 3px black,
  3px -3px black,
 -3px -3px black;}
  50% {color: yellow;
    text-shadow:
  3px 0 black,
 -3px 0 black,
  0 3px black,
  0 -3px black,
  3px 3px black,
 -3px 3px black,
  3px -3px black,
 -3px -3px black;}
  100% {color: red;
    text-shadow:
  3px 0 black,
 -3px 0 black,
  0 3px black,
  0 -3px black,
  3px 3px black,
 -3px 3px black,
  3px -3px black,
 -3px -3px black;}
}
main h3, main h1, main h2, .meints p, .original1, .motor-title, .heading, .skull-p, .me {
   color: red;
  text-shadow:
  3px 0 black,
 -3px 0 black,
  0 3px black,
  0 -3px black,
  3px 3px black,
 -3px 3px black,
  3px -3px black,
 -3px -3px black;
}


.welcome {
  
  margin-top: 190px;
  display: block;
  text-align: center;
  background-image: url();
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  width: 100%;
  height: 300px;

  
}
.welcome img {
  margin-top: 20px;
  width: 310px;
  height: auto;

}
footer img {
  height: 150px;
  width: 100%;
}

footer {
  background-image: url(images/Rectangular\ gothic\ m.png);
  width: 100%;

  display: block;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  height: auto;
  border-left: 10px solid rgb(100, 100, 100);
  border-right: 10px solid rgb(100, 100, 100);
  border-bottom: 10px solid rgb(100, 100, 100);
}
.meints {
  display: block;
  text-align: center;
  background-color: black;
  height: 40px;
  width: 100%;
  margin-top: 10px;
}

/* ===========================
   GALLERY
=========================== */
.gallery {
  padding-top: 150px;
  padding-bottom: 200px;
    display: grid;
    width: 100%;
    height: auto;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  
    


    background-image: url(images/Vertical\ gothic\ back.png);
    border-left: 10px solid rgb(100, 100, 100);
    border-right: 10px solid rgb(100, 100, 100);
    border-bottom: 10px solid rgb(100, 100, 100);

}


.gallery img {
    width: 200px;
    height: 200px;
    transition: transform 0.3s ease;
    border: 5px solid rgb(50, 50, 50);
    margin: 10px;
}

.gallery img:hover {
    transform: scale(1.1);
}
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    justify-content: center;
    align-items: center;
    z-index: 99999;
}

.lightbox-img {
    max-width: 90%;
    max-height: 90%;
    border: 10px solid rgb(50, 50, 50);
    border-radius: 6px;
}

.close {
    position: absolute;
    top: 20px;
    right: 40px;
    font-size: 50px;
    color: white;
    cursor: pointer;
    text-shadow: 3px 3px 5px black;
}

.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,0,0,0.7);
    border: none;
    color: white;
    font-size: 40px;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px;
    text-shadow: 2px 2px 4px black;
}

.prev { left: 40px; }
.next { right: 40px; }

.prev:hover, .next:hover, .close:hover {
    background: rgba(255,0,0,1);
}
.motor-title {
  width: 100%;
  text-align: center;
  font-size: 1.3rem;
  height: auto;
  border-left: 10px solid rgb(100, 100, 100);
  border-right: 10px solid rgb(100, 100, 100);
  border-bottom: 10px solid rgb(100, 100, 100);
  background: linear-gradient(90deg, black, gray, black);
}
.heading {
  padding-top: 15px;
  padding-bottom: 10px;
  display: block;
  border-left: 10px solid rgb(100, 100, 100);
  border-right: 10px solid rgb(100, 100, 100);
  border-bottom: 10px solid rgb(100, 100, 100);
  background-image: url(images/Horizontal\ gothic\ me.png);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  text-align: center;
  width: 100%;
  height: auto;
}
.heading h3 {
  margin-top: 10px;
}
.heading h1 {
  margin-bottom: 10px;
}




.skul {
  display: flex;
  position: relative;
  z-index: 2; /* skull above background */
  height: 400px;
  width: 100%;
  animation: skull 2s ease-in-out infinite;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  justify-content: center;
  align-items: center;
  background-color: black;
}


.fir {
    height: 400px;
    width: 28%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    animation: fire 3s ease-in-out infinite;
  

}








.skull-p {
    align-self: center;
    text-align:center;
    font-size: 1.3rem;
    padding: 40px;
}
.skull-container {


    display: flex;
    height: 400px;
    width: 100%;
    justify-content:center;
    align-items: center;
  
    background-color: black;
}


@keyframes skull {
    0%, 100% { background-image: url(images/skull1.png); }
    12% { background-image: url(images/skull2.png); }
    20% { background-image: url(images/skull3.png); }
    32% { background-image: url(images/skull4.png); }
    53% { background-image: url(images/skull5.png); }
    70% { background-image: url(images/skull6.png); }
     82% { background-image: url(images/skull7.png); }
      92% { background-image: url(images/skull8.png); }


}
@keyframes fire {
    0%, 100% { background-image: url(images/fire.jpg); }
    12% { background-image: url(images/fire2.jpg); }
    20% { background-image: url(images/fire4.jpg); }
    32% { background-image: url(images/fire3.jpg); }
    53% { background-image: url(images/fire6.jpg); }
    70% { background-image: url(images/fire5.jpg); }
     82% { background-image: url(images/fire7.jpg); }
      92% { background-image: url(images/fire4.jpg); }
}
.layer-skull {
    height: 400px;
    width: 400px;
    display: flex;
    background-position: 0px 0;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-image: url(images/Untitled.png);
    border-left: 5px solid rgb(50, 50, 50);
    border-right: 5px solid rgb(50, 50, 50);
background-size: cover;
background-repeat: no-repeat;
animation: playSkull 0.8s steps(8, end) infinite;

}

@keyframes playSkull {
    from { background-position: 0px 0; }
    to   { background-position: -3200px 0; }
}

.fire {
    height: 400px;
    width: 170px;
    background-image: url(images/fire-sprite.png);
    background-size: auto 100%;
    background-repeat: no-repeat;
    background-position: 0px 0;
    animation: playFire 0.7s steps(7, end) infinite;
}


@keyframes playFire {
    from { background-position: 0px 0; }
    to   { background-position: -3200px 0; }
}
@media screen and (max-width: 768px){
  .gallery img {
    height: 140px;
    width: 140px;
  }
  .gallery {
   grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}
    .fire{
        width: 0%;
        height: 320px;
    }
    .layer-skull {
    height: 300px;
    width: 310px;
    display: flex;
    background-image: url(images/smaller-skull-trans.png), url(images/fire-sprite.png);
    background-size: 2400px 300px, 2400px 300px;
    background-repeat: no-repeat, no-repeat;
    background-position: 0px 0;
    animation: playSkull 0.8s steps(8, end) infinite, animation playFire 3s steps(7, end) infinite;
    justify-content: center;
    align-items: center;
    text-align: center;
}
.skull-container {
    width: 310px;
    height: 300px;
}

@keyframes playSkull {
    from { background-position: 0px 0; }
    to   { background-position: -2400px 0; }
}
@keyframes playFire {
  from { background-position:    0px 0; }
  to   { background-position: -3200px 0; }
}


}
.art-videos, .bike-videos {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(2, 1fr); /* always 2 columns */
    justify-items: center;
    align-items: center;
    gap: 20px;
    padding: 20px 0;
}
.art-videos {
  padding-top: 15px;
  border-bottom: 10px solid rgb(100, 100, 100)
}
.artvid, .bikevid {
  padding-top: 15px;
}
.me {
  border-left: 10px solid rgb(100, 100, 100);
  border-right: 10px solid rgb(100, 100, 100);
  display: block;
  text-align: center;

  border-bottom: 10px solid rgb(100, 100, 100);
  border-top: 10px solid rgb(100, 100, 100);
  width: 100%;
  height: auto;
}

@media (max-width: 768px) {
    .art-videos {
        grid-template-columns: 1fr; /* one column */
    }
    .bike-videos {
        grid-template-columns: 1fr;
    }
    #menu-button {
        font-size: 27px;
    }
}
.artvid, .bikevid {
    display: flex;
    justify-content: center;
    align-items: center;
}
.contact {
  display: flex;
  width: 100%;
  height: auto;
  justify-content: center;
  align-items: center;
}