body {
  font-family: Arial, sans-serif;
  margin: 0;
  background-color: #f8f8f8;
  color: #333;
}
header {
  animation: fadeInDown 1s ease;	  
  background-color: #72a199; /*#8bc34a;*/
  color: black;
  padding: 4rem;
  text-align: center;
  animation: fadeInDown 1s ease;
  background-image: url('../images/namemypet-mobile.jpg');
  background-repeat: no-repeat;
  background-position: center;	  
  background-size: cover;
}
header h1 {
  margin: 0;
  font-size: 2.5rem;
}
header p {
  margin-top: 0.5rem;
  font-size: 1.2rem;
  background-color: rgba(255,255,255,0.5);
  padding: 1rem;
  display: inline-block;
}
.features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 2rem 1rem;
  gap: 1.5rem;
  animation: fadeIn 1.5s ease;
}
.feature-box {
  background-color: white;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 1.5rem;
  width: 280px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  text-align: center;
}
.feature-box h3 {
  margin-top: 0;
  color: #558b2f;
}
.cta {
  text-align: center;
  padding: 2rem 1rem;
  animation: fadeInUp 1s ease;
}
.cta button {
  background-color: #558b2f;
  color: white;
  border: none;
  padding: 1rem 2rem;
  font-size: 1rem;
  border-radius: 5px;
  cursor: pointer;
}
.cta button:hover {
  background-color: #33691e;
}
footer {
  text-align: center;
  padding: 1rem;
  background-color: #e0e0e0;
  font-size: 0.9rem;
}
form {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 2rem;
}
form input, form textarea, form select {
  width: 80%;
  max-width: 400px;
  padding: 0.75rem;
  margin: 0.5rem 0;
  border: 1px solid #ccc;
  border-radius: 4px;
}
form button {
  background-color: #8bc34a;
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  border-radius: 4px;
  cursor: pointer;
}
form button:hover {
  background-color: #689f38;
}
#result {
  margin-top: 1.5rem;
  font-size: 1.2rem;
  animation: fadeIn 1s ease;
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.gender-selection {
  display: flex;
  gap: 20px;
  margin-top: 20px;
}

.gender-option {
  position: relative;
  cursor: pointer;
}

.gender-option input[type="radio"] {
  display: none;
}

.custom-radio {
  display: inline-block;
  width: 90px;
  height: 50px;
  line-height: 50px;
  text-align: center;
  border: 2px solid #ccc;
  border-radius: 12px;
  font-size: 18px;
  font-weight: bold;
  color: #555;
  transition: all 0.3s ease;
  background-color: #f9f9f9;
}

.gender-option input[type="radio"]:checked + .custom-radio {
  border-color: #4a90e2;
  background-color: #e0f0ff;
  color: #2563eb;
}

.gender-option input[type="radio"]:checked + .custom-radio.female {
  border-color: #f920e1;
  background-color: #ffe6fc;
  color: #eb25df;
}

.result-cta{display:none}
.result-cta .click {
  font-size: 1.5rem;
  background-color: chartreuse;
  padding: 2px 8px
}
.responsive-box {
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
  padding: 20px;
  background-color: #f0f0f0;
}    
.responsive-box hr{
  color: #eee;
  margin: 20px 0 25px;
}

.names-container {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  padding-bottom: 20px;
  border-bottom: 1px solid gray;
  margin-bottom: 20px;
}

.flip-container {
  perspective: 1000px;
  width: 120px;
  height: 50px;
}

.flipper {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.6s ease;
}

.front, .back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-family: sans-serif;
  font-weight: bold;
  font-size: 16px;
}

.front {
  background: #ccc;
}

.back {
  background: #4caf50;
  color: white;
  transform: rotateX(180deg);
}

.flip-container.flipped .flipper {
  transform: rotateX(180deg);
}

.pet-name-container{margin:10px;display: inline-block}
.pet-name{
  background-color:#72a199;
  border:1px solid transparent;
  border-radius:4px;
  cursor: pointer;
  color: white; 
}
.male .pet-name{background-color: #76b5f0;border: 2px solid blue;}
.female .pet-name{background-color: #f57be6;border: 2px solid #e602ca;}
.pet-name.selected-name{
  border:2px solid #000;	  
}
.male .selected-name{
  background-color: #056ccc;	  
}
.female .selected-name{
  background-color: #d307ba; /*#f24ede;*/	  
}

/* Optional: Limit max width on large screens */
#actionContainer {
  max-width: 1000px;
  margin: auto;
}
.cta-row {
  display: flex;
  gap: 20px;
  margin: 20px;
  flex-wrap: wrap;
}
.cta-box {
  flex: 1;
  min-width: 300px; /* Ensures stacking on smaller screens */
  text-align: center;
  box-sizing: border-box;
}
 
.cat-peek {
  position: fixed;
  top: 50%;
  left: -10px; /* adjust based on image width */
  z-index: 1000;
  transition: left 0.2s ease;
}
.cat-peek:hover {
  left: 0; /* Slide slightly into view on hover */
}

.donate-row{
  width:100%;
  margin: 0 auto;
}
#donate-button img{max-width: 135px}

.dog-animation{
  width: 300px;
  margin: 0 auto;
}
/* For screens wider than 768px (typical tablet/desktop breakpoint) */
@media (min-width: 768px) {
  header{
	padding: 7rem;
    background-image: url('../images/namemypet-2.jpg');
  }
  .responsive-box {
    width: 50%;
  }
  .cta-row {
    width:100%;
  }
  .donate-row{
	width:50%;
  }
}

/* Stack vertically on screens smaller than 700px */
@media (max-width: 768px) {
  .cat-peek img {
    height: 150px;
  }  
  .cta-row {
    flex-direction: column;
  }
  .cta-box {
    width: 100%;
  }
}    

.donate-btn .support{
  font-size: 0.9em;
  margin-top: 4px;
} 

.whatsapp-button {
  background-color: #25D366;
  color: white;
  border: none;
  padding: 12px 24px;
  font-size: 16px;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.whatsapp-button:hover {
  background-color: #1ebe57;
}

.whatsapp-icon {
  width: 20px;
  height: 20px;
  vertical-align: middle;
}	
    
.popup {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.5);
}
.popup-content {
  background: #fff;
  margin: 3% auto;
  padding: 20px;
  max-width: 400px;
  border: 10px solid #d0c7b9;
  border-radius: 8px;
  position: relative;
}
.certificate h1 {
  text-align: center;
  font-size: 22px;
  margin-bottom: 10px;
  color: #6c4f3d;
}
.name {
  text-align: center;
  font-size: 60px;
  font-family: "Brush Script MT", cursive;
  color: #3d3d3d;
  margin: 30px 0;
}
.subtext {
  text-align: center;
  font-size: 20px;
  margin-bottom:35px;
  color: #555;
}
.artwork-placeholder {
  width: 300px;
  border: 1px solid #ccc;
  margin: 0 auto 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fafafa;
  color: #aaa;
  font-size: 14px;
}
.artwork-placeholder img{max-width:100%}
.signature {
  text-align: center;
  font-size: 16px;
  color: #888;
}
.close {
  position: absolute;
  top: 10px; right: 15px;
  cursor: pointer;
  font-size: 20px;
}
.close-btn {
  text-align:center;
  cursor: pointer;
  font-size: 18px;
}
.sample-label {
  position: absolute;
  top:130px;
  left:25%;
  transform: translate(-50%, -50%) rotate(-45deg);
  font-size: 60px;
  font-weight: bold;
  color: rgba(255, 0, 0, 0.3); /* semi-transparent red */
  pointer-events: none;
  user-select: none;
}   