@font-face {
  font-family: 'Avenir';
  src: url("https://www.newgrounds.io/css/Avenir-Roman.otf");
}

body {
  color: black;
  background-color: white;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  padding: 0px;
  margin: 0px;
  min-width: 660px;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, h4 {
  font-family: Avenir, Arial, Helvetica, sans-serif;
  font-weight: bold;
}

a {
  color: #f90;
  text-decoration: none;
}

div.top-nav {
  display: flex;
  padding: 12px 48px;
  background: url("https://www.newgrounds.io/img/logo_background.png") top left no-repeat;
  background-color: #FFF8A8;
  height: 50px;
  overflow: hidden;
}

div.top-nav a {
  color: #54545C;
  font-weight: bolder;
  margin-left: 12px;
  margin-top: 14px;
  position: relative;
  padding-left: 12px;
  text-decoration: none;
}

div.top-nav nav a:before {
  content: ">";
  display: inline-block;
  font-weight: normal;
  font-size: 0.75em;
  padding: 0.25em;
  line-height: 1em;
  position: absolute;
  top: 0px;
  left: 0px;
}

div.top-nav div.twitter {
  margin: 4px 0px;
  text-align: right;
}

div.top-nav div.logo a {
  display: inline-block;
  margin: 0px;
  text-indent: -999px;
  width: 256px;
  height: 50px;
  background: url("https://www.newgrounds.io/img/ngio_logo.png") top left no-repeat;
  background-size: 256px 50px;
}

div.top-nav div.rightlinks {
  flex: 1;
  text-align: right;
  white-space: nowrap;
}

div[class^='promo-'], section[class^='promo-'] {
  background-color: white;
  background-repeat: no-repeat;
  background-size: cover;
  padding: 12px 48px;
}

div[class^='promo-'] h1, section[class^='promo-'] h1 {
  font-size: 3em;
  padding: 0px;
  margin: 16px 16px 0px 0px;
}

@media (max-width: 800px) {
  div[class^='promo-'] h1, section[class^='promo-'] h1 {
    font-size: 2em;
  }
}

div[class^='promo-'] div.promobutton a, section[class^='promo-'] div.promobutton a {
  display: inline-block;
  text-decoration: none;
  margin: 12px 0px;
  padding: 12px 48px;
  background: #008000;
  background: linear-gradient(top, #009900, #007700);
  background: -ms-linear-gradient(top, #009900, #007700);
  background: -webkit-gradient(linear, left top, left bottom, from(#009900), to(#007700));
  background: -moz-linear-gradient(top, #009900, #007700);
  color: white;
  font-weight: 800;
  border-radius: 10px;
  -webkit-box-shadow: 4px 2px 7px -1px rgba(0, 0, 0, 0.45);
  -moz-box-shadow: 4px 2px 7px -1px rgba(0, 0, 0, 0.45);
  box-shadow: 4px 2px 7px -1px rgba(0, 0, 0, 0.45);
}

div[class^='promo-'] div.promobutton.right, section[class^='promo-'] div.promobutton.right {
  text-align: right;
}

div.promo-dark, section.promo-dark {
  color: white;
  background-color: #2d3b48;
  
}

div.promo-light, section.promo-light {
  color: black;
  background-color: white;
  
}

div.about-newgrounds {
  background-image: url("https://www.newgrounds.io/img/background-power.jpg");
}

section.about-io {
  background-image: url("https://www.newgrounds.io/img/background-network.jpg");
  display: flex;
  justify-content: flex-end;
}

section.medals {
  background-image: url("https://www.newgrounds.io/img/background-medals.jpg");
}

section.games {
  background: url("https://www.newgrounds.io/img/background-games.jpg") top left repeat-x;
  background-color: #003580;
}

div.icon-flex {
  display: flex;
  width: 100%;
}

div.icon-flex div.icon-flex-text {
  flex: 3;
}

div.icon-flex div.icon-flex-image {
  flex: 1;
  max-width: 250px;
  min-width: 125px;
}

div.icon-flex div.icon-flex-image img {
  margin: 24px 0px;
  width: 100%;
}

div.icon-flex div.icon-flex-image:first-child {
  padding-right: 48px;
}

div.icon-flex div.icon-flex-image:last-child {
  padding-left: 48px;
}

*.text-chunk {
  width: 100%;
  max-width: 1000px;
}

@media (max-width: 1280px) {
  *.text-chunk {
    max-width: 800px;
  }
}

@media (max-width: 1024px) {
  *.text-chunk {
    max-width: 600px;
  }
}

@media (max-width: 800px) {
  *.text-chunk {
    max-width: 100%;
  }
}

*.text-chunk.right {
  margin-left: auto;
}

@media (max-width: 800px) {
  *.not-on-small {
    display: none;
  }
}

div.page-body {
  flex: 1;
  height: calc(100% - 122px);
}

footer.main-footer {
  color: white;
  background-color: #013581;
  line-height: 48px;
  text-align: center;
}

*.general-body {
  height: 100%;
  width: 100%;
  overflow: auto;
}

*.general-body.indent {
  padding: 12px 48px;
  width: calc(100% - 96px);
  height: calc(100% - 24px);
}

*.indent {
  padding-left: 28px;
}

li.indent-1 {
  margin-left: 12px;
}

li.indent-2 {
  margin-left: 24px;
}

li.indent-3 {
  margin-left: 36px;
}

li.indent-4 {
  margin-left: 48px;
}

li.indent-5 {
  margin-left: 60px;
}

li.indent-6 {
  margin-left: 72px;
}

table.downloads {
  border: 2px solid #d66d00;
  border-radius: 5px;
  font-size: 0.8em;
  padding: 0px;
  overflow: hidden;
  width: 100%;
  max-width: 980px;
  -webkit-box-shadow: 4px 2px 7px -1px rgba(0, 0, 0, 0.45);
  -moz-box-shadow: 4px 2px 7px -1px rgba(0, 0, 0, 0.45);
  box-shadow: 4px 2px 7px -1px rgba(0, 0, 0, 0.45);
}

table.downloads tr {
  padding: 0px;
  margin: 0px;
  border: 0;
}

table.downloads td, table.downloads th {
  padding: 4px 8px;
}

table.downloads tr.table-head {
  background-color: #f90;
  color: white;
}

table.downloads tr.table-row:nth-child(odd) {
  background-color: #F2F5FC;
}

table.downloads tr.table-row {
  height: 30px;
}

table.downloads tr.table-row td:not(:first-child) {
  border-left: 1px dotted #FFDE79;
}

table.downloads tr.table-row td {
  line-height: 30px;
  border-top: 1px solid #d66d00;
  vertical-align: middle;
}

table.downloads tr.table-row td:first-child a {
  font-weight: bold;
}

table.downloads td[class^='icon-'] a:first-child::before {
  content: "";
  display: inline-block;
  width: 30px;
  height: 30px;
  vertical-align: middle;
}

table.downloads td.icon-html5 a::before {
  background: url("https://www.newgrounds.io/img/icon-html5.png") top left no-repeat;
  background-size: 30px 30px;
  margin-right: 8px;
}

table.downloads td.icon-construct2 a::before {
  background: url("https://www.newgrounds.io/img/icon-construct2.png") top left no-repeat;
  background-size: 30px 30px;
  margin-right: 8px;
}

table.downloads td.icon-construct a::before {
  background: url("https://www.newgrounds.io/img/icon-construct.png") top left no-repeat;
  background-size: 30px 30px;
  margin-right: 8px;
}

table.downloads td.icon-dotnet a::before {
  background: url("https://www.newgrounds.io/img/icon-dotnet.png") top left no-repeat;
  background-size: 30px 30px;
  margin-right: 8px;
}

table.downloads td.icon-unity3d a::before {
  background: url("https://www.newgrounds.io/img/icon-unity3d.png") top left no-repeat;
  background-size: 30px 30px;
  margin-right: 8px;
}

table.downloads td.icon-flash a::before {
  background: url("https://www.newgrounds.io/img/icon-flash.png") top left no-repeat;
  background-size: 30px 30px;
  margin-right: 8px;
}

table.downloads td.icon-haxe a::before {
  background: url("https://www.newgrounds.io/img/icon-haxe.png") top left no-repeat;
  background-size: 30px 30px;
  margin-right: 8px;
}

table.downloads td.icon-wick a::before {
  background: url("https://www.newgrounds.io/img/icon-wick.png") top left no-repeat;
  background-size: 30px 30px;
  margin-right: 8px;
}

table.downloads td.icon-gamemaker a::before {
  background: url("https://www.newgrounds.io/img/icon-gamemaker.png") top left no-repeat;
  background-size: 30px 30px;
  margin-right: 8px;
}

table.downloads td.icon-php a::before {
  background: url("https://www.newgrounds.io/img/icon-php.png") top left no-repeat;
  background-size: 30px 30px;
  margin-right: 8px;
}

table.downloads td.icon-pico8 a::before {
  background: url("https://www.newgrounds.io/img/icon-pico8.png") top left no-repeat;
  background-size: 30px 30px;
  margin-right: 8px;
}

table.downloads td.icon-godot a::before {
  background: url("https://www.newgrounds.io/img/icon-godot.png") top left no-repeat;
  background-size: 30px 30px;
  margin-right: 8px;
}

table.downloads td.icon-gdevelop a::before {
  background: url("https://www.newgrounds.io/img/icon-gdevelop.png") top left no-repeat;
  background-size: 30px 30px;
  margin-right: 8px;
}

table.downloads td.icon-kaboom a::before {
  background: url("https://www.newgrounds.io/img/icon-kaboom.png") top left no-repeat;
  background-size: 30px 30px;
  margin-right: 8px;
}

table.downloads td.icon-scratch a::before {
  background: url("https://www.newgrounds.io/img/icon-scratch.png") top left no-repeat;
  background-size: 30px 30px;
  margin-right: 8px;
}

*.small {
  font-size: 0.7em;
}

div.gamegrid {
  width: 100%;
  padding: -8px;
}

div.gamegrid div.gridgame {
  display: inline-block;
  width: calc(25% - 12px);
  padding: 4px;
}

@media (max-width: 1280px) {
  div.gamegrid div.gridgame {
    width: calc(33% - 12px);
  }
}

@media (max-width: 908px) {
  div.gamegrid div.gridgame {
    width: calc(50% - 12px);
  }
}

div.gamegrid div.gridgame img.game {
  width: 100%;
  -webkit-box-shadow: 4px 2px 7px -1px rgba(0, 0, 0, 0.45);
  -moz-box-shadow: 4px 2px 7px -1px rgba(0, 0, 0, 0.45);
  box-shadow: 4px 2px 7px -1px rgba(0, 0, 0, 0.45);
}

div.fixed-toc-layout {
  display: flex;
  height: 100%;
}

div.fixed-toc-layout div.table-of-contents, div.fixed-toc-layout article.general-body {
  overflow: auto;
}

div.fixed-toc-layout div.table-of-contents {
  min-width: 248px;
  border-right: 2px dotted gray;
}

div.fixed-toc-layout article.general-body {
  flex: 1;
}