* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: linear-gradient(135deg, #aac0e8, #90b7ee, #6ca1f8);
  background-size: 400% 400%;
  /* Para dar efecto de movimiento si es necesario */
  animation: gradientBackground 15s ease infinite;
  /* Animación suave del gradiente */
  overflow: hidden;
  font-family: Arial, sans-serif;
  display: grid;
  grid-template-rows: 1fr 1fr;
  min-height: 100vh;
  justify-items: center;
  /*   background-color: #f0f0f0; */
  ;
}

@keyframes gradientBackground {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

.container {
  margin-top: 7rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 50px;
  width: 90%;
}

.caneca {
  position: relative;
  width: 120px;
  height: 240px;
  background-color: #ccc;
  border-radius: 0 0 20px 20px;
  transition: transform 0.3s;
}

.caneca:hover {
  transform: translateY(-10px);
}

.cuerpo {
  display: flex;
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 100%;
  background-color: inherit;
  border-radius: 0 0 20px 20px;
  box-shadow: inset 0 5px 15px rgba(0, 0, 0, 0.3);
  align-items: center;
  justify-content: center;
}

.cuerpo img {
  height: 75px;
}

.tapa {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 150px;
  height: 40px;
  background-color: #999;
  border-radius: 50% 50% 0 0;
  transition: all 0.4s ease;
}

.caneca:hover .tapa {
  top: -40px;
  height: 20px;
  background-color: rgba(153, 153, 153, 0.8);
}

.label {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  font-weight: bold;
  text-transform: uppercase;
  color: white;
}

/* Colores de las canecas */
#renovable .cuerpo {
  background-color: #fff;
}

#renovable .tapa {
  background-color: #f0f0f0;
}

#renovable .label {
  color: #000 !important;
}

#no_renovable .cuerpo {
  background-color: #121010;
  ;
}

#no_renovable .tapa {
  background-color: #1c1b1b;
}

#organico .cuerpo {
  background-color: #008000;
}

#organico .tapa {
  background-color: #006400;
}

/* 
#paper .cuerpo {
  background-color: #ffdd00;
}

#paper .tapa {
  background-color: #ccaa00;
}

#metal .cuerpo {
  background-color: #ff3333;
}

#metal .tapa {
  background-color: #cc0000;
}

#batteries .cuerpo {
  background-color: #666666;
}

#batteries .tapa {
  background-color: #4d4d4d;
} */

#content-elementos {
  display: flex;
  align-items: center;
  justify-content: center;
}

#elementos {

  display: flex;
  /* top: 40%; */
  position: relative;
  height: 100%;
  width: 100%;
  background-color: #3d783d;
  align-items: center;
  justify-content: center;
}

.basura{
width: 150px;
}

#puntos {
 
  position: absolute;
  left: 75px;
  top: 50px;
  font-size: 28px;
}

#tiempo {
  position: absolute;
  right: 75px;
  top: 50px;
  font-size: 28px;
}

#bien {
  z-index: 10;
  transition: 0.3s all;
  position: fixed;
  top: -1000px;
  height: 180px;
}

#mal {
  z-index: 10;
  transition: 0.3s all;
  position: fixed;
  top: -1000px;
  height: 180px;
}

.mostrar_mensajes{
  top: -25px !important;
}

.mostrar {
  transform: translateY(-50px) !important;
}

.modal{
  text-align: center;
  font-size: 42px;
  background-color: #080505ed;
  color: #fff;
    z-index: 10;
    position: fixed;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
    background-color: #080505ed;
    display: flex;
    opacity: 0;
    pointer-events: none;
    transition: opacity .6s;
    --transform: translateY(-100vh);
    --transition: transform .8s;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.modal--show {
  opacity: 1;
  pointer-events: unset;
  --transform: translateY(0);
}

/* From Uiverse.io by mi-series */ 
.btn {
  outline: 0;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  background: #40B3A2;
  min-width: 200px;
  border: 0;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .1);
  box-sizing: border-box;
  padding: 16px 20px;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  overflow: hidden;
  cursor: pointer;
}

.btn:hover {
  opacity: .95;
}

.btn .animation {
  border-radius: 100%;
  animation: ripple 0.6s linear infinite;
}

@keyframes ripple {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.1), 0 0 0 20px rgba(255, 255, 255, 0.1), 0 0 0 40px rgba(255, 255, 255, 0.1), 0 0 0 60px rgba(255, 255, 255, 0.1);
  }

  100% {
    box-shadow: 0 0 0 20px rgba(255, 255, 255, 0.1), 0 0 0 40px rgba(255, 255, 255, 0.1), 0 0 0 60px rgba(255, 255, 255, 0.1), 0 0 0 80px rgba(255, 255, 255, 0);
  }
}

@keyframes desvanecer {
  0% {
    opacity: 1;
    transform: scale(1);
  }

  100% {
    opacity: 0;
    transform: scale(0.5);
  }
}

.desaparecer {
  animation: desvanecer 0.5s forwards;
}

/* Responsividad */
@media (max-width: 768px) {
  body {
    overflow: hidden;
    grid-template-rows: 1fr;
  }

  .container {
    gap: 25px;
    margin-top: 1.5rem;
    align-items: center;
  }

  .caneca {
    width: 100px;
    height: 200px;
  }

  .tapa {
    width: 120px;
    height: 30px;
  }

  .cuerpo img {
    height: 50px;
  }

  .caneca:hover .tapa {
    top: -30px;
    height: 15px;
  }

  .label {
    font-size: 0.9em;
  }

  #elementos {
    height: 170px;
    position: static;
    top: 1000px;
  }

  .mostrar {
    transform: translateY(-450px);
  }

  .basura {
    width: 83px;
  }

  #puntos {

    left: 45px;
    top: 540px;

  }

  #tiempo {

    right: 45px;
    top: 540px;

  }

}

@media (max-width: 480px) {
  .caneca {
    width: 95px;
    height: 180px;
    /*  width: 80px;
    height: 160px; */
  }

  .tapa {
    width: 120px;
    height: 30px;
    /* width: 100px;
    height: 20px; */
  }

  .caneca:hover .tapa {
    top: -20px;
    height: 10px;
  }

  .label {
    font-size: 0.8em;
  }
}