body, html {
  margin: 0;
  padding: 0;
  overflow: hidden;
  height: 100%;
}

.aquarium {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background-blend-mode: multiply; /* Optional: lets day/night tint show over images */
}

/* Theme overlays */
.aquarium.day {
  background-color: #42aaff; /* Bright blue daylight */
}

.aquarium.night {
  background-color: #0a0a1a; /* Dark night tone */
}



/* Fish styles */
.fish {
  position: absolute;
  width: 80px;
  transition: transform 0.2s linear;
  pointer-events: none;
}

.fish1 {
  top: 20%;
  animation-duration: 10s;
}

.fish2 {
  position: absolute;
  width: 80px;
  top: 60%;
  animation: swim 14s linear infinite;
}

.fish.reverse {
  top: 60%;
  transform: scaleX(-1);
  animation-duration: 15s;
}

/* Swimming animation */
@keyframes swim {
  0% { left: -100px; }
  100% { left: 100vw; }
}

/* Bubbles */
.bubble {
  position: absolute;
  bottom: 0;
  width: 12px;
  height: 12px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  animation: rise linear forwards;
}

@keyframes rise {
  from { bottom: 0; opacity: 1; }
  to { bottom: 100vh; opacity: 0; }
}



/* Backgrounds (images or gradients only!) */
.aquarium.classic {
  background-image: linear-gradient(to bottom, #042f4b, #021f30); /* original gradient */
}

.aquarium.reef {
  background-image: url('../images/bg-reef.jpg');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
}

.aquarium.ocean {
  background-image: url('../images/bg-ocean.jpg');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
}

.aquarium.deep {
  background-image: url('../images/bg-deep.jpg');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
}

.aquarium.glow {
  background-image: linear-gradient(to bottom, #240046, #3c096c, #5a189a);
}






#fishCustomizer label,
#fishCustomizer input {
  display: block;
  margin-bottom: 4px;
}

#fishCustomizer input[type="text"] {
  width: 100px;
  padding: 4px;
}

#fishNameDisplay {
  position: absolute;
  font-weight: bold;
  color: white;
  text-shadow: 1px 1px 4px black;
  pointer-events: none;
  font-size: 14px;
}



.decoration {
  position: absolute;
  bottom: 0;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: bottom;
  pointer-events: none;
  z-index: 0;
}

/* Plants */
.plant1 {
  left: 10%;
  width: 60px;
  height: 120px;
  background-image: url('../images/decor/plant1.png');
  animation: sway 4s ease-in-out infinite alternate;
}

.plant2 {
  left: 80%;
  width: 50px;
  height: 100px;
  background-image: url('../images/decor/plant2.png');
  animation: sway 3s ease-in-out infinite alternate;
}

/* Rocks */
.rock1 {
  left: 45%;
  width: 100px;
  height: 60px;
  background-image: url('../images/rock1.png');
}

/* Gentle sway animation */
@keyframes sway {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(3deg); }
}

/* === Mobile Responsive Layout === */
@media (max-width: 768px) {
  #toggleThemeBtn,
  #feedBtn,
  #backgroundSelect,
  #fishCustomizer {
    position: static;
    display: block;
    width: 90%;
    margin: 8px auto;
    font-size: 16px;
    text-align: center;
  }

  #fishCustomizer {
    background: rgba(0, 0, 0, 0.5);
    padding: 10px;
  }

  #fishCustomizer input[type="text"] {
    width: 100%;
    font-size: 16px;
  }

  #fishNameDisplay {
    font-size: 12px;
  }

  .fish,
  .random-fish {
    max-width: 80px;
  }

  .decoration {
    width: 40px !important;
    height: auto !important;
  }
}

.ui-panel {
      
  background: rgba(10, 10, 25, 0.4);   /* Less opaque */
  backdrop-filter: blur(8px);         /* Glassy effect */
  padding: 16px;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 240px;
  color: white;
  font-family: "Segoe UI", sans-serif;
  z-index: 999;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.ui-panel button,
.ui-panel select,
.ui-panel input[type="text"],
.ui-panel input[type="color"] {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  outline: none;
  background: rgba(255, 255, 255, 0.08); /* Lower opacity for full transparency */
  color: white;
  width: 100%;
  transition: 0.2s ease-in-out;
  backdrop-filter: blur(4px); /* optional blur inside elements */
}

.ui-panel button:hover,
.ui-panel select:hover,
.ui-panel input[type="text"]:hover {
  background: rgba(255, 255, 255, 0.25);
}

.ui-panel button {
  background: rgba(73, 177, 242, 0.15);  /* Transparent blue */
  font-weight: bold;
  color: #ffffff;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: 0.2s ease-in-out;
}


.ui-panel button:hover {
  background: rgba(73, 177, 242, 0.3); /* Slightly stronger on hover */
}

#fishCustomizer label {
  font-size: 13px;
  margin-top: 6px;
  display: block;
  opacity: 0.85;
}

@media (max-width: 768px) {
  .ui-panel {
    position: static;
    width: 90%;
    margin: 8px auto;
    background: rgba(0, 0, 0, 0.6);
    padding: 12px;
    border-radius: 8px;
    box-shadow: none;
  }
}

.menu-wrapper {
  position: absolute;
  top: 10px;
  right: 20px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

#toggleMenuBtn {
  padding: 8px 14px;
  border: none;
  background: #1e1e2f;
  color: white;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.3);
}

.ui-panel.hidden {
  display: none;
    opacity: 0;
  pointer-events: none;
}

@media (max-width: 768px) {
  .ui-panel {
    position: static;
    width: 90%;
    margin: 8px auto;
    background: rgba(0, 0, 0, 0.6);
    padding: 12px;
    border-radius: 8px;
    box-shadow: none;
  }
}

/* Make dropdown options readable */
select option {
  background-color: #2e2e4e;
  color: #ffffff;
}

@keyframes fadeSlideIn {
  0% {
    opacity: 0;
    transform: translateY(-10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeSlideIn {
  0% {
    opacity: 0;
    transform: translateY(-10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

