* {
  box-sizing: border-box;
  font-family: system-ui, -apple-system, BlinkMacSystemFont;
 
}

body {
  margin:0px;
  background-image:url('ava-stone-bg.jpg'); 
  background-size: cover;        /* scales image to fill screen */
  background-position: left;   /* keeps image centered */
  background-repeat: no-repeat;  /* prevents tiling */
  background-attachment: fixed;  /* optional parallax effect */
}

.container {
  max-width: 900px;
  width: 100%;
  margin: auto;
  background: rgba(255,255,255,0.8);
  /*padding: 20px;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);*/
}

.flex-container {
  display: flex;
  gap: 10px;
  display:flex;
	align-items:center;
	justify-content:center;
}
#result{ font-size:2em; text-align:center;   justify-content: center;}
#preview-container,
#form-container {
	padding:20px;
	min-width:300px;
  /* prevent overflow */
}
#form-container h2{ margin-bottom:-5px;}
/* Preview */
#preview-container {
  text-align: center;
	
}

#preview-image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  display: none;
}

/* Drop zone */
#drop-zone {
  border: 2px dashed #bbb;
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  color: #666;
  cursor: pointer;
  transition: 0.2s;
 
}

#drop-zone:hover,
#drop-zone.dragover {
  border-color: #4f46e5;
  background: #f3f4ff;
}

#drop-zone span {
  color: #4f46e5;
  font-weight: 600;
}

/* Inputs */
#prompt,
button {
  width: 100%;       /* scale with parent container */
  padding: 10px;
  font-size: 16px;
  border-radius: 8px;
  margin-top: 10px;
}

button {
  background: #4f46e5;
  color: white;
  border: none;
  cursor: pointer;
}

button:hover {
  background: #4338ca;
}

/* Result image */
#result img {
  margin-top: 30px;
  width: 100%;
  border-radius: 12px;
}

/* Mobile stacking */
@media (max-width: 600px) {
  .flex-container {
    flex-direction: column;

  }
  #form-container {	max-width:100%; width:100%;} 
  #drop-zone { max-width:100%;}
}
.render-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 6px;
  margin-top: 20px;
}

.render-item img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
}
/* Gallery overlay */
#gallery-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

#gallery-overlay img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 12px;
}

#gallery-overlay .close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 40px;
  color: white;
  cursor: pointer;
}

#gallery-overlay .nav {
  position: absolute;
  top: 50%;
  font-size: 50px;
  color: white;
  cursor: pointer;
  user-select: none;
  padding: 10px;
}

#gallery-overlay .prev { left: 20px; }
#gallery-overlay .next { right: 20px; }

/* Thumbnails */
.gallery-thumb {
  width: 100%;
  border-radius: 12px;
  cursor: pointer;
}
.step { margin-bottom: 20px; }
.step input { display: block; margin: 10px 0; width: 100%; padding: 10px; }
.step button { margin-top: 10px; padding: 10px; background: #4f46e5; color: #fff; border:none; border-radius:6px; cursor:pointer; }
.step button:hover { background: #4338ca; }



/* Full-screen overlay */
#regoverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.7);
 display:flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

/* Form container */
#regform {
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  max-width: 400px;
  margin:auto;
  width: 90%;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
   position: relative;

}



/* Input fields */
#regform input[type="text"],
#regform input[type="email"],
#regform textarea {
  width: 100%;
  margin-bottom: 5px;
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 14px;
}

/* Submit button */
#regform input[type="submit"] {
  background: #4f46e5;
  color: white;
  border: none;
  padding: 12px 20px;
  font-size: 16px;
  border-radius: 8px;
  cursor: pointer;
}

#regform input[type="submit"]:hover {
  background: #4338ca;
}

/* Privacy link */
#regform a {
  font-size: 12px;
  color: #666;
  display: block;
  margin-top: 10px;
  text-decoration: underline;
}
header{ background-color:#eee; Color:#333; padding:.4em; text-align:center}
header a{Color:#333; font-weight:bolder;}
.vkd-article{ color:#666}
