@media (prefers-reduced-motion: no-preference) {
    * {
      scroll-behavior: smooth;
    }
  }
  html,body {
  margin:0;
  padding:0;
  }
  body {
    font-family: sans-serif;
    line-height: 1.6;
    color:white;
    background-color: #000;
}
  header {
    background-color: #000;
    color: #fff;
    padding: 1rem;
    position: relative;
    top: 0;
    left:0;
    height:100px;
  }

  header h1 {
    font-size: 3rem;
    margin-bottom: 0;
    position:relative;
    top:-40px;
    font-family:Georgia, 'Times New Roman', Times, serif;
    font-weight:300;
  }
  
  nav {
    margin-top: 1.5rem;

  }

  a {
    position: relative;
  }
  
  .navi::before {
      content: '';
      position: absolute;
      width: 100%;
      height: 1px;
      background-color: white;
      bottom: 0;
      left: 0;
      transform-origin: right;
      transform: scaleX(0);
      transition: transform .3s ease-in-out;
      padding-bottom: 0.5px;
      
    }
  
  .navi:hover::before {
    transform-origin: left;
    transform: scaleX(1);
  }

  nav ul {
    list-style: none;
    padding: 0;
  }
  ul li {
    display: inline-block;
    margin-right: 1rem;
    position: relative;
  bottom: 15px;
  
  } 
  nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 300;
    font-family:Georgia, 'Times New Roman', Times, serif;
    font-size: 19px;
  }

  main {
    padding: 2rem;
  }
  
  section {
    margin-bottom: 1rem;
  

  }
  
  section h2 {
    font-size: 2rem;
    margin-bottom: 0;
  }



.introsegment {  
padding-bottom:15px;
}

.mainpic {
    background-image: url("https://i.imgur.com/6SVx3cc.jpg");
    background-repeat: no-repeat;
    background-size: contain; /* Use cover to maintain aspect ratio and cover the entire container */
    background-position: center;
    width: 100%;
    height: 100vh; /* Using viewport height for better responsiveness */
    position: relative;
}

  
  
  .intro-1 {
  font-family:georgia;
  font-size:18px;
  display:block;
  text-align:center;
  margin-bottom:20px;
  margin-top:15px;
  margin-right:auto;
  margin-left:auto;
  width: 100%;
  word-spacing:1.5px;
  padding-top:230px;
  color:white;
  }
  
  .intro-2 {
  font-family:georgia;
  font-size:18px;
  display:block;
  text-align:center;
  margin-bottom:20px;
  margin-top:20px;
  margin-right:auto;
  margin-left:auto;
  width: 100%;
  word-spacing:1.5px;
  color:white;
  }
  .intro-3 {
  font-family:georgia;
  font-size:18px;
  display:block;
  text-align:center;
  margin-bottom:20px;
  margin-top:20px;
  margin-right:auto;
  margin-left:auto;
  width: 100%;
  word-spacing:1.5px;
  color:white;
  }
  
  .intro-4 {
  font-family:georgia;
  font-size:18px;
  display:block;
  text-align:center;
  margin-bottom:20px;
  margin-top:20px;
  margin-right:auto;
  margin-left:auto;
  width: 100%;
  word-spacing:1.5px;
  color:white;
  }

  .intro-5 {
    font-family:georgia;
    font-size:18px;
    display:block;
    text-align:center;
    margin-bottom:280px;
    margin-top:20px;
    margin-right:auto;
    margin-left:auto;
    width: 100%;
    word-spacing:1.5px;
    color:white;
  }

  .pabout , 
  .pgame , 
  .pgraphics , 
  .pmusic , 
  .pstory {
  font-family: "Naia Serif", serif;
  font-style: light italic;
  font-size: 18px;
  word-spacing:2px;
}

/* Styling for the lightbox container */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7); /* Dark background with transparency */
  z-index: 999;
}

/* Styling for the close button */
.close-btn {
  position: absolute;
  top: 10px;
  right: 30px;
  font-size: 40px;
  cursor: pointer;
  color: white;
  font-weight: 100;
}

/* Styling for the lightbox image */
.lightbox-image {
  max-width: 80%;
  max-height: 80%;
  margin: auto;
  display: block;
  margin-top:80px;
  border-radius: 15px;
}

/* Styling for the clickable images */
.clickable-image {
  cursor: pointer;
}

