/* Basic Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Body */
body {
  font-family: 'Poppins', sans-serif;
  background: #f9f9f9;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
}

/* Heading */
h1 {
  margin-bottom: 20px;
  font-size: 36px;
  color: #333;
}

/* Buttons */
button {
  background: #ff4757;
  color: white;
  border: none;
  padding: 12px 20px;
  font-size: 18px;
  margin: 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease;
}

button:hover {
  background: #e84118;
}

/* Template Gallery */
#template-gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}

#template-gallery img {
  width: 220px;
  height: 124px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#template-gallery img:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 12px rgba(0,0,0,0.3);
}

/* Controls */
#controls {
  margin: 20px 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

#controls input, #controls select {
  padding: 10px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 8px;
}

/* Canvas */
#thumbCanvas {
  margin-top: 20px;
  border: 2px solid #ccc;
  border-radius: 12px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

/* Responsive */
@media (max-width: 768px) {
  #template-gallery img {
    width: 45%;
  }
  
  #controls {
    flex-direction: column;
    align-items: center;
  }
}
