html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: hidden;
    font-family: 'Helvetica Neue', sans-serif;
    background: #FAF7F3;
    color: #4B3B33;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    overflow-y: auto;
}


body {
    overflow-x: hidden; /* horizontal hidden only */
}
  
/* Make sure each container takes full height but can scroll if needed */
.container {
min-height: 100%;
}
  
  /* Choices: allow wrapping and adapt layout */
  .choices {
    flex-wrap: wrap;
  }

/* Content area: all screens stack here */
.main {
    flex: 1 1 auto;
    position: relative;
    overflow: hidden;
  }
  
    .background {
      position: fixed;
      width: 100%;
      height: 100%;
      overflow: hidden;
      z-index: -1;
    }

    .page-title {
        flex: 0 0 auto;
        background: #da947a;
        color: #FAF7F3;
        text-align: center;
        padding: 20px;
        font-family: Georgia, serif;
        font-weight: 300;
        font-size: 1.8rem;
        z-index: 2;
      }
      
  
    @keyframes float {
      from { transform: translateY(100vh) rotate(0deg); }
      to { transform: translateY(-130vh) rotate(360deg); }
    }
  
    .container {
        position: absolute;
        inset: 0;
        display: flex;
        flex-direction: column;
        height: 100%;
        transition: opacity 1s ease;
        opacity: 1;
      }
      
  
    .hidden {
      opacity: 0;
      pointer-events: none;
    }
  
    /*I don't think I need this if I have a page-title class
    h1 {
      font-family: Georgia, serif;
      font-weight: 300;
      font-size: 1.8rem;
      margin-bottom: 5rem;
      text-align: center;
      color: #FAF7F3;
      flex: 0 0 auto;
      background-color: #da947a;
      padding: 25px;
    }*/
  
    h2 {
      font-family: Georgia, serif;
      font-weight: 300;
      font-size: 1.4rem;
      text-align: center;
      color: #4B3B33;
      flex: 0 0 auto;
      padding: 0px 10px;
    }
  
    h3 {
      font-family: Georgia, serif;
      font-weight: 300;
      font-size: 1rem;
      text-align: center;
      color: #4B3B33;
      flex: 0 0 auto;
      font-style: italic;
    }
  
    .choices {
        flex: 1;
        display: flex;
        flex-wrap: wrap;
        gap: 1.2rem;
        width: 100%;
        justify-content: center;
        align-content: center;
        padding: 1rem;
        box-sizing: border-box;
    }
  
  
      .choice {
        flex: 1;
        max-width: 500px;
        aspect-ratio: 3 / 4;  /* or 1 / 1 for square */
        border-radius: 16px;
        overflow: hidden;
        background: #da947a;
        cursor: pointer;
        align-self: center;
      }
      
      .choice img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
      }
  
    .begin-btn {
      display: block;
      width: 100%;
      height: 200px;
      object-fit: cover;
    }

    .begin-screen {
        max-height: 300px;
    }

  
    .choice:hover {
      transform: scale(1.02);
      box-shadow: 0 6px 14px rgba(0,0,0,0.15);
    }
  
    .choice.clicked::after {
      content: "";
      position: absolute;
      top: 0; left: 0;
      width: 100%; height: 100%;
      background: rgba(204,123,82,0.25); /* terracotta glow */
      animation: glow 0.6s ease forwards;
    }
  
    @keyframes glow {
      0% { opacity: 0; }
      50% { opacity: 1; }
      100% { opacity: 0; }
    }
  
    .final-message {
        text-align: center;
        font-size: 1.5rem;
        padding: 10px;
        line-height: 1.6;
        color: #4B3B33;
        animation: fadeIn 3s ease;
        margin: 0px 60px;
      }
  
  .final-message:first-child {
    margin-top: 100px;
  }
  
    @keyframes fadeIn {
      from { opacity: 0; }
      to { opacity: 1; }
    }
  
    @keyframes pulse {
      0% { transform: scale(1); opacity: 0.8; }
      50% { transform: scale(1.08); opacity: 1; }
      100% { transform: scale(1); opacity: 0.8; }
    }
  

    .logo {
        max-height: 700px;
        width: 150px;
        align-self: center;
      }
    
  
  /* MEDIA QUERIES FOR RESPONSIVENESS */
  @media (max-width: 900px) {
    h2 {
      font-size: 1.1rem;
      padding: 0 10px;
    }
  }
  
  @media (max-width: 600px) {
    h2 {
        font-size: .95rem;
        padding: 0px 25px;
      }
      h3 {
        font-size: 0.8rem;
      }
  
      .choices {
        flex-wrap: wrap;
            flex-direction: column;
        justify-content: center;
            max-height: 95vh;
      }
        
          .choice {
            width: 100%;
            max-width: 90%;
          }

    .screen3 .choices {
        flex-wrap: wrap;
            flex-direction: column;
        justify-content: center;
            padding: 25px;
      }
          .screen3 .choice {
        flex: 0 1 45%;  /* about 2 per row */
        max-width: 50%;
        aspect-ratio: 3 / 4;
            max-height: 70vh;
      }
      
            .screen3 .choice > * {
            flex-direction: column;
            align-items: center;
          }

    .page-title {
        font-size: .9rem;
        padding: 12px;
    }


    .begin-btn {
        display: block;
        width: 100%;
        object-fit: cover;
        max-height: 200px;
      }

      textarea {
          max-width: 85%;
      }
    
      .final-message {
        text-align: center;
        font-size: 1.3rem;
        padding: 20px 0px;
        line-height: 1.6;
        color: #4B3B33;
        animation: fadeIn 3s ease;
        margin: 0px 30px;
      }
  
  .final-message:first-child {
    margin-top: 10px;
  }
  }
  
 