:root {
    --header-height: 80px;
    --gold-bar-height: 5px;
    --base-width: 420px;
    --base-height: 560px;
    --scale-factor: 1;
}

body {
    background-color: #f8f9fa !important;
    margin: 0;
    padding-top: 101px !important;
}

h2 {
    font-size: 1rem;
}

p {
    font-size: 1rem;
}

.newheading1 {
    font-size: 1.75em;
    font-weight: 700;
    text-align: center;
    margin-bottom: 50px;
    margin-top: 0 !important;
    position: relative;
    color: #ffffff;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    padding: 20px 30px;
    border-radius: 12px;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.newheading1::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    transform: skew(-2deg);
    z-index: -2;
}

.newheading1::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255,255,255,0.1) 25%, transparent 25%, transparent 50%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0.1) 75%, transparent 75%);
    background-size: 20px 20px;
    z-index: -1;
}

.header-spacer {
    height: 60px; /* Adjust as needed */
}

.custom-textarea {
    resize: vertical;
}

.powered-by {
    margin-top: 20px;
}

.powered-by p {
    margin-bottom: 10px;
}

.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.partner-logo {
    height: 42px;
    width: auto;
    max-width: 100%;
}

@media (max-width: 768px) {
    .logo-container {
        flex-direction: column;
    }
    
    .partner-logo {
        height: 30px;
    }
}

#editableResult {
    background-color: white;
    min-height: 200px;
    padding: 20px;
    margin-bottom: 1rem;
    border: none;
    box-shadow: none;
    border-radius: 0.25rem;
}

#editableResult:focus {
    outline: none;
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.site-header {
    background-color: #000000;
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    height: 96px;
}

.site-header .navbar {
    padding-top: 0;
    padding-bottom: 0;
}

.site-header .navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

.site-header .nav-link {
    color: rgba(255,255,255,0.8);
    transition: color 0.3s ease;
}

.site-header .nav-link:hover {
    color: white;
}

.container.mt-5 {
    margin-top: 3rem !important;
}

.container {
    max-width: 1200px !important;
    width: 100% !important;
    padding-right: 15px !important;
    padding-left: 15px !important;
    margin-right: auto !important;
    margin-left: auto !important;
}

.site-footer {
    background-color: #f8f9fa;
    color: #6c757d;
    padding: 2rem 0;
    margin-top: 15rem;
}

.site-footer a {
    color: #4a4a4a;
    text-decoration: none;
}

.site-footer a:hover {
    text-decoration: underline;
}

.mobile-warning {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.mobile-warning-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #fff;
    padding: 20px;
    border-radius: 5px;
    text-align: center;
    max-width: 80%;
}

.mobile-warning h5 {
    margin-bottom: 10px;
}

.mobile-warning p {
    margin-bottom: 20px;
}

.close-warning {
    display: inline-block;
    padding: 10px 20px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

@media only screen and (max-width: 768px) {
    .mobile-warning {
        display: flex;
        justify-content: center;
        align-items: center;
    }
}

.carousel-item img {
    width: 100%;
    max-width: 408px;
    height: auto;
    max-height: 544px;
    object-fit: contain;
    border: 1px solid #ccc;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    margin: 0 auto;
    display: block;
}

.carousel-caption {
    padding: 0;
}

.caption-background {
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    padding: 16px;
    border-radius: 5px;
}

.carousel-caption h5 {
    margin-bottom: 1.1rem;
}

.carousel-caption p {
    margin-top: 0.9rem;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    padding: 15px;
}

.carousel-control-prev,
.carousel-control-next {
    width: 5%;
    opacity: 0.8;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
}

#selectedTemplateDisplay {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    background-color: #f8f9fa;
}

#selectedTemplateImage {
    margin-bottom: 10px;
    max-width: 100%;
    height: auto;
}

#selectedTemplateTitle {
    font-weight: bold;
    margin-bottom: 0;
}

