/* ==========================================================================
   Game-Remakes.com - page components
   Catalog cards, sidebar blocks, inner page content, responsive
   components, print styles and fancybox helpers.
   ========================================================================== */

/* Game category heading and description
   ========================================================================== */

.categoryName {
  display: block;
  margin: 8px 0 0 0;
  padding: 0 0 0 15px;
  background: url('/i/bull_arrow.gif') no-repeat left center;
}

.categoryDescription {
  margin: 4px 0 15px 0;
  font-size: 9pt;
  line-height: 1.5em;
}

/* Game cards
   ========================================================================== */

.categoryGameCard {
  display: flex;
  align-items: center;
  width: 564px;
  height: 109px;
  margin: 0 0 10px 0;
}

.boxShot {
  display: block;
  flex: 0 0 104px;
  width: 104px;
  height: 109px;
  margin: 0 10px 0 0;
  padding: 0 0 5px 0;
  border: 1px solid var(--gr-color-border);
  border-radius: 3px;
  background-color: var(--gr-color-border);
  box-sizing: border-box;
}

.boxShot img {
  display: block;
  width: 100px;
  height: 100px;
  border: 1px solid var(--gr-color-text-inverse);
  border-radius: 2px;
}

.gameInfo {
  flex: 0 0 450px;
  width: 450px;
}

.categoryGameCard h2 {
  margin: 0 0 5px 0;
  color: var(--gr-color-heading);
  font-size: 11pt;
  line-height: 1.2em;
}

.categoryGameCard h2 img {
  width: 76px;
  height: 15px;
  margin: 0 0 0 5px;
  vertical-align: middle;
}

.categoryGameCard p {
  margin: 0 0 5px 0;
  font-size: 9pt;
  line-height: 1.5em;
}

a.categoryGameLinks {
  display: inline-block;
  color: var(--gr-color-accent);
  font: normal bold 9pt Verdana, sans-serif;
}

.categoryGameCard a[href^='/download.php'],
.categoryGameCard a[href^='/mac_download.php'] {
  height: 21px;
  margin: 0 10px 3px 0;
  padding: 0 0 0 21px;
  background: url('/i/download.gif') no-repeat;
}

.categoryGameCard a[href^='/play.php'] {
  height: 21px;
  margin: 0 10px 3px 0;
  padding: 0 0 0 21px;
  background: url('/i/play.gif') no-repeat;
}

/* Social panel
   ========================================================================== */

.socialPanel {
  width: 174px;
  margin: 0 0 15px 3px;
  padding: 5px 0;
  border-radius: 3px;
  background: var(--gr-color-surface);
  text-align: center;
  line-height: 0;
}

.socialPanel a {
  display: inline-block;
  margin: 4px 2px;
}

.socialPanel img {
  display: block;
  width: 32px;
  height: 32px;
}

/* Navigation menu
   ========================================================================== */

.navigationMenu {
  padding-top: 13px;
}

a.gamePlatform {
  display: block;
  margin: 0 0 5px 0;
  padding: 0 0 0 10px;
  background: url('/i/bull_main.gif') no-repeat left center;
  color: var(--gr-color-text-inverse);
  font: normal bold 11pt Verdana, sans-serif;
}

.gameCategories {
  width: 174px;
  margin: 0 0 5px 3px;
  padding: 5px 0;
  border-radius: 3px;
  background: var(--gr-color-surface);
}

a.gameCategory {
  display: block;
  margin: 0 0 5px 5px;
  padding: 0 0 0 20px;
  background: url('/i/bull_hdr.gif') no-repeat left center;
  color: var(--gr-color-accent-alt);
  font: normal bold 9pt Verdana, sans-serif;
}

/* New games
   ========================================================================== */

.newGames {
  margin: 20px 0 5px 0;
}

.newGamesTitle {
  display: block;
  margin: 0;
  padding: 0 0 0 10px;
  background: url('/i/bull_main.gif') no-repeat left center;
  color: var(--gr-color-text-inverse);
  font: normal bold 11pt Verdana, sans-serif;
}

