div#stemning, div#materialetype {
	display: flex;
  flex-direction: row;
  flex-wrap: wrap;
}

div#stemning div, div#materialetype div {
	min-width: 260px;	
}

#laanegenerator_grid {
	position: sticky;
  background: rgba(246, 245, 240, 0.8);
  padding-top: 30px;
}

header.header {
	position:static;
}

div#loader {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0;
  background-color: rgba(240, 240, 240, 0.75);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 99;
}

div.loader {
  border: 16px solid #e6e5e3;
  border-top: 16px solid #004f56;
  border-radius: 50%;
  width: 30vw;
  height: 30vw;
  animation: spin 2s linear infinite;
}


@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

a.recommended-material__abstract {
    font-family: "Noto Sans", sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 14px;
    line-height: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: left;
    text-decoration: none;
    margin-top: 7px;
}

.recommended-material__texts {
    overflow: hidden;
}

@media screen and (max-width: 1050px) {
	.material-grid__items {
    grid-template-columns: repeat(3, 1fr);
	}
}

@media screen and (max-width: 768px) {
	.material-grid__items {
    grid-template-columns: repeat(2, 1fr);
	}
}

@media screen and (max-width: 500px) {
	.material-grid__items {
    grid-template-columns: repeat(1, 1fr) !important;
	}
	
	.recommended-material {
		grid-template-columns: 1fr 3fr;
		grid-template-rows: 137px;
		column-gap: 10px;
	}
	
	.recommended-material__icon {
		display: none;
	}
	
	a.recommended-material__abstract {
		-webkit-line-clamp: 5;
	}
}