*, *:before, *:after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  .tile-container {
    position: relative;
    
  }
  
  svg {
    width: 0;
    height: 0;
    display: block;
  }
  
  .grid {
    width: 80vmin;
    margin: 10vmin auto;
    display: flex;
    flex-wrap: wrap;
    transform-style: preserve-3d;
    box-shadow: 0px 0px 8vmin 4vmin rgba(0, 0, 0, 0.1), inset 0px 0px 8vmin 4vmin rgba(0, 0, 0, 0.1);
    perspective: 2000;
  }
  
  .item-box {
    position: relative;
    width: 26.66667vmin;
    height: 26.66667vmin;
    transform-style: preserve-3d;
    cursor: pointer;
    transition: all 0.225s cubic-bezier(0.65, 0.05, 0.36, 1) 0.225s;
  }
  .item-box:nth-child(1) .puzzle:before {
    background-image: url("../pro_img/prodigy_images/ama.png");
  }
  .item-box:nth-child(2) .puzzle:before {
    background-image: url("../pro_img/prodigy_images/Cyber\ Dystopia.png");
  }
  .item-box:nth-child(3) .puzzle:before {
    background-image: url("../pro_img/prodigy_images/deconstructed_laddder.png");
  }
  .item-box:nth-child(4) .puzzle:before {
    background-image: url("../pro_img/prodigy_images/family_feud.png");
  }
  .item-box:nth-child(5) .puzzle:before {
    background-image: url("../pro_img/prodigy_images/prodigy\ logo.png");
    background-repeat: no-repeat;

  }
  .item-box:nth-child(6) .puzzle:before {
    background-image: url("../pro_img/prodigy_images/Ideathon.png");
  }
  .item-box:nth-child(7) .puzzle:before {
    background-image: url("../pro_img/prodigy_images/shipwreck.png");
  }
  .item-box:nth-child(8) .puzzle:before {
    background-image: url("../pro_img/prodigy_images/Who-dunnit.png");

  }
  .item-box:nth-child(9) .puzzle:before {
    background-image: url("../pro_img/prodigy_images/Workshop_InteractiveSession.png");
  }
  .item-box:hover {
    transform: scale(1.25, 1.25);
    box-shadow: 0px 0px 16px 8px rgba(0, 0, 0, 0.2);
  }
  .item-box:hover .puzzle {
    transform: translateX(0) translateY(0) translateZ(1px) rotateX(0) rotateY(0);
    opacity: 1;
  }
  .item-box .item-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform-style: preserve-3d;
  }
  
  .piece {
    position: absolute;
    width: 13.33333vmin;
    height: 13.33333vmin;
    transform-style: preserve-3d;
  }
  .piece:nth-child(1) {
    transform: translateX(-100%) translateY(-100%) rotate(0deg);
  }
  .piece:nth-child(1) .puzzle:before {
    background-position: 0% 0%;
    transform: rotate(0deg);
  }
  .piece:nth-child(2) {
    transform: translateX(0%) translateY(-100%) rotate(90deg);
  }
  .piece:nth-child(2) .puzzle:before {
    background-position: 100% 0%;
    transform: rotate(-90deg);
  }
  .piece:nth-child(3) {
    transform: translateX(0%) translateY(0%) rotate(180deg);
  }
  .piece:nth-child(3) .puzzle:before {
    background-position: 100% 100%;
    transform: rotate(-180deg);
  }
  .piece:nth-child(4) {
    transform: translateX(-100%) translateY(0%) rotate(270deg);
  }
  .piece:nth-child(4) .puzzle:before {
    background-position: 0% 100%;
    transform: rotate(-270deg);
  }
  
  .puzzle {
    position: absolute;
    width: 17.17505vmin;
    height: 17.17505vmin;
    background-color: #000;
    -webkit-clip-path: url(#puzzle);
            clip-path: url(#puzzle);
    opacity: .8;
    transform: translateX(-22.368%) translateY(-22.368%) translateZ(0px) rotateX(0.5turn) rotateY(0.5turn);
    transition: all 0.45s cubic-bezier(0.65, 0.05, 0.36, 1);
  }
  .puzzle:before {
    content: "";
    position: absolute;
    width: 17.17505vmin;
    height: 17.17505vmin;
    background-size: 155.264%;
  }

  .popup{
    background-color: #fff;
    position: absolute;
    z-index:100;
    top:50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width:550px;
    height:550px;
    padding:30px;
    border-radius:20px;
   
  }

  .popup-content .title{
    color:#f82249;
  }

  .popup-content .text{
  
    line-height: 2.0;
    font-size: 1rem;
    text-align: justify;
    color: #060c22fa;
  }

  .close{
    padding:10px;
    border: none;
    background-color: #f82249;
    border-radius: 5px;
    width:80px;
    color:white;
    font-weight: bold;
    margin-top: -30px;

  }

  .info{
    height: 100px;
    width: 500px;
    background-color:#101522;
    border-radius: 20px;
    text-align: center;
    color: white;
    margin-top: 100px;
    position: relative;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
   
  }

  .info span{
    position: relative;
    right: -220px;
    top: 7px;
  }

  .info p {
    font-size: 1rem;
    margin-top: 7px;
    font-weight: bold;
  }

  .info span:hover{
    cursor: pointer;
  }

  


  

  .visible{
    display: none;
  }
  
  @-webkit-keyframes init {
    from {
      transform: translateX(0) translateY(0) translateZ(1px) rotateX(0) rotateY(0);
    }
  }
  
  @keyframes init {
    from {
      transform: translateX(0) translateY(0) translateZ(1px) rotateX(0) rotateY(0);
    }
  }
  @media screen and (max-width: 768px) {
    .popup {
      width: 90%; 
      max-width: 400px; 
      max-height: 60vh;
      height: auto; 
      margin: 20px auto; 
      padding: 20px;       
      border-radius: 10px; 
      box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); 
      overflow-y: auto;
      background-color: #fff; 
  }

  .popup > *:last-child {
    margin-bottom: 20px; /* Adjust this value as needed */
}
    .info {
        width: 92%; 
        max-width: 380px; 
        border-radius: 10px; 
        background-color: #101522; 
        color: white; 
        text-align: center; 
    }

    .info span {
        display: block; 
        margin-bottom: 5px; 
        font-weight: bold; 
    }

    .info p {
        font-size: 0.9rem; 
        margin: 0; 
        line-height: 1.4; 
    }
}

