body {
    font-family: Arial, sans-serif;
    text-align: center;
    padding: 20px;

    background-color: #f8ebff;
}

#carousel {
    display: none;
}

/* Carousel Container */
#carousel {
   
    overflow-x: scroll;
    gap: 20px;
    width: 100%;
    padding: 20px 0;
}



.slide-title, .slide-subtitle {
    display: block;
    max-height: 8em; /* Adjust based on desired height */
    overflow: hidden;
    margin: 0; /* Prevent default margins from affecting layout */
}

.slide-title {
    display: block;
    max-height: 3.5em; /* Adjust based on desired height */
    overflow: hidden;
    margin: 0; /* Prevent default margins from affecting layout */
}


.rearrange-btn-container {
    position: absolute;
    top: 5px;
    right: 5px;
    display: none;
}

.delete-btn {
    margin-left: 5px;
    color: #dc3545;
    border-color: #dc3545;
}

.delete-btn:hover {
    background-color: #dc3545;
    color: white;
}

.delete-btn {
    margin-left: 5px;
    color: #dc3545;
    border-color: #dc3545;
}

.delete-btn:hover {
    background-color: #dc3545;
    color: white;
}

/* Styling for the 'Add New' slide */
.add-new-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed #ccc;
    background-color: #f9f9f9;
    cursor: pointer;
    transition: background-color 0.3s, border-color 0.3s;
}

.add-new-slide:hover {
    background-color: #f0f0f0;
    border-color: #999;
}

#addNewButton {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 1.2rem;
    color: #555;
}

#addNewButton .fa-plus {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.slide:hover .rearrange-btn-container {
    display: block;
}



/* Individual Slide */
.slide {
    position: relative;
    display: flex;
    flex: 0 0 300px; /* Adjust slide size */
    /* background-image: url(img/bg.jpg); */
    background-size: cover; /* Scale the image to completely cover the slide */
    background-position: center; /* Center the image */
    background-repeat: no-repeat; /* Prevent tiling */
    height: 375px;
    padding: 20px;

    border-radius: 15px;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
    color: #000;
    text-align: center;
    overflow: hidden;
    flex-direction: column; /* Stack elements vertically */
    justify-content: space-between; /* Push profile section to the bottom */
    z-index: 2;
    

}

/* Default Theme */
.theme-modern {
    font-family: "Inter", sans-serif;
    font-weight: 400;
    font-style: normal;
}


/* Nature Theme */
.theme-nature {
    color: #ffffff !important;
    font-family: "Quattrocento", serif;
    font-weight: 400;
    font-style: normal;
}

/* Modern Theme */
.theme-default  {
    font-family: "Outfit", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
}

.theme-default.slide-2 .slide-bg-image {
    background-size: 200%;
    background-position: bottom;
    width: 120%;
    height: 110%;
}
.theme-default.slide-3 .slide-bg-image {
    background-size: 150%;
    background-position: top;
    width: 150%;
    height: 120%;
}
.theme-default.slide-4 .slide-bg-image {
    background-size: 170%;
    width: 190%;
    height: 100%;
}
.theme-default.slide-5 .slide-bg-image {
    background-size: 100%;
    background-position: top;
    width: 140%;
    height: 190%;
}

.theme-classic.slide-2 {
    background-size: 200%;
    background-position: bottom;
}
.theme-classic.slide-3 {
    background-size: 150%;
    background-position: top;
}
.theme-classic.slide-4 {
    background-size: 270%;
}
.theme-classic.slide-5 {
    background-size: 250%;
    background-position: top;
}

.slide-bg-image {
    pointer-events: none; /* Ensure the background image doesn't interfere with interaction */
}
.slide-1.theme-default .slide-bg-image {
    width: 100% !important;
    height: 100% !important;
}
.slide-2.theme-default .slide-bg-image {
    width: 130% !important;
    height: 180% !important;
}
.slide-3.theme-default .slide-bg-image {
    width: 150% !important;
    height: 100% !important;
}
.slide-4.theme-default .slide-bg-image {
    width: 190% !important;
    height: 110% !important;
}
.slide-5.theme-default .slide-bg-image {
    width: 110% !important;
    height: 100% !important;
}





