* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
}

a {
    text-decoration: none;
    color: #337ab7;
}

/* Header Styles */
header {
    background-color:  green;
    color: black;
    padding: 1em;
    text-align: center;
}

.header {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: space-evenly;
}

#a {
    color: black;
}
#a:hover {
    color: red;
}
/* Main saction*/
main {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2em;
}

section {
    background-color: #fff;
    padding: 2em;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

h1, h2 {
    color: #337ab7;
}

/* Home Section Styles */
#home {
    text-align: center;
    background-color: #fff;
    display: flex;
    align-items: center;
    flex-direction: column;
    animation: home-appearance 2s ease-in-out forwards;
}
#home h1 {
  font-size: 36px;
  margin-bottom: 10px;
}
#learnmore {
  color: #333;
  }
#learnmore:hover {
  background-color: #444;
  color: white;
}
@keyframes home-appearance {
  0% {
    opacity: 0;
    transform: translateY(-20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
#photo {
    width: 185px;
    height:236px;
    align-self: center;
    background-image: url(kakashi1.png);
    background-size: cover;
    background-repeat: no-repeat;
    animation: kakashi-appearance 2s ease-in-out forwards;
}

@keyframes kakashi-appearance {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}
#photo:hover{
  width: 231px;
  height: 295px;
}


/* About Section Styles */
#about {
    background-color: #fff;
    animation: about-appearance 2s ease-in-out forwards;
    }
#about ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

#about li {
    margin-bottom: 10px;
    
}

blockquote {
  font-size: 18px;
  font-style: italic;
  margin-top: 20px;
}
@keyframes about-appearance {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Gallery Section Styles */
#gallery {
    background-color: #fff;
    animation: gallery-appearance 2s ease-in-out forwards;
}
  @keyframes gallery-appearance {
  0% {
    opacity: 0;
    transform: scale(0.5);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}  
#gallery1 {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap,wrap-reverse;
    justify-content: space-between;
}
.gallery {
  margin: 10px;
}

 .image {
  width: 200px;
  height: 350px;
    border-radius: 10px;
    object-fit: cover;
    transition: transform 0.5s ease-in-out;
    z-index: 1;
}

.image:hover {
    transform: scale(1.1);
}


#image1:hover {
  width: 340px;/*ratio of w:h is 2:3 */
    height: 510px;
    z-index: 2;
  }

#image2:hover {
  width: 640px;/*ratio of w:h is 8:5 */
  height: 400px;
  z-index: 2;
}

#image3:hover {
  width: 220px;/*ratio of w:h is 1.8:3.7 */
  height: 450px;
  z-index: 2;
}


.gallery{
    opacity: 0;
    animation: fadeIn 1s ease-in-out forwards;
    animation-delay: 0.5s;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

/* Techniques Section Styles */
#techniques {
    display: flex;
    width: 80%;
    flex-direction: column;
    text-align: center;
    align-content: center;
    background-color: #fff;
    animation: techniques-appearance 2s ease-in-out forwards;
}

.technique {
    margin: 20px;
}

.technique img {
    object-fit: cover;
    border-radius: 100%;
    width: 250px;
    height: 250px;
    position: relative;
    padding: 2.5%;
}
@keyframes techniques-appearance {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

#sharingan {
    animation: sharingan 5s infinite;
    border-radius: 50%;
    width: 350px;
    height: 250px;
  }
  
  @keyframes sharingan {
    0% {
      transform: scale(0.5) rotate(0deg);
      filter: brightness(0.5);
    }
    20% {
      transform: scale(0.7) rotate(45deg);
      filter: brightness(0.8);
    }
    40% {
      transform: scale(1) rotate(90deg);
      filter: brightness(1);
    }
    60% {
      transform: scale(1.2) rotate(135deg);
      filter: brightness(1.2);
    }
    80% {
      transform: scale(1.1) rotate(180deg);
      filter: brightness(1.1);
    }
    100% {
      transform: scale(0.5) rotate(360deg);
      filter: brightness(0.5);
    }
  }

  #lightning-cut {
    animation: lightning-cut 5s infinite;
    width: 250px;
    height: 300px;
    border-radius: 50%;
  }
  
  @keyframes lightning-cut {
    0% {
      transform: scale(1);
      filter: brightness(0.9);
    }
    15% {
      transform: scale(1.1);
      filter: brightness(1);
    }
    30% {
        transform: scale(1.2);
        filter: brightness(1.3);
      }
    45% {
      transform: scale(1.3);
      filter: brightness(1.5);
      box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    }
    50% {
        transform: scale(1.5);
        filter: brightness(2);
        box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
      }
    55% {
        transform: scale(1.5);
        filter: brightness(2);
        box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
      }
    60% {
        transform: scale(1.3);
        filter: brightness(1.5);
        box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
      }
    75% {
      transform: scale(1.2);
      filter: brightness(1.3);
      box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
    }
    85% {
      transform: scale(1.1);
      filter: brightness(1);
      box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    }
    100% {
      transform: scale(0.8);
      filter: brightness(0.9);
    }
  }