#templateCarousel {
    max-width: 442px;
    margin: 60px auto;
}

/* Scoped to carousel to avoid conflicts with custom template .template-name */
#templateCarousel .template-name {
    background-color: rgba(248, 249, 250, 0.7);
    backdrop-filter: blur(5px);
    padding: 10px;
    margin-top: 10px;
}

#templateCarousel .template-name p {
    margin: 0;
    font-weight: bold;
    color: #333;
}

.template-container {
    position: relative;
    display: inline-block;
    margin: 10px;
    cursor: pointer;
}

.template-description {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px;
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.template-container:hover .template-description {
    opacity: 1;
}

/* Selection border is applied to .gallery-image, not container (see line ~1003) */
/* This prevents the border from encompassing the image shadow */

.gallery-image {
    position: relative;
}

.gallery-image::after {
    content: attr(data-template-description);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.gallery-image:hover::after {
    opacity: 1;
}

.logo-image {
    max-width: 100%;
    height: auto;
    margin-bottom: 2rem;
}

.gold-bar {
    background: linear-gradient(to right, #4169E1, #8A2BE2) !important;
    height: 5px;
    width: 100%;
    position: fixed;
    top: 96px;
    left: 0;
    right: 0;
    z-index: 1029;
}

.gold-rectangle-container {
    background: linear-gradient(45deg, #4169E1, #8A2BE2);
    border-radius: 25px;
    padding: 32px;
    margin-bottom: 24px;
    margin-top: 64px;
    text-align: center;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    transform: skew(-3deg);
    transition: all 0.3s ease;
}

.gold-rectangle-container:hover {
    transform: skew(0deg) scale(1.03);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.gold-rectangle-container h2 {
    font-family: 'Roboto', sans-serif;
    font-weight: 900;
    color: #FFFFFF;
    letter-spacing: -0.02em;
    text-shadow: none;
}

.gold-rectangle-container:hover h2 {
    transform: skew(0deg);
}

.gold-rectangle-container:hover .category-button {
    transform: skew(0deg);
}

/* New class for category button containers */
.category-container {
    background: linear-gradient(45deg, #00FF00, #4169E1, #8A2BE2);
    border-radius: 25px;
    padding: 5px;
    margin: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: inline-block;
}

.category-container:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.category-button {
    width: 100%;
    padding: 10px 20px;
    background: transparent;
    border: 2px solid white;
    border-radius: 20px;
    color: white;
    font-weight: bold;
    transition: all 0.3s ease;
}

.category-container:hover .category-button {
    background-color: rgba(255, 255, 255, 0.1);
}

.btn-selected {
    background-color: white !important;
    color: #4169E1 !important;
}

#categoryButtons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

/* ============================================
   My Custom Templates Button & Section
   ============================================ */

.custom-templates-button-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.custom-templates-container {
    background: linear-gradient(135deg, #8B5CF6, #EC4899, #F59E0B) !important;
    position: relative;
    overflow: hidden;
}

.custom-templates-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    transform: rotate(45deg);
    animation: shimmer 3s infinite;
    pointer-events: none; /* Ensure clicks pass through to button */
}

@keyframes shimmer {
    0% { transform: translateX(-100%) rotate(45deg); }
    100% { transform: translateX(100%) rotate(45deg); }
}

.custom-templates-btn {
    padding: 12px 30px !important;
    font-size: 1rem !important;
    position: relative;
    z-index: 1; /* Ensure button is above the shimmer effect */
    cursor: pointer;
}

.custom-templates-btn.btn-selected {
    background-color: white !important;
    color: #8B5CF6 !important;
}

.create-template-link {
    color: #6c757d;
    font-size: 0.9rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s ease;
}

.create-template-link:hover {
    color: #8B5CF6;
    text-decoration: underline;
}

/* Custom Templates Gallery Styles */
.user-custom-template {
    position: relative;
}

/* Edit/Customize overlay - works for both custom templates and customizable base templates */
.template-container .template-edit-overlay {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.template-container:hover .template-edit-overlay {
    opacity: 1;
}

.edit-template-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(139, 92, 246, 0.9);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.edit-template-btn:hover {
    background: #8B5CF6;
    color: white;
    transform: scale(1.1);
}

/* Customize button for base templates - slightly different styling */
.customize-base-btn {
    background: rgba(37, 99, 235, 0.9);
}

.customize-base-btn:hover {
    background: #2563EB;
}

/* Delete button for custom templates */
.delete-template-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(220, 53, 69, 0.9);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    margin-top: 6px;
}

.delete-template-btn:hover {
    background: #dc3545;
    color: white;
    transform: scale(1.1);
}

/* Stack edit and delete buttons vertically */
.template-edit-overlay {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Custom Templates Empty State */
.custom-templates-empty-state {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 12px;
    padding: 40px 20px !important;
    margin: 20px auto;
    max-width: 400px;
}

.custom-templates-empty-state .bi-palette {
    opacity: 0.5;
}

/* Custom Templates Info Box */
.custom-templates-info-box {
    display: flex;
    align-items: flex-start;
    background: linear-gradient(135deg, #f0e6ff, #ffe6f2);
    border-left: 4px solid #8B5CF6;
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 20px;
}

.custom-templates-info-box .info-link {
    color: #7C3AED;
    text-decoration: underline;
}

.custom-templates-info-box .info-link:hover {
    color: #5B21B6;
}

.custom-templates-info-box .info-icon {
    color: #8B5CF6;
    margin-right: 12px;
    font-size: 1.2rem;
}

.custom-templates-info-box .info-title {
    font-weight: 600;
    color: #5B21B6;
    margin-bottom: 4px;
}

.custom-templates-info-box .info-text {
    color: #6B7280;
    font-size: 0.95rem;
    margin-bottom: 0;
}

.category-button .spinner-border {
    vertical-align: middle;
    margin-right: 5px;
}

.category-button .bi-magic {
    margin-right: 5px;
}

.full-width-container {
    width: 100%;
    padding: 5px;
    box-sizing: border-box;
}

.full-width-button {
    width: 100%;
    box-sizing: border-box;
}

/* Ensure the category-container doesn't restrict width */
.category-container.full-width-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.numbered-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #4169E1; /* You can change this to match your color scheme */
    color: white;
    font-weight: bold;
    margin-right: 10px;
}

.progress {
    background-color: #e0e0e0;
    border-radius: 20px;
    height: 25px;
    overflow: hidden;
}

.progress-bar {
    background-image: linear-gradient(
        45deg,
        rgba(255, 255, 255, .15) 25%,
        transparent 25%,
        transparent 50%,
        rgba(255, 255, 255, .15) 50%,
        rgba(255, 255, 255, .15) 75%,
        transparent 75%,
        transparent 100%
    );
    background-size: 40px 40px;
    animation: stripes 1s linear infinite;
    transition: width 0.5s ease-out;
}

@keyframes stripes {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 40px 0;
    }
}

#mainProgressBar {
    background-color: #4CAF50; /* Green */
}

.chunk-progress-bar {
    background-color: #2196F3; /* Blue */
}

    
.navbar-logo {
    height: 50px;
    width: auto;
}

.black-text-gold-outline {
    color: black;
    text-shadow: 
        -1px -1px 0 #FFD700,  
            1px -1px 0 #FFD700,
        -1px  1px 0 #FFD700,
            1px  1px 0 #FFD700;
    -webkit-text-stroke: 1px #FFD700;
}

.row.justify-content-center {
    margin-right: 0;
    margin-left: 0;
}

.custom-btn {
    background-color: #000000;
    border-color: #000000;
    color: #FFFFFF;
}

.custom-btn:hover {
    background-color: #333333;
    border-color: #333333;
    color: #FFFFFF;
}

.btn.btn-dark.btn-selected {
    background-color: #000000 !important;
    color: #ffffff !important;
    border-color: #000000 !important;
}

/* Styles for registration and login */
.modal-content {
    max-width: 400px;
    width: 90%;
    margin: 0 auto;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.modal-content h2 {
    margin-bottom: 20px;
    color: #333;
    text-align: center;
    font-size: 24px;
}

.modal-content .form-group {
    margin-bottom: 15px;
}

.modal-content .form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    margin-bottom: 0.5rem;
    box-sizing: border-box;
}

.modal-content .form-group input:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 0 0.2rem rgba(76, 175, 80, 0.25);
}

.modal-content .login-btn,
.modal-content .register-btn {
    width: 100%;
    padding: 10px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.modal-content .login-btn:hover,
.modal-content .register-btn:hover {
    background-color: #45a049;
}

.modal-content .login-link,
.modal-content .register-link {
    text-align: center;
    margin-top: 15px;
    font-size: 14px;
}

.modal-content .login-link a,
.modal-content .register-link a {
    color: #4CAF50;
    text-decoration: none;
}

.modal-content .login-link a:hover,
.modal-content .register-link a:hover {
    text-decoration: underline;
}

@media (max-width: 576px) {
    .modal-content {
        width: 95%;
    }
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #555;
}

.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.register-btn {
    width: 100%;
    padding: 10px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.register-btn:hover {
    background-color: #45a049;
}

.login-link {
    margin-top: 20px;
    text-align: center;
    color: #666;
}

.login-link a {
    color: #4CAF50;
    text-decoration: none;
}

.login-link a:hover {
    text-decoration: underline;
}

.login-btn {
    width: 100%;
    padding: 10px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.login-btn:hover {
    background-color: #45a049;
}

main.login-page {
    padding-top: 210px;
}

.login-page {
    padding-top: 2rem;
}

.login-form-container {
    background-color: #fefefe;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);

}

hr {
    border: none !important;
    height: 2px !important;
    background: linear-gradient(to right, #3498db, #2ecc71) !important;
    margin: 30px 0 !important;
    opacity: 1 !important;
}

.btn-submit {
    background-color: #4CAF50;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.btn-submit:hover {
    background-color: #45a049;
}

@media (min-width: 768px) {
    .login-form-container {
        max-width: 400px;
        margin: 0 auto;
    }
}

.register-link {
    margin-top: 20px;
    text-align: center;
    color: #666;
}

.register-link a {
    color: #4CAF50;
    text-decoration: none;
}

.register-link a:hover {
    text-decoration: underline;
}

.image-gallery {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 20px;
    padding: 20px 0;
    min-height: 200px; /* Prevent layout shift */
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #888 #f1f1f1;
}

.image-gallery::-webkit-scrollbar {
    height: 8px;
}

.image-gallery::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.image-gallery::-webkit-scrollbar-thumb {
    background-color: #888;
    border-radius: 4px;
}

.image-gallery img {
    flex: 0 0 auto;
    height: 400px;
    width: auto;
    object-fit: contain;
    border: 1px solid #ccc;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.image-gallery img:hover,
.image-gallery img.selected {
    transform: translateY(-5px);
}

.image-gallery img.selected {
    border: 3px solid #007bff;
}

/* Template container styles */
.template-container {
    position: relative;
    flex: 0 0 auto;
    cursor: pointer;
}

.template-container:hover .gallery-image {
    transform: translateY(-5px);
}

.template-container.selected .gallery-image {
    border: 3px solid #007bff;
    transform: translateY(-5px);
}

/* Template name label - appears on hover */
.template-name-label {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #fff;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
    z-index: 20;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    pointer-events: none;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Arrow pointer */
.template-name-label::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #16213e;
}

/* Show on hover */
.template-container:hover .template-name-label {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Locked template styles */
.template-locked {
    cursor: not-allowed;
}

.template-locked .gallery-image {
    opacity: 0.6;
    filter: grayscale(20%);
}

.template-lock-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    z-index: 10;
    pointer-events: none;
}

.lock-icon {
    background: rgba(0, 0, 0, 0.85);
    color: #FFD700;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    animation: pulse-lock 2s ease-in-out infinite;
}

.premium-badge {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@keyframes pulse-lock {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 6px 16px rgba(255, 215, 0, 0.4);
    }
}

/* Word Compatible Info Box */
.word-compatible-info-box {
    background: linear-gradient(135deg, #FFA500 0%, #FF8C00 50%, #FF6B35 100%);
    border-radius: 20px;
    padding: 24px 32px;
    margin-bottom: 30px;
    box-shadow: 0 8px 24px rgba(255, 140, 0, 0.3);
    display: flex;
    align-items: flex-start;
    gap: 20px;
    position: relative;
    overflow: hidden;
    animation: slideDown 0.4s ease-out;
}

.word-compatible-info-box::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255,255,255,0.1) 25%, transparent 25%, transparent 50%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0.1) 75%, transparent 75%);
    background-size: 30px 30px;
    opacity: 0.3;
    pointer-events: none;
}

.info-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
}

.info-content {
    flex: 1;
    text-align: left;
    position: relative;
    z-index: 1;
}

.info-title {
    color: white;
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.info-text {
    color: white;
    font-size: 1rem;
    margin: 0;
    line-height: 1.6;
}

.info-text strong {
    font-weight: 700;
}

.info-link {
    color: white;
    text-decoration: underline;
    font-weight: 600;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.info-link:hover {
    color: #FFE5B4;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transform: translateX(2px);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
        max-height: 0;
    }
    to {
        opacity: 1;
        transform: translateY(0);
        max-height: 500px;
    }
}

@media (max-width: 768px) {
    .word-compatible-info-box {
        flex-direction: column;
        padding: 20px;
        text-align: center;
    }
    
    .info-icon {
        margin: 0 auto;
    }
    
    .info-content {
        text-align: center;
    }
    
    .info-title {
        font-size: 1.1rem;
    }
    
    .info-text {
        font-size: 0.95rem;
    }
}

.container {
    padding-right: 0;
}


#subscription-options {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
    margin-top: 50px;
    margin-bottom: 50px;
}

.tier-option {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 30px;
    width: 400px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.tier-option:hover {
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
    transform: translateY(-5px);
}

.tier-option h3 {
    color: #007bff;
    margin-bottom: 15px;
    font-size: 24px;
}

.tier-price {
    font-size: 28px;
    font-weight: bold;
    color: #28a745;
    margin-bottom: 15px;
}

.tier-tokens {
    color: #6c757d;
    margin-bottom: 15px;
    font-size: 18px;
}

.tier-description {
    color: #495057;
    margin-bottom: 25px;
    line-height: 1.5;
}
#user-info {
    font-family: Arial, sans-serif;
    font-size: 12px;
    color: #666;
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 8px 12px;
    margin-top: 10px;
    display: inline-block;
}

#token-info, #subscription-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#token-info p, #subscription-info p {
    margin: 4px 0;
}

#tokens-used, #token-limit, #tier-name {
    font-weight: bold;
    color: #444;
}

.subscribe-button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-size: 16px;
    font-weight: bold;
margin-top: 20px;
}

.subscribe-button:hover {
    background-color: #0056b3;
}

#custom-context-menu {
    background-color: #f9f9f9;
    border: 1px solid #ccc;
    padding: 5px 0;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.1);
    }
    
    #custom-context-menu ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    }
    
    #custom-context-menu li {
    padding: 5px 10px;
    cursor: pointer;
    }
    
    #custom-context-menu li:hover {
    background-color: #f0f0f0;
    }