.h-about,
.h-game,
.h-graphics,
.h-music,
.h-story {
font-family:Georgia;
font-weight:500;

}

  .about {
    position: relative;
    opacity: 0;
    transform: translateX(-20px); /* Adjust as needed */
  }
  
  .about.appear {
    animation: slideIn 1s ease-in-out forwards;
    animation-delay: 0.5s; /* Delay the animation */
  }
  
  @keyframes slideIn {
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }

  .gameplay {
    position: relative;
    opacity: 0;
    transform: translateX(-20px); /* Adjust as needed */
  }
  
  .gameplay.appear {
    animation: slideIn 1s ease-in-out forwards;
    animation-delay: 0.5s; /* Delay the animation */
  }
  
  @keyframes slideIn {
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }

  .graphics {
    position: relative;
    opacity: 0;
    transform: translateX(-20px); /* Adjust as needed */
  }
  
  .graphics.appear {
    animation: slideIn 1s ease-in-out forwards;
    animation-delay: 0.5s; /* Delay the animation */
  }
  
  @keyframes slideIn {
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }

  .music {
    position: relative;
    opacity: 0;
    transform: translateX(-20px); /* Adjust as needed */
  }
  
  .music.appear {
    animation: slideIn 1s ease-in-out forwards;
    animation-delay: 0.5s; /* Delay the animation */
  }
  
  @keyframes slideIn {
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }

  .story {
    position: relative;
    opacity: 0;
    transform: translateX(-20px); /* Adjust as needed */
  }
  
  .story.appear {
    animation: slideIn 1s ease-in-out forwards;
    animation-delay: 0.5s; /* Delay the animation */
  }
  
  @keyframes slideIn {
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }

  .introsegment {
    opacity: 0;
  }
  
  .introsegment.appear {
    animation: slideUp 1s ease-in-out forwards;
    animation-delay: 0.5s; /* Delay the animation */
  }
  
  @keyframes slideUp {
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }  

  #about {
   
    margin-top:220px;
    }

#gameplay {
margin-top:0px;
}

#graphics {
    margin-top:0px;
}

#music {
  margin-top:0px;
}

#story {
  margin-top:0px;
}

.h-about{
  padding-top:20px;
}

.h-game{
  padding-top:25px;
  margin-top:0px;
  }

  .h-graphics{
    padding-top:25px;
  margin-top:0px;
    }

    .h-music{
      padding-top:25px;
  margin-top:0px;
      }

      .h-story{
        padding-top:25px;
  margin-top:0px;
        
}

  .pic1 img {
    display:block;
height:250px;
width:auto;
border-radius:15px;
transition: 1s ease;
position:relative;
left:930px;
bottom:250px;
}

 .pic1 img:hover{
    -webkit-transform: scale(1.1);
    -ms-transform: scale(1.1);
    transform: scale(1.1);
    transition: 1s ease;
    }

 .pic2 img {
height:250px;
width:auto;
border-radius:15px;
transition: 1s ease;
position:relative;
left:930px;
bottom:250px;
 }
        
  .pic2 img:hover{
-webkit-transform: scale(1.1);
-ms-transform: scale(1.1);
transform: scale(1.1);
transition: 1s ease;
 }

 .pic3 img {
height:250px;
width:auto;
border-radius:15px;
transition: 1s ease;
position:relative;
left:930px;
bottom:250px;
 }
                
 .pic3 img:hover{
-webkit-transform: scale(1.1);
-ms-transform: scale(1.1);
transform: scale(1.1);
transition: 1s ease;
 }


 .pic4 img {
height:250px;
width:auto;
border-radius:15px;
transition: 1s ease;
position:relative;
left:930px;
bottom:250px;
 }

                        
 .pic4 img:hover{
-webkit-transform: scale(1.1);
-ms-transform: scale(1.1);
transform: scale(1.1);
transition: 1s ease;
 } 


 .pic5 img {
height:250px;
width:auto;
border-radius:15px;
transition: 1s ease;
position:relative;
left:930px;
bottom:325px;
 }
                                
 .pic5 img:hover{
-webkit-transform: scale(1.1);
 -ms-transform: scale(1.1);
transform: scale(1.1);
transition: 1s ease;
 }

  section p {
    margin-bottom: 4rem;
    margin-right:750px;
  }
  

  .sec2 img {
    width: 100%;
    min-width: auto; /* Prevent the image from becoming smaller than its original size */
    height: 100%; /* Fill the height of the container */
    object-fit: contain; /* Maintain aspect ratio and fit within container */
    margin-top: 130px;
  }

  footer {
    background-color: #000;
    color: #fff;
    text-align: center;
    display: flex;
    justify-content: space-between; /* Even out margins */
    align-items: center;
    padding-top: 10px; /* Set the fixed height */
    padding-bottom:20px;
  }
  
  footer p {
    color: #5A5A5A;
    flex: 1; 
    display: flex;
    justify-content: center; 
    align-items: center; 
    margin-left:150px;
    margin-right:auto
  }
  
  .arrow:not(.nav) {
    display: flex;
    align-items: center;
    margin-right: 85px; 
  }
  
  .arrow:not(.nav) img {
    height: 40px;
    width: auto;
    transform: rotate(90deg);
    color: #5A5A5A;
    overflow-x: hidden;
  }
  
  @media (max-width: 768px) {
    .arrow:not(.nav) img {
      left: 2%;
    }
  }


