/* Monster Archive - Ported from original skins/default/css.css + css/master.css */

body, table { margin: 0; padding: 0; font: normal 9pt arial, sans-serif; color: #000000; background-color: #f9f9f9; }
a { color: #606060; text-decoration: none; }
a:hover { color: #606060; text-decoration: underline; }
td { vertical-align: top; text-align: left; }
img { border: 0; }
label { cursor: pointer; }
div { text-align: left; }

.maincontainer { width: 800px; max-width: 100%; margin: 0 auto; box-sizing: border-box; }

#headerbox { padding: 50px 0 25px 0; text-align: center; }
#headerstrip { padding: 20px 10px; margin: 0; background-color: #ffffff; text-align: left; }

#mainleftbox { width: 150px; float: left; margin: 10px 0 0 0; }
#mainmainbox { margin: 10px 0px 10px 160px; }

.linkbutton { border: solid 1px #EBE5F5; margin: 0 4px; padding: 3px 8px 2px 8px; background-color: #f0f0f0; text-decoration: none; color: #303030; display: inline-block; }

.tablemain { padding: 15px; background-color: white; }
.titlemain { padding: 0 0 5px 0; margin-bottom: 10px; font: bold 14pt arial, sans-serif; letter-spacing: 2px; color: #909090; border-bottom: solid 1px #e9e9e9; }

div.tablemain { margin-top: 16px; }
div.tablemain div { padding: 10px; }

.primary { background-color: #F0F0F0; }
.secondary { background-color: #F9F9F9; }
.error { text-align: left; font-weight: bold; color: #F00000; }

.caption { padding: 4px 10px; margin: 2px 0; border: solid 1px #EBE5F5; background-color: #F0F0F0; }
.nav { border: 1px solid #EBE5F5; padding: 5px 10px 5px 15px; background-color: #fefefe; text-align: left; }
.padandcenter { text-align: center; padding: 10px; }
.justpad { padding: 10px 0; }

.reviewimage { width: 320px; height: 240px; border: solid 1px black; margin: 0 0 15px 15px; }
.recentreviewimage { margin: 0 0 15px 15px; border: solid 1px black; width: 160px; height: 120px; }

.staffrating { font-size: 75%; margin-left: 10px; color: #c0c0c0; float: right; }
.smallertext { font: normal 9pt arial, sans-serif; color: #c0c0c0; }

.smallform { margin: -4px 0 0 0; padding: 0; }
.smallform input,
.smallform select { color: #303030; padding: 1px; }
.req { color: red; }
.copy { clear: both; font-size: 80%; color: #444; margin-top: 25px; text-align: center; }

.good, .medium, .bad { font-weight: bold; }
.good { color: #4E4; }
.medium { color: #AAA; }
.bad { color: #E44; }

.recommendation {
  font-weight: bold;
  padding: 6px 4px 6px 28px;
  margin: 10px 5px 2px 5px;
  background-repeat: no-repeat;
  background-position: 4px center;
  min-height: 20px;
  vertical-align: middle;
  border: solid 1px #e0e0e0;
}
.recommended {
  background-image: url('/images/recommend/recommended.gif');
  background-color: #77FF77;
}
.not_recommended {
  background-image: url('/images/recommend/not_recommended.gif');
  background-color: #FF7777;
}
.indifferent { background-image: url('/images/recommend/indifferent.gif'); }
.ambivalent { background-image: url('/images/recommend/ambivalent.gif'); }

.award {
  float: left;
  width: 100px;
  text-align: center;
  padding: 4px !important;
}

/* staff page */
.staff_box { margin: -15px 10px; padding: 0; }
.group_title { font-weight: bold; font-size: 12pt; margin: 0; clear: right; float: none; }
.staff_container { float: none; }

/* spotlight page */
.spotline { padding: 2px 10px 0 10px; }
.spotimage { margin-right: 10px; }
.spotyear { border-bottom: solid 1px #e9e9e9; font-weight: bold; padding: 25px 0 0 0; }

/* nav collapsible */
div.nav-links { display: none; }
div.nav-show { display: block; }

/* archive page styles */
table#archive_results_table { margin-top: 14px; }
table#archive_results_table td { padding: 4px; }
p.browse_head { font-size: 14pt; margin: 4px 0 0 4px; }
p.browse_list { font-size: 14pt; padding: 4px 0 4px 20px; margin: 0 0 10px 0; }

/* game view page */
table#game_name_rating td.secondary p,
div#game_favorites div.secondary p { margin: 2px; }
div#game_download img { margin: 0 10px 0 0; }
div.comment {
  border-bottom: 1px solid #AAA;
  padding: 4px 4px 16px 10px !important;
}
p.indent { margin-left: 16px !important; }
table.recommendations td { padding: 4px; vertical-align: middle; }
table.recommendations td.adjective { width: 20%; text-align: right; }
table.recommendations td.stripe { width: 80%; }
table.recommendations td.stripe div {
  height: 1.5em;
  vertical-align: middle;
  background-color: #999;
  color: #FFF;
  text-align: right;
  font-weight: bold;
  border: 0;
  padding: 0 4px 0 4px !important;
  margin: 0 !important;
}
div#game_actions {
  font-weight: bold;
  font-size: 12pt;
}

/* pagination */
.pagination {
  text-align: center;
  padding: 10px 0;
}
.pagination a, .pagination span {
  display: inline-block;
  padding: 3px 8px;
  margin: 0 2px;
  border: 1px solid #EBE5F5;
  background-color: #f0f0f0;
  color: #303030;
  text-decoration: none;
}
.pagination span.current {
  background-color: #606060;
  color: #fff;
  border-color: #606060;
}
.pagination a:hover {
  background-color: #e0e0e0;
  text-decoration: none;
}

/* ─── Mobile ─────────────────────────────────────────── */

img { max-width: 100%; height: auto; }
table { max-width: 100%; }
input[type="text"] { max-width: 100%; box-sizing: border-box; }

@media (max-width: 600px) {
  .maincontainer { padding: 0 10px; }

  #headerbox { padding: 20px 0 15px; }
  #headerbox img { max-width: 90%; height: auto; }

  /* Search bar in header */
  #headerstrip { text-align: center; }
  #headerstrip > div { float: none !important; margin-top: 8px; }
  .smallform { display: flex; gap: 4px; flex-wrap: wrap; justify-content: center; }
  .smallform input[type="text"] { flex: 1; min-width: 100px; }

  /* Images */
  .reviewimage {
    float: none !important;
    display: block;
    width: 100%;
    max-width: 320px;
    height: auto;
    margin: 0 auto 15px;
  }
  .recentreviewimage {
    float: none !important;
    display: block;
    width: 100%;
    max-width: 160px;
    height: auto;
    margin: 0 auto 15px;
  }

  /* Archive results table — scroll horizontally */
  table#archive_results_table { display: block; overflow-x: auto; }

  /* Spotlight images */
  .spotimage { max-width: 100px; height: auto; }

  /* Browse links */
  p.browse_head { font-size: 12pt; }
  p.browse_list { font-size: 11pt; padding-left: 10px; }

  /* Title overflow */
  .titlemain { word-wrap: break-word; overflow-wrap: break-word; letter-spacing: 1px; }
}
