* {
  box-sizing: border-box;
}


body {
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(135deg, #0a0f24, #122b45, #0a0f24);
  color: #e6f1ff;
  padding: 20px;
}
h1 {
  text-align: center;
  font-weight: 600;
  letter-spacing: 1px;
}
.container {
  max-width: 650px;
  margin: auto;
  padding: 30px 30px; /* ditambah agar input tidak mentok */
  border-radius: 20px;
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

input {
  width: 100%;
  padding: 16px 20px;
  margin: 14px 0;
  border-radius: 12px;
  border: none;
  outline: none;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 16px;
  box-shadow: inset 0 0 14px rgba(0,0,0,0.25);
}
button {
  width: 100%;
  padding: 12px;
  margin-top: 10px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, #1e90ff, #00c6ff);
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  transition: 0.2s;
}
button:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 20px rgba(0, 198, 255, 0.35);
}
.result {
  margin-top: 20px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 16px;
  line-height: 1.6;
}

.fish-radio {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 12px;
  justify-items: center;
  align-items: start;
  margin-top: 12px;
}

.fish-box {
  cursor: pointer;
  padding: 6px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.12);
  text-align: center;
  width: 100%;       /* menyesuaikan cell grid */
  max-width: 100px;  /* batas maksimum agar tidak terlalu lebar */
  transition: 0.2s;
  border: 2px solid transparent;
  box-sizing: border-box; /* pastikan padding masuk width */
}

.fish-box.selected {
  border-color: #00c6ff;
  background: rgba(0, 198, 255, 0.2);
}

.fish-box img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  display: block;
  margin: 0 auto 6px;
}

.fish-box div {
  font-size: 12px;
  line-height: 1.2;
  word-wrap: break-word;
}

.fish-name-gradient {
  background: linear-gradient(135deg, #22C577, #294757, #22C577);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: rotateGradient 4s ease-in-out infinite;
  font-weight: 700;
}

@keyframes rotateGradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.app-footer {
  text-align: center;
  margin-top: 40px;
  padding: 15px 0;
  color: #dbeaff;
  font-size: 14px;
  opacity: 0.8;
  letter-spacing: 0.5px;
}

/* Animasi hati */
.heart {
  color: #ff4d6d;
  animation: heartBeat 1.6s infinite ease-in-out;
  display: inline-block;
}

/* Animasi detak */
@keyframes heartBeat {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.2); opacity: 0.85; }
  100% { transform: scale(1); opacity: 1; }
}

/* Link GitHub */
.footer-link {
  color: #22c577;
  font-weight: 600;
  text-decoration: none;
  background: linear-gradient(135deg, #22c577, #213640, #22c577);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: rotateFooterGradient 4s ease-in-out infinite;
}

/* Animasi gradient bergerak */
@keyframes rotateFooterGradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.footer-link:hover {
  opacity: 1;
  text-shadow: 0 0 8px rgba(34, 197, 119, 0.35);
}
