/* fitxer: thank_you.css */

/* Overlay container */
.overlay-text-thank-you {
    position: absolute;
    top: 40%;
    right: 5%;
    transform: translateY(-50%); /* només centrat verticalment */
    color: white;
    font-family: var(--body-font);
    text-shadow: 2px 2px 6px rgba(0,0,0,0.8);
    box-sizing: border-box;
    z-index: 100;
    text-align: right;
  }
  
  /* Gran títol "THANK YOU!" */
  .overlay-text-thank-you h1:first-child {
    font-size: 10rem;
    margin-bottom: 0.2em;
    line-height: 1;
  }
  .overlay-text-thank-you h1:first-child span {
    display: block;
  }
  
  /* Subtítol */
  .overlay-text-thank-you h1:nth-child(3) {
    font-size: 3rem;
    margin-top: 0;
  }
  
  /* Paràgraf explicatiu */
  .overlay-text-thank-you p {
    font-size: 1.25rem;
    margin-top: 1rem;
    color: #ddd;
    text-align: right;
    line-height: 1.4;
  }
  
  /* Responsive per pantalles petites */
  @media screen and (max-width: 768px) {
    .overlay-text-thank-you {
      top: 50% !important;
      right: 0% !important;
      left: 50% !important;
      text-align: center !important;
      transform: translate(-50%, -50%) !important;
      width: 90vw !important;
    }
  
    .overlay-text-thank-you h1:first-child {
      font-size: 5rem !important;
      text-align: center !important;
    }
  
    .overlay-text-thank-you h1:nth-child(3) {
      font-size: 2rem !important;
      text-align: center !important;
    }
  
    .overlay-text-thank-you p {
      font-size: 1rem !important;
      text-align: center !important;
    }

    .overlay-text-thank-you h1 span,
    .overlay-text-thank-you p span {
        display: block;
        margin-left: auto;
        margin-right: auto;
    }

  }
  