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

  h1 {
    margin-bottom: 20px;
    margin-top: 8vh;
    color: white;
    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: #000000;
    border: 2px solid #333;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
  }


  .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: black solid 10px;
  }

  

  @keyframes subtle-shake {
    0% { transform: translate(0, 0); }
    25% { transform: translate(1px, 0); }
    50% { transform: translate(-1px, 0); }
    75% { transform: translate(1px, 0); }
    100% { transform: translate(0, 0); }
  }

  .item1 img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: subtle-shake 0.2s linear infinite; 
    transform: translate3d(0, 0, 0); /* Improve performance by enabling GPU acceleration */
  }

  .item2 {
    grid-column: 1 / 3;
    grid-row: 3 / 4;
    z-index: 3;
    width: 10vh;
    height: 10vh;
    margin-left: 13.5vh;
    margin-top: -6.5vh;
    border: none;
   background: transparent;
/* opacity: 50%; */

    animation: spin 0.6s linear infinite reverse;  
  }

  .item2 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;


  }


  @keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}


  .item3 {
    grid-column: auto;
    grid-row: 2 / 4;
    background: rgb(0, 34, 255);
    z-index: 2;
    margin: -7.3vh;
    margin-top: 10vh;
    width: 10vh;
    height: 5vh;
    background: transparent;
    border: none;

    animation: flame 0.9s infinite;
   
  }

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

  @keyframes flame {
    0%, 33.33%{ opacity: 1; }
    33.34%,100% { opacity: 0; }
  }

  .item4 {
    grid-column: 6 / 7;
    grid-row: 3 / 4;
    background: rgb(234, 255, 0);
    z-index: 4;
    width: 10vh;
    height: 10vh;
    margin-top: -6.6vh;
    margin-left: -24.5vh;
    border: none;
    background: transparent;
    /* opacity: 60%; */

   
    animation: spin 0.6s linear infinite reverse;  
}
.item4 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}



  .item5 {
    grid-column: 3 / 5;
    grid-row: 1 / 1;
    background: rgb(0, 255, 34);
    z-index: 4;
    width: 23vh;
    height: 23vh;
    margin: 10vh;
    margin-left: -5.3vh;
    margin-top: 10.5vh;
    background: transparent;
    opacity: 100%;
    border:none;

  }
  


  .item5 .door {
    width: 100%;
    height: 100%;
    transform-origin: left center;        
    transition: transform 0.5s ease;      
  }

  .item5 .door img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
  }

  .item5:hover .door {
    transform: rotateY(-65deg);           
  }

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

  .item6 {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
    background: rgb(230, 0, 255);
    z-index: 10;
    width: 20vh;
    height: 15vh;
    margin-top: 14.3vh;
    margin-left: -7.9vh;
background: transparent;
    border: none;
    }


    .item6 {
        perspective: 1000px;
        background: transparent;
        border: none;
      }


.item6 .hood {
  width: 100%;
  height: 100%;
  transform-origin: center right;   /* hinge at middle of right edge */
  transition: transform 0.45s ease;
  backface-visibility: hidden;
}

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

  .item6:hover .hood {
    transform: rotateZ(25deg);       
  }


  .item7 {
    grid-column: 5 / 8;
    grid-row: 1 / 1;
    background: rgb(230, 0, 255);
    z-index: 10;
    width: 12.5vh;
    height: 12.5vh;
    margin-top: 13.9vh;
    margin-left: 1.4vh;
    background: transparent;
  
    }

  
        .item7 img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        
    }
    .item7 {
        perspective: 1000px;
        background: transparent;
        border: none;
      }

      .item7 .trunk img {
        width: 100%;
        height: 100%;
        object-fit: contain;              /* use 'cover' if you see letterboxing */
        display: block;
      }

      .item7 .trunk {
        width: 100%;
        height: 100%;
        transform-origin: center left;   /* hinge at middle of right edge */
        transition: transform 0.45s ease;
        backface-visibility: hidden;
  
      }

      .item7:hover .trunk {
        transform: rotateZ(-25deg) translateY(8px); ;   
        
      }


      .item8 {
        grid-column: 5 / 8;
        grid-row: 1 / 1;
        background: rgb(230, 0, 255);
        z-index: 10;
        width: 3.8vh;
        height: 3.8vh;
        margin-top: 22.3vh;
        margin-left: 0.9vh;
        background: transparent;
        border: none;
        }
    
      
        .item8 img {
            width: 100%;
            height: 100%;
            object-fit: contain;
            
        }

        .item8 {
            perspective: 900px;   /* 3D space */
            border: none;
            background: transparent;
          }

          .item8 .Gas {
            width: 100%;
            height: 100%;
            transform-origin: left center;        
            transition: transform 0.5s ease;      
          }
            .item8 .Gas img {
                width: 100%;
                height: 100%;
                object-fit: contain;           
                display: block;
            }

            .item8:hover .Gas {
                transform: rotateY(-65deg);           
              }





              /* Button styling */
/* Button styling stays as you had it */
.btn {
    display: inline-block;
    padding: 0.6rem 1rem;
    background:transparent;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
    user-select: none;
    position: absolute;
    margin-top: -115vh;
    margin-left: 30vh;
    z-index: 10;
    height: 3vh;
    width: 10vh;
  }
  
  /* Start hidden */
  .photo {
    opacity: 0;
    pointer-events: none;
  }
  
  /* Keyframes */
  @keyframes fadeIn  { from { opacity: 0; } to { opacity: 1; } }
  @keyframes fadeOut { from { opacity: 1; } to { opacity: 0; } }
  
  /* Checked → fade in and stay visible */
  #fadeToggle:checked ~ .photo {
    animation: fadeIn 300ms ease forwards;
    pointer-events: auto;
  }
  
  /* Unchecked → fade out and stay hidden */
  #fadeToggle:not(:checked) ~ .photo {
    animation: fadeOut 300ms ease forwards;
    pointer-events: none;
  }
  
  /* Your layout for item9, but remove any fixed opacity here */
  .item9 {
    grid-column: 1 / 8;
    grid-row: 1 / 4;
    z-index: 1;
    border: black solid 10px;
     opacity: 20%;
    height: 79vh;
    width: 79vh;
    position: absolute;
    margin-top: -148.1vh;
    margin-left: -1.6vh;
  }
  
  .item9 img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    animation: subtle-shake 0.2s linear infinite; 
    transform: translate3d(0, 0, 0);
  }
  


  @keyframes subtle-shake {
    0% { transform: translate(0, 0); }
    25% { transform: translate(1px, 0); }
    50% { transform: translate(-1px, 0); }
    75% { transform: translate(1px, 0); }
    100% { transform: translate(0, 0); }
  }


              



          


  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;}