

body {
  font-family: Arial, sans-serif;
  text-align: center;
  margin: 10px;
  background: url('images/background.jpg') no-repeat center center fixed;
  background-size: cover;
}


/* Layout */
.app {
  margin-top: 100px; 
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 16px;
}

.canvas-col {
  flex: 1 1 507px;
  max-width: 600px;
}

.sidebar {
  width: 160px;
  text-align: left;
}

#canvas-container {
  position: relative;
  display: inline-block;
  width: 100%;
  max-width: 507px;
  /* background-color: #333333; */
  margin-bottom: 10px;
  padding-bottom: 0px;
}

canvas {
  width: 100%;
  height: auto;
  border: 0px solid #ccc;
  cursor: grab;
}

input[type=file], button {
  max-width: 300px;
  width: 300px;
  margin: 10px auto;
  display: block;
  padding: 12px;
  background-color: #ed7044;
	border: 0px solid #ccc;
  color: #fff;
  font-size: 16px;
}

input[type=file] {
  width: 90%;
  max-width: 300px;
  margin: 10px auto;
  display: none; /* Completely hides the native file input */
  padding: 12px;
  font-size: 16px;
}

.custom-upload {
  display: block;
  max-width: 300px;
  width: 300px;
  margin: 15px auto;
  padding-top: 12px;
  padding-bottom: 12px;
  font-size: 16px;
  text-align: center;
  background-color: #CCCCCC;
  color: #000;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}


#preview-container {
  margin-top: 20px;
}

#preview-container img {
  width: 100%;
  max-width: 507px;
  border: 1px solid #ccc;
}

/* Overlay thumbnails in one column */

.overlay-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 10px;
}

.overlay-thumb {
  width: 100%;
  max-width: 120px;
  margin: 3px;
  border: 0px solid #ddd;
  cursor: pointer;
  background-color: #333333;
}


.overlay-thumb.selected {
  border-color: #f26832;
  box-shadow: 0 0 0 2px rgba(242,104,50,1);
}

/* Responsive */
@media (max-width: 768px) {
  .app {
	margin-top: 40px; 
    flex-direction: column;
    align-items: center;
  }
.overlay-thumb {
  width: 80px;
  height: 112px;
  margin: 3px;
  border: 0px solid #ddd;
  cursor: pointer;
  background-color: #333333;
}

  .sidebar {
    width: 100%;
    max-width: 507px;
  }
	
}
