body {
  font-family: Arial, sans-serif;
  background-color: #f2f2f2;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
    user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  -moz-user-select: none;

}

.container {
  background-color: #f2f2f2;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  padding: 20px;
  max-width: 440px;
  text-align: center;
  font-family: "Alata", sans-serif;
  margin: auto;
  overflow-y: auto;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.container {
  display: block;
  animation: fadeIn 0.5s ease;
}

.container img {
  width: 50%;
  animation: scaleIn 0.5s ease;
}

@keyframes scaleIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

h2 {
  color: #FF7200;
  margin-top: 20px;
  margin-bottom: 10px;
  text-align: center;
  font-size: 24px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 2px;
}

h3 {
  color: #23bb11;
  text-align: center;
}

label {
  display: block;
  margin-bottom: 10px;
  color: #064BE0;
  text-align: left;
  font-size: 18px;
  margin-left: 20px;
}

input[type="text"],
input[type="password"],
input[type="number"],
select {
  width: calc(100% - 22px);
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
  font-size: 18px;
  font-family: "Alata", sans-serif;
  color: #064BE0;
  margin-bottom: 20px;
}

textarea {
  font-size: 16px;
  width: 90%;
  height: 120px;
  font-family: 'Alata', sans-serif;
  border-radius: 6px;
  border: 1px solid #ccc;
  color: #333;
  padding: 5px 10px;
}

#message::placeholder {
  font-style: italic;
}

button[type="submit"],
button,
.button-link {
  width: calc(100% - 20px);
  padding: 10px;
  background-color: #064be0;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 18px;
  font-family: "Alata", sans-serif;
  margin-top: 20px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

button[type="submit"]:hover,
button:hover,
.button-link:hover {
  background-color: #333;
  color: white;
}

.button-separator {
  border-bottom: 1px solid #23bb11;
  margin: 20px auto;
  width: 80%;
}

.button-link {
  display: block;
  
  padding: 10px;
  border-radius: 4px;
  background-color: #064be0;
  color: white;
  font-size: 18px;
  cursor: pointer;
  font-family: "Alata", sans-serif;
  text-align: center;
  text-decoration: none;
  
}

.button-link:hover {
  background-color: #333;
}

a.button-link {
    width: calc(100% - 40px);
  display: block;
  padding: 10px;
  border-radius: 4px;
  background-color: #23bb11;
  color: white;
  font-size: 18px;
  font-family: "Alata", sans-serif;
  text-align: center;
  text-decoration: none;
  margin: 20px auto 0;
}

a.button-link:hover {
  background-color: #333;
}

@media (max-width: 768px) {
  #card_message_preview {
    font-size: 28px;
    line-height: 1.1;
  }
}


table {
  width: calc(100% - 20px);
  border-collapse: collapse;
  margin: 20px auto 0;
}

th,
td {
  padding: 10px;
  font-size: 18px;
}

th {
  background-color: #333333;
  color: #fff;
  font-weight: normal;
}

tr:nth-child(even) {
  background-color: #f2f2f2;
}

.logolink {
  float: right;
}

.fab.fa-whatsapp {
  color: #23bb11;
  font-size: 24px;
}

.fas.fa-qrcode {
  color: #064be0;
  font-size: 24px;
}

.far.fa-credit-card {
  color: #FE7409;
  font-size: 24px;
}

.confirmation-message {
  color: #23bb11;
  font-weight: normal;
  margin-top: 10px;
  font-size: 20px;
}

.already-redeemed {
  color: #FE7409;
  font-weight: bold;
}

.codice-tooltip {
  text-decoration: underline;
  cursor: pointer;
}

.tooltip {
  background: #333;
  font-family: Alata, sans-serif;
  color: #fff;
  padding: 5px;
  border-radius: 5px;
  position: absolute;
  z-index: 2;
}

.registrazione {
  display: block;
  font-weight: bold;
  margin-bottom: 5px;
}

.esci {
  text-decoration: none;
}

.esci button {
  background-color: #FE7409;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 10px 20px;
  cursor: pointer;
}

.esci button:hover {
  background-color: #333;
}

#image_preview {
  position: relative;
  width: 400px;
  margin: 20px auto;
  text-align: center;
}

#preview_img {
  width: 100%;
  border-radius: 8px;
}

.grecaptcha-badge {
  opacity: 0;
}

#recaptcha-error {
  background-color: #f8d7da;
  border: 1px solid #f5c6cb;
  border-radius: 5px;
  padding: 10px;
  text-align: center;
  margin-top: 10px;
  display: none;
  color: #721c24;
}

.search-bar {
  margin-bottom: 20px;
}

.search-bar input {
  width: 100%;
  padding: 10px;
  font-size: 16px;
  border: 1px solid #ddd;
  border-radius: 4px;
  margin-top: 30px;
}

.activity {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  margin-bottom: 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.activity:hover {
  background-color: #f5f5f5;
}

.activity-details {
  flex: 1;
  margin-right: 15px;
  text-align: left;
}

.activity-details b {
  font-size: 18px;
  color: #064BE0;
  font-weight: normal;
}

.activity-details p {
  margin: 0;
}

.activity-details .categoria {
  color: #fec000;
}

.activity-logo-container {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background-color: #f9f9f9;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 1px solid #ddd;
  padding: 0px;
  box-sizing: border-box;
}

.activity-logo-container img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
}

.no-select,
.no-select * {
  user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  -moz-user-select: none;
}

.btn-whatsapp {
  background-color: #25D366 !important;
  color: white !important;
}

.btn-stampa {
  background-color: #007bff !important;
  color: white !important;
}

.btn-salva {
  background-color: #FEC000 !important;
  color: white !important;
}

#loading {
    font-size: 16px;
    color: #555;
}


/* Effetto di sfondo sfocato */
#videoPopup {
    backdrop-filter: blur(8px); /* Sfoca lo sfondo */
}

/* Animazioni per apertura e chiusura */
@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes fadeOut {
    from { opacity: 1; transform: scale(1); }
    to { opacity: 0; transform: scale(0.9); }
}

#videoPopup.open {
    animation: fadeIn 0.3s ease forwards;
}

#videoPopup.close {
    animation: fadeOut 0.3s ease forwards;
}

#errorModal {
    display: none !important;
}

.error-popup {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        background: white;
        color: black;
        padding: 20px;
        border-radius: 8px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        z-index: 1000;
        text-align: center;
        display: none;
    }

    .error-popup-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
        display: none;
    }

    .error-popup button {
        margin-top: 10px;
        padding: 8px 16px;
        background-color: red;
        color: white;
        border: none;
        cursor: pointer;
        border-radius: 5px;
    }
 