@media screen and (max-width:410px)
{ 

.mainpic {

    background-image: url("https://i.imgur.com/6SVx3cc.jpg");
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    max-width: 100%;
    max-height: 120vh; /* Limit the height to 100% of the viewport height */
    width: 100%;
    height: 100%;
    position: relative;
    top:-200px;

} 
}


@media screen and (max-width:527px) and (min-width:410px)
{ 

.mainpic {

    background-image: url("https://i.imgur.com/6SVx3cc.jpg");
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    max-width: 100%;
    max-height: 120vh; /* Limit the height to 100% of the viewport height */
    width: 100%;
    height: 100%;
    position: relative;
    top:-100px;

} 
}

  /* phone Styles */

/* Responsive Styles */
@media screen and (max-width:1205px) and (min-width:410px)
{

  /* Header styling */

  header {
    background-color: #000;
    color: #fff;
    padding: 1rem;
    position: relative;
    height: 100px;
  }
  
  header h1 {
    font-size: 2rem;
    margin: 0;
    margin-top:15px;
    position: relative;
    left: 5px;
    top: -25px;
    flex: 1;
  }
  
  .header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100px;
  }
  
  .header-content h1 {
    font-size: 2rem;
    margin: 0; /* Remove margin from h1 element */
    position:relative;
    left:0px;
    top:0px;
   
    
  }


/* Horizontal navigation */

nav {
  margin-bottom: 0px; /* Adjust the margin as needed */
}

nav ul {
  list-style: none;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap; /* Allow items to wrap to the next line */
  margin-top: -10px; /* Add space above the navigation */
}

nav li {
  margin-right: 25px;
  margin-bottom:10px;
}



nav a {
  text-decoration: none;
  color: #fff;
}
  
  .header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    background-color: #000;
    color: #fff;
  }
  


  .mainpic {
    background-image: url("https://i.imgur.com/6SVx3cc.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    background-size: 100%;
    height: 640px;
    position: relative;
    margin-top: 50px; /* Add margin to push image down */
}

  /* Sections */
  .introsegment,
  .about,
  .gameplay,
  .graphics,
  .music,
  .story {
    padding-top:15px;
    position: relative;
    opacity: 0;
    transform: translateX(0);
  }


  /* Images in sections */
  .pic1 img,
  .pic2 img,
  .pic3 img,
  .pic4 img,
  .pic5 img {
    position: relative;
    right: auto;
    bottom: auto;
    margin:0 auto;
    display: block;
    display:flex;
    flex-wrap: wrap;
    width: 100%;
    max-width: 400px; /* Adjust as needed */
  }

  /* Footer */
  footer {
    flex-direction: column;
    padding: 2rem 0;
    text-align: center;
  }

  footer p {
    margin: 10px auto;
  }

  .arrow:not(.nav) {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 1rem 0;
  }

  .arrow:not(.nav) img {
    height: 40px;
    width: auto;
    transform: rotate(90deg);
    color: #5A5A5A;
    overflow-x: hidden;
    margin-right: 10px;
  }
}

@media screen and (max-width: 527px) and (min-width:320px) {

  .navi {
    display:none;
    }
  .header-content h1 {
    font-size: 2rem;
    margin: 0; /* Remove margin from h1 element */
    position:relative;
    top:-15px;
    left:0px;
    display: flex;
    align-items: center;
  }

.pgame {
  margin-bottom:100px;
}


  .pic1 {
    margin-bottom:200px;
  }

    .pic2 {
      margin-bottom:0px;
    }

    .pic3 {
    margin-bottom:0px;
    }

    .pic4 {
    margin-bottom:0px;
    }

    .pic5 {
      margin-bottom:0px;
      padding-bottom:120px;
    }

    .pgraphics , .h-graphics {
     margin-top:-50px;
    }

    .pmusic , .h-music {
      margin-top:-50px;
     }

     .pstory , .h-story {
      margin-top:-50px;
     }



     }
       
  
    
    @media screen and (max-width: 656px) and (min-width:528px)  { 
      .header-content h1 {
        font-size: 2rem;
        position:relative;
        top:0px;
        left:0px;

}


ul li  {
margin-right: 1rem; 

}
}