.instruction-card {
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid rgba(102, 126, 234, 0.1);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.instruction-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2, #f093fb);
    z-index: 1;
}

.instruction-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.12);
}

.instruction-card .card-title {
    color: #2d3748;
    margin-bottom: 24px;
    font-weight: 600;
    font-size: 1.4em;
    position: relative;
    padding-bottom: 12px;
}

.instruction-card .card-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 2px;
}

.instruction-card h5:not(.card-title) {
    color: #4a5568;
    margin-top: 32px;
    margin-bottom: 16px;
    font-weight: 600;
    font-size: 1.2em;
    position: relative;
    padding-left: 20px;
}

.instruction-card h5:not(.card-title)::before {
    content: "›";
    position: absolute;
    left: 0;
    color: #667eea;
    font-size: 1.2em;
    font-weight: bold;
    top: 50%;
    transform: translateY(-50%);
}

.code-example {
    background-color: #f5f5f5;
    padding: 15px;
    border-radius: 4px;
    margin: 15px 0;
    font-family: monospace;
    line-height: 1.6;
}

.instruction-text {
    line-height: 1.8;
    margin-bottom: 15px;
}

.markdown-list {
    margin: 15px 0;
    padding-left: 20px;
}

.markdown-list li {
    margin-bottom: 10px;
    line-height: 1.6;
}
/*Fix video banding on left */
#demo-video {
    left: -2px; 
    border: none;
}


