  body {
    background-color: #121212c4 !important;
    color: #e0e0e0 !important;
    font-family: 'Kanit', sans-serif !important;
}
.text-center {
    text-align: center;
}

.my-5 {
    margin-top: 3rem;
    margin-bottom: 3rem;
}

.bold-large {
    font-weight: bold;
    font-size: 2rem;
}
.store-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
    padding: 1rem;
}
.store-item {
    background: #1e1e1e;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    overflow: hidden;
    transition: all 0.3s ease;
}
.store-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.4);
}
.store-media {
    position: relative;
    height: 200px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #2a2a2a;
}
.store-media iframe, .store-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.store-item:hover .store-media img {
    transform: scale(1.1);
}
.store-media i {
    font-size: 5rem;
    color: #9e9e9e;
}
.store-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    padding: 0.5rem;
    color: white;
}
.store-title {
    font-size: 1.2rem;
    font-weight: bold;
    margin: 0;
    color: #ffd700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}
.store-province {
    font-size: 1rem;
    opacity: 0.9;
    color: #bdbdbd;
}
.store-content {
    padding: 1.5rem;
    display: none;
}
.store-description {
    font-size: 1rem;
    color: #bdbdbd;
    margin-bottom: 1rem;
}
.store-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}
.store-tag {
    background: #333333;
    color: #ffd700;
    padding: 0.3rem 0.7rem;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}
.store-tag:hover {
    background: #4a4a4a;
}
.store-type {
    position: absolute;
    top: 0.1rem;
    right: 0.2rem;
    background: rgba(0,0,0,0.1);
    font-weight: bold;
    color: #fff;
    padding: 0.3rem 0.4rem;
    border-radius: 10px;
    font-size: 0.7rem;
    cursor: pointer;
    transition: all 0.3s ease;
}
.store-type:hover {
    background: rgba(255,255,255,0.2);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
.action-buttons {
    position: absolute;
    bottom: 0.5rem;
    right: 1.5rem;
    display: flex;
    gap: 0.75rem;
}
.go-button, .read-more {
    background: #508d429c;
    color: #ffd700;
    padding: 0.3rem 0.8rem;
    border-radius: 5px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}
.go-button:hover, .read-more:hover {
    background: rgba(255,255,255,0.2);
}
#search-box {
    max-width: 500px;
    margin: 2rem auto;
    background: #1e1e1e;
    border: 1px solid #333;
    border-radius: 25px;
    padding: 0.5rem 1rem;
    color: #e0e0e0;
}
.animated {
    animation: fadeInUp 0.5s ease-out;
}
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
#month-buttons, #day-buttons ,#store-type-buttons{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
    font-size: 0.8rem;
}
.month-button , .createGalleryBtn {
    background-color: #9ce80d5e;
    border: none;
    padding: 0.2rem 0.3rem;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #e0e0e0;
    text-decoration: none;
}
.day-button {
    background-color: #134ddbc7;
    border: none;
    padding: 0.2rem 0.3rem;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #e0e0e0;
    text-decoration: none;
}
.month-button:hover, .month-button.active,
.day-button:hover, .store-type-button.active {
    background-color: #ffd700;
    color: #121212;
}
.breadcrumb-container {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    padding: 8px 15px;
    margin-bottom: 20px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    padding: 0;
    margin: 0;
    list-style: none;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
}

.breadcrumb-item + .breadcrumb-item {
    padding-left: 8px;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "/";
    padding-right: 8px;
    color: #6c757d;
}

.breadcrumb-item a {
    color: #bb86fc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
    color: #9965f4;
}

.breadcrumb-item.active {
    color: #ffffff;
}

.home-item i {
    margin-right: 5px;
}
.modal-content {
    background-color: #121212 !important;
    color: white;
}
 #map {
            height: 40px !important;
            margin-top: 0px !important;
            }
.modal-header {
    background-color: #007bff;
    color: white;
}
.form-label {
    font-weight: bold;
}
.btn-primary {
    background-color: #007bff;
    border-color: #007bff;
}
.btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
}
#loadingOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 9999;
    display: none;
}
#loadingText {
    color: white;
    font-size: 24px;
    margin-bottom: 20px;
    text-align: center;
}
#countdown {
    color: green;
    font-size: 100px;
    font-weight: bold;
}
.floating-button {
    position: fixed;
    top: 10px;
    left: 10px;
    width: 150px;
    height: 30px;
    border-radius: 5px;
    background-color: #c57d15cf;
    color: white;
    border: none;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    justify-content: left;
    align-items: left;
    transition: all 0.3s ease;
    z-index: 1000;
    
}
.floating-button:hover {
    background-color: #0056b3;
    transform: scale(1.05);
}
.floating-button i {
	padding-top: 5px;
    font-size: 18px;
    
}
.floating-button span {
    font-size: 0.6em;
    text-align: left;
    font-weight: bold;
}