/* Classic Theme */
.theme-classic {
    font-family: "Inria Serif", serif;
    font-weight: 400;
    font-style: normal;
    
}

/* Background SVG */
.background-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 150px;
    overflow: hidden;
    z-index: 0;
}

.background-svg svg {
    width: 100%;
    height: 100%;
}

/* Slide Content */
.slide-content {
    position: relative;
    z-index: 1; /* Ensure content appears above the SVG */
    padding-top: 60px; /* Add padding to avoid overlapping SVG */
}

/* Editable Elements */
.slide h1, .slide h2, .slide p {
    margin: 10px 0;
    font-weight: bold;
    padding: 0px 5px;
}


.slide h1 {
    font-size: 2.3em;
}

.slide h2 {
    font-size: 1em;
    font-weight: 400;
}

.slide p {
    font-size: .8em;
}


/* Content Editable Styling */
[contenteditable="true"] {
    outline: none;
    border: 1px dashed rgba(255, 255, 255, 0.1);
}

[contenteditable="true"]:focus {
    border-color: #00d4ff;
    background: rgba(255, 255, 255, 0.3);
}

/* Hide contenteditable styling when generating PDF */
body.hide-contenteditable [contenteditable="true"] {
    outline: none !important;
    border: none !important;
}

/* Highlight selected slide */
.slide.selected {
   
    background-color: #f0f8ff;
    box-shadow: 0 0 0 2px #007bff; /* Increased outer border on selected */
}

/* Editor UI */
#editor {
    margin-top: 20px;
    padding: 20px;
    background: #ffffff;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    margin: auto;
}


/* Slide Container */
.slide {
    position: relative;
    flex: 0 0 300px; /* Slide width */
    height: 375px; /* Slide height */
    padding: 20px;
    background-color: #ffffff;
    border-radius: 15px;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
    color: #212529;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Align content to the top */
    gap: 10px; /* Space between elements */
}

/* Profile Section */
#profile {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-top: auto; /* Push the profile section to the bottom of the slide */
}

/* Profile Picture */
.profile-picture img {
    border-radius: 50%; /* Make the image circular */
    object-fit: cover; /* Ensure the image fits inside the circle */
    border: 2px solid #ddd; /* Optional border for styling */
    cursor: pointer; /* Indicates the image is editable */
    width: 40px;
    height: 40px;
}

/* Profile Name */
#profileName {
    font-size: 0.8rem;
    font-weight: 300;
    cursor: text; /* Indicates the name is editable */
}

h5.slide-profile-name {
    font-size: 0.85rem !important;
}


/* Ensure the slide has enough space for all content */
.slide {
    position: relative;
    flex: 0 0 300px;
    height: 375px; /* Adjust height for profile section */
    width: 300px;
    padding: 20px;
    border-radius: 15px;
    background-color: #ffffff;
    text-align: left;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Align content to the top */
}

/* Profile Section */
#profile {
    display: flex;
    align-items: center;
    margin-top: auto; /* Push profile section to the bottom */
}

.profile-picture img {
    border-radius: 50%; /* Make the image circular */
    object-fit: cover; /* Ensure proper fit */
    border: 2px solid #ddd;
    cursor: pointer; /* Optional: Indicate editability */
}

/* Subheading (Subtitle) */
#subtitle {
    overflow: hidden; /* Hide overflowed text */
    text-overflow: ellipsis; /* Add ellipsis when text is truncated */
    width: 100%; /* Ensure the subtitle stays within the parent width */
}

#title {
    text-overflow: ellipsis; /* Add ellipsis when text is truncated */
    width: 100%; /* Ensure the subtitle stays within the parent width */
}

/* Profile Section */
#profile {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-top: auto; /* Push the profile section to the bottom */
    padding: 5px; /* Optional: Add padding for spacing */
}





/* LINKED IN POST styling */
#linkedinpost {
    background-color: #ffffff;
    border: 1px solid #e1e9ee;
    border-radius: 8px;
    padding: 16px;
    max-width: 480px;
    margin: 20px auto;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    font-family: "Arial", sans-serif;
}

