*, *::before, *::after { box-sizing: border-box; }



body, html {
    height: 100%;
    margin: 0;
    font-family: 'Inria Sans', sans-serif;
  }

  html, body {
    height: 100%;
    margin: 0;
    font-family: 'Inria Sans', sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
  }
  

    body {
      background: radial-gradient(circle, #84b3f1, #fff8dd);    
      overflow-x: hidden; /* 🚫 BLOCK THAT SIDE SCROLL */

    }

    /* Updated Navbar Styles */
    .navbar {
      background: rgba(255, 255, 255, 0.2);
      backdrop-filter: blur(10px);
      padding: 10px 20px;
      width: 100%;
      position: fixed;
      top: 0;
      z-index: 1000;
      display: flex;
      justify-content: center;
      gap: 20px;
      border-bottom: 1px solid rgba(255, 255, 255, 0.3);
      box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }

    .navbar a {
      color: rgb(22, 22, 22);
      text-decoration: none;
      font-weight: 500;
      font-size: 14px;
      display: flex;
      align-items: center;
      gap: 8px;
      padding: 2px 4px;
      border-radius: 20px;
    }

    .navbar a:hover {
      background: rgba(51, 50, 50, 0.3);
      transform: scale(1.05);
    }

    .navbar a img {
      height: 18px;
      width: 18px;
    }

    .container {
      width: 100%;
      flex-direction: column;
      display: flex;
      justify-content: center;
      align-items: center;
      padding: 40px 20px;
      padding-top: 100px;
      padding-bottom: 160px;
      padding-inline: clamp(16px, 5vw, 32px);
    }

    .postcard {
      width: min(100%, 700px);
      height: 60vh; /* Scale proportionally to viewport height */
      max-width: 700px; /* Allow some flexibility on wide screens */
      aspect-ratio: 4 / 3;
      background-color: #fcfcfc;
      border: 1px solid #000;
      overflow: hidden;
      grid-template-columns: 1fr 120px;
      column-gap: 24px;
      box-sizing: border-box;
      margin-inline: auto;    
      border-radius: 12px;
      display: grid;
      grid-template-areas: 
        "address stamp"
        "content content";
      gap: 15px;
      grid-template-columns: 3fr 120px;
      padding: 30px; /* Add padding for internal spacing */
      box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.2);
    }

    .address-area {
      grid-area: address;
      display: flex;
      flex-direction: column;
      gap: 10px;
      padding-right: 20px; /* Space from the edge */
    }

    .address-line {
      border: none;
      width: 100%;
      min-height: 200px;
      padding: 5px;
      padding-inline: 12px;
      box-sizing: border-box;
      margin: 0;
      overflow-y: auto;
      resize: vertical; /* optional: lets users drag */
      background-size: 100% 21px; /* match your line height */
      line-height: 21px; /* match the background spacing */
      font-family: 'Roboto';
      font-size: 14px;
      outline: none;
      resize: none;
      height: 200px;
      background: repeating-linear-gradient(
        to bottom,
        transparent,
        transparent 20px,
        black 20px,
        black 21px
      ) 0 0,
      repeating-linear-gradient(
        to right,
        transparent 0,
        transparent 20px,
        black 20px,
        black 21px
      ) 0 0 / 20px 100%;
      font-family: monospace;
      padding-left: 10px; /* Add padding for left spacing */
      
    }

    .input-group {
      display: flex;
      flex-direction: column;
    }

    .input-group input {
      flex: 1;
      font-family: 'Roboto', monospace;
      font-size: 14px;
      border: none;
      border-bottom: 1px solid #ddd;
      padding: 5px; /* Add padding for input spacing */
      background: transparent;
      outline: none;
      color: #222;
    }

    .input-group input::placeholder {
      color: rgba(0, 0, 0, 0.5); /* Grey with transparency */
      font-style: bold; /* Optional: make it italic for aesthetics */
    }
    
    .input-group label {
      font-size: 14px;
      margin-bottom: 5px;
      padding-left: 2px; /* Align with input */
    }
    
    .stamp-text {
      text-align: center;
      line-height: 1.2;
      word-break: break-word;
      max-width: 80px; /* matches stamp width on mobile */
    }
    
    .stamp-area {
      grid-area: stamp;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: flex-start;
      cursor: pointer; /* Make it look clickable */
      transition: transform 0.2s ease;
    }

    .send-stamp .stamp-image{
      transition: transform .18s ease, filter .18s ease;
    }
    
    .send-stamp:hover .stamp-image{
      transform: rotate(-1deg) scale(1.03);
      filter: drop-shadow(0 0 10px rgba(43,67,121,.35));
    }

    
    @keyframes fadeIn {
      from { opacity: 0; }
      to { opacity: 1; }
    }
    
    @keyframes scaleUp {
      0% { transform: scale(0.9); opacity: 0; }
      100% { transform: scale(1); opacity: 1; }
    }
    
    
    @keyframes thiccBounce {
      0%, 100% { transform: translateY(0); }
      50% { transform: translateY(-6px) scale(1.05); }
    }


    .stamp-image {
      width: 80px;
      height: auto;
      border-radius: 5px;
    }

    .stamp-text {
      font-size: 16px; /* Increased from 12px */
      font-weight: 500;
      color: black;
      margin-top: 5px;
      text-align: center;
    }
    
    .footer {
      background: rgba(255, 255, 255, 0.2);
      backdrop-filter: blur(10px);
      width: 100%;
      padding: 12px 24px;
      box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
      position: fixed;
      bottom: 0;
      z-index: 1000;
      display: flex;
      justify-content: space-between;
      align-items: center;
      flex-wrap: wrap;
      gap: 12px;
      font-size: 14px;
      color: #4c4c4c;
    }
  
    .footer-content {
      display: flex;
      justify-content: space-between;
      align-items: center;
      flex-wrap: wrap;
      gap: 10px;
    }
    
    .footer .copyright {
      flex: 1;
    }
    
    .footer .copyright a {
    color: inherit;
    text-decoration: none;
    margin: 0 4px;
    font-weight: 500;
    transition: color 0.2s ease;
    }
    
    .footer .copyright a:hover {
    color: #2b4379;
    text-decoration: underline;
    }
    
    
    .footer .social-links {
      display: flex;
      align-items: center;
      gap: 16px;
    }
    
    .footer .social-links img {
      height: 24px;
      transition: transform 0.3s;
    }
    
    .footer .social-links img:hover {
      transform: scale(1.2);
    }
    
    .footer .terms-link a {
      color: #4c4c4c;
      text-decoration: none;
    }
    
    .footer .terms-link a:hover {
      text-decoration: underline;
    }
    
    .footer .social-links {
      display: flex;
      gap: 12px;
    }
    
    .footer .social-links img {
      height: 24px;
      transition: transform 0.3s ease;
    }
    
    .footer .social-links img:hover {
      transform: scale(1.2);
    }
    
  
    .plan-btn {
      display: inline-block;
      margin: 10px;
      padding: 12px 24px;
      background-color: #2b4379;
      color: white;
      border-radius: 8px;
      text-decoration: none;
      font-size: 16px;
      transition: all 0.3s ease;
    }
    
    .plan-btn:hover {
      background-color: #3b569e;
      box-shadow: 0 0 10px rgba(43, 67, 121, 0.4);
    }
    

    .fade-out {
      opacity: 0;
      transition: opacity 0.5s ease;
    }   
    
    
    .void-info-footer {
      text-align: center;
      margin-top: 25px; /* Creates clear separation from the letter */
      padding: 15px 25px;
      background: rgba(255, 255, 255, 0.15); /* Soft glass effect */
      backdrop-filter: blur(5px);
      border-radius: 15px;
      border: 1px solid rgba(255, 255, 255, 0.3);
      box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
      width: fit-content; /* Only as wide as the text */
      margin-inline: auto; /* Centers the block */
    }
    
    #freeCounter {
      font-weight: 700;
      font-size: 15px;
      color: #2b4379; /* Brand color */
      letter-spacing: 0.5px;
      text-transform: uppercase;
      margin-bottom: 6px;
    }
    
    .void-disclaimer {
      font-size: 12px;
      color: #4c4c4c;
      opacity: 0.9;
      max-width: 450px;
      margin: 0 auto;
    }
    
    .sub-trigger {
      text-decoration: underline;
      cursor: pointer;
      font-weight: 700;
      color: #2b4379;
      transition: opacity 0.2s;
    }
    
    .sub-trigger:hover {
      opacity: 0.7;
    }
    @keyframes vanishIntoAir {
      0% {
        opacity: 1;
        transform: scale(1) translateY(0);
        filter: blur(0px);
      }
      50% {
        transform: scale(1.05) translateY(-10px);
        filter: blur(1px);
      }
      100% {
        opacity: 0;
        transform: scale(1.1) translateY(-60px);
        filter: blur(8px);
      }
    }

    .letter-sent {
      animation: vanishIntoAir 1.8s ease-in-out forwards;
    }
    
    @media (max-width: 900px){
      .postcard{
        grid-template-columns: 1fr;
        column-gap: 0;
        row-gap: 16px;
        padding: 24px;
      }
      .address-area{ padding-right: 0; }
    }
    
    /* 5) Tiny phones: keep some breathing room */
    @media (max-width: 480px){
      .postcard{
        width: 100%;
        max-width: 95%;
        margin-inline: auto;
        padding: 20px;
      }
      .address-line{
        padding-inline: 12px !important;
        background-origin: content-box !important;
        background-clip: content-box !important;
      }
    }

    @media (min-width: 1400px) {
      .postcard {
        width: 1000px; /* Increase size further on ultra-wide screens */
      }
    }
    @media (max-width: 600px) {
      .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
      }
      .footer {
        flex-direction: column;
        align-items: center;
        text-align: center;
      }
      .stamp-text {
        font-size: 12px;   /* smaller than desktop */
      }
    }
    
    @media (max-width: 768px){
      .postcard{
        grid-template-columns: 1fr;   /* stacked */
        column-gap: 0;
        row-gap: 16px;
        padding: 24px;                /* internal gutter around edges */
      }
      .address-area{
        padding-right: 0;             /* ok to remove here */
      }
      .address-line {
        padding-inline: 12px !important; /* force on mobile */
        background-origin: content-box !important;
        background-clip: content-box !important;
      }
      .input-group input{
        padding-inline: 10px;         /* match textarea feel */
        box-sizing: border-box;
      }
    
      .navbar {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
        padding: 10px;
      }
    
      .navbar a {
        font-size: 12px;
        padding: 6px 10px;
      }

      .stamp-image {
        width: 50px;
      }

     
    }
    
    @media (max-width: 480px) {
      .postcard {
        width: 90%;
      }

      .stamp-text {
        font-size: 10px;   /* even smaller for very narrow phones */
      }

      .stamp-image {
        width: 40px;
      }

      .address-line {
        height: calc(40vh - 40px);
      }
    }

    @media (max-width: 480px) {
      body {
        font-size: 16px;
      }
    
      .thank-you-message,
      .inspirational-quote,
      .stamp-text {
        font-size: 18px;
      }
    
      .button-container a {
        font-size: 14px;
        padding: 8px 16px;
      }
    }
    
    @media (max-width: 600px) {
      .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 8px;
      }
      .address-line {
        padding-inline: 12px !important;
        background-origin: content-box !important;
        background-clip: content-box !important;
      }

      .postcard {
        width: 100%;              /* Fill available space */
        max-width: 95%;           /* Keep some breathing room */
        margin: 0 auto;           /* Center it horizontally */
        padding: 20px;            /* Reduce padding on small screens */
        grid-template-columns: 1fr; /* Stack content */
        column-gap: 0;
      }
    
      .footer-left {
        order: 2;
      }
    
      .social-links {
        order: 1;
      }
    }
    


    
