/* =============================
   Fence UI — Clean CSS Layout
   - Variables & Resets
   - Base / Layout / Components
   - Animations
   - Media Queries (ALL at bottom)
   ============================= */

/* ========= Variables ========= */
:root{
  --purple-900:#4a0073;
  --purple-700:#6a0fb1;
  --teal-100:#e7f7ff;
  --teal-200:#d9f1ff;
  --cyan-glow:#7cf4ff;
  --ink:#1f2833;
  --ink-soft:#3a4959;
}

/* ========== Resets ========== */
*{ box-sizing:border-box; }
html,body{
  height:100%;
  margin:0;
  font-family:"Fredoka",system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  color:var(--ink);
  /* silky green → purple gradient */
  background:#000;
}


/* ========= Ribbon / Top Bar ========= */
.ribbon{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:16px;
  padding:12px 16px;
  color:#ffd;
}
.ribbon-title{
  margin:0;
  font-family:"Kalam", cursive;
  font-size:clamp(18px, 2.6vw, 34px);
  background: linear-gradient(180deg,#ffe59b 0%, #f6c238 40%, #d19a19 100%);
  -webkit-background-clip:text; background-clip:text; color:transparent;
  text-shadow:0 1px 0 rgba(0,0,0,.15);
}
.ribbon-badge{
  background:#fff; color:#2d2d2d; font-weight:700; border-radius:999px;
  padding:8px 12px; box-shadow:0 4px 14px rgba(0,0,0,.2), 0 0 0 6px #5dc4ff;
}
.ribbon-balloons img{
  width:min(64px,14vw); height:auto; display:block;
  filter: drop-shadow(0 6px 12px rgba(0,0,0,.25));
}

/* ========= Navigation / Links ========= */
.top-links {
  display:flex;
  gap:10px;
  align-items:center;
}

/* Burger (hidden on desktop by default) */
.burger {
  display:none;
  background:transparent;
  border:1.5px solid #cbdff0;
  color:#fff;
  padding:6px 10px;
  border-radius:10px;
}

/* Burger Menu Links */
.top-links a {
  display: block;
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 600;
  color: #ffffff;
  text-decoration: none;
  background: linear-gradient(90deg, #7b2ff7 0%, #f107a3 100%);
  box-shadow: 0 3px 10px rgba(0,0,0,0.3);
  transition: all 0.25s ease;
}
.top-links a:hover {
  transform: translateY(-2px);
  background: linear-gradient(90deg, #f107a3 0%, #7b2ff7 100%);
  box-shadow: 0 6px 18px rgba(255, 0, 102, 0.6);
  color: #fffbe6;
}
.top-links a:active {
  transform: scale(0.97);
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}


.middle-links a {
  display: block;
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 600;
  color: #ffffff;
  text-decoration: none;
  /*background: linear-gradient(135deg, #007cf0 0%, #00dfd8 45%, #003666 100%);*/
  background: linear-gradient(135deg, #ff4d4d 0%, #f9cb28 35%, #7e1212 100%);
  box-shadow: 0 3px 10px rgba(0,0,0,0.3);
  transition: all 0.25s ease;
}
.middle-links a:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #007cf0 0%, #00dfd8 45%, #003666 100%);
  /*background: linear-gradient(135deg, #ff4d4d 0%, #f9cb28 35%, #7e1212 100%);*/
  
  color: #fffbe6;
}
.middle-links a:active {
  transform: scale(0.97);
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.middle-links a.is-disabled {
  opacity: 0.6;
  pointer-events: none;
  filter: grayscale(0.3);
}


/* ========= Layout / Cards ========= */
.container{ width:min(980px, 92vw); margin:24px auto; }
.card{
  display:none;
  background: radial-gradient(800px 400px at 50% -10%, var(--teal-200), var(--teal-100)), #fff;
  border-radius:24px; padding:22px;
  box-shadow:
    0 10px 40px rgba(0, 0, 0, .25),
    0 0 0 6px rgba(0, 121, 255, .7);
  border:1px solid #eaf6ff;
}
.card.show{ display:block; }

/* ========= Headings ========= */
.title-gold,
h3.title-gold {
  margin: 6px 0 18px;
  font-size: clamp(22px, 3.2vw, 40px);
  background: linear-gradient(180deg, #fff79a 0%, #ffe34d 80%, #ffcc00 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: white;
  text-align: center;
  text-transform: uppercase;
}



.primary{
  background:linear-gradient(180deg, #92ff7a, #3cc7ff);
  border:0; color:#05303a; font-weight:700; padding:10px 16px; border-radius:14px; cursor:pointer;
  box-shadow: 0 6px 16px rgba(60,199,255,.45);
}
.pill{
  margin-left:auto; margin-right:8px;
  background: linear-gradient(180deg, #ffff, #ffff);
  color:#ffe156;
  border:1px solid #ffd24a;
  padding:6px 12px;
  border-radius:999px;
  font-weight:700;
  box-shadow: 0 3px 10px rgba(255, 197, 61, .35);
}


/* Disabled state */
button:disabled,
.primary.disabled{
  opacity:.5;
  cursor:not-allowed;
  pointer-events:none;
}

/* Make cards look clickable on this page */
.all-cards-grid .grid-card {
  cursor: pointer;
}

/* Toggled "done" state for cards the couple has already used */
.grid-card--done {
  position: relative;
  opacity: 0.55;
  transform: scale(0.97);
}

/* Optional: draw a white outline + DONE text over the card */
.grid-card--done::after {
  content: "DONE";
  position: absolute;
  inset: 8px;
  border-radius: 10px;
  border: 3px solid rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ffcc00;
  text-shadow: 0 2px 6px rgba(0,0,0,0.7);
  pointer-events: none; /* does not block further clicks */
}

/* Also strike through the text for extra "crossed off" feel */
.grid-card--done .grid-card-tagline {
  text-decoration: line-through;
}

/* =========================
   Apology card layout husband and wife
   ========================= */
   .hint{
       text-align: center;
       color: white;
   }
   
.apology-card {
  
  margin: 2.5rem auto 3rem;
  padding: 1.5rem 1.5rem 2rem;
  background: linear-gradient(135deg, #7b2ff7 0%, #b974ff 45%, #3e1f74 100%);
  border-radius: 1rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
  color: #fff;
}

.apology-title {
  text-align: center;
  margin: 0 0 1rem;
}

.title-img {
  width: auto;
  max-width: 100%;
  height: 60px; /* adjust as needed */
}

.apology-form {
  background: #000000;
  border-radius: 0.6rem;
  border: 2px solid #111;
  padding: 1.25rem 1.4rem 1.4rem;
  font-family: "Fredoka", system-ui, sans-serif;
  font-size: 0.95rem;
  line-height: 1.3;
  margin-top: 10px;
}

.apology-fields {
  border-bottom: 2px solid #111;
  padding-bottom: 0.9rem;
  margin-bottom: 1rem;
}

.field-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.field-row-split {
  gap: 1rem;
}

.field-half {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.field-label {
  font-weight: 700;
  font-size: 0.9rem;
  white-space: nowrap;
}

.field-input {
  flex: 1;
  border: 1px solid #111;
  border-radius: 3px;
  padding: 0.15rem 0.25rem;
  font-family: inherit;
  font-size: 0.9rem;
}

.infraction-row {
  align-items: flex-start;
  gap: 0.5rem;
}

.infraction-types {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-left: auto;
  font-size: 0.8rem;
}

.infraction-types label {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

/* subtitle */
.apology-subtitle {
  margin: 0.5rem 0 0.6rem;
  text-align: center;
  font-weight: 700;
  font-size: 1.05rem;
}

/* reasons grid */
.reasons-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 0.9rem;
}

.reasons-col label {
  display: flex;
  align-items: flex-start;
  gap: 0.3rem;
  margin-bottom: 0.3rem;
  font-size: 0.85rem;
}

.reasons-col input[type="checkbox"] {
  margin-top: 0.1rem;
}

/* blank line at the bottom of right column */
/* blank line at the bottom of right column */
.blank-extra {
  align-items: center;
}

/* text input that looks like a line */
.blank-input {
  flex: 1;
  border: none;
  border-bottom: 1px solid #111;
  height: 0.9rem;
  background: transparent;
  color: #fff;
  font-family: inherit;
  font-size: 0.85rem;
  padding: 0 0.25rem;
}

.blank-input:focus {
  outline: none;
  border-bottom-color: #fff;
}


/* bottom note */
.apology-note {
  border: 2px solid #111;
  border-radius: 4px;
  padding: 0.6rem 0.7rem;
  font-size: 0.8rem;
}

.apology-note p {
  margin: 0;
}

.apology-note label {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  margin: 0 0.25rem;
}

/* Legend */
.legend{ margin-top:8px; font-size:.95rem; display:flex; align-items:center; gap:8px; opacity:.8; }
.legend .swatch{ width:16px; height:8px; border-radius:8px; display:inline-block; }
.legend .green{ background:linear-gradient(90deg,#4de2ff,#1fbf75); }

/* ========= Footer ========= */
.site-foot{ text-align:center; 
color: white;
  background: transparent !important; padding: 24px 24px 24px; }

/* ===========================
   Love About You page
   =========================== */

.love-page {
  display: flex;
  justify-content: center;
  padding: 2rem 1rem 3rem;
  font-family: "Fredoka", system-ui, sans-serif;
}

.love-card {
  background: linear-gradient(135deg, #39ffb3 0%, #21c98a 35%, #0c6c4b 100%);
  border-radius: 1rem;
  padding: 1.5rem;
  max-width: 800px;
  width: 100%;
  color: #fff;
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
}

.love-card-header {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.love-title {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  line-height: 1.1;
  text-transform: uppercase;
}

.love-heart {
  color: #ff5b8a;
}

.love-meta {
  background: #000;
  color: #fff;
  padding: 0.6rem 0.8rem;
  border-radius: 0.75rem;
  font-size: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.love-meta label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.meta-input {
  flex: 1;
  border: none;
  border-bottom: 1px dotted #999;
  background: transparent;
  font-family: inherit;
  font-size: 0.85rem;
  padding: 0 0.25rem;
  color: #fff;
}

.meta-input:focus {
  outline: none;
  border-bottom-style: solid;
}

/* Sections */

.love-section {
  background: #000;
  color: #fff;
  border-radius: 0.75rem;
  padding: 0.9rem 1rem;
  margin-top: 0.9rem;
}

.love-section-title {
  text-align: center;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}

/* Lines */

.love-lines {
  list-style: none;
  padding: 0;
  margin: 0;
}

.love-line {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 0.5rem;
  row-gap: 0.35rem;
  align-items: center;
  margin-bottom: 0.25rem;
  font-size: 0.9rem;
}

.love-line input[type="checkbox"] {
  margin-right: 0.3rem;
}

.love-line .prompt,
.love-line .suffix {
  white-space: normal;
}

.love-line .line-input {
  border: none;
  border-bottom: 1px dotted #999;
  font-family: "Kalam", cursive;
  font-size: 0.9rem;
  padding: 0 0.25rem;
  min-width: 4rem;
  flex: 1;
}

.love-line .line-input:focus {
  outline: none;
  border-bottom-style: solid;
}

/* make prompt + input + suffix sit in one row on wide screens */
.love-line {
  grid-template-columns: auto minmax(0, 1fr);
}
.love-line > input[type="checkbox"] + .prompt,
.love-line .line-input,
.love-line .suffix {
  display: inline-block;
}

/* Awards */

.love-awards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem 1.2rem;
  font-size: 0.85rem;
}

.love-awards ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.love-awards label {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.custom-award-input {
  border: none;
  border-bottom: 1px dotted #999;
  font-size: 0.8rem;
  padding: 0 0.2rem;
  min-width: 5rem;
}

.custom-award-input:focus {
  outline: none;
  border-bottom-style: solid;
}

/* Furthermore */

.love-furthermore {
  width: 100%;
  border-radius: 0.5rem;
  border: 1px dotted #999;
  padding: 0.5rem;
  resize: vertical;
  font-family: "Kalam", cursive;
  font-size: 0.9rem;
}

/* Nav highlight on this page */

.top-links .active-link {
  font-weight: 700;
  text-decoration: underline;
}

/* ===========================
   MAKE A DECISION PAGE
   =========================== */

.decision-page {
  display: flex;
  justify-content: center;
  padding: 2rem 1rem 3rem;
}

.decision-card {
  background: linear-gradient(135deg, #7b2ff7 0%, #b974ff 45%, #3e1f74 100%);
  padding: 1.5rem;
  border-radius: 1rem;
  width: 100%;
  max-width: 850px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
  font-family: "Fredoka", sans-serif;
  color: #fff;
}

.decision-title {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  color: #b22d67;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.decision-row {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.wide-input {
  width: 100%;
  border: none;
  border-bottom: 2px solid #fff;
  background: transparent;
  padding: 4px;
  font-size: 0.95rem;
  color: #fff;
  margin-bottom: 1rem;
}

.colorchangetitle{
    background: #000;
  border: 2px solid #e0b889;
  border-radius: 0.75rem;
  padding: 0.8rem 1rem;
  margin-top: 1rem;
}

.colorchangetitle label {
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff;
  display: block;     /* keeps them cleanly stacked */
  text-align: center;
  text-transform: uppercase;
}

.fontweight{
    font-weight: 700;
  font-size: 0.95rem;
}

.wide-input:focus {
  outline: none;
  border-bottom-color: #8a4b2f;
}

.decision-box {
  background: #000;
  border: 2px solid #e0b889;
  border-radius: 0.75rem;
  padding: 0.8rem 1rem;
  margin-top: 1rem;
}

.box-title {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
  color: #fff;
  text-align: center;
  text-transform: uppercase;
}

.importance-options {
  display: flex;
  justify-content: center;   /* ⟵ center the whole row inside the box */
  gap: 1.2rem;
  flex-wrap: wrap;
  font-size: 0.9rem;
  text-align: center;        /* keeps each label’s text centered */
}

.big-box {
  width: 100%;
  border: 1px dashed #caa075;
  border-radius: 0.5rem;
  padding: 0.6rem;
  font-family: "Kalam", cursive;
}

.side-check {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.9rem;
  text-align: center;
}

.plus-minus {
  list-style: none;
  padding: 0;
  margin: 0.4rem 0;
}

.plus-minus li {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.3rem;
}

.pm-input {
  flex: 1;
  border: none;
  border-bottom: 1px solid #b87a4d;
  background: transparent;
  color: #fff;
}

.pm-input:focus {
  outline: none;
  border-bottom: 2px solid #8a4b2f;
}

.conclusion-row label {
  flex: 1;
}

/* =========================
   Resolutions Card Grid
   ========================= */

.allcardtitle{
    text-align: center;
    text-transform: uppercase;
    color: white;
}

/* Full-width container for the grid page */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 24px auto;
  padding: 0 12px 40px;
}

/* Mosaic grid */
.card-grid {
  display: grid;
  /* 1. Reduced min-width from 220px to 160px so they can be smaller */
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  
  /* 2. Reduced base height from 180px to 130px to remove vertical empty space */
  grid-auto-rows: 130px;      
  
  /* 3. Added gap so rounded corners look natural */
  gap: 1rem;                  
  
  text-decoration: none !important;
  padding: 1rem; /* Optional: adds space around the whole grid */
}

/* Base card appearance */
.grid-card {
  display: flex;
  justify-content: center;   
  align-items: center;       
  text-align: center;        
  background: linear-gradient(135deg, #007cf0 0%, #00dfd8 45%, #003666 100%);
  /* 4. Added rounding (12px is standard for playing cards) */
  border-radius: 12px; 
  
  border: 3px solid #000;
  overflow: hidden; 
  
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  text-decoration: none !important;
}

.grid-card-inner {
  width: 100%;
  /* 5. Reduced padding so text can get closer to edges if needed */
  padding: 0.5rem; 
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* --- COLORS (Unchanged) --- */
.grid-card--blue {
  background: linear-gradient(135deg, #007cf0 0%, #00dfd8 45%, #003666 100%);
}
.grid-card--orange {
  background: linear-gradient(135deg, #ff4d4d 0%, #f9cb28 35%, #7e1212 100%);
}

.grid-card--cards {
  background: linear-gradient(135deg, #ff4d4d 0%, #f9cb28 35%, #7e1212 100%);
  box-shadow: 0 8px 18px rgb(218 7 254);
}



/* --- SIZES (Unchanged logic, but they now scale with the smaller grid) --- */
.grid-card--short { grid-row: span 1; }
.grid-card--tall  { grid-row: span 2; }
.grid-card--wide  { grid-column: span 2; }

/* --- TYPOGRAPHY --- */
.grid-card-title {
  margin: 0 0 0.2rem;
  /* 6. Slightly reduced font size to match smaller card */
  font-size: 1.2rem; 
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-shadow: 0 2px 0 rgba(0,0,0,0.4);
  color: white;
}

.grid-card-tagline {
  margin: 0;
  font-size: 0.85rem;
  opacity: 0.9;
  color: white;
}

.grid-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 30px rgba(0,0,0,0.6);
}

/* =========================================
   MOSAIC MODE OVERRIDE (For Index.html only)
   ========================================= */
   
   .centercoms{
       text-align: center;
       color: white;
       text-transform: uppercase;
   }
   
   
   
.card-grid.mosaic-mode {
  /* Restore the original tight spacing and larger sizes */
  gap: 0; 
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  grid-auto-rows: 180px; 
  padding: 0; /* Remove the outer padding used for rounded cards */
}

.card-grid.mosaic-mode .grid-card {
  /* Square corners */
  border-radius: 0; 
  /* Original bright green shadow */
  box-shadow: 0 8px 18px rgb(218 7 254); 
  background: linear-gradient(135deg, #007cf0 0%, #00dfd8 45%, #003666 100%);
}

/* Restore the larger text/padding for the big tiles */
.card-grid.mosaic-mode .grid-card-inner {
  padding: 1rem;
}

.card-grid.mosaic-mode .grid-card-title {
  font-size: 1.35rem;
}

/* ===========================
   WE NEED TO TALK PAGE
   =========================== */

.talk-page {
  display: flex;
  justify-content: center;
  padding: 2rem 1rem 3rem;
  font-family: "Fredoka", system-ui, sans-serif;
}

.talk-card {
  background: linear-gradient(135deg, #39ffb3 0%, #21c98a 35%, #0c6c4b 100%);
  border-radius: 1rem;
  padding: 1.5rem;
  max-width: 800px;
  width: 100%;
  color: #fff;
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
}

.talk-card-header {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.talk-title {
  margin: 0;
  font-size: clamp(1.8rem, 3.2vw, 2.4rem);
  line-height: 1.1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.talk-meta {
  background: #000;
  color: #fff;
  padding: 0.6rem 0.8rem;
  border-radius: 0.75rem;
  font-size: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.talk-meta label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.talk-meta .meta-input {
  flex: 1;
  border: none;
  border-bottom: 1px dotted #666;
  background: transparent;
  font-family: inherit;
  font-size: 0.85rem;
  padding: 0 0.25rem;
  color: #fff;
}

.talk-meta .meta-input:focus {
  outline: none;
  border-bottom-style: solid;
}

/* Sections */

.talk-section {
  background: #000;
  border-radius: 0.75rem;
  padding: 0.75rem 0.9rem;
  margin-top: 0.8rem;
  border: 1px solid rgba(255,255,255,0.35);
}

.talk-section-title {
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
  text-align: center;   /* ⟵ center the title text */
}


/* Checkbox rows / grids */

.talk-check-row {
  display: flex;
  justify-content: center;   /* ⟵ center the labels in the row */
  flex-wrap: wrap;
  gap: 0.6rem 1.2rem;
  font-size: 0.9rem;
  text-align: center;        /* ⟵ center the text inside each label */
}


.talk-check-row label {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.talk-check-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.4rem 1.2rem;
  font-size: 0.88rem;
  justify-content: center;
}

.talk-check-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.talk-check-grid label {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

/* Notes area */

.talk-notes {
  width: 100%;
  border-radius: 0.5rem;
  border: 1px dotted rgba(255,255,255,0.7);
  padding: 0.5rem;
  resize: vertical;
  font-family: "Kalam", cursive;
  font-size: 0.9rem;
  background: rgba(0,0,0,0.18);
  color: #fff;
}

.talk-notes:focus {
  outline: none;
  border-style: solid;
}

/* Make sure the title image keeps its proportions */
.talk-title-img {
  width: 100%;
  max-width: 420px;
  height: auto;
  display: block;
  margin: 0 auto 0.6rem;
}

/* Default desktop layout can stay side-by-side */
.talk-card-header {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: flex-start;
  margin-bottom: 1rem;
}

/* ===========================
   PAPER TANTRUM PAGE
   =========================== */

.tantrum-page {
  display: flex;
  justify-content: center;
  padding: 2rem 1rem 3rem;
  font-family: "Fredoka", system-ui, sans-serif;
}

.tantrum-card {
  background: linear-gradient(135deg, #7b2ff7 0%, #b974ff 45%, #3e1f74 100%);
  border-radius: 1rem;
  padding: 1.4rem 1.6rem 1.6rem;
  max-width: 800px;
  width: 100%;
  color: #fff;
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
}

/* Title + subtitle */

.tantrum-title {
  margin: 0 0 0.5rem;
  text-align: center;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: clamp(1.6rem, 3.2vw, 2.3rem);
}

.tantrum-subtitle {
  margin: 0 0 1rem;
  padding: 0.5rem 0.75rem;
  border-radius: 0.6rem;
  background: #000;
  color: #fff;
  font-size: 0.85rem;
  line-height: 1.3;
  text-align: center;
}

/* Sections */

.tantrum-section {
  background: #000;
  color: #fff;
  border-radius: 0.75rem;
  padding: 0.8rem 0.95rem;
  margin-top: 0.8rem;
  border: 1px solid rgba(0,0,0,0.12);
}

.tantrum-section-title {
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 0.5rem;
  text-align: center;
}

/* Checkbox grids */

.tantrum-check-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.4rem 1.2rem;
  font-size: 0.88rem;
}

.tantrum-check-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.tantrum-check-grid label {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

/* Custom text beside a checkbox */

.tantrum-custom-input {
  border: none;
  border-bottom: 1px dotted #777;
  
  font-size: 0.85rem;
  padding: 0 0.2rem;
  min-width: 4.5rem;
}

.tantrum-custom-input:focus {
  outline: none;
  border-bottom-style: solid;
}

/* Notes area */

.tantrum-notes {
  width: 100%;
  border-radius: 0.5rem;
  border: 1px dotted #777;
  padding: 0.5rem;
  resize: vertical;
  font-family: "Kalam", cursive;
  font-size: 0.9rem;
}

/* Bottom bar */

.tantrum-thanks {
  margin-top: 1rem;
  padding: 0.55rem 0.8rem;
  text-align: center;
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: #000;
  border-radius: 0.7rem;
  border: 1px solid rgba(255,255,255,0.7);
}

/* =========================================================
   THINK SHEET — Clean Black Panel Layout (same style as 
   “Love About You” + “Paper Tantrum” pages)
   ========================================================= */

.think-page {
  display: flex;
  justify-content: center;
  padding: 2rem 1rem 3rem;
  font-family: "Fredoka", system-ui, sans-serif;
}

/* Main card – green gradient like Love About You */
.think-card {
  background: linear-gradient(135deg, #39ffb3 0%, #21c98a 35%, #0c6c4b 100%);
  border-radius: 1.5rem;
  padding: 1.6rem;
  max-width: 850px;
  width: 100%;
  color: #fff;
  box-shadow: 0 10px 25px rgba(0,0,0,0.35);
}

/* Title + top fields section */
.think-header-bar {
  text-align: center;
  margin-bottom: 1rem;
}

.think-title img {
  width: auto;
  max-width: 100%;
  height: 65px;
  object-fit: contain;
}

/* Name / Date box */
.think-meta-bar {
  background: #000;
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  justify-content: center;
  margin-top: 0.8rem;
}

.think-meta-bar label {
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.think-meta-input {
  border: none;
  border-bottom: 1px solid #aaa;
  background: transparent;
  color: #fff;
  padding: 0.15rem 0.3rem;
}

.think-meta-input:focus {
  outline: none;
  border-bottom-color: #fff;
}

/* ===============================
   Black oval panels (main blocks)
   =============================== */
.think-block {
  background: #000;
  color: #fff;
  border-radius: 1rem;
  padding: 1rem 1.2rem;
  margin-top: 1.2rem;
  border: 1px solid rgba(255,255,255,0.15);
}

.think-question {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
  text-align: center;
  text-transform: uppercase;
}

/* Textareas and underline inputs */
.think-textarea,
.think-line-input {
  width: 100%;
  background: transparent;
  color: #fff;
  border: none;
  border-bottom: 1px solid #bbb;
  padding: 0.3rem 0.1rem;
  margin-bottom: 0.4rem;
  font-family: "Kalam", cursive;
  font-size: 0.95rem;
}

.think-textarea:focus,
.think-line-input:focus {
  outline: none;
  border-bottom: 2px solid #fff;
}

/* Traits grid */
.think-traits-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.think-traits-grid label {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.think-trait-custom {
  border: none;
  border-bottom: 1px dotted #aaa;
  background: transparent;
  color: #fff;
  min-width: 4rem;
}

.think-trait-custom:focus {
  outline: none;
  border-bottom-style: solid;
}

/* Signature line */
.think-signature-row {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.think-signature-line {
  flex: 1;
  border: none;
  border-bottom: 1px solid #aaa;
  background: transparent;
  padding: 0.3rem;
  color: #fff;
}

.think-signature-line:focus {
  outline: none;
  border-bottom-color: #fff;
}

/* Print button area */
.apology-actions {
  margin: 1rem 0 1rem;
  text-align: left;
}

/* ===========================
   YOU GOOD? PAGE
   =========================== */

.yougood-page {
  display: flex;
  justify-content: center;
  padding: 2rem 1rem 3rem;
  font-family: "Fredoka", system-ui, sans-serif;
}

/* Main card – dark, rounded, centered */
.yougood-card {
  max-width: 800px;
  width: 100%;
  border-radius: 1.5rem;
  padding: 1.4rem 1.6rem 1.6rem;
  background: linear-gradient(135deg, #7b2ff7 0%, #b974ff 45%, #3e1f74 100%);
  color: #fff;
  box-shadow: 0 10px 25px rgba(0,0,0,0.4);
}

/* Title */
.yougood-title {
  margin: 0 0 0.6rem;
  text-align: center;
  font-size: clamp(1.8rem, 3.4vw, 2.5rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* TO / FROM row */


.yougood-meta {
  display: flex;
  justify-content: center;   /* ⟵ centers TO and FROM */
  align-items: center;
  flex-wrap: wrap;
  gap: 1.2rem;
  background: #000;
  border: 1px solid rgba(255,255,255,0.18);
  padding: 0.6rem 0.8rem;
  border-radius: 0.75rem;
  font-size: 0.9rem;
}

.yougood-meta label {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-weight: 700;
  text-align: center;
}

.yougood-meta-input {
  border: none;
  border-bottom: 1px solid rgba(255,255,255,0.7);
  background: transparent;
  color: #fff;
  padding: 0.15rem 0.25rem;
  min-width: 7rem;
  font-family: inherit;
}

.yougood-meta-input:focus {
  outline: none;
  border-bottom-width: 2px;
}

/* Sections – black boxes with white text */
.yougood-section {
  background: #000;
  color: #fff;
  border-radius: 1rem;
  padding: 0.9rem 1rem;
  margin-top: 0.9rem;
  border: 1px solid rgba(255,255,255,0.15);
}

.yougood-section-title {
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
  text-align: center;
}

/* Grid of checkboxes */
.yougood-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.4rem 1.2rem;
  font-size: 0.9rem;
}

.yougood-grid--small {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.yougood-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.yougood-grid label {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

/* Custom text inputs in-line with checkboxes */
.yougood-custom-input {
  border: none;
  border-bottom: 1px dotted rgba(255,255,255,0.8);
  background: transparent;
  color: #fff;
  padding: 0 0.25rem;
  font-size: 0.85rem;
  min-width: 5rem;
}

.yougood-custom-input:focus {
  outline: none;
  border-bottom-style: solid;
}

/* Notes area */
.yougood-notes {
  width: 100%;
  border-radius: 0.6rem;
  border: 1px dotted rgba(255,255,255,0.8);
  padding: 0.5rem;
  resize: vertical;
  background: transparent;
  color: #fff;
  font-family: "Kalam", cursive;
  font-size: 0.9rem;
}

/* Bottom bar */
.yougood-footer-bar {
  margin-top: 1rem;
  padding: 0.55rem 0.8rem;
  text-align: center;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: #000;
  border-radius: 0.9rem;
  border: 1px solid rgba(255,255,255,0.25);
}

/* ===========================
   WTF PAGE
   =========================== */

.wtf-page {
  display: flex;
  justify-content: center;
  padding: 2rem 1rem 3rem;
  font-family: "Fredoka", system-ui, sans-serif;
}

/* Main card – orange like the reference, on black background */
.wtf-card {
  max-width: 800px;
  width: 100%;
  border-radius: 1.5rem;
  padding: 1.4rem 1.6rem 1.6rem;
  background: linear-gradient(135deg, #39ffb3 0%, #21c98a 35%, #0c6c4b 100%);
  color: #fff;
  box-shadow: 0 10px 25px rgba(0,0,0,0.4);
}

/* Title */
.wtf-title {
  margin: 0 0 0.6rem;
  text-align: center;
  font-size: clamp(2rem, 3.8vw, 2.8rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* TO / FROM row */
.wtf-meta {
  display: flex;
  justify-content: center;   /* ⟵ center TO and FROM in the row */
  align-items: center;
  flex-wrap: wrap;
  gap: 1.2rem;
  margin-bottom: 0.9rem;
  padding: 0.6rem 0.8rem;
  border-radius: 0.75rem;
  background: #000;
  border: 1px solid rgba(255,255,255,0.2);
  font-size: 0.9rem;
}

.wtf-meta label {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-weight: 700;
  text-align: center;        /* centers the text inside each label */
}


.wtf-meta-input {
  border: none;
  border-bottom: 1px solid rgba(255,255,255,0.75);
  background: transparent;
  color: #fff;
  padding: 0.15rem 0.25rem;
  min-width: 7rem;
  font-family: inherit;
}

.wtf-meta-input:focus {
  outline: none;
  border-bottom-width: 2px;
}

/* Sections – black panels with white text */
.wtf-section {
  background: #000;
  color: #fff;
  border-radius: 1rem;
  padding: 0.9rem 1rem;
  margin-top: 0.9rem;
  border: 1px solid rgba(255,255,255,0.15);
}

.wtf-section-title {
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
  text-align: center;
}

/* Checkbox grids */
.wtf-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.4rem 1.2rem;
  font-size: 0.9rem;
}

.wtf-grid--small {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.wtf-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.wtf-grid label {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

/* Custom inline input */
.wtf-custom-input {
  border: none;
  border-bottom: 1px dotted rgba(255,255,255,0.8);
  background: transparent;
  color: #fff;
  padding: 0 0.25rem;
  font-size: 0.85rem;
  min-width: 5rem;
}

.wtf-custom-input:focus {
  outline: none;
  border-bottom-style: solid;
}

/* Notes area */
.wtf-notes {
  width: 100%;
  border-radius: 0.6rem;
  border: 1px dotted rgba(255,255,255,0.8);
  padding: 0.5rem;
  resize: vertical;
  background: transparent;
  color: #fff;
  font-family: "Kalam", cursive;
  font-size: 0.9rem;
}

/* Bottom labels bar */
.wtf-bottom {
  margin-top: 1rem;
  padding: 0.6rem 0.8rem;
  border-radius: 0.9rem;
  background: #000;
  border: 1px solid rgba(255,255,255,0.25);
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  justify-content: center;
  font-size: 0.9rem;
}

.wtf-bottom label {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

/* ===========================
   MOOD ALERT PAGE
   =========================== */

.mood-page {
  display: flex;
  justify-content: center;
  padding: 2rem 1rem 3rem;
  font-family: "Fredoka", system-ui, sans-serif;
}

/* Main card for Mood Alert */
.mood-card {
  max-width: 800px;
  width: 100%;
  border-radius: 1.5rem;
  padding: 1.4rem 1.6rem 1.6rem;
  background: linear-gradient(135deg, #9d7bff 0%, #5fd4ff 45%, #2e0f6b 100%);
  color: #fff;
  box-shadow: 0 10px 25px rgba(0,0,0,0.4);
}

/* Title */
.mood-title {
  margin: 0 0 0.6rem;
  text-align: center;
  font-size: clamp(2rem, 3.6vw, 2.8rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Intro text panel */
.mood-intro {
  background: #000;
  color: #fff;
  border-radius: 1rem;
  padding: 0.7rem 0.95rem;
  margin-bottom: 0.9rem;
  border: 1px solid rgba(255,255,255,0.2);
  font-size: 0.86rem;
  line-height: 1.35;
}

/* Reuse apology-actions margin for print button */
.apology-actions {
  margin: 0.6rem 0 1rem;
}

/* Black inner sections */
.mood-section {
  background: #000;
  color: #fff;
  border-radius: 1rem;
  padding: 0.9rem 1rem;
  margin-top: 0.9rem;
  border: 1px solid rgba(255,255,255,0.15);
}

.mood-section-title {
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
  text-align: center;
}

/* Emoji mood grid */
.mood-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem 1rem;
}

.mood-option label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  text-align: center;
  font-size: 0.82rem;
}

.mood-option input[type="checkbox"] {
  margin-bottom: 0.15rem;
}

.mood-face {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #111;
  border: 2px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
}

.mood-label {
  white-space: normal;
}

/* Notes area */
.mood-notes {
  width: 100%;
  border-radius: 0.6rem;
  border: 1px dotted rgba(255,255,255,0.8);
  padding: 0.5rem;
  resize: vertical;
  background: transparent;
  color: #fff;
  font-family: "Kalam", cursive;
  font-size: 0.9rem;
}

/* Reasons grid */
.mood-reasons-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem 1.2rem;
  font-size: 0.9rem;
}

.mood-reasons-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mood-reasons-grid label {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

/* Custom inline input inside reasons */
.mood-custom-input {
  border: none;
  border-bottom: 1px dotted rgba(255,255,255,0.8);
  background: transparent;
  color: #fff;
  padding: 0 0.25rem;
  font-size: 0.85rem;
  min-width: 6rem;
}

.mood-custom-input:focus {
  outline: none;
  border-bottom-style: solid;
}

/* Bottom bar */
.mood-footer-bar {
  margin-top: 1rem;
  padding: 0.6rem 0.8rem;
  text-align: center;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: #000;
  border-radius: 0.9rem;
  border: 1px solid rgba(255,255,255,0.25);
}


@media print {
  /* Make background plain white when printing */
  html, body {
    background: #ffffff !important;
  }

  /* Hide header, footer, and the blue button when printing */
  .ribbon,
  .site-foot,
  .apology-actions {
    display: none !important;
  }

  /* Let the card take the full page width and remove extra margins */
  .container {
    width: 100% !important;
    margin: 0 !important;
  }

  .apology-card,
  .love-card,
  .decision-card,
  .talk-card,
  .tantrum-card,
  .think-card,
  .yougood-card,
  .wtf-card,
  .mood-card {
    box-shadow: none !important;
    border-radius: 0 !important;
    margin: 0 auto !important;
    padding: 1rem 1.2rem;          /* slightly less padding than on-screen */
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

/* Optional: remove extra padding for love/decision pages */
  .love-page,
  .decision-page,
  .talk-page,
  .tantrum-page,
  .think-page,
  .yougood-page,
  .wtf-page,
  .mood-page {
    padding: 0 !important;
  }

  /* Slightly smaller text so it fits height better */
  .apology-form {
    font-size: 0.9rem;
  }

  .reasons-col label {
    font-size: 0.8rem;
  }
}



/* =========================================================
   MEDIA QUERIES — All responsive rules live down here
   ========================================================= */

/* <= 980px shared layout tweaks */
@media (max-width: 980px){
  .summary-grid{ grid-template-columns: 1fr; }
  .grid-cards{ grid-template-columns: repeat(2, 1fr); }
  .apology-card {
    margin: 1.5rem 0.75rem 2.5rem;
  }

  .reasons-grid {
    grid-template-columns: 1fr;
  }

  .infraction-row {
    flex-wrap: wrap;
  }

  .infraction-types {
    width: 100%;
    justify-content: flex-start;
  }
  
  /* ↓ Add/modify these ↓ */
  .love-card-header {
    flex-direction: column;
    align-items: center;     /* center horizontally */
    justify-content: center; /* no big gap */
    text-align: center;      /* center the title text/image */
  }

  .love-meta {
    margin: 0 auto;          /* center the white box itself */
  }

  .love-awards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* On smaller screens: stack title on top, TO/FROM under it */
@media (max-width: 768px) {
    
    .mood-card {
    padding: 1.2rem 1.2rem 1.4rem;
  }

  .mood-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
    
    .wtf-meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .wtf-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
    
    .yougood-meta {
    flex-direction: column;
    align-items: flex-start;
  }
    
  .talk-card-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .talk-meta {
    width: 100%;
    max-width: 400px;
    margin-top: 0.6rem;
  }
  
  .tantrum-card {
    padding: 1.1rem 1.1rem 1.4rem;
  }

  .tantrum-check-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  
  .think-meta-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }
  
}

/* <= 640px: tighten slot grid */
@media (max-width: 640px){
  .slots{ grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

/* <= 560px: stacked actions, mobile burger menu behavior */
@media (max-width: 560px){
    
     .mood-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mood-reasons-grid {
    grid-template-columns: 1fr;
  }
    
    .wtf-grid,
  .wtf-grid--small {
    grid-template-columns: 1fr;
  }

  .wtf-card {
    padding: 1.1rem 1.1rem 1.3rem;
  }
    
    .yougood-grid {
    grid-template-columns: 1fr;
  }

  .yougood-grid--small {
    grid-template-columns: 1fr;
  }

  .yougood-card {
    padding: 1.1rem 1.1rem 1.3rem;
  }
    
    .think-card {
    padding: 1.2rem;
  }

  .think-meta-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.6rem;
  }

  .think-traits-grid {
    grid-template-columns: 1fr;
  }
    
    .tantrum-check-grid {
    grid-template-columns: 1fr;
  }
    
    .card-grid {
    grid-auto-rows: auto;
  }
  .grid-card,
  .grid-card--short,
  .grid-card--tall,
  .grid-card--wide {
    grid-column: span 1 !important;
    grid-row: auto !important;
    min-height: 150px;
  }
    
    /* Stack FROM and DATE instead of side-by-side */
  .field-row-split {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }

  .field-row-split .field-half {
    flex: 1 1 100%;
    width: 100%;
  }

  .field-row-split .field-input {
    width: 100%;
  }
  
  .clear-cat {
    width: 100%;
    text-align: center;
    margin-top: 6px;
  }

  .ribbon { justify-content: space-between; }

  .burger { display: block; }

  .top-links {
    position: absolute;
    top: 54px;
    right: 10px;
    display: none;              /* hidden until .open */
    flex-direction: column;
    background: #2a0b49;
    border: 1px solid #6e3fb6;
    border-radius: 12px;
    padding: 8px;
    box-shadow: 0 10px 28px rgba(0,0,0,.35);
    z-index: 60;
  }
  .top-links.open { display: flex; }
  .top-links a { width: 160px; text-align: center; }

  /* stack prev/next under each other on small screens */
  .quiz-footer.fixed-under-answers{
    flex-direction:column;
  }
  .quiz-footer.fixed-under-answers > *{
    width:100%;
  }

  .confirm-actions{ flex-direction:column; }
  .confirm-actions > *{ width:100%; }
  
  .love-awards {
    grid-template-columns: 1fr;
  }
  
}

/* <= 520px: smallest layout adjustments */
@media (max-width: 520px){
  .ribbon{ justify-content: space-between; padding:10px; }
  .ribbon-title{ font-size:20px; max-width:60vw; text-align:center; }
  .grid-cards{ grid-template-columns: 1fr; }
  .answers{ flex-direction:column; }
  .answer{ width:100%; }
  .quiz-header{ flex-wrap:wrap; }
  .pill{ order:3; width:100%; text-align:center; margin-top:8px; }
}