.cookie-consent-banner {
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.text-highlighter {
    position: relative;
    margin: 40px auto;
    background-color: #f8f9fa;
    text-align: center;
    line-height: 1.7em;
    overflow: hidden;
    font-weight: bold;
}
        
.text-highlighter span {
    color: #fff; /* This will be solid white text */
    background: linear-gradient(60deg, #3629a2, #00ceff); 
    padding: 0.225rem 0.5rem;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
}

.text-highlighter .title-text {
    color: #fff700; 
}

/*Editor header*/
.editor-explainer, .options-explainer {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 12px 16px;
    margin-bottom: 8px;
    font-size: 14px;
}

.editor-explainer i, .options-explainer i {
    color: #0d6efd;
}

.options-checks {
    background-color: white;
    padding: 12px;
    text-align: left;
}

.form-check-input {
    border: 2px solid #0d6efd;
}

/*textform header*/
.text-input-container {
    text-align: left;
    margin-bottom: 0;  /* Remove any bottom margin */
}

.input-header {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-bottom: none;
    border-radius: 6px 6px 0 0;
    padding: 8px 12px;
    font-size: 14px;
    margin-bottom: 0;  /* Remove any bottom margin */
}

.input-header i {
    color: #0d6efd;
    margin-right: 6px;
}

/*Pro plan highlighter*/

.tier-option-highlighted {
    border: 2px solid #007bff;
    transform: scale(1.03);
    box-shadow: 0 0 15px rgba(0, 123, 255, 0.5);
    position: relative;
    z-index: 10;
}
.most-popular-banner {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #007bff;
    color: white;
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/*Sign up CSS */

.signup-options {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-top: 15px;
}
.subscribe-button {
    width: 240px;
    padding: 8px 16px;
    border: 1px solid #1a73e8;
    border-radius: 4px;
    background-color: #1a73e8;
    color: white;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s;
}
.subscribe-button:hover {
    background-color: #1557b0;
}
.btn-google {
    width: 240px;
    padding: 8px 0;
    background: none;
    border: none;
    display: inline-block;
    text-align: center;
}
.btn-google:hover {
    opacity: 0.9;
}
.btn-google img {
    width: 240px;
    height: auto;
}

/* Target TinyMCE specific elements */
.tox.tox-tinymce {
    border-top-left-radius: 0 !important;
    border-top-right-radius: 0 !important;
    margin-top: 0 !important;  /* Remove any top margin */
}

@media (max-width: 768px) {
    .cookie-consent-banner {
        font-size: 0.9rem;
    }

    .tier-option {
        border: 1px solid #ddd;
        padding: 20px;
        margin-bottom: 20px;
        border-radius: 5px;
    }
    
    .tier-option h3 {
        margin-top: 0;
    }
    
    .tier-option button {
        margin-top: 10px;
    }
}

/* Media Queries */
@media (max-width: 1200px) {
    :root {
        --scale-factor: 0.9;
    }
}

@media (max-width: 992px) {
    :root {
        --scale-factor: 0.8;
    }
    .site-header {
        height: auto;
    }
    body {
        padding-top: 76px;
    }
    .gold-bar {
        top: 76px;
    }
}

@media (max-width: 768px) {
    :root {
        --scale-factor: 0.7;
    }
    h2 {
        font-size: 2rem;
    }
    .gold-rectangle-container {
        padding: 24px;
    }
}

@media (max-width: 576px) {
    :root {
        --scale-factor: 0.6;
    }
    h2 {
        font-size: 1.5rem;
    }
    .gold-rectangle-container {
        padding: 16px;
    }
    .carousel-item img {
        max-width: 100%;
    }
    .image {
        width: 90%;
    }
}

@media print {
    body, html {
        background: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    body * {
        visibility: hidden !important;
    }
    #iframeContainer, #iframeContainer * {
        visibility: visible;
    }
    #iframeContainer {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
    }
    #editableResult, #editableResult * {
        visibility: visible !important;
    }
    #editableResult {
        position: absolute !important;
        left: 0 !important;
        top: 0 !important;
        width: 100% !important;
        height: auto !important;
        padding: 20px !important;
        margin: 0 !important;
        border: none !important;
        background: white !important;
        box-shadow: none !important;
    }
    .no-print, .no-print * {
        display: none !important;
    }
    .container, .row, .col-md-8 {
        padding: 0 !important;
        margin: 0 !important;
    }
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
        page-break-inside: avoid;
    }
    p {
        page-break-inside: avoid;
    }
    div {
        page-break-inside: avoid;
    }
    .print-friendly {
        width: 100%;
        margin: 0;
        padding: 0;
    }
    .new-page {
        page-break-before: always;
    }
}

