.container {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  width: 100%;
  margin: auto;
  margin-left: 20px;
}

.cardAdd {
  position: relative;
  margin-left: 20px;
  width: 220px;
  height: 70px;
  background: #111111;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 30px;
  border-radius: 15px;
  color: white;
  cursor: pointer;
}

.cardAdd::before,
.cardAdd::after {
  position: absolute;
  content: "";
  width: 20%;
  height: 20%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  font-weight: bold;
  background-color: #333335;
  transition: all 0.5s;
}

.cardAdd::before {
  top: 0;
  right: 0;
  border-radius: 0 15px 0 100%;
}

.cardAdd::after {
  bottom: 0;
  left: 0;
  border-radius: 0 100% 0 15px;
}

.cardAdd:hover::before,
.cardAdd:hover:after {
  width: 100%;
  height: 100%;
  border-radius: 15px;
  transition: all 0.5s;
}

.cardAdd:hover:after {
  content: "Adicionar";
}

.card {
  --after-content: "";
  position: relative;
  width: 220px;
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 25px;
  font-weight: bold;
  border-radius: 15px;
  cursor: pointer;
  border: 5px solid;
  border-color: rgb(255, 255, 255);
  transition: transform 0.4s ease, opacity 0.4s ease;
  opacity: 1;
  transform: scale(1);
}
.card:hover{
  transform: scale(1.05);
}

.card.saindo {
  opacity: 0;
  transform: scale(0.9);
}

.card.entrando {
  opacity: 0;
  transform: scale(1.1);
}

.card::before,
.card::after {
  position: absolute;
  content: "";
  width: 20%;
  height: 20%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 25px;
  color: #ffffff;
  font-weight: bold;
  background-color: rgba(20, 0, 46, 0.5);
  transition: all 0.5s;
}

.card::before {
  top: 0;
  right: 0;
  border-radius: 0 15px 0 100%;
  opacity: 0;
}

.card::after {
  bottom: 0;
  left: 0;
  border-radius: 0 100% 0 15px;
  opacity: 0;
}

.card:hover::before,
.card:hover:after {
  width: 100%;
  height: 100%;
  border-radius: 15px;
  transition: all 0.5s;
  opacity: 1;
}

.card:hover:after {
  content: var(--after-content, "");
  text-align: center;
  opacity: 1;
}

.card:hover .removeButton{
  opacity: 1;
}

.removeButton {
  position: absolute;
  top: 5px;
  right: 5px;
  z-index: 5;
  background-color: #d9534f;
  color: white;
  border: none;
  padding: 4px 8px;
  font-size: 12px;
  border-radius: 4px;
  cursor: pointer;
  transition: 0.5s;
  transition-property: box-shadow, opacity;
  opacity: 0;
}

.removeButton:hover {
  box-shadow: 0 0 20px darkred;
}

.header {
  display: flex;
  gap: 20px;
}

.containerTotal {
  margin-left: auto;
  margin-top: 25px;
  margin-right: 50px;
  text-align: right;
  font-size: 20px;
  color: #ffffff;
  display: flex;
  gap: 1rem;
}

.filtro {
  position: relative;
  display: inline-block;
}

.filtroBtn {
  margin-top: 30px;
  height: 30px;
  width: 100px;
  background-color: #4CAF50;
  color: white;
  border: 2px solid white;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.filtro:hover .filtroBtn {
  background-color: #307732;
}

.filtroConteudo {
  position: absolute;
  right: 0; /* Alinha a direita do botão */
  background-color: #f9f9f9;
  min-width: 160px;
  box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
  z-index: 1;

  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.filtro:hover .filtroConteudo {
  opacity: 1;
  visibility: visible;
}

.filtroConteudo p {
  color: black;
  padding: 12px 16px;
  text-align: left;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.filtro:hover .filtroConteudo p {
  opacity: 1;
  transform: translateY(0);
}

.filtro:hover .filtroConteudo p:nth-child(1) { transition-delay: 0.05s; }
.filtro:hover .filtroConteudo p:nth-child(2) { transition-delay: 0.1s; }
.filtro:hover .filtroConteudo p:nth-child(3) { transition-delay: 0.15s; }
.filtro:hover .filtroConteudo p:nth-child(4) { transition-delay: 0.2s; }
.filtro:hover .filtroConteudo p:nth-child(5) { transition-delay: 0.25s; }

.filtroConteudo p:hover {
  background-color: #5f5c5c;
  cursor: pointer;
}
