#overlay{
    font-size: 1rem;
}

.d-none{
    display:none;
}

.interact{
    pointer-events: all;
}

ul{
    list-style-type: none;
    padding: 0;
    margin: 0;
}

ul li{
    margin-bottom: 3rem;
}

/* title */
h1{
  font-family: 'Press Start 2P', monospace;
  font-size: 12rem;
  color: #1f3b1a;
  text-shadow: 0.6rem 0.6rem #7fcf64;
  letter-spacing: 0.3rem;
  margin-bottom: 4rem;
}

/* buttons */
.btn {
  font-family: 'Press Start 2P', monospace;
  font-size: 4rem;
  text-transform: uppercase;
  color: #f5f1e6;
  background: linear-gradient(to bottom, #7fcf64 0%, #4a8b38 100%);
  border: 1rem solid #1f3b1a;
  border-radius: 0;
  padding: 3rem 6rem;
  width: 70%;
  cursor: pointer;
  margin: 2rem 0;
  box-shadow: 0.8rem 0.8rem 0 #1f3b1a; /* sombra más sutil */
  text-shadow: 0.4rem 0.4rem #1f3b1a;
  letter-spacing: 0.3rem;
  transition: transform 0.05s ease, background 0.1s ease;
}

.btn:hover {
  background: linear-gradient(to bottom, #90e876 0%, #5ea44a 100%);
  transform: translate(-0.3rem, -0.3rem);
  box-shadow: 1rem 1rem 0 #1f3b1a;
}

.btn:active {
  transform: translate(0.5rem, 0.5rem);
  box-shadow: inset 0.3rem 0.3rem 0 #1f3b1a;
  background: linear-gradient(to bottom, #5ea44a 0%, #3e742b 100%);
}

#bucket-bar{
    font-size: 5rem;
}

/* timer*/
.timer {
  position: absolute;
  top: 4rem;
  right: 4rem;
  background: rgba(47, 59, 71, 0.8); /* tono oscuro translúcido */
  border: 0.6rem solid #1f3b1a;
  padding: 1.5rem 2rem;
  font-family: 'Press Start 2P', monospace;
  font-size: 5rem;
  color: #f5f1e6;
  text-shadow: 0.4rem 0.4rem #1f3b1a;
  letter-spacing: 0.2rem;
  border-radius: 0.5rem;
  box-shadow: 0.6rem 0.6rem 0 #1f3b1a;
}

.timer-label {
  color: #7fcf64;
  margin-right: 1rem;
}

/* bucket bar*/
.bucket-info {
  position: absolute;
  bottom: 4rem;
  left: 4rem;
  background: rgba(31, 59, 26, 0.6);
  border: 0.5rem solid #1f3b1a;
  border-radius: 0.3rem;
  padding: 0.8rem 1.5rem;
  font-family: 'Press Start 2P', monospace;
  font-size: 6rem;
  color: #f5f1e6;
  text-shadow: 0.3rem 0.3rem #1f3b1a;
  letter-spacing: 0.1rem;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.drop{
    width: 4rem;
    height: auto;
    margin-left: 0rem;
    vertical-align: middle;
}

/* back to menu button top left*/
.back-to-menu-btn {
  position: absolute;
  top: 4rem;
  left: 4rem;
  font-family: 'Press Start 2P', monospace;
  font-size: 4rem;
  text-transform: uppercase;
  color: #f5f1e6;
  background: linear-gradient(to bottom, #4a8b38 0%, #1f3b1a 100%);
  border: 0.8rem solid #1f3b1a;
  padding: 2rem 3rem;
  border-radius: 0.5rem;
  box-shadow: 0.6rem 0.6rem 0 #1f3b1a;
  letter-spacing: 0.2rem;
  cursor: pointer;
  transition: all 0.05s ease;
}

.back-to-menu-btn:hover {
  background: linear-gradient(to bottom, #5ea44a 0%, #264e21 100%);
  transform: translate(-0.3rem, -0.3rem);
}


/* EMPTYING BAR */
.emptying-btn {
  position: absolute;
  bottom: 4rem;
  right: 4rem;
  font-family: 'Press Start 2P', monospace;
  font-size: 4rem;
  text-transform: uppercase;
  color: #f5f1e6;
  background: linear-gradient(to bottom, #4a8b38 0%, #1f3b1a 100%);
  border: 0.8rem solid #1f3b1a;
  padding: 2rem 3rem;
  border-radius: 0.5rem;
  box-shadow: 0.6rem 0.6rem 0 #1f3b1a;
  letter-spacing: 0.2rem;
  cursor: pointer;
  transition: all 0.05s ease;
}

.emptying-btn:hover {
  background: linear-gradient(to bottom, #5ea44a 0%, #264e21 100%);
  transform: translate(-0.3rem, -0.3rem);
}

.emptying-btn:active {
  background: linear-gradient(to bottom, #3e742b 0%, #1f3b1a 100%);
  transform: translate(0.3rem, 0.3rem);
}

/*overlay for emptying */

.overlay-emptying {
  position: absolute;
  inset: 0;
  background: rgba(47, 59, 71, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  font-family: 'Press Start 2P', monospace;
  color: #f5f1e6;
}

.overlay-content {
  text-align: center;
}

.overlay-text {
  font-size: 6rem;
  margin-bottom: 2rem;
  text-shadow: 0.4rem 0.4rem #1f3b1a;
}

.overlay-bar {
  width: 60%;
  height: 3rem;
  border: 0.4rem solid #1f3b1a;
  background: rgba(31, 59, 26, 0.4);
  box-shadow: 0.4rem 0.4rem 0 #1f3b1a;
  margin: 0 auto;
}

.overlay-progress {
  height: 100%;
  background: linear-gradient(to right, #7fcf64, #4a8b38);
  transition: width 0.05s linear;
}


/* final screen */
.game-over {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(40, 50, 60, 0.75);
    border: 0.125rem solid #2f3b47;
    border-radius: 0.375rem;
    padding: 0.875rem 1.25rem;
    color: #fff;
    text-align: center;
    font-family: 'Press Start 2P', monospace;
    font-size: 6rem;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    z-index: 1000;
    animation: slideUp 0.6s ease-out forwards;
    width: 85%;
}

.game-over div {
    text-shadow: 0.0625rem 0.0625rem 0 #000;
}

@keyframes slideUp {
    from { opacity: 0; transform: translate(-50%, 1rem); }
    to { opacity: 1; transform: translate(-50%, 0); }
}

.disclaimer {
  position: absolute;
  bottom: 26rem;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  background: rgba(47, 59, 71, 0.8);
  border: 0.6rem solid #1f3b1a;
  padding: 2rem 3rem;
  font-family: 'Press Start 2P', monospace;
  font-size: 3rem;
  color: #f5f1e6;
  text-align: center;
  text-shadow: 0.3rem 0.3rem #1f3b1a;
  letter-spacing: 0.1rem;
  box-shadow: 0.6rem 0.6rem 0 #1f3b1a;
  border-radius: 0.5rem;
  opacity: 0.9;
  line-height: 1.8;
}

.credits {
  position: absolute;
  bottom: 6rem;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  text-align: center;
  font-family: 'Press Start 2P', monospace;
  font-size: 3rem;
  color: #f5f1e6;
  text-shadow: 0.3rem 0.3rem #1f3b1a;
  opacity: 0.8;
  line-height: 1.6;
  letter-spacing: 0.1rem;
  background: rgba(47, 59, 71, 0.8);
  border: 0.5rem solid #1f3b1a;
  border-radius: 0.5rem;
  padding: 1.5rem 2rem;
  box-shadow: 0.6rem 0.6rem 0 #1f3b1a;
}