.form-control, .form-select {
    background-color: #121212 !important;
    border: 1px solid #b3b3b3;
    color: #ffffff !important;
}
.form-control:focus, .form-select:focus {
    background-color: #121212;
    border-color: #bb86fc;
    box-shadow: 0 0 0 0.2rem rgba(187, 134, 252, 0.25);
    color: #ffffff;
}
.form-text {
    color: #b3b3b3;
}
.btn-primary {
    background-color: #bb86fc;
    border-color: #bb86fc;
    color: #121212;
}
.btn-primary:hover {
    background-color: #a66ef5;
    border-color: #a66ef5;
}
hr {
    border-top: 1px solid #b3b3b3;
}
h3 {
    color: #bb86fc;
}
/* Modal Background and Borders */
.modal-body {
    background-color: #1e1e1e !important; /* Dark background */
    border: 1px solid #bb86fc; /* Border color */
}

.modal-content {
    background-color: #1e1e1e; /* Dark background */
    border: 1px solid #bb86fc; /* Border color */
}

/* Modal Header */
.modal-header {
    border-bottom: 1px solid #bb86fc; /* Header border */
}

.modal-title {
    color: #fff; /* Title color */
}

/* Close Button */
.btn-close {
    color: #ffffff; /* Close button color */
}

/* Form Elements */
.form-control,
.form-select {
    background-color: #1e1e1e; /* Input background */
    color: #fff; /* Input text color */
    border: 1px solid #444; /* Input border color */
}

.form-control:focus,
.form-select:focus {
    border-color: #03dac6; /* Focus border color */
    background-color: #1e1e1e; /* Keep consistent background */
}

/* Invalid and Valid States */
.form-control:invalid,
.form-select:invalid {
    border-color: #cf6679; /* Invalid border color */
}

.form-control:valid,
.form-select:valid {
    border-color: #03dac6; /* Valid border color */
}

/* Labels */
.form-label {
    color: #ffd700; /* Label color */
}

/* Font Awesome Icons */
.fas, .fab {
    color: #fff; /* Icon color */
}

/* Placeholder Styling */
::placeholder {
    color: #b3b3b3 !important;
    opacity: 0.75; /* Placeholder opacity */
}

/* File Input */
input[type="file"] {
    color: #b3b3b3; /* File input text color */
}
/* Form text muted style */
.form-text.text-muted {
    color: #ffffff !important;
}

/* Dropdown styles */
.form-select {
    background-color: #121212 !important;
    color: #ffffff; /* Text color for dropdown */
    border: 1px solid #444; /* Border color */
}

.form-select:focus {
    border-color: #03dac6; /* Focus border color */
    background-color: #121212; /* Keep consistent background on focus */
}

/* Placeholder for dropdown */
.form-select::placeholder {
    color: #b3b3b3; /* Placeholder color */
    opacity: 0.75; /* Placeholder opacity */
}
#footer-bar {
    position: fixed;
    bottom: 0px;
    left: 0px;
    right: 0px;
    z-index: 98;
    background-color: #FFE0D6;
    box-shadow: 0 -5px 10px 0 rgba(0, 0, 0, 0.06);
    min-height: 60px;
    height: calc(62px + constant(safe-area-inset-bottom) * 1.1);
    height: calc(62px + env(safe-area-inset-bottom) * 1.1);
    display: flex;
    text-align: center;
}
#footer-bar a {
    color: #A13E2B;
    padding-top: 12px;
    position: relative;
    flex: 1 1 auto;
    text-decoration: none;
}
#footer-bar a span {
    position: relative;
    z-index: 2;
    display: block;
    font-size: 10px;
    font-weight: 500;
    margin-top: -6px;
    opacity: 0.7;
    font-family: "Kanit", sans-serif;
}
#footer-bar a i {
    font-size: 18px;
    position: relative;
    z-index: 2;
}
#footer-bar .badge {
    font-style: normal;
    z-index: 5;
    top: 0px;
    position: absolute;
    margin-left: 3px;
    color: #FFF !important;
    width: 18px;
    text-align: center;
    line-height: 18px;
    padding: 0px;
    padding-left: 0px !important;
    border-radius: 18px;
    margin-top: 7px;
    font-size: 11px;
}

