body, html {
	height: 100%;
	margin: 0;
	font-family: 'Roboto', sans-serif;
	background-color: #FAF3E0;
	color: #5D4037; /* a darker shade for better readability */
}

h2.title {
	font-family: 'Merriweather', serif; /* More decorative font for the title */
	color: #4CAF50; /* Primary color for emphasis */
	text-align: center; /* Center align the title */
	padding-top: 10px; /* Adds space at the top for better visual separation */

	font-size: 2.5rem; /* Larger size for better visibility */
	font-weight: bold; /* Makes the font bold */
}

.title-container {
    text-align: center; /* Center align the container */
    margin-bottom: 20px; /* Space before the tabs */

}

.subtitle {
    font-family: 'Merriweather', serif; /* More decorative font for the subtitle */
    color: #5D4037; /* Same color as the title for consistency */
    margin-top: -3px; /* Adjust margin to reduce space between title and subtitle */
	margin-left: 18px; /* Adjust margin to reduce space between title and subtitle */
    font-size: .8rem; /* Adjust the font size as needed */
	margin-bottom: 20px; /* Space before the tabs */
}


.nav-tabs {
	border-bottom: 2px solid #dee2e6;
	display: flex;
	justify-content: space-around;
	width: 100%;
}

.nav-tabs .nav-item .nav-link {
	background-color: #FFF;
	border: 1px solid #4CAF50;
	color: #5D4037;
}

.nav-tabs .nav-item .nav-link.active {
	background-color: #4CAF50;
	color: #FFF;
}

.nav-item {
	display: inline-block;  /* Ensures nav items are lined up horizontally */
}

.nav-link.active {
	background-color: #fff;
	border-color: #dee2e6 #dee2e6 #fff;
	border-top: 3px solid #007bff;
}

.tab-content {
	background-color: #fff;
	padding: 20px;
	border: 1px solid #dee2e6;
	border-top: none;
	box-shadow: 0 2px 5px rgba(0,0,0,0.1);

}


#pro-tab {
    display: none;
}

/* Increase the size of the toggle switches in the Pro tab */
#pro .form-check-input {
    width: 4.2rem;
    height: 2.0rem;
}

#pro .form-check-input:checked {
    background-color: #0d6efd;
}

/* Reduce margin between rows in the Pro tab */
#pro .pro-row {
    margin-bottom: 0.10rem !important; /* Reduced space between rows */
}

/* Make the labels larger */
#pro .pro-label {
    font-size: 1.1rem;
    font-weight: semi-boldbold;
}

.username-display {
    font-size: .9rem;
    font-weight: normal;
}

/* General Styling */
.pro-content {
    padding: 5px;
}

/* User Info and Subscription Info */
.user-info,
.subscription-info {
    background-color: #f8f9fa;
    border-radius: 5px;
    padding: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    margin-bottom: 10px;
}

/* Sections Styling */
.section {
    background-color: #ffffff;
    border-radius: 5px;
    padding: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 5px;
}

.section-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: blue;
    margin-bottom: 10px;
	text-align: center;
}

/* Buttons Styling */
.action-buttons .btn {
    font-size: 1rem;
    padding: 10px;
    border: 2px solid #007bff;
    color: #007bff;
    background-color: transparent;
    transition: background-color 0.2s, color 0.2s, transform 0.2s, box-shadow 0.2s;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 70px;
    flex-direction: column;
}

.action-buttons .btn:hover {
    background-color: #007bff;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.action-buttons .btn i {
    margin-bottom: 4px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .action-buttons .btn {
        margin-bottom: 10px;
        font-size: 0.9rem;
    }
    .action-buttons .btn i {
        margin-bottom: 3px;
    }
}




/* Add spacing for input fields in modals */
.modal-body .form-control {
    margin-top: .8rem;
    margin-bottom: .8rem;
}

.form-check-label {
    font-size: 1rem; /* Adjust font size if necessary */
}

.form-control {
    font-size: 1rem; /* Adjust font size if necessary */
    padding: 0.5rem; /* Adjust padding if necessary */
}



.form-check-input {
    width: 4.5rem;
    height: 1.5rem;
}

.form-check-input:checked {
    background-color: #0d6efd;
}

