body {
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #ffffff;
    margin: 0;
    padding: 20px;
  }

  h1 {
    margin-bottom: 20px;
    margin-top: 8vh;
    font-size: 100px;
  }
  
  .grid-container {
    margin-top: 20vh;
    display: grid;
    grid-template-columns: repeat(5, 15vh); /* 3 columns */
    grid-template-rows: repeat(7, 15vh);    /* 2 rows */
    gap: 1vh; /* spacing between boxes */
    /* padding: 10px; */
  }

  .grid-item {
    background-color: #ffffff;
    border: 2px solid #333;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    position: relative;
  }

  .item1 { z-index: 5; }
.item4 { z-index: 1; }
.item5 { z-index: 1; }
.item8 { z-index: 1; }

.grid-container.revealed .item1 { z-index: 0; }
.grid-container.revealed .item4 { z-index: 10; }
.grid-container.revealed .item5 { z-index: 10; }
.grid-container.revealed .item8 { z-index: 10; }




  .item1 {
    grid-column: 1 / 8; /* starts at column 1, ends before column 3 → spans 2 columns */
    grid-row: 1 / 4;    /* starts at row 1, ends before row 2 → just 1 row tall */
    z-index: 1;
    border: none;
    z-index: 2;
    background: transparent;
  }


  .item1 img{
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .item2 {
    grid-column: 2 / 3; 
    grid-row: 2 / 4;
    background: rgba(255, 0, 0);
    z-index: 3; 
    width: 15vh;
    height: 15vh;
    margin-top: 5.5vh;
    margin-left: -1.5vh;
    background: transparent;
    border: none;
    
  
  }

  .item2 img{
    width: 100%;
    height: 100%;
    object-fit: contain;
  }
   
  #wheel {
    transition: transform 1s ease; /* smooth movement */
  }
  
  /* Moved position */
  #wheel.move {
    transform: translateX(-7vh) translateY(20vh); /* adjust as you want */
  }


  .item3 {
    grid-column: 5 / 7;
    grid-row: 2 / 4;
    background: rgba(255, 0, 0);
    z-index: 3; 
    width: 15vh;
    height: 15vh;
    margin-top: 5.5vh;
    margin-left: -12vh;
    background: transparent;
    border: none;
  
  }

  .item3 img{
    width: 100%;
    height: 100%;
    object-fit: contain;
  }
   
  #wheel2 {
    transition: transform 1s ease; /* smooth movement */
  }
  
  /* Moved position */
  #wheel2.move {
    transform: translateX(10vh) translateY(20vh); /* adjust as you want */
  }


  .item4 {
    grid-column: 5 / 7;
    grid-row: 2 / 4;
    background: rgba(255, 0, 0);
    z-index: 3; 
    width: 15vh;
    height: 15vh;
    margin-top: 2vh;
    margin-left: -12vh;
    background: transparent;
    z-index: 1;
    border: none;
    
  }

  .item4 img{
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  #Sus {
    transition: transform 1s ease; /* smooth movement */
  }
  
  /* Moved position */
  #Sus.move {
    transform: translateX(2vh) translateY(12vh); /* adjust as you want */
  }

  .item5 {
    grid-column: 2 / 3; 
    grid-row: 2 / 4;
    background: rgba(255, 0, 0);
    z-index: 3; 
    width: 15vh;
    height: 15vh;
    margin-top: 3vh;
    margin-left: -1.5vh;
    background: transparent;
    border: none;
    z-index: 1;
  
  }

  .item5 img{
    width: 100%;
    height: 100%;
    object-fit: contain;
   transform: scaleX(-1);
  }

  #Sus2 {
    transition: transform 1s ease; /* smooth movement */
  }
  
  /* Moved position */
  #Sus2.move {
    transform: translateX(2vh) translateY(12vh); /* adjust as you want */
  }

  .item6 {
    grid-column: 5 / 6;
    grid-row: 2 / 4;
    background: rgba(255, 0, 0);
    z-index: 3;
    width: 25vh;
    height: 25vh;
    margin-top: -4vh;
    margin-left: -16vh;
    background: transparent;
    z-index: 1;
    border: none;
    
  }

  .item6 img{
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  #Engine {
    transition: transform 1s ease; /* smooth movement */
  }
  
  /* Moved position */
  #Engine.move {
    transform: translateX(10vh) translateY(-15vh); /* adjust as you want */
  }

  .item7 {
    grid-column: 4 / 6;
    grid-row: 2 / 4;
    background: rgba(255, 0, 0);
    z-index: 3;
    width: 23vh;
    height: 23vh;
    margin-top: -4vh;
    margin-left: -19.3vh;
    background: transparent;
    z-index: 4;
    border: none;

    
  }

  .item7 img{
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  #Door {
    transition: transform 1s ease; /* smooth movement */
  }
  
  /* Moved position */
  #Door.move {
    transform: translateX(1vh) translateY(-19vh); /* adjust as you want */
  }

  /* .move {
    transform: translateX(100px); 
    transition: transform 0.5s ease;
} */

