.canvas-container {
    position: relative;
    width: 100%;
    background-color: white;
}

#mainCanvas {
    border: 1px solid #ccc;
    width: 100%;
    height: 100%;
}

/* Start canvas overlay styles */
#canvas-overlay {
    position: absolute;
    inset: 0;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    pointer-events: auto;
    z-index: 20;
}
#canvas-overlay .overlay-inner {
    max-width: 90%;
    width: 100%;
    padding: 40px;
    border: 2px dashed rgba(0,0,0,0.2);
    background: rgba(255,255,255,0.85);
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}
#canvas-overlay .overlay-inner h2 {
    margin: 0 0 8px;
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 1.4rem;
    color: #333;
}
#canvas-overlay .overlay-inner p {
    margin: 0;
    font-size: 0.95rem;
    color: #555;
}
#canvas-overlay.is-dragging .overlay-inner {
    border-color: #2e9a4a;
    background: rgba(46,154,74,0.06);
}
 
.canvas-container { position: relative; }
#canvas-overlay.hidden { display: none !important; }

@media (max-width: 575px) {
    #canvas-overlay .overlay-inner {
        padding: 10px;
    }
}
@media (max-width: 359px) {
    #canvas-overlay .overlay-inner h2 {
        font-size: 1.2rem;
    }
}
/* End canvas overlay styles */

.designer-tab-section .nav-item .nav-link {
    border-color: #dee2e6 #dee2e6 #fff;
    border-bottom-width: 0px;
}

.designer-tab-section .nav-tabs {
    border-bottom-width: 0px;
}

.designer-tab-section .nav-item .nav-link.active {
    background-color: #929292;
    color: #fff;
    border: 1px solid transparent;
}

.designer-tab-section .tab-content {
    border-top-right-radius: 0.5rem;
    border-bottom-right-radius: 0.5rem;
    border-bottom-left-radius: 0.5rem;
}

.designer-tab-section .tab-content #image-controls .form-group select,
.designer-tab-section .tab-content #text-controls .form-group select {
    width:auto; 
    display:inline-block;
    min-width:unset;
    max-width:100%;
}
.designer-tab-section .tab-content #text-controls .form-group #color-select {
    width: 40px;
    padding: 4px;
}

#diy-delete-buttons {
    height: 50px;
}

.image-carousel {
    display: flex;
    overflow-x: scroll;
    padding-bottom: 10px;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    position: relative;
    scrollbar-width: none;
    align-items: center;
}

.image-carousel::-webkit-scrollbar {
    display: none;
}

.image-carousel-item {
    flex: 0 0 auto;
    margin-right: 10px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    max-height: 200px;
}

.image-carousel-item.selected img {
    border: 3px solid #078B8D;
    border-radius: 5px;
    transition: border-color 0.2s;
}

.image-carousel-item img {
    display: block;
    max-width: 100%;
    height: auto;
    max-height: 200px; 
}

.image-carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    cursor: pointer;
    z-index: 10;
    height: 40px;
    width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.image-carousel-nav:hover {
    opacity: 1;
}

.image-carousel-nav.prev {
    left: 0px;
}

.image-carousel-nav.next {
    right: 0px;
}

#image-carousel-container {
    position: relative;
    padding: 0 46px;
    display: flex;
    align-items: center;
}

#image-carousel-spinner {
    position: absolute;
    left: 50%;
}

#viewImageModal {
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}
#viewImageModal.modal-visible {
    visibility: visible;
    opacity: 1;
}
#viewImageModal.creator-preview-modal .modal-dialog {
    max-width: none;
    width: auto;
    margin: 1.75rem auto;
}
#viewImageModal.creator-preview-modal .modal-content {
    width: auto;
}
#viewImageModal.creator-preview-modal .modal-header {
	padding-bottom: 1rem;
}
#viewImageModal.creator-preview-modal .modal-body {
	padding-top: 1rem;
	padding-bottom: 1rem;
}

/* Font Picker Styles */
.font-picker-container {
    position: relative;
    display: inline-block;
    min-width: 150px;
    z-index: 1000;
    color: #000;
}

.selected-font-display {
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #fff;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.selected-font-display[data-is-open="true"] {
    border-radius: 4px 4px 0 0;
}

.font-name-text {
    flex-grow: 1;
    white-space: nowrap;
    overflow: hidden;
    margin-right: 10px;
}

.arrow-icon {
    font-size: 0.8em;
    transition: transform 0.2s;
}

.selected-font-display[data-is-open="true"] .arrow-icon {
    transform: rotate(180deg);
}

/* The dropdown list */
.font-list-dropdown {
    list-style: none;
    padding: 0;
    margin: 0;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    border: 1px solid #ccc;
    border-top: none;
    border-radius: 0 0 4px 4px;
    background-color: #fff;
    max-height: 250px;
    overflow-y: auto;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    display: none;
}

.font-list-dropdown.visible {
    display: block;
}

.font-list-dropdown li {
    padding: 8px 12px;
    cursor: pointer;
    font-size: 16px;
    white-space: nowrap;
}

.font-list-dropdown li:hover {
    background-color: #f0f0f0;
}

@media (max-width: 575.98px) {
    #images {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}