* {
  box-sizing: border-box;
}

body {
  font-family: helvetica, arial, sans-serif;
  margin: 25px;
  background: #ffffff;
  color: #1a1a1a;
}

header {
  border-bottom: 1px solid #ffffff;
  margin-bottom: 20px;
}

h1 {
  font-weight: bold;
  color: #000;
  font-size: 24px;
}

main {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
}

.pet-image-container {
  padding: 10px;
}

/* Bounce animation on treat/play */
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  40%       { transform: translateY(-18px); }
}

/* Shake animation on exercise/bath */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25%       { transform: translateX(-10px); }
  75%       { transform: translateX(10px); }
}

.pet-image {
  border-radius: 12px;
  width: auto;
  display: block;
  object-fit: contain;
}

.pet-image.bounce {
  animation: bounce 0.4s ease;
}

.pet-image.shake {
  animation: shake 0.4s ease;
}

.dashboard {
  padding: 20px;
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #e0ddd5;
  min-width: 280px;
}

.dashboard div {
  display: block;
  margin-bottom: 8px;
  font-size: 15px;
}

.mood-bar {
  height: 8px;
  background: #e0ddd5;
  border-radius: 4px;
  overflow: hidden;
  margin: 6px 0 12px;
  width: 100%;
}

.mood-fill {
  height: 100%;
  width: 50%;
  background: #1D9E75;
  border-radius: 4px;
  transition: background 0.3s;
}

/*pet comments appear here instead of alert/console.log */
#speech-bubble {
  display: none;
  margin: 12px 0;
  padding: 10px 14px;
  background: #f0f8ff;
  border: 1px solid #b5d4f4;
  border-radius: 10px;
  font-size: 14px;
  color: #185FA5;
  position: relative;
  font-style: italic;
}

.button-container {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.button-container button {
  width: 110px;
  padding: 10px 6px;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  background-color: #1e2835;
  border: 1px solid #404853;
  cursor: pointer;
  background-image: linear-gradient(to bottom, rgba(246,246,246,.1) 0%, rgba(30,40,53,0) 66%);
  color: #fafafa;
  border-radius: 8px;
  transition: background-color 0.15s, transform 0.1s;
}

.button-container button:hover {
  background-color: #2e3d50;
}

.button-container button:active {
  transform: scale(0.97);
}
