:root{
    --primary : rgb(250, 250, 250);
    --nav-btns : rgb(78, 78, 78);
    --black : rgb(50, 50, 50);
    --primary-blue : rgb(10, 0, 76);
    --text-white : rgb(250, 250, 250);
    --nav-back : rgb(255, 106, 0);
    --game-btns : rgb(10, 0, 76);
}


.all-games-container,
.pg-right, .section-container{
    display: flex;
    max-width: 100%;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 5px;
    gap: 25px;
    animation: fadeSlide 0.6s ease forwards;
}



.parent-div{
    background-color: rgba(255, 255, 255,1);
    display: flex;
    flex-direction: column;
    width: 100%;
    justify-content: center;
    align-items: stretch;
    border-radius: 15px;
    overflow: hidden;
    padding: 10px;
    margin-bottom: 10px;
    gap: 12px;
    padding-bottom: 30px;
}


.heading-info, .quick-links>h2 {
    font-size: clamp(1rem, 2vw, 2rem);
    font-weight: 800;
    text-align: center;
    letter-spacing: 1px;

    background: linear-gradient(
        90deg,
        rgb(10, 0, 76),
        rgb(25, 0, 130),
        rgb(0, 80, 200)
    );

    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
}

.heading-info::after, .quick-links>h2::after {
    content: "";
    width: 120px;
    height: 4px;
    background: linear-gradient(
        90deg,
        rgb(10, 0, 76),
        rgb(0, 80, 200)
    );
    display: block;
    margin: 2px auto 0;
    border-radius: 5px;
}


.game-type{
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    justify-content: center;
    align-items: stretch;
    padding: 10px;
    gap: 60px;
}



.card-info,
.quick-games-card{
    border: 1px solid black;
    background: white;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    padding: 10px 4px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    flex: 0 1 180px;
    gap: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}


.card-info{
    width: 220px;
    min-height: fit-content;
}

.card-icon img {
    width: 40px;     /* reduce size */
    height: 40px;    /* keep square */
    object-fit: contain;
}



.card-info:hover,
.quick-games-card:hover{
    transform: scale(1.02);
    box-shadow: 0 20px 45px rgba(0,0,0,0.2);
}

.card-meta{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 10px;
}

.card-meta h2{
    color: var(--nav-back);
    text-decoration: underline;
    font-size: clamp(1rem, 1.25vw, 1.5rem);
} 

.card-meta p{
    color: black;
    font-size: clamp(0.8rem, 1vw, 1rem);
}


.game-buttons, .card-links{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
}


.game-buttons button, .card-links>a,.card-links>button{
    padding: 4px 8px;
    margin: 2px;
    width: 150px;
    height: 40px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.card-links>a,.card-links>button{
    display: inline-flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    font-size: 1rem;    
}

.quick-challenges{
    display: flex;
    flex-direction: column;
    gap: 20px;
}



.quick-games-card{
    display: flex;
    padding: 10px;
    width: 100%;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2px;
    border-radius: 15px;
}

.quick-games-card>h2 {
    font-size: clamp(1rem, 1.5vw, 1.5rem);
    font-weight: 700;
    margin-bottom: 4px;
    color: rgb(10, 0, 76);
    text-align: center;
    border-bottom: 1px solid grey;
}

.quick-games-card .tagline {
    font-size: clamp(1rem, 1.2vw, 1.2rem);
    font-weight: 500;
    letter-spacing: 0.5px;
    color: #171212;
    text-align: center;
    border-bottom: 1px solid grey;
}



.rules {
    width: 100%;
    text-align: center;
    padding: 5px 0;
}


.rules h3 {
    font-size: clamp(1rem, 1.5vw, 1.5rem);
    font-weight: 600;
    margin-bottom: 8px;
    color: rgb(10, 0, 76);
}


.rules p {
    font-size: clamp(0.75rem, 1vw, 1.1rem);
    line-height: 1.5;
    color: #0f0000;
}



.play-btn, .continuegame, .play-link {
    position: relative;
    padding: 8px 12px;
    border: none;
    border-radius: 40px;
    cursor: pointer;
    font-size: clamp(0.8rem, 1vw, 1rem);
    font-weight: 600;
    letter-spacing: 0.5px;

    color: white;
    background: linear-gradient(
        45deg,
        rgb(10, 0, 76),
        rgb(25, 0, 130),
        rgb(0, 80, 200)
    );
    background-size: 200% 200%;
    transition: all 0.3s ease;
    overflow: hidden;
}

.play-link{
    min-width: fit-content;
}

.continuegame{
    display: block;
    padding: 10px;
    width: 150px;
    height: 50px;
    margin: 10px auto;
}

.play-btn:hover, .continuegame:hover, .play-link:hover {
    background-position: right center;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}


.play-btn::before, .play-link::before {
    content: "";
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: rgba(255,255,255,0.3);
    transform: skewX(-25deg);
}

.play-btn:hover::before, .play-link:hover::before {
    animation: shine 0.8s forwards;
}

@keyframes shine {
    100% {
        left: 130%;
    }
}


.play-btn:active {
    transform: scale(0.95);
    box-shadow: 0 5px 12px rgba(0,0,0,0.2);
}