body, div, h3, h4, h5, h6, p, ul, img {margin:0px; padding:0px; }

body {
  font-size: 17px;
  color: var(--text);
  background: var(--bg);
  text-align: justify;
  text-justify: inter-word;
}

body{
    font-family: 'Quicksand', sans-serif;
}
main { 
    background-color: var(--section-bg); 
      margin: 0 auto; 
}


img.nomob {
    max-width: 100%;
    height: auto;
    width: 100%;
}
p {
  text-align: justify;
  font-weight: 500;
}
hr {
     border: none; /* Remove default border */
    border-top: 3px solid #888888; /* Set a solid black top border */
}
header {
    width: 100%;
    margin: 0 auto; 
    text-align: left;
    position: relative;
    text-align: center;
}

.navbar{
    position:relative;
    width:100%;
        box-shadow:0 2px 5px rgba(0,0,0,0.15);
}

.nav-container {
    width: 100%;
    padding: 10px 0 10px 40px; /* top right bottom left */
    display: flex;
    align-items: center;
    justify-content:flex-start;
    gap:30px;
}


/* LOGO */
.logo{
    flex-shrink:0;
}
.logo img{
    height:55px;
    width:auto;
}

/* MENU */

.nav-menu{
    list-style:none;
    display:flex;
    flex-wrap:wrap;
    width:100%;
    row-gap:12px;   /* THIS stops stabbing */
}

.nav-menu li{
    white-space:nowrap;
}

/* LINKS */
.nav-menu a{
    text-decoration:none;

    font-weight:600;
    padding:4px 14px;
    border-left:1px solid #e5e5e5;   /* vertical separators */
    position:relative;
}
.nav-menu a { color:var(--text); }


/* remove divider from first link */
.nav-menu li:first-child a{
    border-left:none;
}

/* ANIMATED UNDERLINE */
.nav-menu a::after{
    content:"";
    position:absolute;
    left:0;
    bottom:-6px;
    width:0%;
    height:3px;
    background:linear-gradient(90deg,#ff8a00,#ff3d00);
    transition:.3s;
}

.nav-menu a:hover::after{
    width:100%;
}


/* push toggle to far right */
.theme-toggle{
    position:absolute;
    right:20px;
    top:50%;
    transform:translateY(-50%);
    
    font-size:20px;
    background:#f2f2f2;
    border:none;
    border-radius:6px;
    padding:6px 10px;
    cursor:pointer;
}


.theme-toggle:hover{
    background:#ddd;
}


:root{
    --bg:#ffffff;
    --text:#333;
    --nav:#ffffff;
    --section-bg:#ffffff;
    --section-alt:#ffffff;
    --section-blue:#D3DBE2;   /* ← NEW */
    --footer-bg:#D3DBE2;
    --heading:#4C4B4B;
    --link:#0066cc;
}


.dark{
    --bg:#141414;          /* page background */
    --text:#e6e6e6;
    --nav:#1b1b1b;
    --section-bg:#141414;  /* normal sections */
    --section-alt:#141414; /* yellow sections replacement */
    --section-blue:#1c2630;
    --footer-bg:#181818;
    --heading:#ffffff;
    --link:#4ea3ff;
}




body{
    background:var(--bg);
    color:var(--text);
}

.navbar{
    background:var(--nav);
}




.mobile {
    display: none;
}
a{
  color:var(--link);
  text-decoration:underline;
}

a:hover{
  opacity:0.8;
}


.off {
    max-width: 160px;
    float: right;
}
.desktop-only {
    display: block;
}
img.desktop-only {
    max-width: 100%;
    height: auto;
    width: 100%;
}
.mobile-only {
    display: none; 
}
h1 {
    text-align: center;
    padding: 2%;
    color:var(--heading);

    font-size: 2.5rem; /* Explicitly defines size to stop the error */
    margin: 0.5em 0;   /* Recommended for better spacing */
}
h2 {
    text-align: center;
    color:var(--heading);

}
h3 {
    text-align: center;
    color:var(--heading);

}
.section-left { background-color: var(--section-alt); }
.section-left {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 100px;
}
.section-right { background-color: var(--section-bg); }
.section-right {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 100px;
}
.section-left .content {
    order: 1;
}
.section-left .image {
    order: 2;
}
.section-right .content {
    order: 2;
}
.section-right .image {
    order: 1;
}
/* Additional styles as needed for text, images, etc. */
.content {
    flex: 1;
    max-width: 50%;
    padding: 0 0 16px 0;
}
.image img {
    max-width: 100%;
    height: auto;
}
.section-left img,
.section-right img {
      border: 2px solid #98491d;
  border-radius: 10px;
}



/* POSTERIZE TOOL */

.posterize-tool {
  width: 500px;
  max-width: 100%;
  margin: 20px auto;
  text-align: center;
  font-family: system-ui, sans-serif;
}

.posterize-tool .canvas-frame {
  width: 500px;
  height: 500px;
  margin: 10px auto;
  padding: 10px;
  background: #f2f2f2;
  border: 2px solid #ccc;
  border-radius: 18px;
  box-sizing: border-box;
}

.posterize-tool canvas {
  width: 100%;
  height: 100%;
  background: #ffffff;
  border-radius: 12px;
  display: block;
}

.posterize-tool .controls {
  margin: 12px 0;
}

.posterize-tool button {
  margin-top: 10px;
}

.posterize-tool .file-upload{

display:inline-block;

background:linear-gradient(to bottom,#00a000,#006b00);
margin:0 0 30px 0;
color:#fff;

font-family:'Quicksand-SemiBold',sans-serif;
font-size:22px;
padding:15px 25px;

border:none;
border-radius:8px;

cursor:pointer;
text-decoration:none;

/* same grounded shadow */

box-shadow:
3px 3px 6px rgba(0,0,0,0.45),
inset 0 2px 3px rgba(255,255,255,0.6),
inset 0 -3px 6px rgba(0,0,0,0.35);

transition:background .2s ease,color .2s ease;
}

.posterize-tool .file-upload:hover{
background:linear-gradient(to bottom,#F8DE7F,#e1c65d);
color:black;
}

.posterize-tool .file-upload input{
display:none;
}





.isolator-tool {
  width: 500px;
  max-width: 100%;
  margin: 20px auto;
  text-align: center;
  font-family: system-ui, sans-serif;
}

.canvas-frame {
  width: 500px;
  height: 500px;
  margin: 10px auto;
  padding: 10px;
  background: #f2f2f2;
  border: 2px solid #ccc;
  border-radius: 18px;
  box-sizing: border-box;
}

canvas {
  width: 100%;
  height: 100%;
  background: #ffffff;
  border-radius: 12px;
  display: block;
}

.controls {
  margin: 10px 0 20px;
}

.slider-label {
  font-size: 14px;
  margin-bottom: 6px;
}

.slider-value {
  font-size: 13px;
  margin-top: 6px;
}

.file-upload input {
  display: none;
}



.file-upload {
  display:inline-block;
  position:relative;
  overflow:hidden;
  white-space:nowrap;
  background:#008001;
  color:#fff;
  font-family:'Quicksand',sans-serif;
  font-size:22px;
  padding:15px 25px;
  border-radius:5px;
  cursor:pointer;
  transition:.3s;
}

.file-upload:hover {
  background:#F8DE7F;
  color:black;
}

.file-upload input[type="file"] {
  position:absolute;
  inset:0;
  opacity:0;
  cursor:pointer;
}

.palette-upload{
  display:block;
  margin:0 auto 20px auto;
  width:fit-content;
}




.inverter-tool {
  width: 500px;
  max-width: 100%;
  margin: 20px auto;
  text-align: center;
  font-family: system-ui, sans-serif;
}

.canvas-frame {
  width: 500px;
  height: 500px;
  margin: 10px auto;
  padding: 10px;
  background: #f2f2f2;
  border: 2px solid #ccc;
  border-radius: 18px;
  box-sizing: border-box;
}

#inv-canvas {
  width: 100%;
  height: 100%;
  background: #ffffff;
  border-radius: 12px;
  display: block;
}

.file-upload input {
  display: none;
}

/* PHOTO TO SKETCH TOOL */

.sketch-tool{
  width:500px;
  max-width:100%;
  margin:20px auto;
  text-align:center;
  font-family:system-ui,sans-serif;
}

.sketch-tool .canvas-frame{
  width:500px;
  height:500px;
  margin:10px auto;
  padding:10px;
  background:#f2f2f2;
  border:2px solid #ccc;
  border-radius:18px;
  box-sizing:border-box;
}

#sketch-canvas{
  width:100%;
  height:100%;
  background:#ffffff;
  border-radius:12px;
  display:block;
  object-fit:contain;   /* ⭐ important */
}

.sketch-tool .controls{
  margin:12px auto;
  max-width:420px;
  text-align:left;
}

.sketch-tool .controls label{
  display:block;
  margin:8px 0;
  font-size:14px;
}

.sketch-tool input[type="range"]{
  width:100%;
}

/* IMPORTANT: upload must be overlay, not hidden */
.sketch-tool .file-upload{
  position:relative;
  overflow:hidden;
  white-space:nowrap;
}
.sketch-tool .file-upload input[type="file"]{
  position:absolute;
  inset:0;
  opacity:0;
  cursor:pointer;
}

#sketch-download{
  display:block;
  margin:15px auto 0 auto;
}





