/* Container and Form Styles */
.category-selection {
    margin: 20px 0;
}
.category-card {
	font-size: 14px;
}
.category-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.category-card {
	flex: 1 1 calc(20% - 10px);
	border: 2px solid #ccc;
	border-radius: 5px;
	padding: 0px;
	text-align: center;
	cursor: pointer;
	transition: border-color 0.3s;
}

.category-card img {
    max-width: 100%;
    border-radius: 5px;
}

.category-card.active {
    border-color: blue;
}
.yearly-image-generator-container {
    max-width: 100% !important;
    margin: 0 auto;
    padding: 26px 95px !important;
    border: 0px solid #ddd;
    border-radius: 4px;
    background: #000 !important;
}

.yearly-image-generator-container > h2 {
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
}

button.generate-btn {
    background: #fff;
    border: 0;
    padding: 20px 40px;
    border-radius: 50px;
    color: #000;
    font-size: 18px;
    font-family: 'Poppins', sans-serif;
    margin-top: 20px;
    font-weight: 700;
    text-transform: uppercase;
}

.btn-gen {
    display: flex;
    justify-content: center;
}

form#yearly-image-generator-form > label {
    color: #fff;
    font-family: 'Poppins', sans-serif;
}

select#size {
    color: #757575;
    font-size: 14px;
    padding-left: 18px;
    border: 1px solid #ddd;
    border-radius: 10px;
}

#prompt {
    width: 100%;
    height: 100px;
    padding: 28px 20px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 23px;
    box-sizing: border-box;
    background: #141414;
    color: #b5b2b2;
}

#generatedImage {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 10px 0;
}

#downloadImage {
    display: block;
    margin-top: 10px;
}

#loading {
    text-align: center;
    margin-top: 20px;
}

#loading .gif-loader {
    width: 50px;
    height: 50px;
}

a#downloadImage {
    background: #fff;
    padding: 16px 18px;
    border-radius: 50px;
    width: 25%;
    text-align: center;
    font-size: 21px;
    font-family: 'Poppins', sans-serif;
    display: inline;
    top: 28px;
    position: relative;
}

a#product-add {
    background: #fff;
    padding: 16px 49px;
    border-radius: 50px;
    width: 200px;
    text-align: center;
    font-size: 21px;
    font-family: 'Poppins', sans-serif;
    top: 26px;
    left: 10px;
    position: relative;
}

div#result {
    padding-top: 20px;
    padding-bottom: 40px;
    text-align: center;
}

/* Typing Effect */
#result-message {
	display: none;
	background: transparent;
	color: #c0c;
	font-family: 'Poppins', sans-serif;
	padding: 20px;
	border-radius: 4px;
	position: relative;
	text-align: center;
}

#typing-effect {
    display: inline;
    font-family: 'Poppins', sans-serif;
    color: #000;
    background: #fff;
	padding: 10px 40px;
}

/* Image Gallery */
.col-1 {
    width: 48.9%;
    float: left;
    justify-content: center;
    display: flex;
    background: #fff;
}

/* Custom Checkbox Styles */
.custom-checkboxes label {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    cursor: pointer;
    color: #fff;
    font-family: 'Poppins', sans-serif;
}

.custom-checkboxes {
    display: flex;
    flex-wrap: nowrap;
    gap: 20px;
    margin-bottom: 10px;
}

.custom-checkboxes input[type="checkbox"] {
    display: none;
}

.custom-checkboxes .checkmark {
    position: relative;
    padding: 10px 20px;
    padding-left: 32px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #141414;
    color: #b5b2b2;
    margin-left: 10px;
    cursor: pointer;
}

.custom-checkboxes input[type="checkbox"]:checked + .checkmark {
    background: #fff;
    color: #000;
    padding-left: 32px;
}

span.checkmark:before {
    content: '☐';
    position: absolute;
    left: 11px;
    font-size: 19px;
}

.custom-checkboxes input[type="checkbox"]:checked + .checkmark::before {
    content: '☑ ';
    position: absolute;
    left: 11px;
    font-size: 19px;
    top: 50%;
    transform: translateY(-50%);
    color: #000;
}

/* Tab Styles */
.tabs {
    display: flex;
    margin-bottom: 20px;
}

.tab-button {
    background: #f1f1f1;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px;
    cursor: pointer;
    margin-right: 10px;
}

.tab-button.active {
    background: #ddd;
    border-bottom: 1px solid #fff;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Button Styles */
.generate-btn {
    background-color: #0073aa;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 10px 20px;
    cursor: pointer;
}

.generate-btn:hover {
    background-color: #005177;
}

/* Gallery */
.gallery-item > a > img {
    height: 150px;
    width: 169px;
    object-fit: cover;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(5, 1fr); /* 5 equal columns */
    grid-gap: 10px; /* Gap between the images */
    justify-content: center; /* Centers the gallery */
}

div#images-gallery {
    display: grid;
    grid-template-columns: repeat(5, 1fr); /* 5 equal columns */
    grid-gap: 10px; /* Gap between the images */
    justify-content: center;
}

div#images-gallery > a {
    position: relative;
    overflow: hidden;
    display: inline-block;
}

.gallery-image {
    width: 100%; /* Full width of grid column */
    aspect-ratio: 1 / 1; /* Ensures the images are square */
    object-fit: cover; /* Ensures the image covers the square without distortion */
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2); /* Add a shadow to the images */
    transition: transform 0.3s, box-shadow 0.3s;
    display: block;
}

.gallery-image:hover {
    transform: scale(1.1); /* Zoom effect on hover */
    box-shadow: 0px 4px 8px rgba(0,0,0,0.2);
}

/* Zoom Icon */
.zoom-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 20px;
    color: white;
    display: none;
}

a:hover .zoom-icon {
    display: block;
}

/* Fancybox styling (optional for popup) */
.fancybox-caption {
    color: #fff;
    font-family: 'Poppins', sans-serif;
}

.fancybox-button {
    background: #fff;
    color: #000;
    border-radius: 50px;
}

.fancybox-button:hover {
    background: #ddd;
    color: #000;
}

/* Media Queries for responsiveness */
@media screen and (max-width: 1200px) {
    .gallery {
        grid-template-columns: repeat(3, 1fr); /* 3 columns on medium screens */
    }
}

@media screen and (max-width: 768px) {
    .gallery {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on smaller screens */
    }
}

@media screen and (max-width: 480px) {
    .gallery {
        grid-template-columns: 1fr; /* 1 column on mobile screens */
    }
}

/* Media Queries for specific devices */
@media screen and (max-width: 767px) {
    .yearly-image-generator-container {
        max-width: 100% !important;
        margin: 0 auto;
        padding: 15px 15px !important;
        background: #000 !important;
    }
    
    .custom-checkboxes {
        display: flex;
        flex-wrap: nowrap;
        gap: 3px;
        justify-content: center;
    }
    
    a#downloadImage {
        background: #fff;
        padding: 16px 27px;
        border-radius: 50px;
        width: 25%;
        font-size: 14px;
        font-family: 'Poppins', sans-serif;
        top: 28px;
    }
    
    a#product-add {
        background: #fff;
        padding: 16px 38px;
        border-radius: 50px;
        width: 200px;
        font-size: 14px;
        font-family: 'Poppins', sans-serif;
        top: 26px;
        left: 10px;
    }
}