#copyPostButton {
    flex-shrink: 0; /* Prevents button from shrinking */
    padding: 8px 12px;
    font-size: 14px;
    border-radius: 6px;
}

/* Profile section styling */
#profile {
    margin-bottom: 12px;
}

.profile-picture img {
    border-radius: 50%;
    border: 2px solid #e1e9ee;
}

#profileNamelinkedin {
    font-size: 16px;
    font-weight: 600;

}

/* LinkedIn post textarea styling */
.linkedin-post textarea {
    width: 100%;
    resize: none;
    border: 1px solid #e1e9ee;
    border-radius: 6px;
    padding: 8px;
    font-size: 14px;
    line-height: 1.6;
    color: #333333;
    font-family: "Arial", sans-serif;
    min-height: 300px;
}

.linkedin-post textarea::placeholder {
    color: #999999;
}

.linkedin-post textarea:focus {
    outline: none;
    border-color: #0a66c2;
    box-shadow: 0 0 4px rgba(10, 102, 194, 0.3);
}

/* Add spacing and alignment */
.linkedin-slide {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.d-flex {
    display: flex;
}

.align-items-center {
    align-items: center;
}

.text-start {
    text-align: start;
}

/* Overall font and spacing adjustments */
#linkedinpost h5 {
    margin: 0;
}

#linkedinpost {
    font-size: 14px;
    color: #555555;
}



.add-new-slide {
    background-color: #f8f9fa; /* Light gray background */
    border: 2px dashed #007bff; /* Dashed blue border */
    height: 200px; /* Adjust based on your slide size */
    position: relative;
}

.add-new-slide button {
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.add-new-slide button span {
    font-size: 2rem;
    margin-right: 10px;
}


.display-6 {
    font-family: "Outfit", sans-serif;
    font-weight: 600;
    font-style: normal;
    font-size: 3.5rem;
}



/* NEW STYLE */

@media (max-width: 575.98px) {
    .container, .container-sm {
        padding-left: 15px;  /* Add some padding for smaller screens */
        padding-right: 15px; /* Add some padding for smaller screens */
        max-width: 100%;    /* Ensure it takes up the full width */
    }
}


.prompt-container {
    text-align: center;
    background-color: #E9D5FF;
    border: 3px solid #000;
    padding: 30px 20px 30px 20px;
    width: 800px;
    border-radius: 15px;
    box-shadow: 4px 4px 0px #000;
  }


  h1 {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 15px;
  }
  
  .highlight {
    color: #b262ff;
  }
  
  p {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 20px;
  }
  
  .input-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
  }
  
  .prompt-input {
    padding: 10px;
    border: 2px solid #000;
    border-radius: 5px;
    outline: none;
    box-shadow: 4px 4px 0px #000;
  }
  
  button {
    padding: 10px 15px;
    background-color: #d6a3ff;
    color: #000;
    font-weight: bold;
    border: 2px solid #000;
    border-radius: 5px;
    cursor: pointer;
    box-shadow: 2px 2px 0px #000;
    transition: all 0.2s ease;
  }

  .button-secondary {
    padding: 10px 15px;
    background-color: beige;
    color: #000;
    font-weight: bold;
    border: 2px solid #000;
    border-radius: 5px;
    cursor: pointer;
    box-shadow: 2px 2px 0px #000;
    transition: all 0.2s ease;
  }
  .button-secondary:hover {
    background-color: rgb(202, 202, 117);
    transform: translateY(-2px);
    box-shadow: 4px 4px 0px #000;
  }
  
  button:hover {
    background-color: #c48cff;
    transform: translateY(-2px);
    box-shadow: 4px 4px 0px #000;
  }
  
  .examples {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
  }
  
  .example-text {
    font-size: 14px;
    margin-bottom: 10px;
  }
  
  .examples button {
    font-size: 12px;
    padding: 8px 10px;
  }
  
  .subheader-title {
    width: 800px;
    text-align: center;
    padding-top: 10px;
    width: 800px;
    margin: 0 auto;
    line-height: 2rem;

  }