body, html {
    margin: 0;
    padding: 0;
    overflow: hidden;
}
body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #d9edff !important;
}


.viewport {
    display: flex;
    width: 100vw;
    height: 100vh;
    overflow: scroll;
}

#svgContainer {
    flex: 1;
    height: 100%;
    overflow: hidden;
    padding-bottom: 45px;
    margin-left: 150px; /* Adjust the margin to match the sidebar width */;
}

.svg-wrapper {
    display: inline-block;
    position: relative;
    width: fit-content; /* Set the width to fit the content */
    height: fit-content; /* Set the width to fit the content */
    border: 1px solid #ddd; /* Add a border for visualization */
    box-sizing: border-box; /* Include border in sizing */
    background:#fff;
}

/* Reset margin and padding for body element */
body {
    margin: 0;
    padding: 0;
}

/* Sidebar styles */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 150px; /* Adjust the width of the sidebar as needed */
    height: 100vh;
    background-color: #333;
    overflow-y: auto;
    z-index: 9999;
}

.template-thumbnails {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.template-thumbnail {
    width: 100px;
    height: 75px;
    margin: 10px;
    cursor: pointer;
    border: 2px solid transparent;
}

.template-thumbnail:hover {
    border-color: #fff;
}

/* Styles for mobile devices */
@media (max-width: 767px) {
    .viewport {
        position: absolute;
        top: 0;
        left: 0;
        width: 100vw; /* Use full viewport width on mobile */
        height: 100vh; /* Use full viewport height on mobile */
        overflow: auto;
        background-color: #fff; /* Add your desired background color */
    }

    #svgContainer {
        display: flex;
        justify-content: flex-start;
        align-items: flex-start;
        width: 100%; /* Use full width within viewport */
        height: 100%;
        overflow: hidden;
        padding-bottom: 45px;
    }

    .svg-wrapper {
        display: inline-block;
        position: relative;
        left: 0; /* This will align the SVG content to the left */
        width: 100%; /* Use full width within svgContainer */
        transform: translateX(-75px);
        border: 0;
    }
    
}


/*Selection and aesthetic stuff */
::selection{
    background:#d9edff;
}
input[type=text]:focus{
    background:transparent;
    outline:none;
}
input[type=text]::selection{
    background:#d9edff;
    outline:none;
}




.custom-file-label {
    background-color: #f0f8ff;
    border: 1px solid #7ec7ff;
    border-radius: 5px;
}

.btn-secondary {
    background-color: #e0e6ff;
    border-color: #b0c0ff;
    color: #333;
}

.btn-primary {
    background-color: #7ec7ff;
    border-color: #7ec7ff;
}

.btn-primary:hover {
    background-color: #6bb4ff;
    border-color: #6bb4ff;
}

/* Center the modal vertically */
.modal-dialog-centered {
    display: flex;
    align-items: center;
    min-height: calc(100% - 1rem);
}
/* Center the modal both horizontally and vertically */
.modal-dialog {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1050; /* Adjust the z-index as needed */
}

/* Optional: Style modal header, body, footer */
.modal-header, .modal-body, .modal-footer {
    padding: 1rem;
}

/* Optional: Style modal title */
.modal-title {
    font-size: 24px;
    font-weight: bold;
    color: #333333; /* Dark gray text color */
    margin-bottom: 10px;
    font-family: 'Product Sans', sans-serif;
}

/* Reset some Bootstrap styling */
.modal-content {
    background-color: initial;
    border: none;
    box-shadow: none;
    padding: 0;
    
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

#imageReplaceModal .modal-dialog {
    margin: 0;
}

#imageReplaceModal .modal-content {
    border: none;
    box-shadow: none;
}
#imageReplaceModal .modal-dialog {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
#imageReplaceModal {
    z-index: 1050; /* Or a value that works for your layout */
}


/* Styling for the modal backdrop */
.modal-backdrop {
    z-index: 1040; /* Adjust the z-index if needed */
    background-color: rgba(0, 0, 0, 0.4); /* Semi-transparent black background overlay */
}

/* Style the close button */
.close {
    color: #333333; /* Dark gray text color */
    font-size: 1.5rem;
}