.auth-form-container {
    position: relative;
    width: 100%;
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
}

.auth-form-container.hidden {
    opacity: 0;
    transform: translateY(-20px);
    position: absolute;
}

.hidden {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

#authForms .form-container {
    opacity: 1;
    transition: opacity 0.5s ease-in-out;
}

.btn-lg {
    font-size: 1.2rem;
    padding: 0.75rem 1.25rem;
}

.subscription-link .subscription-type {
    font-size: 0.9rem;
    color: blue;
    cursor: pointer;
}

.subscription-link {
    color: black;
}

.subscription-link:hover .subscription-type {
    text-decoration: underline;
}

#userEmailLogout {
    display: none; /* Initially hidden */
}

#formHeader {
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
}

#formHeader.hidden {
    opacity: 0;
    transform: translateY(-20px);
}

.highlight {
    color: #007bff; /* Primary color to highlight active form */
    font-weight: bold;
}

.plan-info {
    font-size: 1em;
    color: black;
    margin-top: -15px; /* Adjust the value as needed to move it higher */
}

.plan-info span {
    color: #007bff;
}

.expires-info {
    font-size: 1em;
    color: red;
    margin-top: -5px; /* Adjust the value as needed to move it higher */

}



.expires-info span {
    color: red;
	font-weight: 600; /* Set font weight to semi-bold */
}

.plan-and-icons-container {
    margin-bottom: 10px; /* Adjust if necessary */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.payment-options {
    display: flex;
    justify-content: space-between;
}

.payment-box {
    flex: 1 1 30%;  /* Allow the boxes to be responsive */
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ccc;
    margin: 10px;  /* Add margin for spacing */
    cursor: pointer;
    border-radius: 8px;
    transition: background-color 0.3s, box-shadow 0.3s;
    text-align: center;
    box-sizing: border-box;
    aspect-ratio: 1 / 1;  /* Ensure the box remains square */
    max-width: 150px; /* Limit the maximum size */
    max-height: 150px; /* Limit the maximum size */
    position: relative;
}

.payment-box:hover {
    background-color: #f0f0f0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.payment-logo {
    max-width: 90%;  /* Ensure the logo fits within the box */
    max-height: 90%; /* Ensure the logo fits within the box */
    width: auto;
    height: auto;
}

#emailSubscriptionIconContainer {
    display: none; /* Initially hidden */
    align-items: center;
    justify-content: center;
    flex-grow: 1;
    text-align: center;
    flex-direction: column;

}



.subscribe-now-container {
    text-align: center;
}

.full-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none; /* Remove default link styling */
}


.button-container {
	display: flex;
	justify-content: center;
	margin-top: -5px;
	gap: 10px;
}

.btn-modern {
	width: 90%; /* Make the button 80% of the container's width */
	padding: 10px 20px;
	font-size: 1.2rem;
	font-weight: bold;
	color: #fff;
	background-color: #ff5722; /* Stylish, modern color */
	border: none;
	border-radius: 10px;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
	transition: background-color 0.3s, box-shadow 0.3s;
}

