
.container {
    display: flex;
    flex-direction: row;
    height: 100vh;
}

.controls {
    width: 250px;
    padding: 20px;
    background-color: #f4f4f4;
    border-right: 1px solid #ddd;
}

.canvas-wrapper {
    position: relative;
    flex-grow: 1;
    background-color: #ccc;
}


.canvas-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Apply specific z-index to each canvas */
#backgroundCanvas {
    z-index: 1;
    position: absolute;
}

#textCanvas {
    z-index: 2;
    position: absolute;
}

#foregroundCanvas {
    z-index: 3;
    position: absolute;
}


#editor {
  margin-top: 20px;
}



.controls label {
  display: block;
  margin: 5px 0;
}

#canvasContainer {
  width: 600px;
  height: auto;
  overflow: hidden;
}


#imagePreviewContainer {
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: auto;
  max-height: 90vh; /* Ensures the container never exceeds screen height */
}

#imagePreview {
  max-width: 100%;
  max-height: 90vh; /* Keep the image within screen height */
  height: auto;
  width: auto;
  object-fit: contain;
}
#canvas {
  display: block;
  max-height: 90vh;
  border: 1px solid #ccc;
  margin-top: 10px;
}
.container {
  display: flex;
  justify-content: center;
  padding: 20px;
}



input[type="file"] {
  display: none;
}

#uploadLabel {
  padding: 10px 20px;
  background-color: #7457EC;
  color: rgb(255, 255, 255);
  cursor: pointer;
  border-radius: 5px;
  font-weight: bold;
}

#addTextBtn,  #uploadBtn #uploadScreen{
  padding: 10px 20px;
  border: none;
  background-color:  #7457EC;
  color: rgb(255, 255, 255);
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;

}

#downloadBtn {
  padding: 10px 20px;
  border: none;
  background-color:  #7457EC;
  color: rgb(255, 255, 255);
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;

}
#addTextBtn:hover,
#downloadBtn:hover,
#uploadLabel:hover {
  background-color:  #7457EC;

}

#textControls {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  width: 100%;
  max-width: 300px;
}

#canvas {
  border: 2px solid #ccc;
  max-width: 100%;
  max-height: 90vh;
}
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: linear-gradient(135deg, #fff1eb, #ffdde1);
}

.upload-screen {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.upload-button {
  padding: 15px 30px;
  background-color: #4CAF50;
  color: white;
  font-size: 18px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

.upload-button:hover {
  background-color: #45a049;
}

.mainContent {
  display: flex;
  padding: 30px;
  gap: 40px;
}



canvas {
  border: 2px solid #ccc;
  max-width: 100%;
  max-height: 80vh;
}

#generateBtn{
  padding: 10px 20px;
  background-color:  #5773F2;
  color: rgb(255, 255, 255);
  border: none;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
}

#generateBtn:hover {
  background-color: linear-gradient(90deg, #5773F2, #7457EC, #893DE7);

}
#imageUpload {
  padding: 10px 20px;
  background-color:  #5773F2;
  color: rgb(255, 255, 255);
  border: none;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
}

#textControls {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.main-component {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 300px; /* full screen height */
    text-align: center;
    padding-left: 20px;
    padding-right:20px;
    padding-bottom: 0px;
    margin-bottom: 0px;
    box-sizing: border-box;
}

.text h1 {
    font-size: 2rem;
    margin-bottom: 20px;
}