@page {
    margin: 20px;
}

/* Custom Modal Styles */
#appModal .modal-content {
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

#appModal .modal-header {
    background-color: #000000; /* Match site header */
    color: #fff;
    border-bottom: 1px solid #4169E1; /* Accent from gradient */
}

#appModal .modal-header .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

#appModal .modal-title {
    font-weight: 600;
}

#appModal .modal-body {
    padding: 1.5rem;
    background-color: #ffffff;
}

#appModal .modal-footer {
    background-color: #f8f9fa; /* Match site footer */
    border-top: 1px solid #dee2e6;
}

/* Primary button in modal footer */
#appModal .modal-footer .btn-primary,
#copyShareLinkBtn {
    background: linear-gradient(45deg, #4169E1, #8A2BE2);
    border: none;
    color: white;
    font-weight: bold;
    transition: all 0.3s ease;
}

#appModal .modal-footer .btn-primary:hover,
#copyShareLinkBtn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Secondary button in modal footer */
#appModal .modal-footer .btn-secondary {
    background-color: #6c757d;
    border-color: #6c757d;
}

/* Feature items styling */
.feature-item {
    transition: all 0.2s ease;
    padding: 12px;
    border-radius: 8px;
}

.feature-item:hover {
    background-color: rgba(102, 126, 234, 0.05);
    transform: translateX(4px);
}

.feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(116, 75, 162, 0.1));
    color: #667eea;
    font-size: 1.1em;
    flex-shrink: 0;
}

.feature-content {
    color: #2d3748;
    font-size: 0.95em;
    line-height: 1.4;
}

.feature-content strong {
    font-weight: 600;
}