.btn-modern:hover {
	background-color: #e64a19;
	box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

.btn-modern:focus, .btn-modern:active {
	background-color: #d84315;
	box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
	outline: none;
}

.btn-subscribe {
    color: blue;
    border-color: blue;
}

.btn-subscribe:hover {
    background-color: blue;
    color: white;
}

.btn-primary {
	background-color: #4CAF50;
	border-color: #388E3C;
}

.btn-danger {
	background-color: #F44336;
	border-color: #D32F2F;
}

.fa-print, .fa-share-alt {
	color: #5D4037; /* Matches your color scheme */
	transition: color 0.3s; /* Smooth color transition on hover */
}

.fa-print:hover, .fa-share-alt:hover {
	color: #4CAF50; /* Highlight color on hover */
}

.tab-content {
	position: relative; /* Ensures that positioning is relative to the tab content area */
	background-color: #fff;
	padding: 20px;
	border: 1px solid #dee2e6;
	border-top: none;
	box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

body.dimmed {
    position: relative;
}

body.dimmed::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.icon-container {
    gap: 20px;
    position: relative;
    z-index: 2; /* Ensure the icons and dropdowns are above the dimmed overlay */
}

.icon-container i {
    font-size: 1.5rem;
    cursor: pointer;
    transition: transform 0.3s ease, color 0.3s ease;
}

.icon-container i:hover {
    transform: scale(1.2);
    color: #007bff;
}

.dropdown .dropdown-menu {
    border-radius: 0.5rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 3; /* Ensure dropdown is above the dimmed overlay */
    position: relative; /* Ensure dropdown is above the dimmed overlay */
}

.dropdown .dropdown-menu .dropdown-item {
    transition: background-color 0.3s ease;
}

.dropdown .dropdown-menu .dropdown-item:hover {
    background-color: #007bff;
    color: #fff;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}



.form-control {
	margin-bottom: 0.5rem;
}

.form-group {
    position: relative;
    margin-bottom: 1.1rem;
}

.disabled-form {
    pointer-events: none; /* Disable mouse events on the form */
    opacity: 0.6; /* Reduce opacity to visually grey out the form */
}

#submitButton:disabled {
    opacity: 0.6; /* Reduce opacity of the button when disabled */
}

.form-group input, .form-group select, .form-group textarea, .form-group .media-input {
    width: 100%;
    padding: .75rem;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    background: none;
    box-shadow: none;
    outline: none;
    font-size: 1rem;
}

#recipe {
    flex-grow: 1;
    width: 100%;
    resize: none;
    padding-bottom: 60px; /* Add space for the microphone icon and buttons */
    height: auto; /* Default height */
}

/* Adjust height for small screens */
@media (max-width: 389px) {
    #recipe {
        height: 50px; /* Adjust height for very small screens */
    }
}

/* Adjust height for medium screens */
@media (min-width: 390px) and (max-width: 400px) {
    #recipe {
        height: 115px; /* Adjust height for small to medium screens */
    }
}


/* Adjust height for medium screens */
@media (min-width: 401px) and (max-width: 767px) {
    #recipe {
        height: 150px; /* Adjust height for small to medium screens */
    }
}

/* Adjust height for large screens */
@media (min-width: 768px) and (max-width: 1023px) {
    #recipe {
        height: 150px; /* Adjust height for medium to large screens */
    }
}

/* Adjust height for extra large screens */
@media (min-width: 1024px) {
    #recipe {
        height: 200px; /* Adjust height for large screens */
    }
}

/* Full Page Modal */

.processing-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000; /* Ensure it is above the modal */
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000; /* Ensure it is above other content */
}

.loading-animation {
    display: flex;
    justify-content: space-around;
    align-items: center;
    width: 100px;
    height: 100px;
}

.circle {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #007bff;
    animation: pulse 1s infinite ease-in-out;
}

.circle:nth-child(1) {
    animation-delay: 0s;
}

.circle:nth-child(2) {
    animation-delay: 0.2s;
}

.circle:nth-child(3) {
    animation-delay: 0.4s;
}

.circle:nth-child(4) {
    animation-delay: 0.6s;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.5);
    }
}

#recipeModal .modal-dialog {
    max-width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
}

#recipeModal .modal-content {
    height: 100%;
    border: none;
    border-radius: 0;
    display: flex;
    flex-direction: column;
}

#recipeModal .modal-header,
#recipeModal .modal-footer {
    border: none;
    padding: 10px 15px;
}

#recipeModal .modal-body {
    flex: 1;
    padding: 10px 15px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    position: relative;
}

#recipeModalTextarea {
    flex-grow: 1;
    width: 100%;
    resize: none;
    padding-bottom: 20px; /* Add space for the microphone icon and buttons */
    height: auto; /* Default height */
}

/* Adjust height for small screens */
@media (max-width: 390px) {
    #recipeModalTextarea {
        height: 225px; /* Adjust height for very small screens */
    }
}

/* Adjust height for medium screens */
@media (min-width: 391px) and (max-width: 767px) {
    #recipeModalTextarea {
        height: 365px; /* Adjust height for small to medium screens */
    }
}

/* Adjust height for large screens */
@media (min-width: 768px) and (max-width: 1023px) {
    #recipeModalTextarea {
        height: 500px; /* Adjust height for medium to large screens */
    }
}

/* Adjust height for extra large screens */
@media (min-width: 1024px) {
    #recipeModalTextarea {
        height: 800px; /* Adjust height for large screens */
    }
}