.revealed {
    opacity: 1;
    transition: opacity 0.5s ease;
}


.item8 {
    grid-column: 5 / 6;
    grid-row: 2 / 4;
    background: rgba(255, 0, 0);
    z-index: 3;
    width: 23vh;
    height: 23vh;
    margin-top: 1vh;
    margin-left: -11vh;
    background: transparent;
    z-index: 1;
    border: none;
  }

  .item8 img{
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  #Muffler {
    transition: transform 1s ease; /* smooth movement */
  }
  
  /* Moved position */
  #Muffler.move {
    transform: translateX(23vh); /* adjust as you want */
  }

  .item9 {
    grid-column: 4 / 6;
    grid-row: 2 / 4;
    background: rgba(255, 0, 0);
    z-index: 3;
    width: 23vh;
    height: 23vh;
    margin-top: 0.5vh;
    margin-left: -20.2vh;
    background: transparent;
    z-index: 1;
    border: none;
  }

  .item9 img{
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  #DriveShaft {
    transition: transform 1s ease; /* smooth movement */
  }
  
  /* Moved position */
  #DriveShaft.move {
    transform: translateY(12vh) translateX(3vh); /* adjust as you want */
  }
  

  .item10 {
    grid-column: 3 / 6;
    grid-row: 2 / 4;
    background: rgba(255, 0, 0);
    z-index: 3;
    width: 17vh;
    height: 17vh;
    margin-top: 2vh;
    margin-left: -20.2vh;
    background: transparent;
    z-index: 1;
    border: none;
  }

  .item10 img{
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  #Spring{
    transition: transform 1s ease; /* smooth movement */
  }
  
  /* Moved position */
  #Spring.move {
    transform: translateY(12vh) translateX(-6vh); /* adjust as you want */
  }


  .item11 {
    grid-column: 6 / 6;
    grid-row: 1 / 4;
    background: rgba(255, 0, 0);
    z-index: 3;
    width: 17vh;
    height: 17vh;
    margin-top: 18vh;
    margin-left: -29vh;
    background: transparent;
    z-index: 1;
    border: none;
  }

  .item11 img{
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  #Spring2{
    
    transition: transform 1s ease; /* smooth movement */
  }
  
  /* Moved position */
  #Spring2.move {
   
    transform: translateY(12vh) translateX(10vh); /* adjust as you want */
  }

  

  


  




  nav { 
    background-color: #333; overflow: hidden; 
    position: fixed; 
    top: 0;
     left: 0; 
     right: 0; /* stretch edge-to-edge */ 
     top: 0;
     width: 100%;
      z-index: 1000; }

   nav ul { 
    list-style-type: none;
     margin: 0; padding: 0; 
     display: flex; 
     margin-left: 85vh; } 

   nav ul li { padding: 14px 20px; } 

   nav ul li a { color: white; text-decoration: none; } 
   
   nav ul li a:hover { text-decoration: underline;}