/* ================= COLOR VARIABLES ================= */
:root {
  --black: #000000;
  --dark-red: #8b0000;
  --red: #e10600;
  --light-red: #ff4d4d;
  --white: #ffffff;
}

/* ================= GLOBAL ================= */
.app-bg {
  min-height: 100vh;
  background: url("assets/mbecbg.png") no-repeat center center fixed;
  background-size: cover;
}

html, body {
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
}

.container {
  max-width: 1400px;
  flex: 1;
}

/* ================= NAVBAR ================= */
.custom-navbar {
  background: linear-gradient(90deg, #000000, #8b0000);
  padding: 15px 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

.navbar-logo {
  height: 50px;
  width: auto;
}

.navbar-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.navbar-title {
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--white);
  letter-spacing: 1px;
}

.navbar-subtitle {
  font-size: 0.85rem;
  color: #ffcccc;
  opacity: 0.9;
}

.navbar-spacer {
  width: 50px; /* roughly same width as logo to balance layout */
}




/* ================= HEADER ================= */
.main-title {
  color: var(--black);
  font-size: 2.5rem;
  letter-spacing: 1px;
}

.subtitle {
  color: #000000;
  font-size: 1rem;
}

/* ================= CARDS ================= */
.main-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 0, 0, 0.3);
  border-radius: 20px;
  backdrop-filter: blur(12px);
  color: var(--white);
}

/* ================= BUTTONS ================= */
.btn-main {
  background: linear-gradient(135deg, var(--red), var(--dark-red));
  color: var(--white);
  border: none;
  border-radius: 16px;

  font-size: 1.1rem;
  font-weight: 600;

  padding: 14px 28px;
  min-width: 220px;

  box-shadow: 0 0 20px rgba(255, 0, 0, 0.6);
  transition: all 0.2s ease;
}

.btn-main:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 0 30px rgba(255, 0, 0, 0.9);
}

.btn-main:active {
  transform: scale(0.97);
}

/* ================= TEMPLATE SELECTOR ================= */
.template-selector {
  padding: 10px;
}

.template-item {
  cursor: pointer;
  text-align: center;
  transition: transform 0.25s ease;
}

.template-item:hover {
  transform: translateY(-6px);
}

.template-item img {
  width: 90px;
  border-radius: 14px;
  border: 3px solid transparent;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.8);
}

.template-item.active img {
  border-color: var(--red);
  box-shadow: 0 0 20px rgba(255, 0, 0, 0.9);
}

.template-item span {
  display: block;
  margin-top: 6px;
  font-size: 0.85rem;
  color: var(--white);
}

/* ================= CAPTURE BUTTON ================= */
.capture-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  margin-bottom: 30px;
}


.capture-btn {
  width: 85px;
  height: 85px;
  border-radius: 50%;
  background: var(--red);
  border: 6px solid var(--white);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.capture-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 0 20px rgba(255, 0, 0, 0.8);
}

.capture-btn:active {
  transform: scale(0.92);
}

.capture-btn:disabled {
  background: #555;
  cursor: not-allowed;
}

/* ================= RECORD BUTTON ================= */

.record-btn {
  width: 85px;
  height: 85px;
  margin-left: 18px;

  border-radius: 18px; /* square with soft corners */
  background: var(--dark-red);
  border: 6px solid var(--white);

  font-size: 34px;
  display: flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.record-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 0 20px rgba(255,0,0,0.8);
}

.record-btn:active {
  transform: scale(0.92);
}

.record-btn.recording {
  background: #111;
  box-shadow: 0 0 25px rgba(255,0,0,1);
}


/* ================= HELPER TEXT ================= */
.helper-text {
  color: #ffcccc;
  font-size: 0.9rem;
  opacity: 0.9;
}

/* ================= PHOTOSTRIP WRAPPER ================= */
.photostrip-wrapper {
  max-width: 750px;
}

.photostrip {
  position: relative;
  width: 100%;
  max-width: 700px;
}

/* PHOTO LAYER */
.photo-layer {
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* TEMPLATE OVERLAY */
.template-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

/* SLOT */
.slot {
  position: absolute;
  background: var(--white);
  cursor: pointer;
  overflow: hidden;
  border-radius: 14px;
  transition: transform 0.2s ease;
}

.slot:hover {
  transform: scale(1.02);
}

.slot.active {
  outline: 3px solid var(--red);
  outline-offset: 3px;
}

.slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.photo-wrapper {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  touch-action: none;
  cursor: grab;
}

.photo-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

/* ================= FOOTER ================= */
.footer-clean {
  background: #000000;
  color: #ffffff;
  padding: 40px 0 30px;
}

.footer-divider {
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, #8b0000, #e10600);
  margin: 0 auto 20px;
  border-radius: 10px;
}

.footer-clean p {
  font-size: 1rem;
  margin-bottom: 4px;
}

.footer-sub {
  color: #ffcccc;
  opacity: 0.8;
}



/* ================= RESPONSIVE ================= */
@media (max-width: 992px) {
  .photostrip-wrapper {
    max-width: 100%;
  }

  .photostrip {
    max-width: 100%;
  }
}