.cat-svg-demo__parent {
  width: 195px; /* Увеличено на 50% от 130px */
  margin: 0 auto;
}

.eye {
  animation: eye 4s;
  animation-iteration-count: infinite;
  transform-origin: center;
}

@keyframes eye {
  0% {
    transform: scale(1, 1);
  }
  36% {
    transform: scale(1, 1);
  }
  38% {
    transform: scale(1, 0);
  }
  42% {
    transform: scale(1, 0);
  }
  44% {
    transform: scale(1, 1);
  }
  100% {
    transform: scale(1, 1);
  }
}

.ear {
  animation: ear 7s;
  animation-iteration-count: infinite;
  transform-origin: center;
}

.ear1 {
  animation: ear 7s;
  animation-delay: 300ms;
  animation-iteration-count: infinite;
  transform-origin: center;
}

@keyframes ear {
  0% {
    transform: scale(1, 1);
  }
  37% {
    transform: scale(1, 1);
  }
  40% {
    transform: scale(1, 0);
  }
  43% {
    transform: scale(1, 1);
  }
  100% {
    transform: scale(1, 1);
  }
}

body {
    margin: 0;
    padding: 0;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f0f8ff;
    font-family: Arial, sans-serif;
}

.container {
    position: relative;
    width: 900px; /* Увеличено для размещения увеличенного кота */
    height: 600px; /* Увеличено для размещения увеличенного кота */
}

.cat-container {
    position: absolute;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    cursor: pointer;
    transition: transform 0.2s;
}

.cat-container:hover {
    transform: translateX(-50%) scale(1.1); /* Увеличим масштаб при наведении */
}

.cat-rotating {
    animation: rotate 2s ease-in-out;
}

@keyframes rotate {
    0% { transform: translateX(-50%) rotate(0deg); }
    25% { transform: translateX(-50%) rotate(90deg); }
    50% { transform: translateX(-50%) rotate(180deg); }
    75% { transform: translateX(-50%) rotate(270deg); }
    100% { transform: translateX(-50%) rotate(360deg); }
}

.speech-bubble {
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(50%);
    margin-left: 30px; /* Увеличено для соответствия увеличенному коту */
    background-color: white;
    padding: 22px; /* Увеличено */
    border-radius: 37px; /* Увеличено */
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    min-width: 210px; /* Увеличено */
    max-width: 360px; /* Увеличено */
    text-align: center;
    font-size: 24px; /* Увеличено */
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 10;
}

.speech-bubble:after {
    content: '';
    position: absolute;
    top: 45px;
    right: 100%;
    margin-right: -5px;
    width: 8px;
    height: 8px;
    background-color: white;
    border-radius: 50%;
}

.speech-bubble:before {
    content: '';
    position: absolute;
    top: 49px;
    right: 100%;
    margin-right: -20px;
    width: 10px;
    height: 2px;
    background-color: white;
}

.visible {
    opacity: 1 !important;
}

.fish {
    position: absolute;
    cursor: grab;
    transition: transform 0.2s;
    z-index: 5;
    transform: scaleX(1); /* Начальное состояние трансформации */
}

#fish {
    top: 50px;
    left: 50px;
}

#fish2 {
    top: 50px;
    left: 650px;
}

#fish3 {
    top: 400px;
    left: 50px;
}

#fish4 {
    top: 400px;
    left: 650px;
}

#fish5 {
    top: 200px;
    left: 300px;
}

#fish6 {
    top: 100px;
    left: 550px;
}

.fish:hover {
    transform: scale(1.1) !important;
}

/* Добавляем плавную анимацию для поворота рыбок */
.fish {
    transition: transform 0.3s ease;
}

.fish:active {
    cursor: grabbing;
}

@keyframes smile {
    0% {
        opacity: 0;
        transform: scale(0);
        transform-origin: center; /* Точка трансформации в центре */
    }
    25% {
        opacity: 0.4;
        transform: scale(0.3);
        transform-origin: center;
    }
    50% {
        opacity: 0.7;
        transform: scale(0.6);
        transform-origin: center;
    }
    75% {
        opacity: 0.9;
        transform: scale(0.85);
        transform-origin: center;
    }
    100% {
        opacity: 1;
        transform: scale(1);
        transform-origin: center;
    }
}

.smile.show {
    visibility: visible !important;
    animation: smile 0.8s ease-out;
    z-index: auto; /* Убираем высокий z-index, чтобы глаза были поверх */
    filter: drop-shadow(0 0 3px rgba(0,0,0,0.8)); /* Увеличим тень для лучшей видимости сложной улыбки */
    transform-origin: center; /* Установим точку трансформации в центр */
}
