/* Koloreak
Berdea: #97BF62;
Urdina: #6391C7;
Morea: #AC2F83;
*/

.aurrekontuak-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  padding-top: 20px;
}

.aurrekontua-3 {
  background-color: #6391c7;
}

.aurrekontua-3.aukeratuta {
  border-color: #26519b !important;
}

.aurrekontua-2 {
  background-color: #97bf62;
}

.aurrekontua-2.aukeratuta {
  border-color: #588f26 !important;
}

.aurrekontua-1 {
  background-color: #ac2f83;
}

.aurrekontua-1.aukeratuta {
  border-color: #740843 !important;
}

ul.proiektuak-menu {
  list-style: none;
  font-size: 1.3rem;
  margin-bottom: 2rem !important;
  padding-left: 0;
  display: flex;
}

.proiektuak-menu li {
  display: inline;
  padding: 0.5rem 1rem;
  margin-right: 10px;
  color: #fff !important;
  font-weight: bold;
}

.aurrekontua {
  flex: 0 1 32%;
  display: flex;
  flex-direction: column;
  margin-bottom: 2rem;
  line-height: 130%;
  color: #fff;
  padding-bottom: 1rem;
  border-radius: 10px;
  z-index: 1;
  position: relative;
}

.aurrekontua:after {
  position: absolute;
  content: "";
  width: 100%;
  height: 80px;
  background: #ffffff4f;
  bottom: 0;
  left: 0;
  z-index: 2;
  border-radius: 0 0 5px 5px;
}

.aurrekontua h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  margin: 0 20px 16px;
}

.aurrekontua p {
  margin: 0 20px 16px;
  font-size: 1rem;
}

.aurrekontua .btn {
  margin: auto 20px 0 20px;
  background-color: #444;
  border: 0;
  z-index: 3;
  text-decoration: none;
  /* position: absolute; */
  z-index: 5;
  bottom: 1rem;
  width: calc(100% - 2rem);
}

.aurrekontua img {
  margin-bottom: 1rem;
  object-fit: cover;
  object-position: center;
  width: 100%;
  max-height: 310px;
  min-height: 310px;
  border-radius: 10px 10px 0 0;
}

.aurrekontua.aukeratuta img {
  border-radius: 5px 5px 0 0;
}

.aukeratuta {
  box-shadow: 0 0 20px #444;
  border: 5px solid #444;
}

.bozketatik-kendu-btn {
  background-color: #44444470 !important;
  text-transform: uppercase;
  color: #fff !important;
}

.bozketatik-kendu-btn:after {
  content: "X";
  position: absolute;
  right: 20px;
  bottom: 7px;
  font-size: 26px;
  color: #fff;
}

.aurrekontua p.aurrekontuaren-zenbatekoa {
  margin-bottom: 5rem;
  font-weight: bold;
}

#bozketa-formularioa {
  background: #f1ece0;
  padding: 1rem;
  margin-bottom: 2rem;
  border-radius: 10px;
}

#botazioa-form {
  margin-bottom: 0;
}

.aurrekontu-zenbakia {
  width: 26px;
  height: 26px;
  line-height: 26px;
  display: block;
  position: absolute;
  left: 0.5rem;
  top: 0.5rem;
  background-color: #fff;
  color: #444;
  font-weight: bold;
  border-radius: 20px;
  text-align: center;
  font-size: 16px;
}

#aurrekontuen-lista h2 {
  margin-bottom: 2rem;
}

/*Snackbar*/
.snackbar {
  visibility: hidden; /* Hidden by default. Visible on click */
  min-width: 500px; /* Set a default minimum width */
  margin-left: -250px; /* Divide value of min-width by 2 */
  background-color: #333; /* Black background color */
  color: #444; /* White text color */
  text-align: center; /* Centered text */
  border-radius: 2px; /* Rounded borders */
  padding: 16px; /* Padding */
  position: fixed; /* Sit on top of the screen */
  z-index: 3; /* Add a z-index if needed */
  left: 50%; /* Center the snackbar */
  top: 25%; /* 30px from the bottom */
  border-radius: 10px;
  border: 1px solid #ced4da;

  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  height: 80px;
  font-size: 24px;
}

.snackbar.add {
  background-color: #fff !important; /* Black background color */
}
.snackbar.remove {
  background-color: #fff !important; /* Black background color */
}
/* Show the snackbar when clicking on a button (class added with JavaScript) */
.snackbar.show {
  visibility: visible; /* Show the snackbar */
  /* Add animation: Take 0.5 seconds to fade in and out the snackbar.
  However, delay the fade out process for 2.5 seconds */
  -webkit-animation: fadein 0.5s, fadeout 0.5s 2.5s;
  animation: fadein 0.5s, fadeout 0.5s 2.5s;
}

/* Animations to fade the snackbar in and out */
@-webkit-keyframes fadein {
  from {
    bottom: 0;
    opacity: 0;
  }
  to {
    bottom: 30px;
    opacity: 1;
  }
}

@keyframes fadein {
  from {
    bottom: 0;
    opacity: 0;
  }
  to {
    bottom: 30px;
    opacity: 1;
  }
}

@-webkit-keyframes fadeout {
  from {
    bottom: 30px;
    opacity: 1;
  }
  to {
    bottom: 0;
    opacity: 0;
  }
}

@keyframes fadeout {
  from {
    bottom: 30px;
    opacity: 1;
  }
  to {
    bottom: 0;
    opacity: 0;
  }
}

@media (max-width: 767px) {
  .aurrekontua {
    flex: 0 1 48%;
  }
}