/* Media query for smaller screens */
@media (max-width: 1205px) {

h2 {
   display: flex;
   justify-content: center;
   text-align: center;
   margin-top:0px;
    
  }

  .content-container { 
    margin-top:0px;
    margin-bottom:0px;
  }

  .pic1 img {
    margin: 0px auto;
   display:block;
   position: inherit;
   margin-bottom:50px;
  }

  .pic2 img {
    margin: 0 auto;
   display:block;
   position: inherit;
   margin-bottom:50px;
  }

  .pic3 img {
    margin: 0 auto;
   display:block;
   position: inherit;
   margin-bottom:50px;
  }

  .pic4 img {
    margin: 0 auto;
   display:block;
   position: inherit;
   margin-bottom:50px;
  }

  .pic5 img {
    margin: 0 auto;
   display:block;
   position: inherit;
   margin-bottom:100px;
  }

 .pabout {
  display:block;
  text-align:center;
  margin-bottom:40px;
  margin-top:5px;
  margin-right:auto;
  margin-left:auto;
  width: 75%;
  word-spacing:1.5;
  padding-top:10px;
  color:white;
}

.pgame {
  display:block;
  text-align:center;
  margin-bottom:40px;
  margin-top:5px;
  margin-right:auto;
  margin-left:auto;
  width: 75%;
  word-spacing:1.5;
  padding-top:10px;
  color:white;
}
  

  .pgraphics {
    display:block;
    text-align:center;
    margin-bottom:40px;
    margin-top:5px;
    margin-right:auto;
    margin-left:auto;
    width: 75%;
    word-spacing:1.5;
    padding-top:10px;
    color:white;
  }
    

    .pmusic {
      display:block;
      text-align:center;
      margin-bottom:40px;
      margin-top:5px;
      margin-right:auto;
      margin-left:auto;
      width: 75%;
      word-spacing:1.5;
      padding-top:10px;
      color:white;
    }
      

      .pstory {
        display:block;
        text-align:center;
        margin-bottom:70px;
        margin-top:5px;
        margin-right:auto;
        margin-left:auto;
        margin-right:auto;
        width: 75%;
        word-spacing:1.5;
        padding-top:10px;
        color:white;
      }
    }

      @media (max-width: 600px) {
        .pic1 {
          text-align: center;
          margin: 0 auto;
        }
        .pic1 img {
          display: block;
          margin: 0 auto;
        }

      .pabout {
        position: relative;
        top:5px;
      }

      .h-game  {
        position: relative; 
        top:15px;
      }

     .pgame {
        position: relative; 
        top:25px;
        margin-bottom:80px;
      }
      
      .h-game  {
        position: relative; 
        top:15px;
      }

     .pgame {
        position: relative; 
        top:25px;
        margin-bottom:80px;
      }

      .h-graphics  {
        position: relative; 
        top:15px;
      }

     .pgraphics {
        position: relative; 
        top:25px;
        margin-bottom:80px;
      }

      .h-music  {
        position: relative; 
        top:15px;
      }

     .pmusic {
        position: relative; 
        top:25px;
        margin-bottom:80px;
      }

      .h-story  {
        position: relative; 
        top:15px;
      }

     .pstory {
        position: relative; 
        top:25px;
        margin-bottom:80px;
      }

    }
      
   @media screen and (max-width: 2500px) and (min-width:1080px)  { 
.pic1 img, 
.pic3 img  { 
  position: relative;
  left:0;
  bottom: 245px;
  margin-left: auto;
  margin-right: 50;
  margin-top: -150px; /* Add some top margin */
  display: block; /* Ensure block-level display */
   }
   .pic5 img { 
   position: relative;
   left:0px;
   bottom:350px;
    
  margin-left: auto;
  margin-right: 50;
  margin-top: -175px; /* Add some top margin */
  display: block; /* Ensure block-level display */
  }

  .pic4 img { 
  position: relative;
  left:0px;
  bottom:270px;
   
 margin-left: auto;
 margin-right: 50;
 margin-top: -150px; /* Add some top margin */
 display: block; /* Ensure block-level display */
 }


  .pic2 img { 
    position: relative;
    left:0px;
    bottom:265px;
     
   margin-left: auto;
   margin-right: 50;
   margin-top: -150px; /* Add some top margin */
   display: block; /* Ensure block-level display */
   }

  /* Adjust the hover effect */
  .pic1 img:hover,
  .pic2 img:hover,
  .pic3 img:hover,
  .pic4 img:hover,
  .pic5 img:hover {
    -webkit-transform: scale(1.1);
    -ms-transform: scale(1.1);
    transform: scale(1.1);
    transition: 1s ease;
  }


  .pabout , .h-about  {
    position: relative;
    bottom:160px;
      }
    
      .pgame , .h-game  {
        position: relative;
        bottom:150px;
          }
    
          .pgraphics , .h-graphics  {
            position: relative;
            bottom:150px;
              }
    
              .pmusic , .h-music  {
                position: relative;
                bottom:150px;
                  }

                  .pstory , .h-story  {
                    position: relative;
                    bottom:150px;
                      }

  .h-about  {
    padding-top:215px;
    margin-top:-215px;
  }


  .h-game  {
    padding-top:170px;
    margin-top:-130px;
      }
    


  .h-graphics  {
    padding-top:170px;
    margin-top:-130px;
  }

  .h-music  {
    padding-top:170px;
    margin-top:-130px;
  }

  .h-story  {
    padding-top:170px;
    margin-top:-130px;
  }
                    }

  .pstory  {
    margin-bottom:100px;
  }      
                 