.footer-bar-1 .active-nav i,
.footer-bar-1 .active-nav span,
.footer-bar-3 .active-nav i {
    color: #A13E2B !important;
}
.pagination {
            display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.25rem;
    
    font-size: 0.8rem;
            margin-top: 10px;
                max-width: 80%;
    margin: 0.2rem auto;
    
    border: 0px solid #333;
    border-radius: 5px;
    padding: 0.5rem 1rem;
    color: #e0e0e0;
        }
        .pagination a, .pagination span {
        	font-size: 11px;
        	border-radius: 5px;
            color: #bb86fc;
            padding: 4px 8px;
            text-decoration: none;
            transition: background-color .3s;
            border: 1px solid #2c2c2c;
            margin: 0 1px;
        }
        .pagination a:hover {
            background-color: #2c2c2c;
        }
        .pagination .active {
            background-color: #bb86fc;
            color: #000;
            border: 1px solid #bb86fc;
        }
        #generate-image {
            width: 100%;
            padding: 12px;
            background-color: #bb86fc;
            color: #000000;
            border: none;
            border-radius: 4px;
            cursor: pointer;
            font-size: 16px;
            font-weight: 500;
            transition: background-color 0.3s ease;
        }
        #generate-image:hover {
            background-color: #a370f7;
        }
        #generate-image:disabled {
            background-color: #4a4a4a;
            color: #7a7a7a;
            cursor: not-allowed;
        }
        #api-status {
            text-align: center;
            margin-top: 10px;
            
            font-size: 36px;
            font-weight: 500;
        }
        .status-online {
            color: #4CAF50;
        }
        .status-offline {
            color: #F44336;
        }
 
 
  body {
            font-family: 'Kanit', sans-serif;
            background-color: #121212;
            color: #ffffff;
            margin: 0;
            padding: 0;
            
            justify-content: center;
            align-items: center;
            min-height: 100vh;
              width: 100%;
    height: 100%;
        }
