* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: "Fira Sans", serif;
}
a {
    text-decoration: none;
}
.container {
    max-width: 1250px;
    margin: 0 auto;
}
.playable-container {
    display: flex;
    flex-wrap: wrap;
    padding-top: 50px;
    gap: 15px;
}
img {
    max-width: 100%;
}
.logo {
    max-width: 400px;
    margin: 0 auto;
    margin-bottom: 50px;
    text-align: center;
}

.logo img {
    max-height: 60px;
}

.filter-buttons button {
    display: block;
    padding: 12px 32px;
    color: #6F6F78;
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    transition: all .2s;
    border: 2px solid transparent;
    cursor: pointer;
    border-radius: 999px;
    background: transparent;
}
.filter-buttons button.active {
    color: #0F0F1E;
    background: linear-gradient(white, white) padding-box, linear-gradient(to right, #28353c, #e1f65d, #d1b816) border-box;
}
.filter-buttons {
    display: flex;
    justify-content: center;
}
/* Container */
.playable-container {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
}
.playable-box {
    width: calc((100% - 45px) / 4);
    background: #F0F0F0;
    padding: 16px;
    box-sizing: border-box;
    border-radius: 12px;
    text-decoration: none;
    position: relative;
    transform: scale(1);
    margin-bottom: 15px;
    display: none;
}
.playable-box:hover {
    background: #FDDB00;
    box-shadow: 0 0 20px #FDDB00;
    transform: scale(1.05);
} 
.isotope {
    margin-top: -15px;
}


.image img {
    border-radius: 12px;
    width: 100%;
}

.playable-box .image {
    margin-bottom: 16px;
    position: relative;
    overflow: hidden;
}

.playable-box .image .hover {
    position: absolute;
    bottom: -40px;
    left: 0;
    background: hsl(51.94deg 100% 49.61% / 50%);
    width: 100%;
    height: 40px;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: all .2s;
}

.playable-box .cat.orange {
    color: #F9830B;
    background: #FFF3E7;
}
.playable-box:hover .image .hover {
    bottom: 0;
}

.playable-box .image .hover span {
    display: inline-block;
    font-weight: 500;
    color: #000;
    font-size: 14px;
}
.playable-box .cat {
    display: block;
    width: fit-content;
    padding: 4px 8px;
    font-weight: 700;
    font-size: 12px;
    margin-bottom: 8px;
    border-radius: 5px;
    text-transform: uppercase;
}

.playable-box .cat.navy {
    color: #0060A5;
    background: #E6F6FF;
}

.playable-box h3 {
    color: #0F0F1E;
    font-weight: 500;
    font-size: 16px;
    margin-top:15px;
    margin-bottom: 0;
}
.playable-box:hover h3 {
    color: #000;
}
.playable-box .icon {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    right: 26px;
    bottom: 35px;
    border: 1px solid #E7E7E9;
    width: 40px;
    height: 40px;
    border-radius: 10px;
}
.playable-box:hover .icon {
    border: 1px solid #000;
}   
/* Modal */
#popup-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 10px;
    height: 100%;
    background: rgba(0, 0, 0, .5);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.modal-content {
    position: relative;
    width: 395px;
    height: 68%;
    background: #fff;
    border-radius: 10px;
    border: 10px solid #fff;
    border-radius: 20px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.25); 
}

.close-btn {
    position: absolute;
    z-index: 3;
    top: -27px;
    right: -27px;
    width: 40px;
    font-size: 34px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 0;
}
#popup-iframe {
    width: 100%;
    border-radius: 12px;
    height: 100%;
}
.playable-box .cat.purple {
    color: #651FFF;
    background: #F0E9FF;
}
.playable-area {
    padding: 100px 20px;
    padding-top: 20px;
}
.playable-video {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    flex-direction: column;
}
.playable-video img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}
.playable-box.video {
    height: 378px;
}
.playable-box {
    position: relative;
}
.gamepaly-btn {
    display: block;
    padding: 12px 32px;
    color: #6F6F78;
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    transition: all .2s;
    border: 2px solid transparent;
    cursor: pointer;
    border-radius: 999px;
    background: transparent;
}

.gamepaly-btn:hover {
    color: #0F0F1E;
    background: linear-gradient(white, white) padding-box, linear-gradient(to right, #28353c, #e1f65d, #d1b816) border-box;
}


/* Play Button Style */
.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgb(253 219 0 / 80%);
    border-radius: 50%;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.play-btn::before {
    content: "";
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 5px;
    border-left: 20px solid white;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
}

/* Pulse Animation */
.pulse-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100px;
    height: 100px;
    background: rgb(253 219 0 / 40%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: smoothPulse 2s ease-out infinite;
    z-index: 1;

}
  
@keyframes smoothPulse {
        0% {
          transform: translate(-50%, -50%) scale(1);
          opacity: 0.6;
        }
        70% {
          transform: translate(-50%, -50%) scale(1.5);
          opacity: 0;
        }
        100% {
          transform: translate(-50%, -50%) scale(1.5);
          opacity: 0;
        }
      }
  
      /* Hover effect */
      .play-btn:hover {
        transform: translate(-50%, -50%) scale(1.1);
      }


@media (max-width: 1400px) {
    .playable-area .container {
        max-width: 950px;
    }
    .playable-box {
        width: calc((100% - 30px) / 3);
    }
}

@media (max-width: 1000px) {
   .playable-area .container {
        max-width: 650px;
    }
    .playable-box {
        width: calc((100% - 15px) / 2);
    }
    .playable-area {
        padding: 40px 20px;
    }
    .logo {
        max-width: 260px;
        
        margin-bottom: 40px;
    }
}

@media (max-width: 660px) {
   .playable-area .container {
        max-width: 100%;
    }
    .playable-box {
        width: 100%;
    }
    .playable-container {
        padding-top: 30px;
    }
    .gamepaly-btn,
    .filter-buttons button {
        padding: 8px 18px;
        font-size: 13px;
    }
    .close-btn {
        top: 10px;
        right: 12px;
        width: 25px;
        height: 25px;
    }
    #popup-modal {
        padding: 0px;
        background: #000;
    }
    .modal-content {
        position: relative;
        width: 100%;
        height: 100%; 
        border: none;
        border-radius: 12px;
    }
    .playable-box {
        padding: 12px;
    }
    #popup-iframe {
        border-radius: 0px;
    }
    .playable-box.video {
        height: auto;
    }
    .filter-buttons {
        flex-wrap: wrap;
    }
}