@media screen and (max-width:1205px) and (min-width:1080px) {
  


h2 {
  display: flex;
  justify-content: center;
  text-align: center;
  margin-top:0px;
   
 }


 .pabout , .h-about  {
  position: relative;
  bottom:10px;
    }
  
    .pgame , .h-game  {
      position: relative;
      bottom:10px;
        }
  
        .pgraphics , .h-graphics  {
          position: relative;
          bottom:10px;
            }
  
            .pmusic , .h-music  {
              position: relative;
              bottom:10px;
                }
  
                .pstory , .h-story  {
                  position: relative;
                  bottom:10px;
                    }

 .pic1 img {
   margin: 0px auto;
  display:block;
  position: inherit;
  margin-bottom:50px;
 }

 .pic2 img {
   margin: 0 auto;
  display:block;
  position: inherit;
  margin-bottom:50px;
 }

 .pic3 img {
   margin: 0 auto;
  display:block;
  position: inherit;
  margin-bottom:50px;
 }

 .pic4 img {
   margin: 0 auto;
  display:block;
  position: inherit;
  margin-bottom:50px;
 }

 .pic5 img {
   margin: 0 auto;
  display:block;
  position: inherit;
  margin-bottom:100px;
 }

.pabout {
 display:block;
 text-align:center;
 margin-bottom:40px;
 margin-top:5px;
 margin-right:auto;
 margin-left:auto;
 width: 75%;
 word-spacing:1.5;
 padding-top:10px;
 color:white;
}

.pgame {
 display:block;
 text-align:center;
 margin-bottom:40px;
 margin-top:5px;
 margin-right:auto;
 margin-left:auto;
 width: 75%;
 word-spacing:1.5;
 padding-top:10px;
 color:white;
}
 

 .pgraphics {
   display:block;
   text-align:center;
   margin-bottom:40px;
   margin-top:5px;
   margin-right:auto;
   margin-left:auto;
   width: 75%;
   word-spacing:1.5;
   padding-top:10px;
   color:white;
 }
   

   .pmusic {
     display:block;
     text-align:center;
     margin-bottom:40px;
     margin-top:5px;
     margin-right:auto;
     margin-left:auto;
     width: 75%;
     word-spacing:1.5;
     padding-top:10px;
     color:white;
   }
     

     .pstory {
       display:block;
       text-align:center;
       margin-bottom:40px;
       margin-top:5px;
       margin-right:auto;
       margin-left:auto;
       margin-right:auto;
       width: 75%;
       word-spacing:1.5;
       padding-top:10px;
       color:white;
     
      }

      header {
        background-color: #000;
        color: #fff;
        padding: 1rem;
        position: relative;
        height: 100px;
      }
      
      header h1 {
        font-size: 2rem;
        margin: 0;
        margin-top:15px;
        position: relative;
        left: 5px;
        top: -25px;
        flex: 1;
      }
      
      .header-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        min-height: 100px;
      }
      
      .header-content h1 {
        font-size: 2rem;
        margin: 0; /* Remove margin from h1 element */
        position:relative;
        left:0px;
        top:0px;
       

    }
  }