/* OPACITY TOOL */

.opacity-tool{
  width:500px;
  max-width:100%;
  margin:20px auto;
  text-align:center;
  font-family:system-ui,sans-serif;
}

.opacity-tool .canvas-frame{
  width:500px;
  height:500px;
  margin:10px auto;
  padding:0;
  border:2px solid #ccc;
  border-radius:18px;
  box-sizing:border-box;
}

#opacity-canvas{
  width:100%;
  height:100%;
  border-radius:12px;
  display:block;

  background:
    linear-gradient(45deg,#ddd 25%,transparent 25%),
    linear-gradient(-45deg,#ddd 25%,transparent 25%),
    linear-gradient(45deg,transparent 75%,#ddd 75%),
    linear-gradient(-45deg,transparent 75%,#ddd 75%);
  background-size:20px 20px;
  background-position:0 0,0 10px,10px -10px,-10px 0;
}


/* controls block identical to sketch tool */
.opacity-tool .controls{
  margin:12px auto;
  max-width:420px;
  text-align:left;
}

.opacity-tool .controls label{
  display:block;
  margin:8px 0;
  font-size:14px;
}

.opacity-tool input[type="range"]{
  width:100%;
}

/* upload overlay same as others */
.opacity-tool .file-upload{
  position:relative;
  overflow:hidden;
  white-space:nowrap;
}

.opacity-tool .file-upload input[type="file"]{
  position:absolute;
  inset:0;
  opacity:0;
  cursor:pointer;
}

#opacity-download{
  display:block;
  margin:15px auto 0 auto;
}






/* OVERLAY TOOL */

.overlay-tool{
  width:500px;
  max-width:100%;
  margin:20px auto;
  text-align:center;
  font-family:system-ui,sans-serif;
}

.overlay-tool .canvas-frame{
  width:500px;
  max-width:100%;
  aspect-ratio:1 / 1;   /* 🔥 keeps square on ALL devices */
  margin:10px auto;
  padding:0;
  border:2px solid #ccc;
  border-radius:18px;
  box-sizing:border-box;
}

#ov-canvas{
  width:100%;
  height:100%;
  border-radius:12px;
  display:block;

  background:
    linear-gradient(45deg,#ddd 25%,transparent 25%),
    linear-gradient(-45deg,#ddd 25%,transparent 25%),
    linear-gradient(45deg,transparent 75%,#ddd 75%),
    linear-gradient(-45deg,transparent 75%,#ddd 75%);
  background-size:20px 20px;
  background-position:0 0,0 10px,10px -10px,-10px 0;
}

.overlay-tool .controls{
  margin:12px auto;
  max-width:420px;
  text-align:left;
}

.overlay-tool input[type="range"]{
  width:100%;
}

.overlay-tool .file-upload{
  position:relative;
  overflow:hidden;
  white-space:nowrap;
}

.overlay-tool .file-upload input{
  position:absolute;
  inset:0;
  opacity:0;
  cursor:pointer;
}





/* BG REMOVER TOOL */

.bg-tool {
  width: 500px;
  max-width: 100%;
  margin: 20px auto;
  text-align: center;
}

/* Added position: relative so the cursor stays inside this box */
.bg-tool .canvas-frame {
  position: relative; 
  width: 500px;
  max-width: 100%;
  aspect-ratio: 1/1;
  border: 2px solid #ccc;
  border-radius: 18px;
  overflow: hidden; 
  cursor: none; /* Hides default mouse when over the canvas */
}

#bg-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 12px;
  background:
    linear-gradient(45deg, #ddd 25%, transparent 25%),
    linear-gradient(-45deg, #ddd 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #ddd 75%),
    linear-gradient(-45deg, transparent 75%, #ddd 75%);
  background-size: 20px 20px;
  background-position: 0 0, 0 10px, 10px -10px, -10px 0;
}

#bg-cursor {
  position: absolute;
  border: 1px solid #000;
  border-radius: 50%;
  pointer-events: none;
  box-shadow: 0 0 5px rgba(255,255,255,0.8);
  z-index: 100;
  display: none;
  box-sizing: border-box;

  margin: 0;
  padding: 0;
}





.shadow-tool{
  width:500px;
  max-width:100%;
  margin:20px auto;
  text-align:center;
}

.shadow-tool .canvas-frame{
  width:500px;
  max-width:100%;
  aspect-ratio:1/1;
  border:2px solid #ccc;
  border-radius:18px;
}

#sh-canvas{
  width:100%;
  height:100%;
  display:block;
  border-radius:12px;

  background:
    linear-gradient(45deg,#ddd 25%,transparent 25%),
    linear-gradient(-45deg,#ddd 25%,transparent 25%),
    linear-gradient(45deg,transparent 75%,#ddd 75%),
    linear-gradient(-45deg,transparent 75%,#ddd 75%);
  background-size:20px 20px;
  background-position:0 0,0 10px,10px -10px,-10px 0;
}



.retouch-tool {
  width: 500px;
  max-width: 100%;
  margin: 20px auto;
  text-align: center;
}

.retouch-tool .canvas-frame {
  width: 500px;
  max-width: 100%;
  aspect-ratio: 1/1;
  border: 2px solid #ccc;
  border-radius: 18px;
  position: relative;
  overflow: hidden; /* Keeps cursor from "bleeding" outside corners */
}

#rt-canvas {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 12px;
  position: relative;
  z-index: 1;
  background:
    linear-gradient(45deg, #ddd 25%, transparent 25%),
    linear-gradient(-45deg, #ddd 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #ddd 75%),
    linear-gradient(-45deg, transparent 75%, #ddd 75%);
  background-size: 20px 20px;
  background-position: 0 0, 0 10px, 10px -10px, -10px 0;
}

.retouch-tool #rt-cursor {
  position: absolute;
  background: transparent; /* Hollow center to see through */
  border: 1px solid #fff; /* White inner ring */
  box-shadow: 0 0 0 1px #000; /* Black outer ring for contrast */
  border-radius: 50%;
  pointer-events: none;
  display: none;
  z-index: 10;
  box-sizing: border-box;
}



.dodgeburn-tool{
  width:500px;
  max-width:100%;
  margin:20px auto;
  text-align:center;
}

.dodgeburn-tool .file-upload{
  display:inline-block;
  margin:10px auto;
}

.dodgeburn-tool .canvas-frame{
  width:500px;
  max-width:100%;
  aspect-ratio:1/1;
  border:2px solid #ccc;
  border-radius:18px;
  position:relative;
}

#db-canvas{
  position:relative;
  z-index:1;
  width:100%;
  height:100%;
  display:block;
  border-radius:12px;

  background:
    linear-gradient(45deg,#ddd 25%,transparent 25%),
    linear-gradient(-45deg,#ddd 25%,transparent 25%),
    linear-gradient(45deg,transparent 75%,#ddd 75%),
    linear-gradient(-45deg,transparent 75%,#ddd 75%);
  background-size:20px 20px;
  background-position:0 0,0 10px,10px -10px,-10px 0;
}


#db-cursor{
position:absolute;
border:1px solid #000;
border-radius:50%;
pointer-events:none;
box-shadow:0 0 10px white;
 z-index: 10;  
}






.colorize-tool{
  width:500px;
  max-width:100%;
  margin:20px auto;
  text-align:center;
}
.canvas-frame {
  position: relative;
}
#cz-canvas {
  cursor: none;
}
#cz-cursor {
  position: absolute;
  border: 2px solid white;
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
}
#cz-swatches .sw{
  width:24px;
  height:24px;
  border-radius:4px;
  cursor:pointer;
  border:1px solid #ccc;
}
.brush-demo-right{
  width:80px;
  float:right;
  margin-left:10px;
  margin-bottom:5px;
  border-radius:6px;
}


.color-tool {
  width: 500px;
  max-width: 100%;
  margin: 20px auto;
  text-align: center;
}

.color-tool .file-upload {
  display: inline-block;
  margin: 10px auto;
}

.color-tool .canvas-frame {
  width: 500px;
  max-width: 100%;
  aspect-ratio: 1/1;
  border: 2px solid #ccc;
  border-radius: 18px;
  position: relative;
}

#col-canvas {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 12px;
  background:
    linear-gradient(45deg, #ddd 25%, transparent 25%),
    linear-gradient(-45deg, #ddd 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #ddd 75%),
    linear-gradient(-45deg, transparent 75%, #ddd 75%);
  background-size: 20px 20px;
  background-position: 0 0, 0 10px, 10px -10px, -10px 0;
}

/* SCOPED CONTROLS: Only affects sliders inside .color-tool */
.color-tool .controls {
  margin-top: 15px;
}

.color-tool .controls label {
  display: block;
  margin: 12px 0;
  text-align: left;
}

.color-tool .controls input[type="range"] {
  width: 100%;
  -webkit-appearance: none;
  height: 6px;
  border-radius: 4px;
  outline: none;
  margin-top: 5px;
}

/* Fixed the span positioning */
.color-tool .controls span {
  float: right;
  font-weight: bold;
}

/* SCOPED GRADIENTS: Only applies to sliders inside .color-tool */
.color-tool .sat-slider { background: linear-gradient(to right, #888, #ddd, #ff3b3b); }
.color-tool .vib-slider { background: linear-gradient(to right, #bbb, #ddd, #ff7a00); }
.color-tool .temp-slider { background: linear-gradient(to right, #2f6bff, #ddd, #ff8a2a); }
.color-tool .tint-slider { background: linear-gradient(to right, #ff66cc, #ddd, #4ed164); }
.color-tool .hue-slider { background: linear-gradient(to right, red, yellow, lime, cyan, blue, magenta, red); }
.color-tool .gamma-slider { background: linear-gradient(to right, #222, #ddd, #fff); }
.color-tool .bright-slider { background: linear-gradient(to right, #000, #ddd, #fff); }
.color-tool .contrast-slider { background: linear-gradient(to right, #444, #ddd, #fff); }

/* Optional: Custom thumb styling for just this tool */
.color-tool input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid #888;
  cursor: pointer;
  margin-top: -5px; /* Centers thumb on the track */
}




.transform-tool{
width:500px;
max-width:100%;
margin:20px auto;
text-align:center;
}

.transform-tool .file-upload{
display:inline-block;
margin:10px auto;
}

.transform-tool .canvas-frame{
width:500px;
max-width:100%;
aspect-ratio:1/1;
border:2px solid #ccc;
border-radius:18px;
position:relative;
}

#tr-canvas{
width:100%;
height:100%;
display:block;
border-radius:12px;

background:
linear-gradient(45deg,#ddd 25%,transparent 25%),
linear-gradient(-45deg,#ddd 25%,transparent 25%),
linear-gradient(45deg,transparent 75%,#ddd 75%),
linear-gradient(-45deg,transparent 75%,#ddd 75%);
background-size:20px 20px;
background-position:0 0,0 10px,10px -10px,-10px 0;
}

.controls{
margin-top:15px;
text-align:left;
}

.controls h4{
margin-top:18px;
margin-bottom:6px;
}

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

.controls input[type="range"]{
width:100%;
}

.controls input[type="number"]{
width:100%;
padding:6px;
}

.checkline{
display:flex;
align-items:center;
gap:8px;
}

.crop-buttons{
display:flex;
gap:8px;
flex-wrap:wrap;
margin-bottom:10px;
}
.rotate-display{
font-size:14px;
margin-bottom:4px;
color:#555;
}







.heal-tool{
width:500px;
max-width:100%;
margin:20px auto;
text-align:center;
font-family:system-ui,sans-serif;
}

#heal-canvas{
display:block;
max-width:none;
}

.heal-tool .controls{
margin:12px 0;
}

#heal-mode{
padding:6px;
font-size:14px;
}
.heal-frame{
overflow:auto;
touch-action:pan-x pan-y;
position:relative;
}
#heal-cursor{
position:absolute;
border:1px solid #000;
border-radius:50%;
pointer-events:none;
box-shadow:0 0 10px white;
}





.clone-tool {
  width: 500px;
  max-width: 100%;
  margin: 20px auto;
  text-align: center;
  font-family: system-ui, sans-serif;
}

#clone-canvas {
  transition: none !important;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none; /* Prevents the browser from trying to pan the page while you draw */
}

.clone-tool .controls {
  margin: 12px 0;
}

.clone-frame {
  overflow: auto;
  touch-action: pan-x pan-y;
  position: relative;
}

/* Mode toggle */
.clone-mode-toggle {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 10px 0;
}

.clone-mode-btn {
  padding: 8px 24px;
  border: 2px solid #ccc;
  border-radius: 20px;
  background: #f5f5f5;
  cursor: pointer;
  font-size: 14px;
  font-family: system-ui, sans-serif;
  transition: all 0.15s;
}

.clone-mode-btn.active {
  background: #2a9a4a;
  color: #fff;
  border-color: #2a9a4a;
}

.clone-mode-btn:hover {
  border-color: #2a9a4a;
  background: #eefaf2;
}

/* Cursor circle */
#clone-cursor {
  position: absolute;
  top: 0;
  left: 0;
  border: 1.5px solid #000;
  border-radius: 50%;
  pointer-events: none;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.6);
  z-index: 100;
  overflow: hidden;
  display: none;
}

#clone-preview-canvas {
  display: block;
  opacity: 0;
  border-radius: 50%;
}

/* Lasso controls */
#clone-lasso-controls {
  display: block;
  margin: 8px 0;
}

.clone-flip-row {
  display: flex;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.clone-flip-row .my-button {
  padding: 6px 12px;
  font-size: 13px;
}

/* Hide brush size row in lasso mode — toggled by JS */
#clone-size-row {
  display: block;
}

/* Action button highlight when in selecting state */
#clone-action.selecting {
  background: #ffcc00;
  color: #000;
}

/* Action button highlight when ready to stamp */
#clone-action.stamping {
  background: #22aa55;
  color: #fff;
}
#clone-action {
  width: 300px;
  max-width: 100%;
  box-sizing: border-box;
}








/* BUCKET FILL TOOL */

.bucket-tool{
  width:500px;
  max-width:100%;
  margin:20px auto;
  text-align:center;
}

.bucket-tool .canvas-frame{
  width:500px;
  max-width:100%;
  aspect-ratio:1/1;
  border:2px solid #ccc;
  border-radius:18px;
}

#bucket-canvas{
  width:100%;
  height:100%;
  display:block;
  border-radius:12px;
  background:#fff;
}

.bucket-tool .controls{
  margin:12px 0;
}

.bucket-tool label{
  display:block;
  margin:8px 0;
}
.bucket-tool .file-upload{
display:inline-block;
width:auto;
}
#bucket-tolerance-value,
#bucket-opacity-value{
font-weight:bold;
margin-left:6px;
}
#bucket-canvas {
  cursor: url('/images/bucket-cursor.png') 4 28, auto;
}




.arteffects-tool{
  width:500px;
  max-width:100%;
  margin:20px auto;
  text-align:center;
  font-family:system-ui,sans-serif;
}

.arteffects-tool .canvas-frame{
  width:500px;
  max-width:100%;
  height:500px;
  margin:10px auto;
  padding:10px;
  background:#f2f2f2;
  border:2px solid #ccc;
  border-radius:18px;
  box-sizing:border-box;
}

#art-canvas{
  width:100%;
  height:100%;
  display:block;
}

.arteffects-tool .controls{
  margin:12px auto;
  max-width:420px;
  text-align:left;
}

.arteffects-tool input[type="range"]{
  width:100%;
}

.arteffects-tool select{
  width:100%;
  padding:4px;
  margin-top:5px;
}




.convert-compress-tool{
width:500px;
max-width:100%;
margin:20px auto;
text-align:center;
}

.convert-compress-tool .file-upload{
display:inline-block;
margin:10px auto;
}

.convert-compress-tool .canvas-frame{
width:500px;
max-width:100%;
aspect-ratio:1/1;
border:2px solid #ccc;
border-radius:18px;
position:relative;
overflow:hidden;
background:#f8f8f8;
}

#cc-canvas{
width:100%;
height:100%;
display:block;
border-radius:12px;
background:
linear-gradient(45deg,#ddd 25%,transparent 25%),
linear-gradient(-45deg,#ddd 25%,transparent 25%),
linear-gradient(45deg,transparent 75%,#ddd 75%),
linear-gradient(-45deg,transparent 75%,#ddd 75%);
background-size:20px 20px;
background-position:0 0,0 10px,10px -10px,-10px 0;
}

.file-meta{
margin-top:14px;
text-align:left;
font-size:15px;
line-height:1.5;
}

.file-meta p{
margin:4px 0;
}

.controls{
margin-top:15px;
text-align:left;
}

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

.controls input[type="range"]{
width:100%;
}

.controls select{
width:100%;
padding:10px;
border:1px solid #ccc;
border-radius:10px;
background:#fff;
font:inherit;
}

#cc-quality-value{
display:inline-block;
margin-top:6px;
font-size:14px;
color:#555;
}

.tool-note{
font-size:14px;
color:#666;
margin-top:8px;
line-height:1.5;
}

#cc-download{
margin-top:16px;
}



.liquify-tool{
width:500px;
max-width:100%;
margin:20px auto;
text-align:center;
}

.liquify-tool .file-upload{
display:inline-block;
margin:10px auto;
}

.liquify-tool .canvas-frame{
width:500px;
max-width:100%;
aspect-ratio:1/1;
border:2px solid #ccc;
border-radius:18px;
position:relative;
}

#liq-canvas{
width:100%;
height:100%;
display:block;
border-radius:12px;

background:
linear-gradient(45deg,#ddd 25%,transparent 25%),
linear-gradient(-45deg,#ddd 25%,transparent 25%),
linear-gradient(45deg,transparent 75%,#ddd 75%),
linear-gradient(-45deg,transparent 75%,#ddd 75%);
background-size:20px 20px;
background-position:0 0,0 10px,10px -10px,-10px 0;
}

.controls{
margin-top:15px;
text-align:left;
}

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

.controls input[type="range"]{
width:100%;
}

#liq-download{
margin-top:15px;
}
#liq-cursor{
position:absolute;
border:1px solid #000;
border-radius:50%;
pointer-events:none;
box-shadow:0 0 10px white;
}



.text-tool{
  width:500px;
  max-width:100%;
  margin:20px auto;
  text-align:center;
}

.text-tool h2{
  margin-bottom:10px;
}

.text-tool .file-upload{
  display:inline-block;
  margin:10px auto;
}

.text-tool .canvas-frame{
  width:500px;
  max-width:100%;
  aspect-ratio:1/1;
  border:2px solid #ccc;
  border-radius:18px;
  position:relative;
}

#tt-canvas{
  position:relative;
  z-index:1;
  width:100%;
  height:100%;
  display:block;
  border-radius:12px;

  background:
    linear-gradient(45deg,#ddd 25%,transparent 25%),
    linear-gradient(-45deg,#ddd 25%,transparent 25%),
    linear-gradient(45deg,transparent 75%,#ddd 75%),
    linear-gradient(-45deg,transparent 75%,#ddd 75%);
  background-size:20px 20px;
  background-position:0 0,0 10px,10px -10px,-10px 0;
}

.text-tool .controls{
  margin-top:10px;
}

.text-tool .controls label{
  display:block;
  margin:6px 0;
  font-size:14px;
}

.text-tool input[type="text"]{
  width:90%;
  padding:5px;
}
#tt-font option{
  font-size:16px;
}
.upload-wrap{
  width:100%;
  display:flex;
  justify-content:center;
  margin:10px 0;
}
.font-dropdown{
  position:relative;
  width:100%;
  max-width:300px;
  margin:10px auto;
  user-select:none;
}

.font-selected{
  padding:10px;
  border:2px solid #ccc;
  border-radius:10px;
  background:#fff;
  cursor:pointer;
}
.font-selected{
  position:relative;
}

.font-selected::after{
  content:"▼";
  position:absolute;
  right:12px;
  top:50%;
  transform:translateY(-50%);
  font-size:12px;
  pointer-events:none;
}
.font-list{
  display:none;
  position:absolute;
  width:100%;
  background:#fff;
  border:2px solid #ccc;
  border-radius:10px;
  margin-top:5px;
  max-height:200px;
  overflow:auto;
  z-index:100;
}

.font-list div{
  padding:10px;
  cursor:pointer;
}

.font-list div:hover{
  background:#eee;
}



.round-tool{
  width:500px;
  max-width:100%;
  margin:20px auto;
  text-align:center;
  font-family:system-ui,sans-serif;
}

.round-tool .canvas-frame{
  width:500px;
  height:500px;
  margin:10px auto;
  padding:10px;
  border:2px solid #ccc;
  border-radius:18px;
  box-sizing:border-box;
  background:#ffffff; /* ✅ FRAME WHITE */
}

/* 🔥 chess ONLY inside canvas */
#round-canvas{
  width:100%;
  height:100%;
  border-radius:12px;
  display:block;
  object-fit:contain;

  background:
    linear-gradient(45deg,#ccc 25%,transparent 25%),
    linear-gradient(-45deg,#ccc 25%,transparent 25%),
    linear-gradient(45deg,transparent 75%,#ccc 75%),
    linear-gradient(-45deg,transparent 75%,#ccc 75%);
  background-size:20px 20px;
  background-position:0 0,0 10px,10px -10px,-10px 0px;
}

.round-tool .controls{
  margin:12px auto;
  max-width:420px;
  text-align:left;
}

.round-tool .controls label{
  display:block;
  margin:10px 0;
  font-size:14px;
}

.round-tool input[type="range"]{
  width:100%;
}

/* upload overlay */
.round-tool .file-upload{
  position:relative;
  overflow:hidden;
  white-space:nowrap;
}

.round-tool .file-upload input[type="file"]{
  position:absolute;
  inset:0;
  opacity:0;
  cursor:pointer;
}

#round-download{
  display:block;
  margin:15px auto 0 auto;
}









/*picker*/
.divContainer {
     display: flex;
  justify-content: center; /* Horizontally center content */
  align-items: center; /* Vertically center content */
    height: auto;
    overflow: hidden;
}
.divRight {
    width:300px;
    float: right;
}
.divLeft {
    float: none;
    width: auto;
    overflow: hidden;
}
.warning {
    color:#cc0000;
    
}
.selectedCH { /* swatches for copying */
    float:left;
    width:50px;
    height:50px;
    margin:2px;
    font-size:12px;
    cursor: pointer;
    border-radius: 5px;
}



/* color picker */
#divCanvas {  /* the main image panel  */
    float:left;
    margin:0 10px 0 0;
    position: relative;
}
#divMouseColor {
    /* realtime window numbers */
}
#divMouseColorPanel { /* realtime color window */
    width:100px;
    height:100px;
    border:1px solid #dddddd;
        border-radius: 8px;
    margin-right:5px;
    
}
#divSelectedColorPanel {  /* selected color swatch under panel */
    width:100px;
    height:100px;
    border: 1px solid #dddddd;
    border-radius: 8px;
    margin-right:5px;
    cursor: pointer;
}
#myCanvas {  /* image panel */
    width:399px;
    height:380px;
    border:1px solid #c3c3c3;
}


.demos {
  display: flex;
  margin: 6%;
  border-radius: 20px;
  overflow: hidden;
  border: 2px solid #888888;
}

.demos-image {
  width: 40%;
  flex-shrink: 0;
  padding: 20px;
  box-sizing: border-box;
}

.demos-image img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
border: 1px solid #888888;
  border-radius: 12px;
}

.demos-text {
  padding: 40px;
}




.faq-container {
    width: 90%;  /* Uses 90% of the screen width, making it responsive */
    max-width: 1000px;  /* Limits the width for larger screens */
    margin: 20px auto;  /* Centers the container */
    padding: 20px;  /* Adds space inside the container */
}


  .faq-item {
    border-bottom: 1px solid #ddd;
    padding: 10px 0;
  }

  .faq-question {
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

.faq-question::after{
  content:"▼";
  font-size:16px;
  transition:transform 0.3s ease;
}

  .faq-answer {
    display: none;
    padding: 10px;

      text-align: justify;
  }

  .faq-item.active .faq-answer {
    display: block;
  }

  .faq-item.active .faq-question::after {
    transform: rotate(180deg); /* Rotates the arrow up when open */
  }


.sharebar{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  align-items:center;
  justify-content:center;   /* ← THIS is missing */
}
  .sharebar .sh{
    width:34px;
    height:34px;
    border-radius:6px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    font:700 14px/1 Arial, sans-serif;
    color:#fff;
    text-decoration:none;
    user-select:none;
    box-shadow:0 1px 3px rgba(0,0,0,.15);
  }
  .sh-fb{background:#1877f2}
  .sh-msgr{background:#0084ff}
  .sh-x{background:#111}
  .sh-rd{background:#ff4500}
  .sh-th{background:#000}
  .sh-em{background:#6b7280}
  .sh-pin{background:#e60023}
  .sh-wa{background:#25d366}
  .sh-tg{background:#229ed9}
  .sh-ln{background:#0a66c2}
  .sh-copy{background:#16a34a}

  .sharebar .sh:hover{filter:brightness(0.95)}
  
  

footer {
  width: 100%;
}
.footer-inner { background-color: var(--footer-bg); }
.footer-inner {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  padding: 10px 60px;
  align-items: center;
}
.footer-inner .image {
  max-width: 50%; /* Set the max-width for the "image" in PC */
}
.footer-inner .content {
  max-width: 48%;
  margin: 0 auto;
  text-align: center;
}
footer p {

    font-size: 18px;
     font-weight: 500;
}

/* lists in sections */
.simplist  li {
    margin-left: 60px;
     font-weight: 500;
   text-align:left;
}
.numberlist  li {
    margin-left: 10px;
     font-weight: 500;
    text-align:left;
}
* {
  box-sizing: border-box;
}

.section-blue{
    background-color: var(--section-blue);
}


.toTopBtn{
position:fixed;
bottom:25px;
right:25px;
z-index:999;

width:50px;
height:50px;
border-radius:50%;

display:flex;
align-items:center;
justify-content:center;

font-size:22px;
font-weight:700;
color:white;
text-decoration:none;

background:linear-gradient(to bottom,#00a000,#006b00);

/* same shadow system */

box-shadow:
3px 3px 6px rgba(0,0,0,0.45),
inset 0 2px 3px rgba(255,255,255,0.6),
inset 0 -3px 6px rgba(0,0,0,0.35);

transition:background .2s ease,color .2s ease;
}

.toTopBtn:hover{
background:linear-gradient(to bottom,#F8DE7F,#e1c65d);
color:black;
}

.my-button{

background: linear-gradient(to bottom,#00a000,#006b00);
margin:0 0 30px 0;
color:#fff;

font-family:'Quicksand-SemiBold',sans-serif;
font-size:22px;
padding:15px 25px;

border:none;
border-radius:8px;

cursor:pointer;
text-decoration:none;
display:inline-block;

box-shadow:
3px 3px 6px rgba(0,0,0,0.45),
inset 0 2px 3px rgba(255,255,255,0.6),
inset 0 -3px 6px rgba(0,0,0,0.35);

transition: background .2s ease, color .2s ease;
}

.my-button:hover{
background: linear-gradient(to bottom,#F8DE7F,#e1c65d);
color:black;
}



.clear {
    clear: both;
}
img.nomob {
    width: 100%;
    height: auto;
}

.img {
    margin: -5px 15px 15px 15px;
  padding: 5px 5px 5px 5px;
}
.fb {
    background: white;
}

@media (max-width: 1240px) {
.section-left {
    padding: 40px;
}
.section-right {
    padding: 40px;
}
}

@media (max-width: 1150px) {
.section-left,
.section-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px;
}
.section-left .content,
.section-right .content {
    order: 1;
    max-width: 100%; /* Set a specific max-width value */
}
.section-left .image,
.section-right .image {
    order: 2;
}
.simplist {
  text-align: left; /* Reset the text alignment to left */
}
 .footer-inner {
    flex-direction: column-reverse; /* Reverse the order for mobile devices */
    align-items: center;
    padding: 40px;
  }
.footer-inner .image {
    max-width: 80%; /* Set the max-width for the "image" in tablets */
}
.footer-inner .content {
    max-width: 100%; /* Set the max-width for the "content" in tablets */
}
img { /*ovo je resilo presiroke slike*/
  width: auto ;
  max-width: 100% ;
  height: auto ;
}
video { /*ovo je resilo presiroke slike*/
  width: auto ;
  max-width: 100% ;
  height: auto ;
} 
}

/* For tablets */
@media (max-width: 1024px) {
html, body {
overflow-x:hidden;
}
body {
  font-size: 20px;
  color:var(--heading);
  text-align: justify;
  text-justify: inter-word;
}
.section-right .subscribers {
    order: 1;
    max-width: 100%;
}
    .nav-container {
        flex-direction: column;   /* logo goes above menu */
       align-items: stretch;
        gap: 10px;
        margin: 0;
    }
    .logo {
        width: 100%;
        text-align: center;       /* center logo */
    }
    .logo img {
        height: 80px;             /* bigger logo on mobile */
    }
    .nav-menu {
         justify-content: flex-start;
        max-width: 100%;
    }
    .divContainer {
max-width: 100%;
}
#divForm{float:none;}  /* picker */
#tblMCP{display:none}
.divRight {display:none;} /* picker */
.apps {
    display: block;
}
#divDrag {
    display:none;
}
  .demos {
    flex-direction: column;
    margin: 1%;
  }
  .demos-image {
    width: 100%;
  }
  .demos-text {
    padding: 20px;
  }
}

@media (max-width:768px){

  /* undo the full-bleed PC hack */
  .navbar{
    left:auto;
    right:auto;
    margin-left:0;
    margin-right:0;
    width:100%;
  }

  /* remove side padding so links can touch edges */
  .nav-container{
    padding-left:0;
    padding-right:0;
  }

  /* optional: remove the logo-to-menu gap on mobile */
  .nav-menu{
    margin-left:0;
  }

}



/*razlika izmedju mob i desktop*/
@media only screen and (max-width: 601px) {
body {
  font-size: 18px;
  color:var(--heading);

  text-align: justify;
  text-justify: inter-word;
}
.section-left,
.section-right {
    padding: 20px;
}  
.nomob {
    display: none;
}
.mobile {
    display: block;
        width: 100%;
    height: auto;
}
iframe{
    margin-left: 0;
    width:100%;              
}

.simplist  li {
    margin-left: 30px;
}
.off {
    max-width: 100px;
    float: right;
}
  hr {
    width: 100%; /* Ensure it spans across the full width */
  }
.numberlist  li {
    margin-left: 0;
}
  
  .canvas-frame {
    width: 100%;
    height: auto;
    padding: 8px;
  }
  .canvas-frame canvas {
    width: 100%;
    height: auto;
  }
  .isolator-tool {
    width: 100%;
    padding: 0;
    box-sizing: border-box;
  }
  .isolator-tool .canvas-frame {
    width: 100%;
    height: auto;
    padding: 8px;
    box-sizing: border-box;
  }

  .desktop-only {
    display: none;
}

 .posterize-tool {
    width: 100%;
    padding: 0;
    box-sizing: border-box;
  }
  .posterize-tool .canvas-frame {
    width: 100%;
    height: auto;
    padding: 8px;
    box-sizing: border-box;
  }

  
  
 .inverter-tool {
    width: 100%;
    padding: 0;
    box-sizing: border-box;
  }
  .inverter-tool .canvas-frame {
    width: 100%;
    height: auto;
    padding: 8px;
    box-sizing: border-box;
  }

  
  
    .canvas-frame
    .sketch-canvas{
    width: 100%;
    height: auto;
    padding: 8px;
  }
  .canvas-frame canvas {
    width: 100%;
    height: auto;
  }
  .sketch-tool {
    width: 100%;
    padding: 0;
    box-sizing: border-box;
  }
  .sketch-tool .canvas-frame {
    width: 100%;
    height: auto;
    padding: 8px;
    box-sizing: border-box;
  }

  
  
  
   .opacity-tool  {
    width: 100%;
    padding: 0;
    box-sizing: border-box;
  }
  .opacity-tool  .canvas-frame {
    width: 100%;
    height: auto;
    padding: 8px;
    box-sizing: border-box;
  }

  
    
   .overlay-tool  {
    width: 100%;
    padding: 0;
    box-sizing: border-box;
  }
  .overlay-tool  .canvas-frame {
    width: 100%;
    height: auto;
    padding: 8px;
    box-sizing: border-box;
  }

  
  
     .bg-tool  {
    width: 100%;
    padding: 0;
    box-sizing: border-box;
  }
  .bg-tool  .canvas-frame {
    width: 100%;
    height: auto;
    padding: 8px;
    box-sizing: border-box;
  }

  

 .shadow-tool  {
    width: 100%;
    padding: 0;
    box-sizing: border-box;
  }
.shadow-tool .canvas-frame {
  width: 100%;
  aspect-ratio: 1 / 1;   /* ← YOU REMOVED THIS */
  height: auto;
  padding: 8px;
  box-sizing: border-box;
}
  
   .retouch-tool  {
    width: 100%;
    padding: 0;
    box-sizing: border-box;
  }
.retouch-tool .canvas-frame {
  width: 100%;
  aspect-ratio: 1 / 1; 
  height: auto;
  padding: 8px;
  box-sizing: border-box;
}
  
  
  
  
   .dodgeburn-tool  {
    width: 100%;
    padding: 0;
    box-sizing: border-box;
  }
.dodgeburn-tool .canvas-frame {
  width: 100%;
  aspect-ratio: 1 / 1; 
  height: auto;
  padding: 8px;
  box-sizing: border-box;
}



   .color-tool  {
    width: 100%;
    padding: 0;
    box-sizing: border-box;
  }
.color-tool .canvas-frame {
  width: 100%;
  aspect-ratio: 1 / 1; 
  height: auto;
  padding: 8px;
  box-sizing: border-box;
}




   .transform-tool  {
    width: 100%;
    padding: 0;
    box-sizing: border-box;
  }
.transform-tool .canvas-frame {
  width: 100%;
  aspect-ratio: 1 / 1; 
  height: auto;
  padding: 8px;
  box-sizing: border-box;
}


   .bucket-tool  {
    width: 100%;
    padding: 0;
    box-sizing: border-box;
  }
.bucket-tool .canvas-frame {
  width: 100%;
  aspect-ratio: 1 / 1; 
  height: auto;
  padding: 8px;
  box-sizing: border-box;
}



   .heal-tool {
    width: 100%;
    padding: 0;
    box-sizing: border-box;
  }
.heal-frame{
width:100%;
aspect-ratio:1/1;
padding:8px;
box-sizing:border-box;
overflow:auto;
touch-action:pan-x pan-y;
}
#heal-canvas{
touch-action:manipulation;
}




.clone-tool {
    width: 100%;
    padding: 0;
    box-sizing: border-box;
  }
.clone-frame{
width:100%;
aspect-ratio:1/1;
padding:8px;
box-sizing:border-box;
overflow:auto;
touch-action:pan-x pan-y;
}
#clone-canvas{
touch-action:manipulation;
}



   .convert-compress-tool  {
    width: 100%;
    padding: 0;
    box-sizing: border-box;
  }
.convert-compress-tool .canvas-frame {
  width: 100%;
  aspect-ratio: 1 / 1; 
  height: auto;
  padding: 8px;
  box-sizing: border-box;
}




   .liquify-tool  {
    width: 100%;
    padding: 0;
    box-sizing: border-box;
  }
.liquify-tool .canvas-frame {
  width: 100%;
  aspect-ratio: 1 / 1; 
  height: auto;
  padding: 8px;
  box-sizing: border-box;
}
#liq-cursor{
position:absolute;
border:1px solid #000;
border-radius:50%;
pointer-events:none;
display:none;
}


   .text-tool  {
    width: 100%;
    padding: 0;
    box-sizing: border-box;
  }
.text-tool .canvas-frame {
  width: 100%;
  aspect-ratio: 1 / 1; 
  height: auto;
  padding: 8px;
  box-sizing: border-box;
}


 .colorize-tool  {
    width: 100%;
    padding: 0;
    box-sizing: border-box;
  }
.colorize-tool .canvas-frame {
  width: 100%;
  aspect-ratio: 1 / 1; 
  height: auto;
  padding: 8px;
  box-sizing: border-box;
}


.brush-demo-right{
  width:110px;
}

 .round-tool  {
    width: 100%;
    padding: 0;
    box-sizing: border-box;
  }
.round-tool .canvas-frame {
  width: 100%;
  aspect-ratio: 1 / 1; 
  height: auto;
  padding: 8px;
  box-sizing: border-box;
}







  
.mobile-only {
        display: block;
    }
}    



@media only screen and (max-width: 440px) {
.footer-inner .image {
    max-width: 100%; /* Set the max-width for the "image" in tablets */
}
.my-button {
    font-size: 18px;
}
}
/* my iPhone and samsung edge use */
@media only screen and (max-width: 415px) {
}
@media only screen and (max-width: 360px) {
.my-button {
    font-size: 16px;
}
}

