body {
    font-family: 'Segoe UI', sans-serif;
    background-color: #fdfaf6;
    color: #2c2c2c;
    margin: 0;
    padding: 0;
    text-align: center;
  }
  
  h1, h2, h3, h4 {
    font-family: 'Kanit', sans-serif;
  }
  
  .container {
    max-width: 800px;
    margin: auto;
    padding: 20px;
  }
  
  .card {
    background-color: #ffffff;
    border-radius: 16px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease;
  }
  
  .card:hover {
    transform: translateY(-3px);
  }
  
  img.avatar {
    width: 150px;
    border-radius: 50%;
    border: 4px solid #7ec8c4;
    margin-top: 10px;
  }
  
  .gift-image {
    width: 100%;
    max-width: 100%;
    height: 300px;
    border-radius: 12px;
    background-image: url("images/cover.jpg");
    background-color: black;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    margin-top: 10px;
    cursor: pointer;
    transition: background-image 0.3s ease;
  }
  
  footer {
    margin-top: 50px;
    font-style: italic;
    font-size: 1rem;
  }
  
  a {
    color: #007575;
    text-decoration: underline;
  }
  
  /* Gifs on hover/tap */
  #gif1:hover { background-image: url("images/hug.gif"); }
  #gif2:hover { background-image: url("images/stethoscope.gif");  }
  #gif3:hover { background-image: url("images/laugh.gif");  }
  #gif4:hover { background-image: url("images/brilliant.gif");  }
  #gif5:hover { background-image: url("images/cheers.gif");  }
  
  @media (max-width: 600px) {
    .gift-image {
      height: 200px;
    }
  
    img.avatar {
      width: 100px;
    }
  
    h1 {
      font-size: 1.4em;
    }
  
    .card {
      margin: 15px 10px;
    }
  }

  #background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background: #000;
  }
  
  
  #ai-background {
    height: 100vh;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    opacity: 0.15;
    transition: opacity 1s ease, transform 1s ease;
    z-index: 0;
  }
  /* Fully visible background */
#ai-background.revealed {
    opacity: 1;
    transform: scale(1);
  }
  
  /* Push content upward */
  .container.push-away {
    transform: translateY(-150%);
    transition: transform 1s ease;
  }
  #background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: #fdfaf6;
    opacity: 0.4;
    z-index: 1;
    transition: opacity 1s ease;
  }

  
  .reveal-button-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 60px;
    margin-bottom: 100px;
    z-index: 10;
    position: relative;
  }
  
  #reveal-button {
    padding: 12px 24px;
    font-size: 1.1rem;
    background: #007575;
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.3s ease;
  }
  
  #reveal-button:hover {
    background: #005f5f;
  }
  
  
  /* Card container */
  .container {
    position: relative;
    z-index: 10;
    padding-top: 60px;
    padding-bottom: 100px;
  }
  
  /* Card spacing */
  .card {
    margin: 40px 20px;
  }
  