#reformatButton {
    width: 100%; /* Make the button full-width */
    margin-top: 10px; /* Adjust the margin as needed */
    font-size: 1rem;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#reformatButton i {
    margin-right: 8px;
}


.input-group-text {
    position: absolute;
    right: 10px;
    bottom: 10px;
    cursor: pointer;
    background-color: transparent;
    border: none;
    color: #007bff; /* Modern blue color */
    font-size: 1.5rem; /* Larger size */
}

.input-group-text:hover {
    color: #0056b3; /* Darker blue on hover */
}

#recipeModal .modal-footer {
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
	margin-top: auto;

}

#recipeModal .modal-footer .btn {
    flex: 1;
    margin: 0 5px;
    font-size: 0.9rem;
}



.form-group label {
    position: absolute;
    top: 1rem;
    left: 1rem;
    color: #6c757d;
    pointer-events: none;
    transition: 0.2s ease all;
    font-size: 1rem;
}

.form-group input:focus ~ label, .form-group input:not(:placeholder-shown) ~ label,
.form-group select:focus ~ label, .form-group select:not(:placeholder-shown) ~ label,
.form-group textarea:focus ~ label, .form-group textarea:not(:placeholder-shown) ~ label,
.form-group .media-input:focus ~ label, .form-group .media-input:not(:placeholder-shown) ~ label {
    top: -0.6rem;
    left: 0.8rem;
    font-size: 0.8rem;
    color: #495057;
    background-color: #FAF3E0;
    padding: 0 0.3rem;
}

.loader {
	border: 16px solid #f3f3f3;
	border-top: 16px solid #3498db;
	border-radius: 50%;
	width: 120px;
	height: 120px;
	animation: spin 2s linear infinite;
}

.input-with-link {
    position: relative;
}

.input-with-link input {
    padding-right: 60px; /* Adjust based on the width of the link */
}

.input-with-link a {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: #4CAF50;
    color: #FFF;
    padding: 5px 10px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.8rem;
}


@keyframes spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

#loadingSpinner, #errorContainer {
	display: none;
	align-items: center;
	justify-content: center;
	text-align: center;
	height: 100vh;
}

.alert {
	position: fixed;
	top: 30%;
	left: 50%;
	transform: translate(-50%, -50%);
	z-index: 1050;
	width: auto;
	max-width: 80%;
	padding: 20px;
	text-align: center;
	border: 1px solid transparent;
	border-radius: 4px;
	box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.alert-success, .alert-danger {
    width: 80%; /* Adjust this value as needed */
    margin: 0 auto; /* Center the alert horizontally */
    text-align: center; /* Center the text inside the alert */
    position: fixed; /* Fix the position so it stays in place */
    top: 30%; /* Center the alert vertically */
    left: 50%; /* Center the alert horizontally */
    transform: translate(-50%, -50%); /* Adjust the positioning to be truly centered */
    z-index: 9999; /* Ensure it's above other elements */
    padding: 20px; /* Add some padding for better appearance */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Optional: Add some shadow for better visibility */
}

.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}


.login-area {
	position: absolute;
	right: 20px;
	top: 10px;
}

#loginIcon {
	font-size: 24px;
	cursor: pointer;
	color: #FF5722;
	transition: color 0.3s;
}

#loginIcon:hover {
	color: #E64A19;
}

#errorContainer {
	display: none;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 20px;
	background-color: #f8d7da;
	color: #721c24;
	border-color: #f5c6cb;
	margin-top: 20px;
}

@keyframes rotate-key-animation {
	from {
		transform: rotate(0deg);
	}
	to {
		transform: rotate(360deg);
	}
}

.rotate-key {
	animation: rotate-key-animation 1s ease-in-out;
}

#unlockKey:hover {
	color: #4CAF50;
}

.locked-form .form-control {
	background-color: #e9ecef;
	color: #5D4037;
	opacity: 1;
}

.locked-form .form-group label {
	color: #5D4037;
}

