body {
  font-family: Arial, sans-serif;
  background-image: url('images/background-1.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  display: flex;
  flex-direction: column; /* Añadir esta línea */
  justify-content: flex-start; /* Cambiar de center a flex-start */
  align-items: center;
  margin: 0;
  padding: 20px;
  overflow-y: auto; /* Asegurar que el scroll vertical esté habilitado */
  height: auto;
}

html, body {
  height: auto;
  min-height: 100%;
}

.container {
  background-color: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  text-align: center;
  max-width: 800px;
  width: 100%;
  position: relative;
  z-index: 1;
  margin: 30px 0; /* Añadir margen arriba y abajo */
}

h1 {
  color: #333;
  margin-bottom: 1.5rem;
}

#imageContainer {
  width: 500px;
  height: 500px;
  margin: 1rem auto;
  background-color: #ddd;
  position: relative;
  overflow: hidden;
}

.actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 1.5rem auto;
  width: 300px;
}

button {
  width: 100%;
  background-color: #4CAF50;
  border: none;
  color: white;
  padding: 10px 20px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  cursor: pointer;
  border-radius: 5px;
  transition: background-color 0.3s;
}

button:hover {
  background-color: #45a049;
}

button:disabled {
  background-color: #cccccc;
  cursor: not-allowed;
}

.secondary-button {
  background-color: #2196F3;
}

.secondary-button:hover {
  background-color: #0b7dda;
}

.percentageRevealed {
  font-family: 'Digital-7', sans-serif;
}

.payment-section {
  background-color: #f9f9f9;
  padding: 1.5rem;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  margin-top: 1rem;
}

.payment-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-group {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

input[type="number"] {
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  width: 80px;
  text-align: center;
}

#payment-element {
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid #ddd;
  border-radius: 5px;
}

.hidden {
  display: none;
}

.close-icon {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 24px;
  cursor: pointer;
  color: #333;
}

.close-icon:hover {
  color: #f44336;
}

.error-message {
  color: #d32f2f;
  margin-top: 0.5rem;
  font-size: 0.9rem;
}

#stats {
  display: flex;
  justify-content: space-around;
  margin-top: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.stat-box {
  background-color: #f5f5f5;
  padding: 1rem;
  border-radius: 8px;
  min-width: 200px;
}

.premium {
  background-color: #fff9c4;
  border: 2px solid #ffd700;
}

.pixel {
  position: absolute;
  background-color: rgba(0, 0, 0, 0.7);
}

.pixel-premium {
  background-color: rgba(255, 215, 0, 0.7);
  box-shadow: 0 0 5px #ffd700;
  z-index: 10;
}

.cancel-button {
  background-color: #f44336;
  margin-top: 10px;
}

.cancel-button:hover {
  background-color: #d32f2f;
}

.dev-button {
  background-color: #ff3860;
  margin-top: 10px;
}

.dev-button:hover {
  background-color: #ff1443;
}

.pixel-dev {
  transition: background-color 0.2s ease;
  box-shadow: 0 0 3px rgba(255, 56, 96, 0.7);
}


.pixel {
  position: absolute;
  background-color: rgba(0, 0, 0, 0.7);
  transition: transform 0.3s ease, background-color 0.5s ease;
}

.pixel.revealing {
  transform: scale(4.5);
  z-index: 20;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

.pixel.revealed {
  transform: scale(1);
}

.emotion-message {
  position: absolute;
  font-size: 24px;
  opacity: 0;
  transform: translateY(0);
  animation: floatUp 2.5s ease-out;
  z-index: 100;
  pointer-events: none;
  white-space: nowrap;
  bottom: 20px; /* Posición inicial desde abajo */
  max-width: 90%; /* Evitar que sea más ancho que el contenedor */
}

@keyframes floatUp {
  0% {
    opacity: 0;
    transform: translateY(0);
  }
  20% {
    opacity: 1;
  }
  80% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(-100px);
  }
}

