/* stylesface.css (copied from styles.css) */
:root {
  --pink: #ffd6e8;
  --lavender: #e8d9ff;
  --pastel-green: #dff7e6;
  --text: #333;
  --polaroid-bg: #fff;
}

html,
body {
  height: 100%;
  margin: 0;
}
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  padding: 24px;
  background: linear-gradient(
    135deg,
    var(--pink) 0%,
    var(--lavender) 50%,
    var(--pastel-green) 100%
  );
  color: var(--text);
}

h2 {
  margin: 8px 0 12px;
}

.chelsea-market-regular {
  font-family: "Chelsea Market", system-ui;
  font-weight: 400;
  font-style: normal;
}

.chewy-regular {
  font-family: "Chewy", system-ui;
  font-weight: 400;
  font-style: normal;
}

.delius-regular {
  font-family: "Delius", cursive;
  font-weight: 400;
  font-style: normal;
}

/* title color and tightened second-line spacing */
h2.chewy-regular {
  color: #6a1b9a; /* purple */
}

h2.chewy-regular p {
  margin: 0;
  padding: 0;
  line-height: 14px; /* increased gap for the break-line */
}

/* increase main title size by 10% */
h2.chewy-regular {
  font-size: 110%;
}

button {
  background: #5b3db1;
  color: #fff;
  border: none;
  padding: 10px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
}

button#retry-btn {
  background: transparent;
  color: #2d7a39;
  border: 2px solid rgba(45, 122, 57, 0.12);
  padding: 6px 10px;
  border-radius: 20px;
  margin-left: 12px;
}

#status {
  margin-top: 12px;
  font-size: 1rem;
}

/* Polaroid camera frame */
.polaroid {
  width: 340px;
  height: 380px;
  background: var(--polaroid-bg);
  padding: 18px 18px 48px 18px; /* bottom bigger like polaroid */
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  border-radius: 14px;
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.polaroid::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  height: 6px; /* subtle border line near bottom */
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.02));
  border-radius: 4px;
}

/* make the webcam canvas rounded within the polaroid */
#photo-area {
  width: 100%;
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#photo-area canvas {
  width: 100%;
  height: auto;
  max-height: 280px;
  border-radius: 12px;
  object-fit: cover;
}

#polaroid-caption {
  position: absolute;
  bottom: 12px;
  left: 18px;
  right: 18px;
  text-align: center;
  font-weight: 600;
  color: #333;
  background: transparent;
}

/* larger title and caption */
h2.chewy-regular {
  font-size: 2.2rem;
  color: #ffffff; /* title white */
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.06);
  letter-spacing: 0.5px;
}

#polaroid-caption {
  font-family: "Delius", cursive;
  font-size: 1.25rem;
  color: #424141ff; /* medium gray */
  letter-spacing: 0.6px;
}

/* Delius font utility classes (replacing Sour Gummy) */
.delius-regular {
  font-family: "Delius", cursive;
  font-weight: 400;
  font-style: normal;
}

/* handy heavier variant for stronger weight */
.delius-600 {
  font-family: "Delius", cursive;
  font-weight: 600;
  font-style: normal;
}

#label-container {
  margin-top: 10px;
  font-size: 0.9rem;
  color: #444;
}
#result {
  margin-top: 10px;
}

footer#app-footer {
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  color: #2d7a39;
}

#getdlook-img {
  width: 200px;
  height: 200px;
  object-fit: contain;
}

#troubleshoot {
  max-width: 520px;
  white-space: pre-wrap;
  text-align: left;
}

@media (max-width: 420px) {
  .polaroid {
    width: 90%;
    height: auto;
    padding-bottom: 44px;
  }
}