.feature-list {
            list-style-type: none;
            padding: 0;
        }
        .feature-item {
            background-color: #1e1e1e3b;
            border-radius: 8px;
            padding: 20px;
            margin-bottom: 20px;
            display: flex;
            align-items: center;
        }
        .feature-icon {
            font-size: 24px;
            margin-right: 20px;
            width: 30px;
            text-align: center;
        }
        .feature-text {
            flex: 1;
        }
        .fa-robot { color: #4e9eff; }
        .fa-user { color: #4eff91; }
        .fa-image { color: #4ecdff; }
.parallax-cover {
    width: 100%;
    height: 100vh; /* ความสูงเท่ากับความสูงของ viewport */
    background-attachment: fixed; /* สร้างเอฟเฟกต์ parallax */
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
    
}

.cover-content {
    position: absolute;
    top: 85%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 100%;
}

.cover-title {
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
    font-size: 1.5em;
    margin: 0;
    padding: 20px;
    background-color: rgba(0,0,0,0.5); /* พื้นหลังโปร่งใสสำหรับข้อความ */
}
.cover-title2 {
	text-align: right;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
    font-size: 0.8em;
    margin: 0;
    padding: 20px;
   
}

/* ปรับแต่ง container หลักของเว็บไซต์ (ถ้ามี) */
.container {
    width: 100%;
    max-width: none;
    padding: 0;
    margin: 0;
}


        h1 ,h2 {
            text-align: center;
            color: #FFF;
            margin-bottom: 1px;
        }
        h4 {
            text-align: center;
            color: #37c929;
            margin-bottom: 5px;
        }
        form {
            background-color: #1e1e1e;
            padding: 20px;
            border-radius: 8px;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
            margin-bottom: 20px;
        }
        textarea {
            width: 95%;
            padding: 12px;
            margin-bottom: 5px;
            border: none;
            background-color: #2c2c2c;
            color: #ffffff;
            border-radius: 4px;
            font-size: 18px;
            min-height: 100px;
            resize: vertical;
        }
        input[type="submit"] {
        	margin-top: 8px;
            width: 100%;
            padding: 12px;
            background-color: #bb86fc;
            color: #000000;
            border: none;
            border-radius: 4px;
            cursor: pointer;
            font-size: 16px;
            font-weight: 500;
            transition: background-color 0.3s ease;
        }
        input[type="submit"]:hover {
            background-color: #a370f7;
        }

        .error {
            color: #cf6679;
            background-color: rgba(207, 102, 121, 0.1);
            padding: 10px;
            border-radius: 4px;
            margin-bottom: 15px;
        }
        .prompt {
            background-color: #1e1e1e;
            padding: 15px;
            margin-top: 20px;
            border-radius: 8px;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        }
        .prompt h3 {
            color: #03dac6;
            margin-top: 0;
        }
        .loading {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.5);
            z-index: 1000;
            justify-content: center;
            align-items: center;
            flex-direction: column;
        }
        .loading i {
            color: #bb86fc;
            font-size: 48px;
            margin-bottom: 20px;
        }
        .loading-text {
            color: #ffffff;
            font-size: 24px;
        }
        .radio-group {
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
            margin-bottom: 15px;
        }
        .radio-group label {
            display: flex;
            align-items: center;
            font-size: 16px !important;
            background-color: #2c2c2c;
            padding: 2px 6px;
            border-radius: 4px;
            color: #4CAF50;
    margin: 0 !important;
            cursor: pointer;
            transition: background-color 0.3s ease;
        }
        .radio-group label:hover {
            background-color: #3c3c3c;
        }
        .radio-group input[type="radio"] {
            display: none;
        }
        .radio-group input[type="radio"]:checked + span {
            color: #bb86fc;
            font-weight: 500;
        }
        .creativity-options {
            display: flex;
            gap: 10px;
            margin-top: 10px;
            font-size: 14px;
        }
        .creativity-options label {
            display: flex;
            align-items: center;
            cursor: pointer;
        }
        .creativity-options input[type="radio"] {
            margin-right: 5px;
        }
        .prompt h3 {
    color: #03dac6;
    margin-top: 20px;
    margin-bottom: 10px;
}
.prompt p {
    margin-bottom: 15px;
}
#drop-area {
    border: 2px dashed #ccc;
    border-radius: 20px;
    width: 95%;
    margin: 10px auto;
    padding: 20px;
    text-align: center;
}

#drop-area.highlight {
    border-color: purple;
}

#gallery {
    margin-top: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
}

#gallery img {
    max-width: 100%;
    max-height: 200px;
    object-fit: contain;
}

.button {
    display: inline-block;
    padding: 10px;
    background: #ccc;
    cursor: pointer;
    border-radius: 5px;
    border: 1px solid #ccc;
}

.button:hover {
    background: #ddd;
}
#image-edit-container {
    margin-top: 10px;
    width: 95%;
    margin-left: auto;
    margin-right: auto;
}

#imageEditPrompt {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    resize: vertical;
}

.buttonUpload {
    display: inline-block;
    padding: 10px;
    background: #e03c3c;
    cursor: pointer;
    border-radius: 5px;
    border: 1px solid #ccc;
}
.button-container {
    position: fixed;
    bottom: 10px;
    right: 20px;
    display: flex;
    gap: 10px;
    z-index: 9999;
}
.scroll-to-top, .home-button {
    background-color: #5C85AB;
    color: white;
    border: none;
    padding: 4px 6px;
    font-size: 12px;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
}
.scroll-to-top:hover, .home-button:hover {
    background-color: #2B4F71;
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.4);
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
}

.form-group input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

#store-user-buttons {
	

  
    justify-content: center;
    margin: 5px 0;
    padding: 10px;
    background-color: #f5f5f524 !important;
    border-radius: 5px;
    margin-bottom: 2px;
}

.button-header {
	text-align: center;
    font-weight: bold;
    margin-bottom: 2px;
    color: #FFF;
}

.user-button {

    display: inline-block !important;
    margin: 5px !important;
    padding: 2px 6px !important;
    background-color: #FFF !important;
    border: 1px solid #ddd !important;
    border-radius: 4px !important;
    text-decoration: none;
    color: #000 !important;
    transition: all 0.3s ease;

     font-size: 0.8em !important;
}

.user-button:hover {
    background-color: #e9ecef;
    border-color: #ccc;
}

.user-button.active {
    background-color: #007bff;
    color: #fff;
    border-color: #0056b3;
}

.user-email {
    display: block;
    font-size: 0.8em;
    color: #666;
}

.user-button.active .user-email {
    color: #fff;
}