h1 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: "Digital-7", sans-serif;
}

h1 img {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.premium-image-container {
  position: absolute;
  right: 56px;
  width: 200px;
  height: 200px;
  transform: translateY(-100%);
  z-index: 5;
  transition: all 0.3s ease;
}

#payment-section {
  position: relative;
}

#premium-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  position: absolute;
  bottom: 0;
  right: 0;
}

.stat-box.premium {
  position: relative;
}

.premium-pixels-why {
  font-family: 'Digital-7';
}

.premium-pixels-trust {
  font-size: small !important;
}

#percentageRevealed {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 10px;
  text-align: center;
}

.stripe-security-badge {
  margin-top: 20px;
  padding: 15px;
  border-top: 1px solid #e0e0e0;
  text-align: center;
}

.stripe-security-badge img {
  margin-bottom: 10px;
}

.stripe-security-badge p {
  font-size: 14px;
  color: #666;
}

.stripe-image {
  width: 500px;
  height: auto;
  margin: 0 auto;
}

.gsi-material-button {
  -moz-user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-appearance: none;
  appearance: none;
  background-color: WHITE;
  background-image: none;
  border: 1px solid #747775;
  -webkit-border-radius: 4px;
  border-radius: 4px;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  color: #1f1f1f;
  cursor: pointer;
  font-family: 'Roboto', arial, sans-serif;
  font-size: 14px;
  height: 40px;
  letter-spacing: 0.25px;
  outline: none;
  overflow: hidden;
  padding: 0 12px;
  position: relative;
  text-align: center;
  -webkit-transition: background-color .218s, border-color .218s, box-shadow .218s;
  transition: background-color .218s, border-color .218s, box-shadow .218s;
  vertical-align: middle;
  white-space: nowrap;
  width: auto;
  max-width: 400px;
  min-width: min-content;
}

.gsi-material-button .gsi-material-button-icon {
  height: 20px;
  margin-right: 12px;
  min-width: 20px;
  width: 20px;
}

.gsi-material-button .gsi-material-button-content-wrapper {
  -webkit-align-items: center;
  align-items: center;
  display: flex;
  -webkit-flex-direction: row;
  flex-direction: row;
  -webkit-flex-wrap: nowrap;
  flex-wrap: nowrap;
  height: 100%;
  justify-content: space-between;
  position: relative;
  width: 100%;
}

.gsi-material-button .gsi-material-button-contents {
  -webkit-flex-grow: 1;
  flex-grow: 1;
  font-family: 'Roboto', arial, sans-serif;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: top;
}

.gsi-material-button .gsi-material-button-state {
  -webkit-transition: opacity .218s;
  transition: opacity .218s;
  bottom: 0;
  left: 0;
  opacity: 0;
  position: absolute;
  right: 0;
  top: 0;
}

.gsi-material-button:disabled {
  cursor: default;
  background-color: #ffffff61;
  border-color: #1f1f1f1f;
}

.gsi-material-button:disabled .gsi-material-button-contents {
  opacity: 38%;
}

.gsi-material-button:disabled .gsi-material-button-icon {
  opacity: 38%;
}

.gsi-material-button:not(:disabled):active .gsi-material-button-state, 
.gsi-material-button:not(:disabled):focus .gsi-material-button-state {
  background-color: #303030;
  opacity: 12%;
}

.gsi-material-button:not(:disabled):hover {
  -webkit-box-shadow: 0 1px 2px 0 rgba(60, 64, 67, .30), 0 1px 3px 1px rgba(60, 64, 67, .15);
  box-shadow: 0 1px 2px 0 rgba(60, 64, 67, .30), 0 1px 3px 1px rgba(60, 64, 67, .15);
}

.gsi-material-button:not(:disabled):hover .gsi-material-button-state {
  background-color: #303030;
  opacity: 8%;
}

.disabled-btn {
  background-color: #ccc;
  cursor: not-allowed;
  pointer-events: none;
  color: #666;  
}