body {
  font-family: "Arial", sans-serif;
  display: flex;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  background-color: #f0f4f8;
}

body::before {
  background: url("/images/Game/backgroundImage.png") no-repeat center center;
  background-size: cover;
  position: absolute;
  content: "";
  height: 100%;
  width: 100%;
  opacity: 0.8;
  z-index: -1;
  left: 0;
  top: 0;
}

.container {
  position: relative;
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
}

.gauges {
  position: absolute;
  top: 20px;
  left: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  background-color: rgba(0, 0, 0, 0.4);
  padding: 15px;
  border-radius: 5px;
  backdrop-filter: blur(5px);
}

.gauge {
  display: flex;
  flex-direction: column;
  width: 250px;
}

.gauge label {
  color: white;
  font-size: 16px;
  margin-bottom: 8px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.bar {
  height: 15px;
  background: rgba(200, 200, 200, 0.3);
  border-radius: 3px;
  overflow: hidden;
  position: relative;
  transition: width 0.5s ease-in-out, background-color 0.5s ease;
  box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.3);
}

#hunger-bar,
#happiness-bar,
#cleanliness-bar {
  position: relative;
}

.cat-area {
  position: absolute;
  margin-top: 67vh;
}

.cat {
  width: 350px;
  height: 100%;
  transition: transform 0.3s ease;
}

.cat:hover {
  transform: scale(1.05);
}

.items {
  position: absolute;
  bottom: 3%;
  right: 3%;
  display: flex;
}

.item {
  width: 70px;
  height: 70px;
  margin-left: 15px;
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 35px;
  cursor: grab;
  transition: transform 0.2s ease, background-color 0.2s ease;
  backdrop-filter: blur(5px);
}

.item:hover {
  transform: scale(1.1);
  background-color: rgba(255, 255, 255, 0.4);
}

#drop-cat {
  position: absolute;
  top: 1%;
  text-decoration: none;
  color: #fff;
  background-color: rgba(251, 163, 86, 0.5);
  padding: 10px;
  border: solid 1px #333;
  border-radius: 3px;
  margin-left: 90%;
  transition: background-color 0.3s ease;
}

#drop-cat:hover {
  background-color: rgba(255, 0, 0, 0.7);
}

#love {
  position: absolute;
  color: #fff;
  background-color: rgba(0, 0, 0, 0.5);
  padding: 10px;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.cat-area {
  position: relative; /* 상대 위치 지정 */
}

.speech-bubble {
  position: absolute;
  bottom: 110%; /* 고양이 머리 위에 위치 */
  left: 50%; /* 중앙에 정렬 */
  transform: translateX(0%); /* 중앙 정렬을 위해 X축으로 이동 */
  background-color: #fff;
  border: 1px solid #000;
  padding: 5px 10px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  font-size: 30px;
  color: #333;
  white-space: nowrap;
}
.speech-bubble-small0 {
  position: absolute;
  bottom: 92%; /* 고양이 머리 위에 위치 */
  left: 45%; /* 중앙에 정렬 */
  transform: translateX(0%); /* 중앙 정렬을 위해 X축으로 이동 */
  background-color: #fff;
  border: 1px solid #000;
  padding: 5px 10px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  font-size: 30px;
  color: #333;
  white-space: nowrap;
}
.speech-bubble-small1 {
  position: absolute;
  bottom: 100%; /* 고양이 머리 위에 위치 */
  left: 50%; /* 중앙에 정렬 */
  transform: translateX(0%); /* 중앙 정렬을 위해 X축으로 이동 */
  background-color: #fff;
  border: 1px solid #000;
  padding: 5px 10px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  font-size: 30px;
  color: #333;
  white-space: nowrap;
}
