* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  height: 100%;
  overflow: hidden;
  background: linear-gradient(to bottom right, #d4f0ff, #b3e5ff);
  font-family: 'Poppins', sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
}

.container {
  text-align: center;
  transform: scale(1);
  transition: transform 0.3s ease;
}

/* 💧 Main Title */
.title {
  font-size: 2.2rem;
  font-weight: 800;
  color: #2b72ff;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-bottom: 15px;
}

.title::before {
  content: "💧";
}

/* 🏓 Goal text */
.goal {
  font-size: 1.8rem;
  font-weight: 800;
  color: #4400ff;
  margin-bottom: 25px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  text-align: center;
  font-family: 'Poppins', sans-serif;
}

.bottle-container {
  position: relative;
  width: 200px;
  height: 400px;
  background: #f3f3f3;
  border: 6px solid #222;
  border-radius: 30px;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.25);
  margin: 0 auto;
  overflow: hidden;
}

.water {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #2196f3;
  transition: height 0.5s ease-in-out;
}

.line {
  position: absolute;
  left: 10%;
  width: 80%;
  height: 3px;
  background: #000;
  border-radius: 2px;
}

.line:nth-child(2) { bottom: 80%; }
.line:nth-child(3) { bottom: 60%; }
.line:nth-child(4) { bottom: 40%; }
.line:nth-child(5) { bottom: 20%; }

.line-label {
  position: absolute;
  right: -45px;
  font-size: 1rem;
  color: #222;
  font-weight: 600;
}

.counter-box {
  background: white;
  padding: 15px 20px;
  border-radius: 15px;
  margin-top: 25px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.counter-box h2 {
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.count {
  font-size: 2rem;
  font-weight: 700;
  color: limegreen;
  text-shadow: 0 0 6px rgba(0, 255, 0, 0.5);
}

button {
  margin-top: 10px;
  background: linear-gradient(to right, #2196f3, #1769aa);
  color: white;
  font-weight: 600;
  border: none;
  border-radius: 10px;
  padding: 10px 20px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  border: 0.2vh solid #000;
}

button:hover {
  transform: scale(1.05);
  box-shadow: 0 10p[x] 10px rgba(33, 150, 243, 0.5);
}

.reset {
  background: linear-gradient(to right, #f15e5e, #c40000);
  margin-left: 10px;
}

.auth-box {
  margin-top: 20px;
}

input {
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid #999;
  outline: none;
  margin-right: 5px;
}

/* 📱 Smaller layout for mobile */
@media (max-width: 600px) {
  html {
    overflow: auto;
  }

  .container {
    transform: scale(0.85);
  }

  .title {
    font-size: 1.7rem;
    margin-bottom: 10px;
  }

  .goal {
    font-size: 1.4rem;
    margin-bottom: 18px;
  }

  .bottle-container {
    width: 120px;
    height: 250px;
    border-width: 4px;
  }

  .line-label {
    right: -30px;
    font-size: 0.8rem;
  }

  .counter-box {
    padding: 10px 15px;
  }

  .counter-box h2 {
    font-size: 1.1rem;
  }

  .count {
    font-size: 1.5rem;
  }

  button {
    padding: 8px 16px;
    font-size: 0.9rem;
  }

  input {
    padding: 6px 10px;
    font-size: 0.9rem;
  }
}