/* Adjustments for printing */
@media print {
    html, body {
        width: 100%;
        font-size: 9pt; /* Maintain current font size */
        color: #000; /* Use black text to save ink */
        background: none; /* Remove background color */
        margin: 0; /* Remove default margins */
        padding: 0; /* Remove default padding */
    }
    body * {
        visibility: hidden;
    }
    .container, .container * {
        visibility: visible;
        width: 100%; /* Ensure the container uses full width */
        max-width: 100%; /* Remove any max-width restrictions */
    }
    .form-group {
        margin-bottom: 10px; /* Reduce space between form groups */
        page-break-inside: avoid; /* Prevent page breaks inside form groups */
        display: inline-block; /* Display form groups inline */
        width: 48%; /* Adjust width to fit two form groups per row */
        margin-right: 2%; /* Space between form groups */
    }
    .form-group:nth-child(2n) {
        margin-right: 0; /* Remove right margin for every second form group */
    }
    .full-width {
        width: 100% !important; /* Ensure full-width elements use the entire width */
        display: block !important; /* Ensure full-width elements are block elements */
    }
    .form-control {
        padding: 1px 2px; /* Smaller padding for inputs */
        height: auto; /* Ensure inputs use minimal height */
        width: 100%;
        box-shadow: none;
        border: 1px solid #000; /* Black border to ensure visibility */
        font-size: 9pt; /* Maintain current font size */
        line-height: 1.0; /* Reduce line height to make fields more compact */
    }
    #myTabContent, #myTabContent * {
        visibility: visible;
    }
    .nav-tabs, .icon-container, .button-container {
        display: none;
    }
	
/* Ensure both buttons are centered when both are visible */
.button-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.button-container button {
    margin: 0 5px; /* Adjust margin to create gap between buttons */
}

/* Additional CSS to handle centering when only one button is visible */
.button-container button:only-child {
    margin: 0; /* No margin for a single button */
}

#subscribeToUpdatesButton[style*="display: none;"] + #reachOutOrReorderButton,
#reachOutOrReorderButton[style*="display: none;"] + #subscribeToUpdatesButton {
    margin: 0; /* No margin for single button when the other is hidden */
}



    .tab-pane {
        display: block !important;
        position: static !important;
        opacity: 1 !important;
    }
    button, .btn, [type="button"], [type="submit"], [role="button"] {
        display: none !important;
    }
    .form-control {
        max-width: 100%;
    }
    .alert, .loader, .unlock-area {
        display: none;
    }
    textarea {
        overflow: visible !important;
        height: auto !important; /* Allow textareas to expand */
        min-height: calc(100px + auto) !important; /* Ensure a minimum height with padding */
		overflow: visible;
    }
    .form-group textarea {
        overflow: visible !important;
        height: auto !important; /* Allow textareas to expand */
        min-height: calc(100px + auto) !important; /* Ensure a minimum height with padding */
		overflow: visible;
    }
    .form-group label {
        color: #000; /* Ensure labels are visible */
        background: none; /* Remove background color for print */
        padding: 0; /* Remove padding for print */
        display: block; /* Ensure labels are block elements */
        margin-bottom: 5px; /* Small margin below labels */
        position: absolute; /* Position labels above the input */
        top: -0.6rem; /* Adjust to align above the input */
        left: 0.8rem; /* Adjust to align with the input */
        font-size: 0.8rem; /* Smaller font size */
    }
    .image-placeholder, .media-placeholder {
        width: 100%; /* Ensure media placeholders use full width */
        height: auto; /* Auto height to fit content */
        display: flex;
        justify-content: center; /* Center the content */
        align-items: center; /* Center the content */
    }
    .media-placeholder img, .media-placeholder video {
        width: 80%; /* Increase the size of media */
        height: auto; /* Maintain aspect ratio */

    }
	


    /* Force the page to be one single page */
    .container {
        page-break-before: always;
        page-break-after: always;
    }
}


.title {
	margin-bottom: 2px;
}

.media-icon {
	font-size: 24px;
	cursor: pointer;
	color: #5D4037;
	transition: color 0.3s;
}

.media-icon:hover {
	color: #4CAF50;
}

.image-placeholder {
    width: 150px;
    height: 150px;
    background-color: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ced4da;
    border-radius: 50%;
    cursor: pointer;
    overflow: hidden;
    position: absolute;
    top: 10px;
    right: 0;
    margin-right: 10px;
}

