.backgound-imagen-materiales {
  display: flex;
  position: relative;
  justify-content: center;
  align-items: center;
  height: 16vh;
}

.backgound-imagen-materiales::before {
  content: "";
  background: url("/static/img/backgound-imagen-materiales.jpg");
  opacity: 0.4;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  position: absolute;
  z-index: -1;
  background-repeat: no-repeat;
  width: inherit;
  height: inherit;
}

.user-info-container {
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  align-items: center;
  padding: .5rem;
  column-gap: 1.5rem;
}

.logout-button {
  border: 1px solid black;
  padding: .3rem;
  padding-left: 0.6rem;
  padding-right: 0.6rem;
  color: white;
  background-color: #4e4e4e;
}

.boton-filtros {
  margin-right: 15%; 
  border: 1.5px solid #9f9fa2; 
  padding: 0.3em; 
  padding-left: 0.6em; 
  padding-right: 0.6em;  
  float:inline-end; 
  color: #4e4e4e;
  font-weight: 400;
}

#contenedor-filtros{
  display: flex;
  justify-content: space-between;
}

#borrar-filtros{
  font-size: large;
  background-color: white;
  font-weight: bold;
  text-align: center;
  width: 45%;
  padding-top: 0.3rem;
  padding-bottom: 0.3rem;
  border: 1px solid black;
  color: #4e4e4e;
  font-weight: 500;
  border-radius: 5px;
}

#borrar-filtros:hover{
  background-color: black;
  color: white;
  border-color: black;
}

#borrar-filtros:focus{
  outline: none;
}

#apply-filters{
  font-size: large;
  background-color: white;
  font-weight: bold;
  text-align: center;
  width: 45%;
  padding-top: 0.3rem;
  padding-bottom: 0.3rem;
  border: 1px solid black;
  color: #4e4e4e;
  font-weight: 500;
  border-radius: 5px;
}

#apply-filters:hover{
  background-color: black;
  color: white;
  border-color: black;
}

#apply-filters:focus{
  outline: none;
}

#div-botones-desplegable-filtros{
  display: flex;
  justify-content: space-around;
}

.texto-no-materiales{
  width: 500%;
}

/*.imagen-material-libreria{
  max-height: 95% !important;
  min-height: 95% !important;
  max-width: 87% !important;
}

.nombre-material-biblioteca{
  align-items: center; 
  text-align: center; 
  margin: 0.5rem;
  margin-left: 0 !important;
  max-width: 87% !important;
}

.div-material-biblioteca{
  word-break: break-all;
  margin-top: 1.5rem !important;
}*/

.main-material-container {
  display: flex;
  justify-content: center;
  width: 100%;
}

/*.all-materials-container {
 display: grid;
 grid-template-columns: repeat(auto-fill, minmax(20%, 1fr));
 grid-gap: 1.2rem;
 width: 65%;
}*/

.all-materials-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 1.2rem;
  /*border: 2px solid red;*/
  width: 90%;
  margin: 0 auto;
}

.material-container {
  display: flex;
  flex-direction: column;
  /*border: 2px solid red;*/
  flex-basis: calc(20% - 1.2rem);
  aspect-ratio: 1 / 1;
  margin-bottom: 1.2rem;
  /*width: 220px; 
  height: 220px;*/
  padding: 2px;
}

.image-container {
  /*border: 2px solid blue;*/
  width: 100%;
  height: 80%;
}

.material-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.info-material-container {
  text-align: center;
  height: 20%;
  padding-top: .6rem;
}

.material-name {
  font-size: 0.7rem;
}

/* Media query para pantallas grandes*/
@media screen and (min-width: 1200px) {
  .all-materials-container { 
    width: 90%;
  }
}


/* Media query para pantallas medianas */
@media screen and (max-width: 1024px) {
  .all-materials-container { 
    width: 90%;
  }

  .material-container {
      flex-basis: calc(25% - 1.2rem);
      margin-bottom: 1.2rem; 
  }
}

/* Media query para pantallas pequeñas */
@media screen and (max-width: 768px) {
  .material-container {
      flex-basis: calc(50% - 1.2rem);
      margin-bottom: 1.2rem; 
  }
  .info-material-container {
    padding-top: .5rem;
  }
}