body {
  font-family: Arial, sans-serif;
  text-align: center;
  background-image: url('../imgs/background.png');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;   
  background-attachment: fixed;
  color: #1c7262;
}
#pet-setup {
  display: flex;
  flex-direction: column; 
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}
#name-row {
  display: flex;
  gap: 10px;
  align-items: center;
}
#animal-choice select {
  width: 200px;
  padding: 8px;
  border-radius: 20px;
  border: none;
  background-color: #222;
  color: #ec1fd1;
  font-weight: bold;
  text-align: center;
  font-size: 1rem;
}
#name-row input {
  width: 140px;
  padding: 8px;
  border-radius: 20px;
  border: none;
  background-color: #222;
  color: #ec1fd1;
  font-weight: bold;
  text-align: center;
  font-size: 1rem;
}
#name-row input::placeholder {
  color: #ec1fd1;
  font-weight: bold;
}
#name-row button {
  padding: 8px 12px;
  border-radius: 20px;
  border: none;
  background-color: #000;
  color: #ec1fd1;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 3px 6px rgba(0,0,0,0.2);
  transition: transform 0.1s;
}
#name-row button:hover {
  transform: scale(1.05);
}
#name-row button:active {
  transform: scale(0.9);
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
#game {
  width: 350px;
  height: 520px;
  margin: 60px auto;
  background-image: url(../imgs/game.jpg); 
  background-size: cover;
  border-radius: 50% / 40%; 
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 20px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}
#screen {
  width: 90%;
  height: 65%;
  background-color: #333;
  border-radius: 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between; 
  padding: 15px;
  color: #fff;
  box-sizing: border-box;
  margin-top: 65px;
}
#pet {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
#pet-img {
  max-width: 150px;
  max-height: 150px;
  height: auto;
  transform: rotate(10deg);
  flex-shrink: 0;
}
#pet-name, #time-alive, #level {
  color: aliceblue;
  margin: 2px 0;
}
#stats {
  display: flex;
  justify-content: space-around;
  align-items: center;
  width: 100%;
  background-color: rgba(255,255,255,0.1);
  padding: 5px 10px;
  border-radius: 10px;
  font-size: 0.9rem;
  margin: 0;
}
#stats p {
  margin: 0 5px;
  font-weight: bold;
}
#controls {
  display: flex;
  justify-content: space-around;
  width: 90%;
  margin-top: 30px;
}
#controls button {
  padding: 10px 20px;
  border-radius: 20px;
  border: none;
  background-color: #000;
  color: #ec1fd1;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 3px 6px rgba(0,0,0,0.2);
  transition: transform 0.1s;
}
#controls button:hover {
  transform: scale(1.05);
}
#controls button:active {
  transform: scale(0.9);
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
#reset-btn {
  padding: 10px 20px;
  border-radius: 20px;
  border: none;
  background-color: #000;
  color: #ec1fd1;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 3px 6px rgba(0,0,0,0.2);
  transition: transform 0.1s;
  margin-top: 15px;
}
#reset-btn:hover {
  transform: scale(1.05);
}
#message {
  margin-top: 10px;
  color: #fff;
  font-weight: bold;
}
@keyframes wobble {
  0% { transform: rotate(0deg); }
  25% { transform: rotate(10deg); }
  50% { transform: rotate(0deg); }
  75% { transform: rotate(-10deg); }
  100% { transform: rotate(0deg); }
}
.wobble {
  animation: wobble 0.5s infinite;
}
.animal-wobble {
  animation: wobble 1s infinite;
}
.low-stat {
  color: red;
  font-weight: bold;
}
.high-stat {
  color: gold;
  font-weight: bold;
}
#scoreboard {
  position: fixed;
  top: 20px;
  left: 20px;
  width: 220px;
  background-color: rgba(0,0,0,0.7);
  color: #ec1fd1;
  border-radius: 15px;
  padding: 10px;
  font-size: 0.9rem;
  box-shadow: 0 3px 8px rgba(0,0,0,0.3);
}
#scoreboard h3 {
  margin: 0 0 10px 0;
  text-align: center;
}
#score-list div {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255,255,255,0.2);
  padding: 2px 0;
}
#score-list div:last-child {
  border-bottom: none;
}
#score-headers {
  display: flex;
  justify-content: space-between;
  font-weight: bold;
  border-bottom: 1px solid rgba(255,255,255,0.5);
  padding-bottom: 5px;
  margin-bottom: 5px;
}
#score-headers span {
  flex: 1;
  text-align: center;
}
#score-list div {
  display: flex;
  justify-content: space-between;
  margin-bottom: 3px;
}

#score-list div span {
  flex: 1;
  text-align: center;
}