.image-placeholder img {
    width: 100%;
    height: auto;
}

.progress-bar-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 20px;
    background-color: #f3f3f3;
    border-radius: 10px;
    overflow: hidden;
    z-index: 9999; /* Ensure the progress bar is in the foreground */
}

.progress {
    height: 5px;
    background-color: #f3f3f3;
}

.progress-bar {
    height: 100%;
    background-color: #4caf50;
    width: 0%;
    transition: width 0.1s;
}
.uploading .placeholder-text {
    display: none;
}



@media (max-width: 365px) {
    .image-placeholder {
        width: 95px;
        height: 95px;
        margin-right: 10px;
		margin-top: -3px;
    }
}




@media (min-width: 366px) and (max-width: 389px) {
    .image-placeholder {
        width: 95px;
        height: 95px;
        margin-right: 10px;
		margin-top: -3px;
    }
}

@media (min-width: 390px) and (max-width: 399px) {
    .image-placeholder {
        width: 95px;
        height: 95px;
        margin-right: 10px;
		margin-top: -3px;
    }
}

@media (min-width: 400px) and (max-width: 767px) {
    .image-placeholder {
        width: 115px;
        height: 115px;
        margin-right: 12px;
    }
}

@media (min-width: 768px) and (max-width: 1199px) {
    .image-placeholder {
        width: 130px;
        height: 130px;
        margin-right: 15px;
    }
}

@media (min-width: 1200px) {
    .image-placeholder {
        width: 135px;
        height: 135px;
        margin-right: 20px;
    }
}

.container {
    position: relative;
}


#mediaContainer {
    display: flex;
    justify-content: space-between; /* Distribute space evenly */
    gap: 10px; /* Add space between the placeholders */
}

.media-placeholder {
    flex: 1; /* Allow placeholders to grow equally */
    max-width: calc(33.333% - 10px); /* Ensure three placeholders fit in one row */
    aspect-ratio: 1; /* Maintain square aspect ratio */
    background-color: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ced4da;
    border-radius: 10px;
    cursor: pointer;
    position: relative;
    flex-direction: column; /* Align text vertically */
    text-align: center; /* Center align the text */
    margin-bottom: 5px; /* Add space at the bottom */
}

.media-placeholder input {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.media-placeholder img, .media-placeholder video {
    width: 100%;
    height: 100%;
    object-fit: cover;
	border-radius: 10px;
}



.media-placeholder.empty-placeholder i {
    font-size: 2rem;
    color: #6c757d;
}

.media-placeholder .placeholder-text {
    font-size: 0.8rem;
    color: #6c757d;
    margin-top: .5rem;
    display: block;
}

.media-group {
    margin-top: 0rem; /* Ensure space for the label */
}

.media-header {
    text-align: center;
    font-size: 1.2rem;
    font-weight: bold;
    color: #495057;
    margin-bottom: 1rem;
}


/* Styling for media presentation */
.media-wrapper {
    position: relative;
    background-color: #faf3e0;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    display: inline-block;
}


		
/* Updated CSS */
.img-thumbnail {
    max-width: 100%; /* Ensures image/video doesn't exceed the container's width */
    max-height: 100%; /* Adjust this value as needed */
    object-fit: cover; /* Ensures the media maintains aspect ratio */
}
.video-wrapper {
    position: relative;
    display: inline-block;
    cursor: pointer;
    width: 100%; /* Ensures video wrapper fits the container's width */

    overflow: hidden; /* Ensure overflow content is hidden */
}
.video-wrapper video {
    width: 100%; /* Ensures video fits the container's width */
    height: 100%; /* Ensures video fits the container's height */
    object-fit: cover; /* Ensures the media maintains aspect ratio */
    pointer-events: none; /* Prevent video controls from being clickable */
}
.overlay-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 48px;
    color: white;
    pointer-events: none; /* Ensure the overlay does not interfere with clicks */
}

/* Updated CSS for modal */
.modal-body {
    max-height: calc(100vh - 200px); /* Adjust the value as needed */
    overflow-y: auto;
}

#modalImage, #modalVideo {
    max-width: 100%; /* Ensure image/video doesn't exceed modal width */
    max-height: calc(100vh - 250px); /* Ensure image/video doesn't exceed modal height */
    object-fit: contain; /* Maintain aspect ratio */
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.modal-footer {
    position: sticky;
    bottom: 0;
    background-color: white;
    width: 100%;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
    padding: 15px; /* Add padding for spacing */
}

