/* ==========================================================================
   Template 1 - "Classic Table"
   Getrouwe port van themes/secretcrime/css/style.css + game.css (2012),
   aangevuld met media queries zodat de 960px-tabel-layout op mobiel bruikbaar is.
   ========================================================================== */

/* css reset (origineel) */
* { border: 0; margin: 0; padding: 0; box-sizing: border-box; }
table, td, th, tr { border-collapse: collapse; border-spacing: 0; text-align: left; }
input { margin: 0; padding: 0; }
ol, ul { list-style: none; }
:focus { outline: 0; }

/* layout (origineel) */
* { font-family: Arial, Helvetica, sans-serif; font-size: 12px; color: #877352; }
body { background: #222 url('/assets/img/pattern.png') center top repeat; overflow-x: hidden; }

/* general */
h1, h5 {
  background: url('/assets/img/h1.png') no-repeat;
  height: 40px; color: #fff; font-size: 18px; line-height: 40px;
  margin: -10px -15px 0 -15px; padding-left: 15px; font-weight: normal; text-align: center;
  border-top-left-radius: 10px; border-top-right-radius: 10px; margin-bottom: 10px;
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
h1 small { color: #ccc; font-size: 11px; }
p { margin: 10px 0; font-size: 12px; line-height: 16px; color: #877352; }
a { color: #fff; text-decoration: none; }
a:hover { text-decoration: underline; }
a img { border: 0; }
strong { font-weight: bold; }

/* content */
.content_block { padding: 5px 0; }
.content_inner {
  background: rgba(0, 0, 0, 0.3); padding: 10px 15px; border-radius: 10px;
  border: 2px solid rgba(0, 0, 0, 0.2); border-bottom: 5px solid rgba(0, 0, 0, 0.2);
}
.content_inner p + p, .content_inner p + table, .content_inner table + p, .content_inner table + table,
.content_inner p + form + p, .content_inner p + form + table, .content_inner table + form + p, .content_inner table + form + table { margin-top: 10px; }

/* tables */
table.content_table {
  border-left: 2px solid rgba(0, 0, 0, 0.2); border-top: 2px solid rgba(0, 0, 0, 0.2);
  background: #1b1b1c url('/assets/img/tableback.png') center top repeat-x;
  border-spacing: 1px; margin: 0; padding: 0; width: 100%;
}
table.content_table td {
  font-size: 12px; line-height: 18px; min-height: 18px; padding: 2px 6px !important; vertical-align: middle;
  border-right: 2px solid rgba(0, 0, 0, 0.2); border-bottom: 2px solid rgba(0, 0, 0, 0.2);
}
table.content_table .tsub { background: #877352; color: #fff; padding: 4px 6px !important; font-weight: bold; }
table.content_table .tcell { color: #877352; }
table.content_table .tsell { color: #877352; }
table.wrap_table { border: 0; border-spacing: 0; margin: 0; padding: 0; width: 100%; }

/* info bars (origineel game.css) */
table.info_good { background: #dcf0d5; border: 1px solid #46ad24; color: #3b4d36; width: 100%; }
table.info_bad  { background: #f7e0e0; border: 1px solid #d96662; color: #4d3636; width: 100%; }
table.info_info { background: #d9e7f3; border: 1px solid #3a80bf; color: #36424d; width: 100%; }
table.info_happy{ background: #ece0d1; border: 1px solid #c8931f; color: #4d4536; width: 100%; }
.info_good, .info_bad, .info_info, .info_happy { min-height: 24px; padding-top: 1px; margin: 5px 0; }
.info_good td, .info_bad td, .info_info td, .info_happy td { color: #000 !important; padding: 3px; }
.info_good img, .info_bad img, .info_info img, .info_happy img { margin-bottom: -1px; }
table.info_good a { color: #3b4d36; } table.info_bad a { color: #4d3636; } table.info_info a { color: #36424d; } table.info_happy a { color: #4d4536; }

/* inputs (origineel) */
input[type=text], input[type=password], input[type=email], input[type=number], select, textarea {
  background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(0, 0, 0, 0.2); color: #877352; font-size: 12px; padding: 4px; max-width: 100%;
}
select option { background: #2d0d08; color: #fbd892; }
input[type=submit], input[type=button], button.submit {
  background: url('/assets/img/button.png'); border: 1px solid #877352; font-weight: bold; padding: 4px 8px; min-width: 25px;
  color: #877352; font-size: 12px; border-radius: 5px; cursor: pointer;
}
input[type=submit]:hover, input[type=button]:hover, button.submit:hover {
  background: url('/assets/img/buttoninv.png') center bottom repeat; color: #ba9558; border: 1px solid #ba9558;
}
input[type=submit][disabled] { opacity: .5; cursor: not-allowed; }
input.good { background: #236113 !important; border: 1px solid #3b4d36; color: #fff !important; font-size: 11px; line-height: 15px; height: 21px; width: 160px; }
input.bad  { background: #611313 !important; border: 1px solid #4d3636; color: #fff !important; font-size: 11px; line-height: 15px; height: 21px; width: 160px; }

/* wrap & header (origineel) */
#wrap {
  margin: 15px auto; width: 960px; background: #45150d; border: 2px ridge #8e7a59; border-radius: 30px;
  box-shadow: 0 0 15px 0 rgba(0, 0, 0, 0.8); overflow: hidden;
}
#header, #memberheader {
  background: url('/assets/img/header.png') center top no-repeat; height: 200px; position: relative;
  border-top-left-radius: 30px; border-top-right-radius: 30px;
}
#memberheader { background-image: url('/assets/img/header-login.png'); }
#memberheader #stats { position: absolute; top: 0; right: 10px; width: 290px; height: 200px; padding: 5px 5px 0 15px; }
#memberheader #stats .content_block { padding: 0; }
#memberheader #stats .content_inner { padding: 10px 12px 6px; background: rgba(0,0,0,.45); }
#memberheader #stats h1 { height: 26px; line-height: 26px; font-size: 14px; margin: -10px -12px 4px; }
.headertable { width: 100%; }
.headertable td { color: #fff !important; padding: 0 2px; font-size: 11px; line-height: 16px; white-space: nowrap; }
.headertable td img { vertical-align: top; }
.headertable strong, .headertable span { color: #fff !important; font-size: 11px; }

/* topmenu (origineel) */
#topmenu { background: url('/assets/img/topmenu.png') center top no-repeat; height: 50px; padding: 0; position: relative; }
#topmenu ul { display: flex; }
#topmenu ul li { padding: 0 25px; height: 50px; line-height: 50px; display: block; }
#topmenu ul li:hover { background: rgba(69, 21, 13, 0.6); }
#topmenu ul li + li { border-left: 2px ridge #8e7a59; }
#topmenu ul li a, #topmenu ul li button { display: block; font-size: 13px; color: #fff; font-weight: bold; text-decoration: none; line-height: 50px; }
.nav-toggle, .c-nav { display: none; }   /* alleen op smal scherm (B48) */

/* side columns (origineel) */
/* B47: * is border-box, dus #wrap (960 px incl. 2 px rand) heeft 956 px binnenruimte: 12 + 172 + 588 + 172 + 12.
   Gelijke buitenmarge links en rechts (origineel 8 px links en door de rand 24 px rechts). */
#left, #right { float: left; width: 172px; }
#left { margin-left: 12px; }
#right { margin-right: 12px; }
#left ul, #right ul {
  margin-top: 10px; border-radius: 20px; background: url('/assets/img/menu-bg.png') center center no-repeat #444;
  border: 1px double #8e7a59; box-shadow: 0 0 15px 0 rgba(0, 0, 0, 0.8); padding-bottom: 8px;
}
#left ul li, #right ul li { display: block; padding: 0 0 5px 15px; margin-top: -5px; }
#left ul li a, #right ul li a, #left ul li button, #right ul li button { display: block; width: 100%; text-align: left; font-size: 11px; color: #ccc; line-height: 20px; text-decoration: none; }
#left ul li a:hover, #right ul li a:hover, #left ul li button:hover, #right ul li button:hover { color: #fff; text-decoration: none; }
#left ul li.active a, #right ul li.active a { color: #fbd892; }
#left ul li.title, #right ul li.title {
  border: 1px double #8e7a59; background: url('/assets/img/menu-title.png') center center no-repeat; height: 40px; line-height: 40px;
  font-size: 15px; color: #fbd892; font-weight: bold; border-radius: 20px; text-align: center; width: 120px; margin: 10px auto; padding: 0;
  box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.8);
}
#right ul.menu_credit li.title { color: #fbd892; }
#left ul li a small, #right ul li a small { color: #fbd892; font-size: 9px; }
ul.menu_members li a span { color: #fbd892; font-weight: bold; }
/* Snel-spelen-blok (B28): compacte regels, naam links, afteller/"Beschikbaar" rechts */
#left ul.menu_quickplay li { padding-bottom: 2px; }
#left ul.menu_quickplay li a, #left ul.menu_quickplay li > span { display: flex; justify-content: space-between; gap: 4px; padding-right: 12px; box-sizing: border-box; line-height: 16px; font-size: 11px; color: #ccc; }
#left ul.menu_quickplay li small { font-size: 9px; white-space: nowrap; }

/* center (origineel) */
#center { float: left; width: 588px; padding: 0 10px; min-height: 400px; }
/* F103: de drie kolommen vullen #wrap precies (B47). Rondt een browser de 2 px rand bij in-/uitzoomen naar boven af,
   dan past #right niet meer en zakt hij onder de pagina weg; #center geeft dan die fractie van een pixel prijs. */
@media (min-width: 1000px) { body:not(.admin-wide) #center { max-width: calc(100% - 368px); } }
/* Brede admin-layout (B33): wrap over de volle schermbreedte, admin-navigatie links, content ernaast (geen rechterkolom) */
body.admin-wide #wrap { width: auto; max-width: 1600px; margin: 15px; }
@media (min-width: 1630px) { body.admin-wide #wrap { margin: 15px auto; } }
body.admin-wide #center { width: calc(100% - 184px); }   /* 12 px marge + 172 px admin-kolom (B47) */
body.admin-wide #memberheader { background-position: left top; }   /* 960px-afbeelding links; de rand valt achter het statistiekenblok */
body.admin-wide #topmenu { background-size: 100% 50px; }
body.admin-wide #center h1 { background-size: 100% 40px; }
body.admin-wide #left ul li.admin-nav-note { padding: 6px 12px 0 15px; margin-top: 4px; line-height: 13px; }
body.admin-wide #left ul li.admin-nav-note small { font-size: 10px; color: #999; }
#footer { color: #ccc; clear: both; padding: 10px; text-align: center; font-size: 11px; }
#footer a { color: #fbd892; text-decoration: underline; }

/* minichat (origineel) */
.minichat { width: 100%; padding: 0 !important; border-spacing: 1px !important; margin: 0 !important; color: #877352; }
.minichat td { padding: 1px 3px !important; }
.minichat input.input { width: 100%; }
.level0 { color: red !important; text-decoration: line-through !important; }
.level1 { color: #fff !important; }
.level2 { color: #12d6e4 !important; }
.level3 { color: #d884dc !important; }
.level5 { color: #61ff05 !important; }
.level6 { color: #ff0000 !important; }

/* ==========================================================================
   Responsive aanvullingen (nieuw): tablet & mobiel
   ========================================================================== */
@media (max-width: 999px) {
  #wrap { width: 100%; margin: 0; border-radius: 0; border-left: 0; border-right: 0; }
  #header, #memberheader { border-radius: 0; background-size: cover; }
  #left, #right, #center { float: none; width: auto; margin: 0; padding: 0 10px; }
  body.admin-wide #wrap { margin: 0; }
  body.admin-wide #center { width: auto; }
  #left ul li.title, #right ul li.title { width: auto; margin-left: 15px; margin-right: 15px; }
  #topmenu { height: auto; min-height: 50px; display: flex; align-items: center; justify-content: space-between; }
  #topmenu ul { flex-wrap: wrap; flex: 1 1 auto; }
  #topmenu ul li { padding: 0 12px; }
  /* Eén menuknop (B48): het linker- en rechtermenu staan samen in het menupaneel #c-nav, de kolommen zelf niet */
  .nav-toggle { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; background: rgba(0,0,0,.4); color: #fbd892; border: 1px solid #8e7a59; border-radius: 6px; padding: 0 14px; margin: 3px 6px; font-size: 14px; font-weight: bold; cursor: pointer; text-decoration: none !important; flex: 0 0 auto; }
  #left, #right { display: none; }

  /* Menupaneel: schuift van links in, halfdoorzichtige achtergrond, eigen scroll. Met JS via .open, zonder JS via :target */
  .c-nav { display: block; position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 10000; visibility: hidden; transition: visibility 0s linear .25s; }
  .c-nav.open, html:not(.sc-js) .c-nav:target { visibility: visible; transition: none; }
  .c-nav-backdrop { position: absolute; top: 0; right: 0; bottom: 0; left: 0; background: rgba(0,0,0,.65); opacity: 0; transition: opacity .25s ease; }
  .c-nav-panel {
    position: absolute; top: 0; bottom: 0; left: 0; width: 320px; max-width: 86%; display: flex; flex-direction: column;
    background: #45150d; border-right: 2px ridge #8e7a59; box-shadow: 0 0 20px rgba(0,0,0,.8);
    transform: translateX(-100%); transition: transform .25s ease;
  }
  .c-nav.open .c-nav-backdrop, html:not(.sc-js) .c-nav:target .c-nav-backdrop { opacity: 1; }
  .c-nav.open .c-nav-panel, html:not(.sc-js) .c-nav:target .c-nav-panel { transform: none; }
  .c-nav-head { display: flex; align-items: center; justify-content: space-between; flex: 0 0 auto; padding-left: 16px; background: url('/assets/img/topmenu.png') center top; border-bottom: 2px ridge #8e7a59; }
  .c-nav-head span { font-size: 16px; font-weight: bold; color: #fff; }
  .c-nav-close { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; font-size: 30px; line-height: 1; color: #fbd892; text-decoration: none !important; }
  .c-nav-body { flex: 1 1 auto; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; padding-bottom: 24px; }
  .c-nav-body ul { margin: 0; }
  .c-nav-body li.title {
    position: sticky; top: 0; z-index: 1; padding: 0 16px; line-height: 34px; font-size: 13px; font-weight: bold; color: #fbd892;
    text-transform: uppercase; letter-spacing: .5px; background: #2d0d08; border-bottom: 1px solid #8e7a59;
  }
  .c-nav-body li a, .c-nav-body li button, .c-nav-body li > span {
    display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; min-height: 44px; padding: 8px 16px;
    font-size: 15px; line-height: 20px; color: #ddd; text-align: left; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.07); background: none;
  }
  .c-nav-body li a:hover, .c-nav-body li button:hover, .c-nav-body li a:active { background: rgba(0,0,0,.3); color: #fff; text-decoration: none; }
  .c-nav-body li.active a { color: #fbd892; font-weight: bold; box-shadow: inset 4px 0 0 #fbd892; }
  .c-nav-body li form { display: block; margin: 0; }
  .c-nav-body li a small { float: none; padding: 0; font-size: 12px; color: #fbd892; white-space: nowrap; }
  .c-nav-body li a span { font-size: 15px; color: #fbd892; font-weight: bold; }
  .c-nav-body li a:not([href]) { justify-content: flex-start; }
  .c-nav-body li.admin-nav-note { padding: 8px 16px; line-height: 15px; }
  .c-nav-body li.admin-nav-note small { font-size: 12px; color: #999; }
  html.c-nav-lock, html.c-nav-lock body { overflow: hidden; }
}
@media (max-width: 999px) and (prefers-reduced-motion: reduce) {
  .c-nav, .c-nav-backdrop, .c-nav-panel { transition: none; }
}
@media (max-width: 640px) {
  #header, #memberheader { height: auto; min-height: 90px; background-size: 100% auto; }
  #memberheader #stats { position: static; width: auto; height: auto; padding: 96px 8px 6px; }
  #memberheader #stats .content_inner { background: rgba(0,0,0,.6); }
  .headertable td { white-space: normal; }
  #topmenu ul li { padding: 0 8px; }
  #topmenu ul li a, #topmenu ul li button { font-size: 12px; }
  table.content_table td { font-size: 11px; padding: 2px 4px !important; }
  .minichat td:first-child, .minichat td:nth-child(2) { display: none; }
  .footer-options .footer-group { display: block; margin: 4px 0; }
}
