/* catalog.css - the games catalog, styled like 2018.
 *
 * Card values (white background, shadow 0 1px 4px rgba(25,25,25,.3), radius 3px,
 * thumb 150x150, green #02b757) come from the original
 * page___52160f...css of the /games page from 2018 (see web/_archive/games_201807.html).
 * We don't pull in that whole file, as it would override the landing page's look.
 */

#GamesContainer {
  background-color: #e8e8e8;
  background-image: none;
  min-height: 0;
  padding: 32px 0 48px;
}

/* games.html: the navbar is position:fixed, so the catalog starts below it */
body[data-internal-page-name="Games"] #GamesContainer {
  padding-top: 96px;
}

@media (max-width: 991px) {
  body[data-internal-page-name="Games"] #GamesContainer {
    padding-top: 104px;
  }
}

#GamesContainer .games-heading {
  font-size: 30px;
  font-weight: 400;
  color: #191919;
  margin: 0 0 6px;
}

#GamesContainer .games-greeting {
  font-size: 15px;
  font-weight: 600;
  color: #02b757;
  margin: 0 0 4px;
}

#GamesContainer .games-sub {
  color: #757575;
  font-size: 15px;
  margin: 0 0 22px;
}

#GamesContainer .games-status {
  font-size: 15px;
  color: #191919;
  margin: 0 0 22px;
  min-height: 22px;
}

.rbx-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
}
.rbx-dot.on { background-color: #02b757; }
.rbx-dot.off { background-color: #b8b8b8; }
.rbx-addr { color: #757575; font-size: 13px; margin-left: 8px; }

/* --- grid (authentic 2018 classes: .game-cards .game-cards-grid) --- */
ul.game-cards.game-cards-grid {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 980px;
  white-space: normal;
  text-align: left;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

ul.game-cards.game-cards-grid li.list-item.game-cards {
  width: 174px;
  margin: 0 0 18px 0;
  padding: 0 12px;
  display: inline-block;
  vertical-align: top;
  white-space: normal;
  box-sizing: border-box;
}

.game-card { width: 100%; height: auto; padding: 0; }

.game-card-container {
  background-color: #fff;
  position: relative;
  box-shadow: 0 1px 4px 0 rgba(25, 25, 25, 0.3);
  border-radius: 3px;
  width: 100%;
  height: 100%;
  padding: 0;
  margin: 0 auto;
  text-align: left;
  transition: box-shadow 200ms ease;
}
.game-card-container:hover { box-shadow: 0 1px 6px 0 rgba(25, 25, 25, 0.75); }

.game-card-thumb-container {
  position: relative;
  width: 100%;
  height: auto;
  border-top-left-radius: 3px;
  border-top-right-radius: 3px;
  overflow: hidden;
}

img.game-card-thumb {
  display: block;
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-top-left-radius: 3px;
  border-top-right-radius: 3px;
  background-color: #dadada;
}

.game-card-name,
.game-card-name-secondary {
  width: 100%;
  padding: 0 6px;
  margin: 3px 0;
  box-sizing: border-box;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.game-card-name { margin-top: 6px; font-size: 12px; font-weight: 400; line-height: 1.1em; color: #191919; }
.game-card-name-secondary { font-size: 12px; font-weight: 400; color: #757575; line-height: 1.1em; }

.gk-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  background-color: #02b757;
  color: #fff;
  font-size: 10px;
  line-height: 1;
  padding: 3px 6px;
  border-radius: 2px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.game-card-footer { padding: 6px; text-align: center; }

.gk-play {
  display: block;
  width: 100%;
  border: 1px solid #02b757;
  background-color: #02b757;
  color: #fff;
  font-size: 13px;
  line-height: 1;
  padding: 7px 6px;
  border-radius: 3px;
  cursor: pointer;
  font-family: inherit;
}
.gk-play:hover { background-color: #3FC679; border-color: #3FC679; }
.gk-play.gk-disabled,
.gk-play:disabled {
  background-color: #d8d8d8;
  border-color: #d8d8d8;
  color: #8a8a8a;
  cursor: default;
}

/* --- launch help panel --- */
#play-help {
  max-width: 700px;
  margin: 24px auto 0;
  background-color: #fff;
  border: 1px solid #d0d0d0;
  border-radius: 3px;
  padding: 14px 18px;
  font-size: 14px;
  color: #191919;
  line-height: 1.5;
}
#play-help code {
  background-color: #f2f2f2;
  padding: 1px 4px;
  border-radius: 2px;
  font-size: 13px;
}

/* --- logged-in user bar in the navbar --- */
#rbx-user-box {
  color: #fff;
  text-align: right;
  padding-top: 12px;
  font-size: 14px;
}
#rbx-user-box .rbx-user-name { font-weight: 600; }
#rbx-user-box a { color: #fff; text-decoration: underline; margin-left: 10px; }

/* wide screens: the compact horizontal form is the one we show (like 2018) */
@media (min-width: 992px) {
  #login-container .mobile-login { display: none !important; }
}
/* narrow screens: Bootstrap's .collapse would hide the login form completely
   (there is no Angular navbar toggler any more). Show it inline instead. */
@media (max-width: 991px) {
  #login-container .mobile-login.collapse {
    display: block !important;
    position: static;
    background: transparent;
    padding: 8px 0;
  }
}
