iframe {
    width: 100% !important;
    border: none;
    height: 100% !important;
    overflow: hidden !important;
}

.more-games-grid {
   display: grid;
   grid-template-columns: repeat(auto-fill, minmax(60px, 100px));
   gap: 8px;
   
}

.more-games-grid .game-card{
    height: 85px;
   
}

#trending-games .game-card {
        height: 140px!important;
        max-width: 180px;
    }









@media (max-width: 815px) {
    .game-display {
        width: 100vw;
        height: 66vh;
    }

    .container {
        padding: 5px;
    }

    div.sqre {
        width: 100% !important;
        max-width: unset !important;
    }
    .instructions-modal {
        top: -100px;
        left: 0;
    }

    .play {
        padding: 0 !important;
        margin-top: 55px !important;
    }

    .suggestion {
        margin: 20px 15px 0 15px;
        font-size: 2px;
    }

    .bottom-section {
        padding: 32px !important;
    }

   

    .play-cartegory:not(.home) {
        display: unset;
    }

    .play-categories-grid {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        padding: 15px;
        gap: 10px;
    }

    .play-categories-grid a:not(.home) {
        min-height: unset !important;
        height: 150px !important;
        max-width: unset !important;
    }
}
@media (max-width: 891px) {
    div.sidebar {
        display: grid;
        grid-template-rows: repeat(2, auto);
        padding: 0 20px;
        margin-top: 20px;
    }

    .sqre {
        grid-area: 2 / 1;
    }
}

@media (max-width: 640px) {
    .play-container {
        display: static !important;
    }
    
    #trending-games {
    padding-left: 0
}
    
    .more-games {
    padding: 15px;
}
    #trending-games {
        display:flex;
        flex-wrap: wrap;
        justify-content: center;
     
    }
    
    #trending-games .game-card {
        height: 130px;
        flex-grow: 1;
    }

    

    .play-categories-grid a:not(.home) {
        min-height: unset !important;
        height: 130px !important;
        max-width: unset !important;
    }
}


.game-display-container {
    display: flex;
    flex-direction: column;
}

.game-display {
    height: 65vh;
}

@media (min-width: 690px) {
    .play-categories-grid {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        max-width: 1793px;
        margin: auto;
    }

    .play-categories-grid a:not(.home) {
        flex-basis: 200px;
    }
}

@media (max-width: 460px) {
    .more-games-grid {
   display: grid;
   grid-template-columns: repeat(4, 1fr);
   gap: 8px;
   
}

.more-games-grid .game-card{
    height: 85px 
}
    
    .more {
   font-size: 18px!important;
    white-space: nowrap
    
   }
}

@media (min-width: 640px) and (max-width: 890px) {
    #trending-games {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
    }

    .sqre {
        grid-area: 2 / 1;
    }
}

@media (min-width: 889px) {
    .play-container {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
    }

    .game-description {
        max-width: 603px;
    }

    .game-section {
        grid-column: 1 / span 2;
    }

    .game-display-container {
        margin: 15px;
    }

    div.sidebar {
        display: flex;
        flex-direction: column;
    }

    #trending-games {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        padding:5px 45px;
        max-width: 470px;
        margin: auto;
    }

    .more-games {
        padding: 0;
    }

    #trending-games .game-card {
        height: 134px;
    }
}

div.sqre {
    max-width: 500px;

    margin: 0 auto;
    width: 400px;
    height: 180px;
    margin-top: 15px;
}

div.ad-banner {
    background-color: #343434;
    text-align: center;
    font-weight: 400;
}

div.rect {
    height: 100px;
    margin-bottom: 20px;
}

.game-controls {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    padding: 5px 10px;
    background-color: var(--secondary-bg);
}

.game-info-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 55%;
}

.game-thumb-control {
    width: 35px;
    height: 35px;
    border-radius: 8px;
    background-size: 100% 100%;
    background-position: center;
    flex-shrink: 0;
}

.game-title-control {
    font-weight: 600;
    font-size: 14.7px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 1px 2px 5px black;
}

.game-actions {
    display: flex;
    gap: 10px;
}

.game-action-btn {
    background-color: var(--accent-color);
    color: white;
    border: none;
    border-radius: 5px;
    padding: 8px 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    transition: all 0.3s;
    white-space: nowrap;
    text-decoration: none;
}

.game-action-btn:nth-child(2),
.game-action-btn:nth-child(1) {
    background-color: transparent;
    border: 2px solid var(--accent-color);
}

 




.more {
    padding-bottom: 10px;
    color: var(--accent-color);
}




