body {
  font-family: "Montserrat","Muli","Open Sans","Source Sans Pro","Segoe UI Emoji",sans-serif;
  background: hsl(225,8%,20%);
  color: white;
  margin: 0;
}

a {
  color: unset;
  text-decoration: unset;
}

@keyframes focusoutline {
  0% {
    outline: 0px solid #385ad6dd;
  }
  40% {
    outline: 6px solid #385ad6dd;
  }
  100% {
    outline: 4px solid #385ad6dd;
  }
}

a:focus {
  animation: focusoutline 0.5s forwards;
}

a:active, a:hover {
  outline: none !important;
  animation: none !important;
}

@supports (-ms-ime-align: auto) {
  @keyframes loading {
    from {transform: rotate(0deg);}
    to {transform: rotate(360deg);}
  }
  .loadingsection img, .loadmore img {
    animation: loading 1s cubic-bezier(0.4, 0.6, 0.8, 0.6) infinite;
  }
}

.loadingsection {
  position: relative;
  width: 100%;
  display: flex;
  visibility: visible;
  opacity: 1;
  transition: opacity 0.5s, visibility 0.5s;
  height: 554px;
	margin-top: -45px
}

.loadingsection img {
  margin: auto;
  height: 100px;
}

section.loaded .loadingsection {
  margin-top: -599px;
  opacity: 0;
  visibility: hidden;
  padding-bottom: 45px;
}

main {
  margin: 70px 11px 0px;
  display: flex;
  flex-direction: column;
}

section {
  width: 100%;
  min-height: 658px;
}

@media screen and (min-width: 972px) {
  main {
    margin: 70px 20px 0px 260px;
  }
}

@media screen and (min-width: 1372px) {
  main {
    margin: 70px 420px 0px 260px;
  }
}

.pagecontent {
  margin: 0 auto;
}

@media screen and (min-width: 480px) {
  .pagecontent {
 		width: 458px;
	}
}

@media screen and (min-width: 714px) {
  .pagecontent {
 		width: 692px;
	}
}

@media screen and (min-width: 948px) and (max-width: 971px), (min-width: 1206px) and (max-width: 1371px), (min-width: 1606px) {
  .pagecontent {
 		width: 926px;
	}
  
  .loadingsection {
    height: 277px;
  }

  section.loaded .loadingsection {
    margin-top: -322px;
  }
  
  section {
    min-height: 381px;
  }
}

@media screen and (min-width: 1840px) {
  .pagecontent {
 		width: 1160px;
	}
}

@media screen and (min-width: 2074px) {
  .pagecontent {
 		width: 1394px;
	}
}

@media screen and (min-width: 2308px) {
  .pagecontent {
 		width: 1628px;
	}
}

@media screen and (min-width: 2542px) {
  .pagecontent {
 		width: 1862px;
	}
}

@media screen and (min-width: 2776px) {
  .pagecontent {
 		width: 2096px;
	}
}

@media screen and (min-width: 3010px) {
  .pagecontent {
 		width: 2330px;
	}
}

@media screen and (min-width: 3244px) {
  .pagecontent {
 		width: auto;
	}
}

.pagesnav {
  display: flex;
  width: 100%;
  margin-bottom: 15px;
  font-size: 18px;
  flex-direction: column;
  font-weight: 500;
  user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  -webkit-user-select: none;
}

.pagesnav a {
  background: hsl(225,8%,30%);
  display: flex;
  width: 100%;
  padding: 10px;
  transition: background 0.6s, font-size 0.6s;
  box-sizing: border-box;
  line-height: 30px;
}

.pagesnav a:first-child {
  margin-bottom: 5px;
}

.pagesnav a:last-child {
  margin-top: 5px;
}

@media screen and (min-width: 714px) {
  .pagesnav {
    flex-direction: row;
  }

  .pagesnav a:first-child {
    margin: 0;
    margin-right: 5px;
  }

  .pagesnav a:last-child {
    margin: 0;
    margin-left: 5px;
  }
}