#teleportations {
  margin-top: 2%;
 display:flex;
 flex-direction: row;
justify-content: center;
}
  #teleportation {
    animation-name: teleportation;
    animation-duration: 1.5s;
    animation-iteration-count: infinite;
    z-index: 1;
  }
  #teleportation1 {
    animation-name: teleportation1;
    animation-duration: 1.5s;
    animation-iteration-count: infinite;
    
    z-index: 1;
    }
    #teleportation2 {
    animation-name: teleportation2;
    animation-duration: 1.5s;
    animation-iteration-count: infinite;
    z-index: 1;
    }
  
  @keyframes teleportation {
    0% {
    transform: translateX(0);
    opacity: 1;
    }
    25%{
      transform: translateX(0);
    opacity: 1;
    }
    50% {
    transform: translateX(0);
    opacity: 0;
    }
    100% {
    transform: translateX(0);
    opacity: 0;
    }
    /* from { opacity: 1;}
    to {opacity: 0;} */
    }
    @keyframes teleportation2 {
       0% {
        transform: translateX(-150%);
        opacity: 0;
        }
        50% {
        transform: translateX(0);
        opacity: 1;
        }
        100% {
        transform: translateX(0);
        opacity: 0;
        }
        /* from { opacity: 0;}
        to {opacity: 1;}*/
        } 
        
    @keyframes teleportation1 {
       0% {
        transform: translateX(105%);
        opacity: 0;
        }
        50% {
        transform: translateX(150%);
        opacity: 0;
        }
        100% {
        transform: translateX(0);
        opacity: 1;
        }
        /* from { opacity: 0;}
        to {opacity: 1;} */
        }

#kamuis {
  margin-top: 2%;
  display:flex;
  flex-direction: row;
 justify-content: center;
}
#shadow-clone  {
animation-name: shadow-clone;
animation-duration: 3s;
animation-iteration-count: infinite;
z-index: 2;
}

@keyframes shadow-clone {
0% {
transform: translateX(0);
opacity: 0;
}
53% {
  transform: translateX(0);
  opacity: 0.2;
  }
55%{
  transform: translateX(0);
  opacity: 1;
}

100% {
transform: translateX(0);
opacity: 1;
}
}
#shadow-clone1 {
animation-name: shadow-clone1;
animation-duration: 3s;
animation-iteration-count: infinite;
z-index: 1;
}
#shadow-clone2 {
animation-name: shadow-clone2;
animation-duration: 3s;
animation-iteration-count: infinite;
z-index: 1;
}
@keyframes shadow-clone2 {
0% {
transform: translateX(0%);
opacity: 0;
}
50% {
transform: translateX(0);
opacity: 1;
}
60% {
transform: translateX(-105%);
opacity: 0;
}
100% {
  transform: translateX(-105%);
  opacity: 0;
  }
}

@keyframes shadow-clone1 {
0% {
transform: translateX(0%);
opacity: 0;
}
50% {
transform: translateX(0);
opacity: 1;
}
60% {
transform: translateX(105%);
opacity: 0;
}
100% {
  transform: translateX(105%);
  opacity: 0;
  }
}

  

  /* Footer Styles */
footer {
    background-color: green;
    color: black;
    padding: 1em;
    text-align: center;
}

footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: space-evenly;
}

footer li {
    margin-right: 20px;
}

footer a {
    text-decoration: none;
    color: #337ab7;
}

footer a:hover {
    color: #23527c;
}

.footer {
    color: black;
    text-transform: uppercase;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: bold;
}

#home1 {
    color: purple;
}
#sasuke1:hover {
    color: blue;
}
#naruto1:hover {
    color: yellow;
}
#gara1:hover {
    color: brown;
}
