html, body {
  min-width: 840px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

*::-webkit-scrollbar {
  display: none;
}
img {
  max-width: 100%;
  height:auto;
}

.page-title {
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 10px;
}

:root { --bg-light: #f5f5f5; --text-light: #222; --bg-dark: #121212; --text-dark: #f5f5f5; }
html[data-theme="light"] { background: var(--bg-light); color: var(--text-light); }
html[data-theme="dark"] { background: var(--bg-dark); color: var(--text-dark); }

body {
  font-family: "Yatra One", system-ui, sans-serif;
  min-height: 100vh;
  transition: background 0.3s, color 0.3s;
}

.container { display: flex; width: 100%; height: 100vh; background: rgba(0, 0, 0, 0.1);}

.left-panel {
  width: 320px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  background:var(--bg-light);
  overflow-y: auto;
}
html[data-theme="dark"] .left-panel {
  background:var(--bg-dark);
}

.right-panel {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 14px;
}

.output-box {
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  user-select: none;
}

.userimage {
  background:#fffaba;
  position:relative;
  background-size: cover;
  background-repeat: no-repeat;
  overflow:hidden;

}

.text-overlay {
  padding: 15px;
  background: #f5f2ec;
  color: #000;
  font-size: 1.2rem;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  outline: none;
  position: relative;
}

#textInput:focus {
  outline: 3px solid rgba(0, 123, 255, 0.8); /* blue with transparency */
  border: none;
}

.footer {
  font-size: 10px;
    font-weight: normal;
    font-family: arial;
    opacity: 0.7;
}

.text-overlay:empty:before {
  content: "Type Quote in Left Side Box";
  color: #888;
  font-style: italic;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  font-size:13px;
}

.text-overlay.hide-placeholder:empty:before {
  content: "";
}

.logo { position:absolute; width: 60px; height: 60px; top:10px; left:10px; background-size: cover; }

input[type=file], textarea, input[type=range] {
  padding: 8px;
  border-radius: 8px;
  border: 1px solid #ccc;
  background: inherit;
  color: inherit;
  width: 100%;
}

input[type=color] { border:none; height:40px; cursor:pointer; width:100%; }
textarea { height: 120px; resize: none; }
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  border: none;
  border-radius: 0.75rem;
  box-shadow: 0 4px 8px rgba(0,0,0,0.25);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.3s ease;
}
button:hover { transform: translateY(-2px); box-shadow: 0 6px 12px rgba(0,0,0,0.3); background: linear-gradient(135deg, #6366f1, #8b5cf6); }
button:active { transform: translateY(0); box-shadow: 0 3px 6px rgba(0,0,0,0.2); }
button:focus { outline: 2px solid #a78bfa; outline-offset: 3px; }

.bottom {display: flex; justify-content: center; align-items: center; background: #f5f2ec;}
.social-card { display: flex; flex-direction: column; align-items: center; background: transparent; gap: 10px; width:100%; 
    max-width: 512px; }
.title-pill { background:white; padding:6px 16px; border-radius:999px; font-size:20px; color:black; box-shadow:0 1px 3px rgba(0,0,0,0.1);     width: 147px;
    text-align: center; }
.social-links { display:flex; justify-content:space-between; width:100%; max-width:470px; }
.social-link { display:flex; align-items:center; gap:6px; text-decoration:none; color:black; font-size:16px; width: 183px;}
.social-link img { width:20px; height:20px; }

.text-style-controls { display: flex;
    gap: 5px;
    justify-content: start;
    align-items: center;
} 
.text-style-controls button { margin:2px; padding:5px 8px; border-radius:5px; border:1px solid #888; background:#222; color:white; }



.userimage::before {
  content: "Paste Image here (Ctrl+V) \A OR \A Upload an image using the left button";
  white-space: pre-wrap;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #666;
  text-align: center;
  pointer-events: none;
      opacity: 0.7;
    font-style: italic;
    font-size: 13px;
}


.upload-btn {
  display: inline-block;
  padding: 12px 24px;
  background: linear-gradient(135deg, #4f46e5, #3b82f6);
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.upload-btn:hover {
  background: linear-gradient(135deg, #4338ca, #2563eb);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}

#file-name {
  display:none;
  margin-left: 0;
    font-size: 13px;
    font-style: italic;
    font-family: arial;
    background: #77af05;
    overflow-x: scroll;
    padding: 5px;
    border-radius: 5px;
    color: #fff;
}


.modern-select {
  appearance: none; /* remove default arrow */
  -webkit-appearance: none;
  -moz-appearance: none;

  background: #fff;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  padding: 10px 40px 10px 15px;
  font-size: 16px;
  font-weight: 500;
  color: #333;
  cursor: pointer;

  box-shadow: 0 4px 8px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  outline: none;
  position: relative;
}

/* Hover & focus states */
.modern-select:hover {
  border-color: #3b82f6;
  box-shadow: 0 6px 12px rgba(59,130,246,0.2);
}

.modern-select:focus {
  border-color: #2563eb;
  box-shadow: 0 6px 14px rgba(37,99,235,0.3);
}

/* Custom arrow */
.modern-select {
  background-image: url("data:image/svg+xml;utf8,<svg fill='%23666' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 20px;
}

.modern-textarea {
  width: 100%;
  min-height: 120px;
  padding: 14px 16px;
  
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: #333;

  background: #fff;
  border: 2px solid #e5e7eb;
  border-radius: 12px;

  resize: vertical; /* allow vertical resize only */
  outline: none;
  
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}

/* Hover */
.modern-textarea:hover {
  border-color: #3b82f6;
  box-shadow: 0 6px 12px rgba(59,130,246,0.15);
}

/* Focus */
.modern-textarea:focus {
  border-color: #2563eb;
  box-shadow: 0 6px 16px rgba(37,99,235,0.25);
}

/* Placeholder style */
.modern-textarea::placeholder {
  color: #9ca3af;
  font-style: italic;
}

.user_img {
  transform:translateY(0px);max-width:100%;height:auto;display:block;margin:0 auto;
}

.output-box {
  width: 540px;
  height: 540px;
}

.user_img {
  width:540px;
}


.userimage {
  background:#fffaba;
  height:285px;
  width:540px;
}

.text-overlay {
  width: 100%;
  height: 165px;
  width:540px;
}

.bottom { 
  height: 90px;
  width:540px;
}

.right-panel {
  max-height: 620px;
}