* { box-sizing: border-box; }

html, body { padding: 0; margin: 0; }

body {
  padding: 5px;
  background: black;
  color: white;
  font-family: sans-serif;
}

img {
  margin: 10px;
  image-rendering: -webkit-crisp-edges;
}

hr {
  visibility: hidden
}

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

a:hover {
  color: #eee;
}

.main {
  color: #666;
  text-align: center;
}

.pixel {
  image-rendering: pixelated;
}

.main a {
  color: #666;
}

.main .foon-logo {
  max-width: 70%;
}

.main footer {
}

.main h2 {
  font-size: 20px;
  margin-top: 0em;
  font-weight: normal;
  color: #666;
  text-transform: uppercase;
  font-family: "Trebuchet MS", sans-serif;
}

.main p {
    color: #444;
}

.main .now {
    font-size: 20px;
    position: relative;
    top: 10px;
    margin: auto;
}

.main .now a {
    color: #888;
}

.game-info > .short {display: none;}

@media screen and (max-width: 860px) {
  .game-info > .short {display: block;}
  .game-info > .long {display: none;}
}

.game-info {
  display: inline-block;
  vertical-align: top;
  height: 80px;
  margin-left: 5px;
}

.game-info h1 {
  font-family: serif;
  margin: 6px 0 1px;
}

.game-info p {
  margin: 0;
  color: #666;
}

.game-info .by {
  color: gray;
}

.game-info .sep {
  padding: 0 .3em;
  color: #444;
}

.game-info a {
  color: #666;
  text-decoration: none;
}

.game-info a:hover {
  color: #ddd;
}

.game-info a.for {
    color: #aaa;
}

.app-store-link {
  position: absolute;
  top: 10px;
  right: 10px;
}

.game-play {
  position: absolute;
  top: 85px;
  /*bottom: 20px;*/
  bottom: 0;
  left: 0;
  right: 0;
}

embed, iframe, ruffle-embed {
  width: 100%;
  height: 100%;
  border: none;
}

.game-play.netshift {
  text-align: center
}

.game-play.netshift embed,
.game-play.netshift iframe,
.game-play.netshift ruffle-embed {
  width: 440px;
  height: 340px;
  border: none;
}

.games {
  max-width: 900px;
  margin: 30px auto 30px;
}

.games img {
  border-radius: 7px;
}

.links {
  text-align: left;
  max-width: 600px;
    margin: 0 auto 30px;
}

.link {
    display: inline-block;
    width: 50%;
    margin-bottom: 10px;
    position: relative;
    left: 100px;
}

.link .name {
    color: #666;
}
.link .info {
    color: #444;
}


.hapland-ios-note {
  position: absolute;
  bottom: 0;
  right: 0;
  padding-left: 10px;
  background: black;
}

.close {
    position: absolute;
    top: 5px;
    left: 10px;
  }

.haptril-top-notice,
.haptril-top-notice-medium ,
.haptril-top-notice-small {
  position: absolute;
  top: 0;
  right: 0;
}

.haptril-top-notice img ,
.haptril-top-notice-medium img,
.haptril-top-notice-small img {
  margin-top: 5px;
}

@media screen and (min-width: 1500px) {
    .haptril-top-notice {
        position: absolute;
        top: 0;
        right: 30px;
        width: 1068px;
        height: 72px;
    }
    .haptril-top-notice-medium {display: none;}
    .haptril-top-notice-small {display: none;}
}

@media screen and (min-width: 1060px) and (max-width: 1499px) {
    .haptril-top-notice {display: none;}
    .haptril-top-notice-medium {
        position: absolute;
        top: 0;
        right: 30px;
        width: 559;
        height: 72px;
    }
    .haptril-top-notice-small {display: none;}
}


@media screen and (min-width: 704px) and (max-width: 1059px) {
    .haptril-top-notice {display: none;}
    .haptril-top-notice-medium {display: none;}
    .haptril-top-notice-small {
        position: absolute;
        top: 0;
        right: 30px;
        width: 384px;
        height: 72px;
    }
}


@media screen and (max-width: 703px) {
    .haptril-top-notice {display: none;}
    .haptril-top-notice-medium {display: none;}
    .haptril-top-notice-small {display: none;}
}


.fill-x {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: row;
  justify-content: center;
}

.fill-x > * {
  height: 100%;
}

.fill-y {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: auto;
  max-width: 100%;
}

.fill-y > * {
  width: 100%;
}

@media screen and (max-height: 430px) {
  .top-bar { display: none; }
  .game-play { top: 0; }
}