.text {
    flex: 1; 
    padding-right: 20px; 
    color:  linear-gradient(90deg, #5773F2, #7457EC, #893DE7);
}

.header-container {
    display: flex;
    align-items: center; /* Vertically align items */
    justify-content: space-between; /* Separate logo/title and nav links */
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px; /* Optional: add horizontal padding */
}

/* Logo and title container */
.logo-container {
    display: flex; /* Arrange items horizontally */
    align-items: center; /* Vertically align logo and title */
    gap: 10px; /* Space between logo and title */
}

/* Logo styles */
.site-logo {
    height: 40px; /* Adjust as needed */
    width: auto; /* Maintain aspect ratio */
    display: block; /* Avoid inline spacing issues */
}

/* Title styles */
.site-title {
    font-size: 24px; /* Adjust font size as needed */
    color: linear-gradient(90deg, #5773F2, #7457EC, #893DE7);
 /* Title color */
    margin: 0; /* Remove unwanted spacing */
    line-height: 1; /* Ensure no extra vertical space */
}


nav {
    display: flex;
}
nav a {
    color:  linear-gradient(90deg, #5773F2, #7457EC, #893DE7);
    text-decoration: none;
    padding: 10px;
    margin-left: 20px;
    transition: color 0.3s ease, border-bottom 0.3s ease;
    border-bottom: 2px solid transparent;
}

nav a:hover {
    color: #000000; /* Brighter on hover */
    border-bottom: 2px solid #7457EC; /* Soft gradient-matching accent */
}

@media (max-width: 480px) {
    
    .header-container {
        flex-direction: column;
        text-align: center;
    }

    nav {
        justify-content: center;
        margin-top: 10px;
    }

    nav a {
        margin-left: 10px;
        margin-right: 10px;
    }
}
.hamburger {
    font-size: 2rem;
    cursor: pointer;
    display: none;
    position: absolute;
    right: 20px;
    top:15px;
}
.nav-links {
    display: flex;
    gap: 20px;
}

.nav-links a {
    color: linear-gradient(90deg, #5773F2, #7457EC, #893DE7);
    text-decoration: none;
    font-size: 1rem;
}
@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        right: 20px;
        background: #000000;
        padding: 10px;
        border-radius: 5px;
    }

    .nav-links.show {
        display: flex;
    }
  }

.center-wrapper {
  text-align: center;
}

.examples-section {
  padding: 40px 0;
  text-align: center;
}

.examples-section h2 {
  font-size: 28px;
  margin-bottom: 30px;
}

.examples-row {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.example {
  flex: 1 1 50%;
  padding: 10px;
  box-sizing: border-box;
}

.example img {
  width: 100%;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.example img:hover {
  transform: scale(1.03);
}
@media (max-width: 768px) {
  .example {
    flex: 1 1 100%;
  }
}
.examples-section {
  padding: 40px 0;
  text-align: center;
}

.examples-section h2 {
  font-size: 28px;
  margin-bottom: 30px;
}

.examples-row {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.example {
  flex: 1 1 50%;
  padding: 10px;
  box-sizing: border-box;
}

.example img {
  width: 100%;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.example img:hover {
  transform: scale(1.03);
}

.footer {
    background-color: #ffffff;
    color:  #352fe4;
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid #272E3A; /* Subtle separator line */
}
#uploadBtn {
  background-color:  #7457EC;
  color: white;
  padding: 12px 24px;
  font-size: 16px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

#uploadBtn:hover {
  background-color: #7457EC;
  transform: scale(1.05);
}

#uploadBtn:active {
  transform: scale(0.98);
}

#imageUpload {
  display: none; /* Hide the default ugly file input */
}


/* On mobile (max width 600px), stack vertically */
@media (max-width: 768px) {
  .examples-row {
    flex-direction: column;
  }
}
#mainContent {
  display: flex;
  gap: 20px; /* spacing between columns */
}

/* Stack vertically on small screens */

/* Wrapper for main content */
#mainContent {
  display: flex;
  flex-direction: row;        /* side by side by default */
  gap: 20px;                  /* space between columns */
}

/* Left column takes 70% */
.left-column {
  flex: 0 0 70%;
  border: 2px solid black;
  padding: 10px;
  box-sizing: border-box;
}

/* Right column takes 30% */
.right-column {
  flex: 0 0 30%;
  border: 2px solid black;
  padding: 10px;
  box-sizing: border-box;
}

/* Stack vertically on smaller screens */
@media (max-width: 768px) {
  #mainContent {
    flex-direction: column;
  }
  .left-column, .right-column {
    flex: 0 0 auto;
    width: 100%;
  }
}
