﻿/* puzzle Grid */
.puzzle-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    column-gap: 24px;
    row-gap: 16px;
    margin-left: 0px;
    margin-right: 0px;
    margin-bottom: 40px;
    padding-right: 30px;
}

/* Individual puzzle Card */
.puzzle-card {
    background-color: var(--lightGray);
    border-radius: 15px;
    box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease-in-out;
    width: 300px;
    text-align: left;
    padding-bottom: 15px;
    margin: 20px 0px 5px 18px;
}
    .puzzle-card:hover {
        transform: scale(1.02);
    }
    /* puzzle Description */
    .puzzle-card p {
        font-size: 14px;
        color: #222;
    }

/* puzzle Title */
.puzzle-title {
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    color: #222;
}

/* puzzle Image */
.puzzle-image {
    width: 100%;
    height: 300px;
    margin: 0px 0px 0px 0px;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
}

/* puzzle Cost */
.puzzle-cost {
    color: #222;
    font-weight: bold;
    margin-top: 10px;
    font-size: 3rem;
}

/* Responsive for Smaller Screens */
/* For screens wider than 768px: show 3 columns */
@media (min-width: 1230px) {
    .puzzle-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 792px) and (max-width: 1229px) {
    .puzzle-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* For screens narrower than 768px: show 2 columns */
@media (max-width: 791px) {
    .puzzle-grid {
        grid-template-columns: repeat(1, 1fr);
    }
}
