/* app.css
 * Consolidated from the <style> blocks previously duplicated inline in
 * Nav.php, Nav_Bare.php, ShowGen.php, and ShowCat.php. Link this once
 * via renderPageHead() in Bootstrap.php instead of re-echoing it on
 * every page.
 */

.woodbar_reg {
	font: bold italic 20px Georgia, "Times New Roman", Times, serif;
	letter-spacing: 1px;
	color: black;
	background: url('jpg/Woodbar.jpg');
	background-size: 100% 100%;
	text-align: center;
	vertical-align: middle;
	padding: 8px;
	text-decoration: none;
	width: auto;
}

.woodbar_index {
	font: bold italic 20px Georgia, "Times New Roman", Times, serif;
	letter-spacing: 1px;
	color: black;
	background: url('Mobile/jpg/Woodbar.jpg');
	background-size: 100% 100%;
	text-align: center;
	vertical-align: middle;
	padding: 8px;
	text-decoration: none;
	width: auto;
}

#content {
  box-sizing: border-box;
}

.navbar {
  overflow: hidden;
  background-color: #333;
  font-family: Georgia, Arial, Helvetica, sans-serif;
}

.navbar a {
  float: left;
  font-size: 16px;
  color: white;
  text-align: center;
  padding: 7px 8px;
  text-decoration: none;
  font-family: Georgia, Arial, Helvetica, sans-serif;
}

.dropdown {
  float: left;
  overflow: hidden;
}

.dropdown .dropbtn {
  font-size: 8px;
  border: none;
  outline: none;
  color: white;
  padding: 7px 8px;
  background-color: inherit;
  font: inherit;
  margin: 5px;
}

.navbar a:hover, .dropdown:hover .dropbtn {
  background-color: green;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: lightgreen;
  width: 100%;
  left: 0;
  z-index: 1;
}

.dropdown-content .header {
  background: red;
  padding: 8px;
  color: white;
}

.dropdown:hover .dropdown-content {
  display: block;
}

.column {
  float: left;
  width: auto;
  padding: 5px;
  background-color: lightgreen;
}

.column a {
  float: none;
  color: black;
  text-decoration: none;
  display: block;
  text-align: left;
  background-color: lightgreen;
  font-size: 80%;
}

.column a:hover {
  background-color: lightgreen;
}

.row:after {
  content: "";
  display: table;
  clear: both;
}

.buttonLink {
  font: bold 13px Arial;
  text-decoration: none;
  background-color: #eee;
  color: #444;
  padding: 2px 6px 2px 6px;
  border-top: 1px solid #CCCCCC;
  border-right: 1px solid #333333;
  border-bottom: 1px solid #333333;
  border-left: 1px solid #CCCCCC;
}

.table-container {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.table-container table {
  width: 150px;
}

/* ── Desktop horizontal nav ───────────────────────────── */
ul#horiznav, #horiznav ul {
	margin: 0;
	padding: 0;
	list-style-type: none;
	height: 32px;
	text-align: center;
	opacity: 1;
}

#horiznav li {
	float: left;
	position: relative;
	opacity: 1;
}

#horiznav li a {
	display: block;
	padding-right: 10px;
	padding-left: 10px;
	line-height: 30px;
	text-align: left;
	color: white;
	text-decoration: none;
	background-color: black;
	border: 1px solid white;
	white-space: nowrap;
	opacity: 1;
}

#horiznav li a:hover { color: white; opacity: 1; }

#horiznav li ul {
	display: none;
	position: absolute;
	left: 0;
	top: 32px;
	opacity: 1;
}

#horiznav li:hover ul { display: block; opacity: 1; }

#horiznav li ul a {
	background-color: gray;
	opacity: 1;
}

ul { z-index: 999; }

/* ── Hamburger toggle (hidden checkbox trick, no JS) ───── */
#nav-toggle       { display: none; }
#nav-toggle-label { display: none; }

/* ── Genre sub-menu toggles (mobile only; hidden on desktop) ── */
.genre-toggle       { display: none; }
.genre-toggle-label { display: none; }
.genre-top-link     { /* visible on desktop — normal inline link */ }

/* ── Mobile overrides ≤ 600px ─────────────────────────── */
@media (max-width: 600px) {

  ul#horiznav {
    height: auto;
    display: none;
    width: 100%;
    background-color: black;
  }

  #nav-toggle-label {
    display: block;
    background-color: black;
    color: white;
    font-size: 22px;
    padding: 6px 12px;
    cursor: pointer;
    user-select: none;
    width: 100%;
    box-sizing: border-box;
  }

  #nav-toggle:checked ~ ul#horiznav { display: block; }

  #horiznav li {
    float: none;
    width: 100%;
    display: block;
  }

  #horiznav li a {
    white-space: normal;
    width: 100%;
    box-sizing: border-box;
    border-left: none;
    border-right: none;
  }

  #horiznav li ul {
    display: block;
    position: static;
    width: 100%;
  }

  .genre-toggle { display: none; }

  .genre-toggle-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
    padding: 0 10px;
    line-height: 30px;
    color: white;
    background-color: black;
    border: 1px solid white;
    border-left: none;
    border-right: none;
    cursor: pointer;
    font-family: Georgia, Arial, Helvetica, sans-serif;
    font-size: 16px;
  }

  .genre-toggle-label::after { content: " ▸"; font-size: 12px; }
  .genre-toggle:checked ~ ul { display: block; }
  .genre-toggle:checked + .genre-toggle-label::after { content: " ▾"; }

  .genre-top-link { display: none; }

  #horiznav li ul li { width: 100%; }

  #horiznav li ul a {
    padding-left: 24px;
    background-color: #333;
    font-size: 90%;
  }

  #wrap_wood     { height: auto; }
  #woodleft,
  #woodright     { display: none; }
  #woodarea {
    float: none;
    width: 100%;
    height: auto;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px 8px;
    box-sizing: border-box;
  }

  .woodmsg,
  #woodarea h1 {
    font-size: clamp(14px, 4vw, 22px) !important;
    letter-spacing: 0;
    line-height: 1.2;
    text-align: center;
    color: #1a1a1a;
  }
  .woodmsg a:hover { color: #fff; }

  #content, body { overflow-x: hidden; }

  .table-container table { width: 120px; }

  #woodarea,
  .woodbar_reg,
  .woodbar_index {
    background: #5b9bd5 !important;
    background-image: none !important;
    border-radius: 6px;
  }
}