.pagesnav div {
  display: flex;
  margin: 0 auto;
}

.pagesnav img {
  height: 30px;
  padding-right: 10px;
  transition: height 0.6s, padding 0.6s;
}

.pagesnav a:hover {
  background: hsl(225,8%,40%);
  transition: background 0.2s, font-size 0.2s;
}

.pagesnav a:hover img {
  transition: height 0.2s, padding 0.2s;
}

.pagesnav a:active {
  background: hsl(225,8%,50%);
  transition: background 0.05s, font-size 0.05s;
  font-size: 16px;
}

.pagesnav a:active img {
  transition: height 0.05s, padding 0.05s;
  height: 26px;
  padding: 2px 8px 2px 0px;
}

section h1 {
  margin: 0 0 10px;
  font-weight: 600;
  display: inline-block;
}

.sectiondivider {
  height: 5px;
  width: calc(100% - 40px);
  background: hsl(225,8%,35%);
  margin: 0px auto 15px;
}

.contentcategory {
  display: flex;
  flex-wrap: wrap;
  margin-right: -10px;
  opacity: 0;
  transition: opacity 0.5s;
}

section.loaded .contentcategory {
  opacity: 1;
}

.contentblock {
  display: flex;
  margin: 0 10px 20px 0;
  width: 224px;
  flex-wrap: wrap;
}

.contentblock a {
  max-height: 126px;
}

.contentthumb {
  width: 224px;
  height: 126px;
  background: hsl(225,8%,25%);
}

.contentlength {
  position: absolute;
  width: 224px;
  height: 126px;
  display: flex;
}

.contentlengthtext {
  margin: auto 5px 5px auto;
  line-height: 22px;
  background: hsla(225,8%,30%,0.6);
  padding: 0 5px;
  color: hsla(0,0%,100%,0.9);
}

.contentlengthtext img {
  padding-right: 5px;
  opacity: 0.9;
}

.contentlength.notime img {
  padding: 0;
}

.contentinfo {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  margin-top: 5px;
  height: 126px;
  width: 224px;
}

.contenttitle {
  font-size: 18px;
  font-weight: 500;
  line-height: 21px;
  max-height: 42px !important;
  text-overflow: ellipsis;
  overflow: hidden;
  padding-bottom: 1px;
}

.contentstats, .contentdate {
  font-weight: 300;
  color: hsl(225,8%,80%);
  line-height: 20px;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

.contentuser {
  margin-top: auto;
  display: flex;
}

.contentuser img {
  width: 40px;
  display: block;
}

.contentuser a img {
  border-radius: 50%;
}

.contentuserinfo {
  display: flex;
  flex-direction: column;
  padding-left: 5px;
  margin: auto 0;
  max-width: calc(100% - 90px);
}

.contentusername {
  font-size: 18px;
  color: hsl(225,8%,90%);
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
  max-width: 256px;
  line-height: 20px;
}

.contentuserstats {
  font-size: 14px;
  color: hsl(225,8%,80%);
  line-height: 16px;
  font-weight: 300;
}

.loadmore {
  display: inline-block;
  margin-bottom: 20px;
  font-weight: 600;
  font-size: 20px;
  background: hsl(225,8%,30%);
  padding: 10px 0;
  cursor: pointer;
  transition: background 0.6s, transform 0.6s, opacity 0.5s;
  user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  -webkit-user-select: none;
  opacity: 0;
  line-height: 25px;
  width: 150px;
  text-align: center;
  height: 25px;
}

.loadmore img {
  height: 25px;
}

.loadmore:hover {
  background: hsl(225,8%,40%);
  transition: background 0.2s, transform 0.2s;
}

.loadmore:active {
  background: hsl(225,8%,50%);
  transition: background 0.05s, transform 0.05s;
  transform: scale(0.92);
}

section.loaded .loadmore {
  opacity: 1;
}