.gwin-lottery-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center; /* Center cards when fewer items per row */
}

.gwin-lottery-card {
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 8px;
    width: calc(33.333% - 20px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: box-shadow 0.3s ease;
}

.gwin-lottery-card:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.gwin-join-button {
    background-color: #28a745;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.gwin-join-button:hover {
    background-color: #218838;
}

.gwin-more-details-button {
    display: inline-block;
    padding: 8px 12px;
    background-color: #28a745;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.9rem;
    margin-top: 10px;
    transition: background-color 0.3s ease;
}

.gwin-more-details-button:hover {
    background-color: #218838;
}

/* Media Queries for Responsiveness */
@media (max-width: 1024px) {
    .gwin-lottery-card {
        width: calc(50% - 20px); /* Two cards per row on medium screens */
    }
}

@media (max-width: 768px) {
    .gwin-lottery-card {
        width: calc(100% - 20px); /* One card per row on small screens */
    }
}


/* Success Message */
.gwin-success {
    background-color: #d4edda;
    color: #155724;
    padding: 10px 15px;
    border: 1px solid #c3e6cb;
    border-radius: 5px;
    font-size: 1rem;
    margin-top: 15px;
}

/* Error Message */
.gwin-error {
    background-color: #f8d7da;
    color: #721c24;
    padding: 10px 15px;
    border: 1px solid #f5c6cb;
    border-radius: 5px;
    font-size: 1rem;
    margin-top: 15px;
}

/* Info Message */
.gwin-info {
    background-color: #cce5ff;
    color: #004085;
    padding: 10px 15px;
    border: 1px solid #b8daff;
    border-radius: 5px;
    font-size: 1rem;
    margin-top: 15px;
}

/* Join Now Button */
.gwin-join-button {
    background-color: #0073aa;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.gwin-join-button:hover {
    background-color: #005f87;
}

/* Scoped CSS for Gwin Lottery Plugin */
#gwin_lottery_settings,
#gwin_lottery_view_entry_page,
#gwin_lottery_entry_page {
    background-color: #f9f9f9;
    padding: 20px;
}

.gwin-lottery-entry-cards {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
}

.gwin-entry-card {
    background-color: #fff;
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.gwin-entry-card strong {
    color: #0073aa;
}

button,
input[type="submit"] {
    background-color: #0073aa;
    color: #fff;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px;
}

button:hover,
input[type="submit"]:hover {
    background-color: #005a87;
}

form input[type="text"] {
    padding: 10px;
    margin: 10px 0;
    width: 100%;
    border-radius: 5px;
    border: 1px solid #ccc;
}
.gwin-lottery-thumbnail img {
    max-width: 250px;  /* Maximum width */
    max-height: 300px; /* Maximum height */
    width: auto;       /* Auto width to preserve aspect ratio */
    height: auto;      /* Auto height to preserve aspect ratio */
    object-fit: contain; /* Ensures the image fits within the container without distorting */
}
