#material-type-wrapper {
  width: 100%;
  margin: 0 auto 6rem auto;
}

#material-type-selector-container {
  display: flex;
  border: none;
}

/* #material-type-selector-container.vertical {
  flex-direction: column;
  justify-content: space-enly;
  width: 55px;
  height: fit-content;
} */

#material-type-selector-container.horizontal {
  width: 100%;
  flex-direction: row;
  justify-content: space-around;
  background-color: #0b3d91;
  margin-bottom: 10px;
  box-shadow: 0px 1px 3px grey;
}

.material-type {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: auto;
  margin: 2px 0;
  font-size: 2vmax;
  text-decoration: none;

  transition-property: background-color;
  transition-duration: 0.15s;
  transition-timing-function: linear;
  transition-delay: 0.5ms;
}

.material-type:hover {
  background-color: #000a5e;
  cursor: pointer;
}

#material-type-selector-container.horizontal .material-type {
  width: 100%;
  margin: 2px 0px;
  padding: 0px 15px 3.5px 15px;
}

.material-type p {
  font-size: .35em;
  text-align: center;
  color: white;
  margin: 0.2vh 0 0px 0;
  letter-spacing: 2px;
}

.material-type:hover p {
  color: white;
}

.material-type img {
  height: 1.4vmax;
  border-radius: 4px;
  margin-top: 0.8vh;
}

/* When element is selected */
.material-type.selected {
  background-color: #000a5e;
}

.material-type.selected p {
  color: white;
}

.material-type-divider {
  box-shadow: 0px 0px 4px lightgrey;
  margin: 3.6rem auto;
  border-width: 0;
  border-top: 1px solid #e1e1e1;
  width: 40%;
  display: none;
}

@media only screen and (max-width: 750px),
  screen and (min-width: 768px) and (max-width: 1024px) {
  #material-type-selector-container.horizontal {
    top: 5.8rem;
    left: 13.5%;
  }

  .material-type img {
    display: none;
  }

  .material-type p {
    font-size: 1vmax;
  }
}
