/*mobile screen responsive*/
body {
    background-color: #f8f9fa;
}

.container {
    max-width: 800px;
}

.card-header {
    background-color: #007bff;
    color: white;
}

#generated-icons-display {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 equal columns */
    gap: 20px; /* Spacing between grid items */
    justify-items: center; /* Center items horizontally within their grid area */
    align-items: start; /* Align items to the start of their grid area vertically */
}

#generated-icons-display img {
    max-width: 100%;
    height: auto;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 5px;
    margin-bottom: 10px;
}

.icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0; /* Reset margin as gap handles spacing */
    width: 100%; /* Ensure item takes full width of its grid column */
}

/* Skeleton Loader Styles */
.skeleton-loader {
    width: 100px; /* Adjust as needed to match image dimensions */
    height: 100px; /* Adjust as needed to match image dimensions */
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    border-radius: 4px;
    animation: loading 1.5s infinite;
}

.icon-item img.hidden {
    display: none;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.icon-container {
    position: relative;
    display: inline-block; /* To make sure the container wraps the image */
}

.regenerate-icon {
    position: absolute;
    top: 5px; /* Adjust as needed */
    right: 5px; /* Adjust as needed */
    color: #007bff; /* Or any color that fits your design */
    cursor: pointer;
    font-size: 1.5em; /* Adjust size as needed */
    background-color: rgba(255, 255, 255, 0.7); /* Slightly transparent background */
    border-radius: 50%;
    padding: 5px;
}

.regenerate-icon:hover {
    color: #0056b3; /* Darker shade on hover */
}

/* Responsive adjustments for smaller screens */
@media (max-width: 767.98px) {
    .d-flex.flex-column.flex-md-row {
        align-items: stretch !important; /* Stretch items to fill container */
    }

    .d-flex.flex-column.flex-md-row .btn {
        width: 100%; /* Make buttons full width */
        margin-right: 0 !important; /* Remove right margin */
        margin-bottom: 10px; /* Add bottom margin for spacing */
    }

    .d-flex.flex-column.flex-md-row .btn:last-child {
        margin-bottom: 0; /* No bottom margin for the last button */
    }
}