* {
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  margin: 0;
  background: linear-gradient(to right, #ffcccb, #ffb6c1);
  position: relative;
  overflow: hidden;
}

.app-container {
  background: #fff;
  border-radius: 15px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 1;
}

h1 {
  margin: 0 0 20px;
  color: #ff69b4;
}

.pet {
  margin-bottom: 20px;
}

.pet-image {
  width: 180px;
  height: auto;
}

.pet-image {
  animation: wiggle 3s infinite ease-in-out;
}

.stats {
  margin: 20px 0;
}

.stat {
  margin: 10px 0;
}

progress {
  appearance: none;
  width: 100%;
  height: 20px;
  border-radius: 10px;
  background: transparent;
}

progress::-webkit-progress-bar {
  background: transparent;
}

progress::-webkit-progress-value {
  background: #c8e6c9;
  border-radius: 10px;
}

progress::-moz-progress-bar {
  background: #c8e6c9;
  border-radius: 10px;
}

.actions button {
  margin: 10px;
  padding: 10px 20px;
  font-family: inherit;
  font-size: 16px;
  cursor: pointer;
  background-color: #ff69b4;
  border: none;
  color: white;
  border-radius: 10px;
  transition: transform 0.2s, background-color 0.3s;
}

.footer {
  position: fixed;
  bottom: 0px;
  left: 0;
  width: 100%;
  text-align: center;
  font-size: 14px;
  color: #ff69b4;
  padding: 10px 0;
}

.footer a {
  color: #ff69b4;
  text-decoration: none;
}

@keyframes wiggle {
  0%, 100% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(2deg);
  }
  75% {
    transform: rotate(-2deg);
  }
}

@keyframes twinkle {
  0%, 100% {
    opacity: 0.7;
    transform: scale(1);
  }
  50% {
    opacity: 0;
    transform: scale(1.5);
  }
}

.star {
  position: absolute;
  width: 3px;
  height: 3px;
  background: white;
  border-radius: 50%;
  animation: twinkle 2s infinite ease-in-out;
  opacity: 0;

}

@media (hover: hover) {
  .actions button:hover {
    transform: scale(1.1);
    background-color: #ff1493;
  }

  .footer a:hover {
    color: white;
    text-decoration: underline;
  }
}

@media (hover: none) {
  .actions button:active {
    transform: scale(1.1);
    background-color: #ff1493;
  }

  .footer a:active {
    color: white;
    text-decoration: underline;
  }
}

@media (max-width: 768px) {
  .app-container {
    padding: 20px;
  }

  h1 {
    font-size: 24px;
  }

  .pet-image {
    width: 150px;
    height: auto;
  }

  .actions button {
    padding: 8px 16px;
    font-size: 14px;
  }

  .stats {
    margin: 10px 0;
  }

  progress {
    height: 15px;
  }

  progress::-webkit-progress-bar {
    height: 15px;
  }

  progress::-moz-progress-bar {
    height: 15px;
  }
}

@media (max-width: 480px) {
  .app-container {
    padding: 15px;
  }

  h1 {
    font-size: 20px;
  }

  .pet {
    margin-bottom: 10px;
  }

  .pet-image {
    width: 120px;
    height: auto;
  }

  .stat {
    margin: 5px 0;
}

  .actions button {
    width: 100%;
    margin: 5px 0;
  }

  .footer {
    padding: 0;
  }

  .footer p {
    font-size: 12px;
  }

  .star {
    width: 2px;
    height: 2px;
  }
}