.modal-footer .btn {
    margin: 0 30px; /* Add margin to space out the buttons */
}

/* Custom styles for modal buttons */
.btn-custom-delete {
    padding: 10px 20px;
    font-size: 1.2rem;
    font-weight: bold;
    color: #fff;
    background-color: #f44336;
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s, box-shadow 0.3s;
}

.btn-custom-delete:hover {
    background-color: #d32f2f;
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

.btn-custom-delete:focus, .btn-custom-delete:active {
    background-color: #c62828;
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
    outline: none;
}

.btn-custom-close {
    padding: 10px 20px;
    font-size: 1.2rem;
    font-weight: bold;
    color: #fff;
    background-color: #6c757d;
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s, box-shadow 0.3s;
}

.btn-custom-close:hover {
    background-color: #5a6268;
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

.btn-custom-close:focus, .btn-custom-close:active {
    background-color: #495057;
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
    outline: none;
}

.btn-custom-close.disabled, .btn-custom-close:disabled {
    background-color: #6c757d; /* Keep the same background color */
    color: #fff; /* Ensure text color remains white */
    cursor: not-allowed;
}

/* Custom CSS for the Shortcode Modal and Batch Sync Modal */
.modal-header {
    background-color: #4CAF50;
    color: white;
    border-bottom: none;
}

.modal-header .btn-close {
    color: white;
}

.modal-title {
    font-family: 'Merriweather', serif;
    font-size: 1.5rem;
    font-weight: bold;
}

.modal-body {
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    color: #5D4037;
}

.form-control {
    border-radius: 10px;
    padding: 15px;
    font-size: 1.2rem;
    border: 1px solid #ced4da;
}

.d-grid {
    gap: 10px; /* Adjust the gap between the buttons if needed */
}

.btn-modern {
    padding: 10px 20px;
    font-size: 1rem;
    font-weight: bold;
    color: #fff;
    background-color: #ff5722;
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s, box-shadow 0.3s;
    width: 80%; /* Make the buttons 80% of the container width */
    margin: 0 auto; /* Center the buttons */
}

.btn-modern:hover {
    background-color: #e64a19;
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

.btn-modern:focus, .btn-modern:active {
    background-color: #d84315;
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
    outline: none;
}

.btn-secondary.btn-modern {
    background-color: #6c757d;
}

.btn-secondary.btn-modern:hover {
    background-color: #5a6268;
}

.modal-backdrop {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1040;
    background-color: rgba(0, 0, 0, 0.7); /* Adjust opacity to darken the backdrop */
}

.clickable-text {
    color: #007bff;
    text-decoration: underline;
    cursor: pointer;
}

.clickable-text:hover {
    color: #0056b3;
    text-decoration: underline;
}


.badge {
    font-size: 0.8rem;
    margin-left: 10px;
}

.modal-body ul {
    margin-top: 1rem;
    margin-bottom: 1rem;
    padding-left: 20px; /* Adjust padding as needed */
}

.modal-body ul li {
    margin-bottom: 0.5rem; /* Adjust margin between list items */
    list-style-type: disc; /* Use disc bullets */
}

.modal-body ul .list-header {
    font-weight: bold;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    list-style-type: none; /* Remove bullet for the header */
}




.dropdown-menu {
    min-width: 200px;
}

.dropdown-item {
    padding: 10px 20px;
}

#shareDropdownIcon {
    font-size: 24px;
    cursor: pointer;
    color: #5D4037;
}

#shareDropdownIcon:hover {
    color: #4CAF50;
}
.btn-wide {
    width: 100%; /* Makes the button full width within its container */
    max-width: 300px; /* Adjust as needed to set a maximum width */
}

    .dropdown-item-text {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }
    .dropdown-item-text a {
        margin-left: 10px;
        white-space: nowrap;
    }
        #formFooter {
            padding: 10px;
            display: flex;
            justify-content: space-between;
            font-size: .6rem; /* Increase font size */
        }
        #uuidDisplay, #claimedDisplay {
            font-weight: normal;
        }