.newGamesList {
  width: 177px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.newGamesList li {
  display: flex;
  align-items: center;
  height: 38px;
}

a.newGameIcon {
  display: block;
  flex: 0 0 40px;
  width: 40px;
}

a.newGameIcon img {
  display: block;
  width: 32px;
  height: 32px;
  margin: 0 auto;
}

a.newGameName {
  flex: 0 0 137px;
  width: 137px;
  color: var(--gr-color-text-inverse);
  font: normal normal 9pt Verdana, sans-serif;
}

/* ==========================================================================
   Styles for inner blocks of public pages: comment form, system requirements
   and similar games lists, ratings, search. The page frame is already
   semantic (Issue 81).
   ========================================================================== */

/* Banner slots reserve the 60px iframe plus vertical padding to avoid CLS. */
.contentTopBanner,
.contentBottomBanner {
  width: 564px;
  min-height: 70px;
  box-sizing: border-box;
  background: var(--gr-color-surface-soft);
  border-radius: 3px;
  text-align: center;
  padding: 5px 0 5px 0;
  margin: 14px 0 18px 0;
}

.contentTopBanner iframe,
.contentBottomBanner iframe {
  display: block;
  max-width: 100%;
  margin: 0 auto;
  border: 0;
}

/* Catalog and search pagination */
.paginationLinks {
  width: 100%;
  background: var(--gr-color-surface-soft);
  border-radius: 3px;
  text-align: center;
  padding: 5px 0 5px 0;
  margin: 14px 0 18px 0;
  font: normal normal 11pt Verdana, sans-serif;
}

.paginationLinks span {
  margin: 0 5px;
}

.prevLink,
.nextLink,
.currentLink {
  font-weight: 700;
}

/* Game page */
.gameDescriptionTop h1 {
  margin: -2px 0 5px 0;
  padding: 0;
  line-height: 100%;
}

.shortDescription {
  font: normal bold 9pt Verdana, sans-serif;
  color: var(--gr-color-accent);
}

.gameDescriptionTop a,
.onlineGameLinks a {
  display: inline-block;
  font: normal bold 9pt Verdana, sans-serif;
}

.gameDescriptionTop a[href^='/download.php'],
.gameDescriptionTop a[href^='/mac_download.php'],
.categoryGameCard a[href^='/download.php'],
.categoryGameCard a[href^='/mac_download.php'],
.onlineGameLinks a[href^='/download.php'],
.onlineGameLinks a[href^='/mac_download.php'] {
  background: url('/i/download.gif') no-repeat;
  height: 21px;
  margin: 0 10px 3px 0;
  padding: 0 0 0 21px;
}

.gameDescriptionTop a[href^='/play.php'],
.categoryGameCard a[href^='/play.php'] {
  background: url('/i/play.gif') no-repeat;
  height: 21px;
  margin: 0 10px 3px 0;
  padding: 0 0 0 21px;
}

.gameDescriptionTop a[href^='/buy.php'],
.gameDescriptionTop a[href^='/mac_buy.php'],
.onlineGameLinks a[href^='/buy.php'],
.onlineGameLinks a[href^='/mac_buy.php'] {
  background: url('/i/buy.gif') no-repeat;
  height: 21px;
  margin: 0 10px 3px 0;
  padding: 0 0 0 21px;
}

.gameAward {
  width: 117px;
  height: 99px;
}

.descriptionSubheader {
  font: normal bold 11pt Verdana, sans-serif;
  color: var(--gr-color-heading);
  margin: 16pt 0 4pt 0;
}

.longDescription {
  margin: 0 0 4pt 0;
  font-size: 9pt;
  line-height: 1.5em;
}

.gameVideos iframe {
  display: block;
  width: 536px;
  height: 301px;
  margin: 0 auto 5px auto;
  border-radius: 2px;
  border: solid 1px var(--gr-color-border);
  max-width: 100%;
}

.gameScreenshots {
  clear: both;
}

.gameScreenshots a {
  display: block;
  border-radius: 2px;
  border: solid 1px var(--gr-color-border);
  float: left;
  margin: 0 13px;
}

.gameScreenshots img {
  display: block;
  width: 160px;
  height: 120px;
}

.systemRequirements {
  display: flex;
  width: 100%;
}

.systemRequirementsColumn {
  flex: 1 1 50%;
  min-width: 0;
}

.systemRequirements ul {
  margin: 0;
  padding: 0 0 0 12px;
  list-style: none;
}

.systemRequirements ul li {
  font-size: 8pt;
  line-height: 0.8em;
}

.systemRequirements li:before {
  content: "";
  border-color: transparent;
  border-left-color: var(--gr-color-border);
  border-style: solid;
  border-width: 0.35em 0 0.35em 0.45em;
  display: block;
  height: 0;
  width: 0;
  left: -1em;
  top: 0.7em;
  position: relative;
}

.gameComments p {
  font-size: 9pt;
  line-height: 1.5em;
  margin: 0 0 6pt 0;
}

.gameComments p span {
  font-weight: 700;
}

.gameComments img {
  width: 56px;
  height: 11px;
  margin: 0 0 0 4px;
}

.feedbackForm {
  width: 564px;
}

.feedbackFormRow {
  display: flex;
  gap: 12px;
  margin: 0 0 12px 0;
}

.feedbackField {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.feedbackFieldHalf {
  flex: 1 1 0;
}

.feedbackFieldRating {
  flex: 0 0 124px;
}

.feedbackFieldWide {
  display: flex;
  flex-direction: column;
  margin: 0 0 12px 0;
}

.feedbackField label {
  display: block;
  font-weight: 700;
}

.feedbackField label,
.feedbackField input,
.feedbackField select,
.feedbackField textarea {
  font-size: 9pt;
}

.feedbackField input[type="text"],
.feedbackField input[type="email"],
.feedbackField select {
  box-sizing: border-box;
  width: 100%;
}

.feedbackForm textarea {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  height: 27pt;
  margin: 0;
}

/* Field help stays available to assistive technology and appears on hover or focus. */
.feedbackHint {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 20;
  width: 1px;
  height: 1px;
  margin: 2px 0 0 0;
  padding: 6px 8px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  font-size: 8pt;
  line-height: 1.3;
  color: var(--gr-color-text);
  background-color: var(--gr-color-text-inverse);
  border: 1px solid var(--gr-color-border);
  pointer-events: none;
}

.feedbackField:hover .feedbackHint,
.feedbackField:focus-within .feedbackHint,
.feedbackField input:focus ~ .feedbackHint,
.feedbackField select:focus ~ .feedbackHint,
.feedbackField textarea:focus ~ .feedbackHint {
  width: auto;
  height: auto;
  max-width: 240px;
  overflow: visible;
  clip: auto;
  white-space: normal;
}

/* The comment hint floats beside the submit button, so it neither shifts the form nor covers the next block. */
#comment-form .feedbackFieldWide .feedbackHint {
  top: 100%;
  bottom: auto;
  left: 110px;
  right: 0;
  width: auto;
  max-width: none;
  margin: 0;
}

.feedbackError {
  display: block;
  margin: 2px 0 0 0;
  font-size: 8pt;
  font-weight: 700;
  line-height: 1.3;
  color: var(--gr-color-error);
}

.feedbackStatus {
  margin: 0 0 10px 0;
  font-size: 9pt;
  font-weight: 700;
  color: var(--gr-color-error);
}

.feedbackStatus:empty {
  display: none;
}

.feedbackField input[aria-invalid="true"],
.feedbackField select[aria-invalid="true"],
.feedbackField textarea[aria-invalid="true"] {
  border-color: var(--gr-color-error);
}

.feedbackActions {
  margin: 0;
}

.commentResult {
  margin: 0 0 12px 0;
  padding: 10px 12px;
  border: 1px solid var(--gr-color-border);
  background-color: var(--gr-color-surface-soft);
}

.commentResult p {
  margin: 0;
  font-size: 9pt;
  line-height: 1.5;
}

.commentResult--success {
  border-color: var(--gr-color-success);
}

.commentResult--success p {
  color: var(--gr-color-success);
  font-weight: 700;
}

.commentResult--error {
  border-color: var(--gr-color-error);
}

.commentResult--error p {
  color: var(--gr-color-error);
  font-weight: 700;
}

.commentResultLinks {
  margin: 12px 0 0 0;
  font-size: 9pt;
}

.similarGames {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  margin: 8px 0 12px 0;
  padding: 0;
  list-style: none;
}

.similarGames li {
  display: flex;
  flex: 0 0 181px;
  align-items: center;
  min-width: 0;
}

.similarGames li > a:first-child {
  flex: 0 0 81px;
}

.similarGames li > a:last-child {
  padding: 0 6px 0 2px;
  font-weight: 700;
}

.similarGames img {
  width: 81px;
  height: 54px;
  border-radius: 2px;
  border: solid 1px var(--gr-color-border);
}

/* Sidebar subcategories */
a.gameSubcategory {
  display: block;
  margin: 0 0 2px 8px;
  padding: 0 0 0 17px;
  background: url('/i/bull_arrow2.gif') no-repeat left center;
  color: var(--gr-color-text-inverse);
  font: normal normal 9pt Verdana, sans-serif;
}

/* Online game page */
.onlineGameName {
  display: block;
  background: url('/i/bull_arrow.gif') no-repeat left center;
  padding: 0 0 0 15px;
  margin: 8px 0 0 0;
}

.onlineGameFrame {
  width: 100%;
  text-align: center;
  margin: 0 0 15px 0;
}

.onlineGameFrame iframe {
  border: 0;
  padding: 0;
  max-width: 100%;
}

.onlineGameLinks {
  text-align: center;
}

/* Banners must not set width on narrow screens */
@media (max-width: 800px) {
  .contentTopBanner,
  .contentBottomBanner {
    width: auto;
  }
}

/* Search */
.searchResultsHeader {
  display: block;
  background: url('/i/bull_arrow.gif') no-repeat left center;
  padding: 0 0 0 15px;
  margin: 8px 0 0 0;
}

.searchResultsReview {
  font: normal normal 9pt Verdana, sans-serif;
}

/* ==========================================================================
   Responsiveness for pages using semantic markup
   ========================================================================== */

/* Game card: boxshot, description and award */
.gameDescriptionTop {
  display: flex;
  flex-wrap: wrap;
  width: auto;
}

.gameDescriptionTop .boxShot {
  flex: 0 0 104px;
}

.gameDetails {
  flex: 1 1 330px;
  min-width: 0;
}

.gameAwardWrap {
  flex: 0 0 120px;
  text-align: right;
}

@media (max-width: 520px) {

  .gameAwardWrap {
    flex-basis: 100%;
    padding-top: 10px;
    text-align: center;
  }

  .gameScreenshots a {
    float: none;
    display: inline-block;
    margin: 0 8px 10px 0;
  }

  .gameScreenshots img {
    max-width: 100%;
    height: auto;
  }

  .systemRequirements {
    display: block;
  }

  .similarGames li {
    flex-basis: 100%;
  }

  .feedbackForm {
    width: auto;
  }

  .feedbackFormRow {
    display: block;
  }

  .feedbackField {
    display: block;
    margin: 0 0 12px 0;
  }

  .feedbackFieldWide {
    display: block;
  }

  .feedbackField input[type="text"],
  .feedbackField input[type="email"],
  .feedbackField select,
  .feedbackForm textarea {
    width: 100%;
    box-sizing: border-box;
  }

  .onlineGameFrame iframe {
    width: 100%;
    height: auto;
  }

}

/* Reviews list */
.reviewList {
  margin: 0;
  padding: 0;
  list-style: none;
}

.reviewCard {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 12px 0;
}

.reviewCard > a {
  flex: 0 0 32px;
}

.reviewInfo {
  min-width: 0;
  font-size: 9pt;
}

.reviewInfo img {
  width: 56px;
  height: 11px;
  vertical-align: middle;
}

.reviewCard > a img {
  display: block;
  width: 32px;
  height: 32px;
}

.reviewRatings img {
  width: 56px;
  height: 11px;
}

/* Review ratings */
.reviewRatings {
  margin: 0 0 15px 0;
}

.reviewRatings div {
  display: flex;
  gap: 10px;
  margin: 0 0 4px 0;
}

.reviewRatings dt {
  flex: 0 0 90px;
  text-align: right;
  font-weight: 700;
}

.reviewRatings dd {
  margin: 0;
}

/* ==========================================================================
   Responsive page components
   ========================================================================== */

@media (max-width: 800px) {

  .categoryName {
    font-size: 14pt;
  }

  .categoryDescription br {
    display: none;
  }

  .categoryGameCard {
    width: auto;
    height: auto;
    min-height: 109px;
  }

  .gameInfo {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
  }

  .socialPanel {
    margin: 0 auto 15px;
  }

  .navigationMenu {
    padding-top: 0;
  }

  a.gamePlatform {
    padding: 5px 0 5px 10px;
    border-radius: 3px;
    background-color: var(--gr-color-surface);
  }

  .gameCategories {
    width: auto;
    margin-left: 0;
  }

  .newGames {
    margin-top: 16px;
    padding: 10px;
    border-radius: 3px;
    background: var(--gr-color-surface);
  }

  .newGamesList {
    width: 100%;
  }

  .newGameName {
    flex: 1 1 auto;
    width: auto;
  }

}

@media (min-width: 521px) and (max-width: 800px) {

  .gameCategories {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 10px;
    padding: 5px 10px;
  }

  a.gameCategory {
    margin-left: 0;
  }

  .newGamesList {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 10px;
  }

}

@media (max-width: 520px) {

  .categoryName {
    font-size: 13pt;
  }

  .categoryGameCard {
    flex-direction: column;
    align-items: center;
    min-height: 0;
    text-align: center;
  }

  .boxShot {
    flex: 0 0 auto;
    margin: 0 0 10px 0;
  }

  .gameInfo {
    width: 100%;
  }

  .categoryGameLinks {
    margin: 0 5px 3px;
  }

}

/* ==========================================================================
   Print layout
   ========================================================================== */

@media print {

  body {
    background: var(--gr-color-text-inverse);
  }

  .siteHeader,
  .breadcrumbs,
  .sidebar,
  .contentTopBanner,
  .contentBottomBanner,
  .siteFooter,
  .skipLink {
    display: none !important;
  }

  .page,
  .content,
  .main {
    display: block;
    width: auto;
    max-width: none;
  }

  .main {
    padding: 0;
    overflow: visible;
  }

  a {
    color: var(--gr-color-text);
    text-decoration: underline;
  }

}

/* Fancybox CSP helpers: replace runtime inline styles inherited from the plugin. */
.fancybox-scrollbar-test {
  width: 50px;
  height: 50px;
  overflow: auto;
}

.fancybox-fixed-test {
  position: fixed;
  top: 20px;
}

.fancybox-margin {
  margin-right: var(--fancybox-margin-right, 0);
}
