
body { font-family: Arial, sans-serif; background: #fff8e1; padding: 10px; margin: 0; }
h3 { color: #c62828; text-align: center; }
form { max-width: 400px; margin: auto; background: #fff3cd; padding: 20px; border-radius: 10px; box-shadow: 0 0 10px #ddd; }
.form-group { margin-bottom: 15px; text-align: left; }
label { display: block; margin-bottom: 5px; }
.template-option { width: 80px; margin-right: 10px; cursor: pointer; border: 2px solid transparent; }
.template-option.selected { border-color: red; }

.container { max-width: 800px; margin: auto; padding: 10px; }
.festival-grid { display: flex; flex-wrap: wrap; gap: 20px; justify-content: center; }
.festival-card {
    border-radius: 15px;
    text-decoration: none;
    color: #c62828;
    box-shadow: 0 0 5px #ccc;
    margin-top: 10px;
}
.festival-card:hover {
  background: #ffe082;
}

/* to be removed after raakhi */

body {
  font-family: Arial, sans-serif;
  background: #fff8e1;
  /* padding: 20px; */
  margin: 0;
}

h2 {
  color: #c62828;
  text-align: center;
}

form {
  max-width: 400px;
  margin: auto;
  background: #fff3cd;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 0 10px #ddd;
}

.form-group {
  margin-bottom: 15px;
  text-align: left;
}

label {
  display: block;
  margin-bottom: 5px;
}

input[type="text"],
input[type="file"] {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

button {
  padding: 10px 20px;
  margin: 5px;
  border: none;
  background: #c62828;
  color: white;
  border-radius: 6px;
}

button:hover {
  background: #a51f1f;
}

.card-preview {
  margin-top: 20px;
  text-align: center;
}

canvas {
  width: 100%;
  max-width: 500px;
  border-radius: 10px;
}

.watermark {
  font-size: 12px;
  color: #777;
  margin-top: 5px;
}

/* ✅ Spinner */
.spinner-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #fff8e1;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.spinner {
  border: 6px solid #f3f3f3;
  border-top: 6px solid #c62828;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
}

.spinner-text {
  margin-top: 15px;
  font-size: 18px;
  color: #5d4037;
  font-weight: bold;
  font-family: serif;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* ✅ Template selector */
#templateOptions {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.template-option {
  width: calc(50% - 20px);
  aspect-ratio: 1 / 1;
  border: 3px solid transparent;
  border-radius: 12px;
  cursor: pointer;
  object-fit: cover;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s ease;
}

.template-option:hover {
  transform: scale(1.03);
}

.template-option.selected {
  border-color: #c62828;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.4);
}

#formWrapper {
  transition: opacity 0.4s ease;
}

#formWrapper.hidden {
  opacity: 0;
  pointer-events: none;
  height: 0;
  overflow: hidden;
}

