/*
 * Bombillazo Studios - Faithful recreation of Freewebs Gaming/Blue theme
 * Based on original CSS from:
 *   Gaming.css (base theme)
 *   Gaming/Blue/style.css (color overrides)
 *   User custom inline styles
 */

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Base - from Gaming.css */
html {
  background: #000 url('../assets/images/theme/bg.gif') repeat top left;
  overscroll-behavior: none;
}

body {
  font: normal 12px 'lucida sans unicode', 'lucida sans', arial;
  color: #999999;
  margin: 0;
  padding: 0;
  text-align: center;
}

a, a:visited {
  color: #cccccc;
  text-decoration: underline;
}

a:hover, a:visited:hover {
  color: #fff;
  text-decoration: underline;
}

/* Container - 778px like original */
#fw-container {
  margin: 0 auto;
  padding: 0;
  overflow: hidden;
  width: 778px;
  text-align: left;
}

/* Header - 177px tall with absolute positioned elements */
#fw-head {
  margin: 0;
  height: 177px;
  overflow: hidden;
  position: relative;
  background: transparent url('../assets/images/theme/bg-head.gif') no-repeat top left;
}

/* Frame img not needed — using background */
#fw-frame {
  display: none;
}

/* Logo image - sized to fit inside the frame borders */
#fw-logo {
  position: absolute;
  top: 10px;
  left: 13px;
  right: 13px;
  bottom: 30px;
  z-index: 1;
}

#fw-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#fw-head h1 {
  margin: 0;
  padding: 0;
}

#fw-head h1,
#fw-head h1 a {
  color: #4cd7ff;
  font: bold 24px verdana;
  letter-spacing: -1px;
  position: absolute;
  top: 44px;
  left: 30px;
  z-index: 10;
  text-decoration: none;
}

#fw-head h2 {
  font: bold 14px arial;
  color: #fff;
  position: absolute;
  z-index: 9;
  top: 94px;
  left: 30px;
  margin: 0;
}

/* Navigation */
#fw-nav {
  padding: 2px 33px 20px 33px;
  margin: 0;
  color: #ccc;
  background: transparent url('../assets/images/theme/bg-nav.gif') no-repeat bottom left;
  clear: both;
}

#fw-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
  cursor: default;
}

#fw-nav li {
  display: inline;
  list-style: none;
  padding: 0 20px 0 0;
}

#fw-nav .separator {
  display: none;
}

#fw-nav a,
#fw-nav a:visited {
  color: #ccc;
  text-decoration: none;
  font-size: 12px;
}

#fw-nav a:hover,
#fw-nav a:visited:hover,
#fw-nav a.active {
  color: #4cd7ff;
  text-decoration: none;
}

/* Main content area */
#fw-main {
  padding: 0;
}

/* Section blocks - mimics fw-paragraph structure */
.fw-section {
  margin: 0;
  padding: 0;
  overflow: hidden;
  clear: both;
  background: transparent url('../assets/images/theme/bg-p.gif') repeat-y top left;
}

.fw-section h3 {
  color: #4cd7ff;
  font: normal bold 11px arial;
  text-transform: uppercase;
  margin: 0;
  padding: 11px 0 20px 0;
  text-align: center;
  background: transparent url('../assets/images/theme/bg-h2.gif') no-repeat top left;
}

/* Section top/bottom decorative borders */
.fw-section::after {
  content: '';
  display: block;
  height: 12px;
  background: transparent url('../assets/images/theme/bg-text.gif') no-repeat bottom left;
  clear: both;
}

.fw-section .fw-text,
.fw-section > p,
.fw-section > .project-entry,
.fw-section > .update-entry,
.fw-section > .pixel-section,
.fw-section > ul,
.fw-section > table,
.fw-section > hr {
  margin-left: 30px;
  margin-right: 30px;
}

.fw-section p {
  font-size: 12px;
  line-height: 1.6;
  color: #999;
  margin-bottom: 10px;
}

.fw-section p u {
  color: #ccc;
}

/* Content text wrapper */
.fw-text {
  margin: 0;
  padding: 0 30px 30px 30px;
  clear: both;
}

.fw-text img {
  max-width: 100%;
  height: auto !important;
  border: 0;
}

/* Section bottom border decoration */
.fw-section + .fw-section {
  border-top: 1px solid #2e302e;
}

/* Project entries */
.project-entry {
  margin-bottom: 25px;
  padding: 0 30px 15px 30px;
  overflow: hidden;
}

.project-entry h4 {
  font: bold 13px arial;
  color: #4cd7ff;
  margin-bottom: 8px;
}

.project-entry p {
  font-size: 12px;
  line-height: 1.6;
  color: #999;
  margin-bottom: 8px;
}

.project-entry img {
  float: left;
  margin: 0 15px 10px 0;
  border: 0;
  max-width: 200px;
}

.project-entry .meta {
  font-size: 11px;
  color: #777;
  margin-top: 8px;
}

.project-entry .meta span {
  margin-right: 15px;
}

.project-entry .meta strong {
  color: #999;
}

.project-entry::after {
  content: '';
  display: table;
  clear: both;
}

.project-entry ul {
  list-style: disc;
  margin-left: 20px;
  font-size: 12px;
  color: #999;
  line-height: 1.8;
}

/* Image gallery */
.gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0;
}

.gallery img {
  max-width: 200px;
  border: 0;
}

.gallery.small img {
  max-width: 150px;
}

/* Single centered image */
.center-img {
  text-align: center;
  margin: 10px 0;
}

.center-img img {
  max-width: 100%;
  border: 0;
}

/* YouTube embeds */
.video-embed {
  margin: 15px 0;
  text-align: center;
}

.video-embed iframe {
  border: 0;
  max-width: 100%;
}

/* Download links */
.download-link {
  display: inline-block;
  color: #ccc;
  text-decoration: underline;
  font-size: 12px;
  margin: 8px 0;
}

.download-link:hover {
  color: #4cd7ff;
}

/* MIDI list */
.midi-list {
  list-style: none;
  padding: 0 30px 20px 30px;
}

.midi-list li {
  padding: 4px 0;
  font-size: 12px;
  color: #999;
}

.midi-list li a {
  color: #ccc;
}

.midi-list li a:hover {
  color: #4cd7ff;
}

/* Music credits - inline style matching original */
.credits-table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'trebuchet ms', sans-serif;
  font-size: 12px;
  margin: 0;
  padding: 0 30px 20px 30px;
  color: steelblue;
}

.credits-table td {
  padding: 3px 8px;
  color: steelblue;
  vertical-align: top;
}

.credits-table td:first-child {
  color: aliceblue;
  font-weight: normal;
  width: 120px;
  white-space: nowrap;
}

.credits-table i {
  font-style: italic;
}

.credits-table u {
  text-decoration: underline;
}

/* Update entries - blog style */
.update-entry {
  margin-bottom: 14px;
  padding: 0 30px 14px 30px;
  border-top: solid 4px #343434;
}

.update-entry h4 {
  font: bold 16px verdana;
  color: #4cd7ff;
  margin: 0;
  padding: 15px 0 0 0;
}

.update-entry .date {
  font-size: 11px;
  color: #fff;
  margin-bottom: 8px;
}

.update-entry p {
  font-size: 12px;
  line-height: 1.6;
  color: #999;
  margin-bottom: 5px;
}

.signature {
  font-style: italic;
  color: #999;
  margin-top: 6px;
}

/* Screenshot row */
.screenshots {
  display: flex;
  gap: 15px;
  margin: 10px 0;
}

.screenshots img {
  max-width: 250px;
  border: 0;
}

/* Pixel archive */
.pixel-section {
  margin-bottom: 20px;
  padding: 0 30px;
}

.pixel-section h4 {
  font: bold 13px arial;
  color: #4cd7ff;
  margin-bottom: 8px;
}

.pixel-section p {
  font-size: 12px;
  line-height: 1.6;
  color: #999;
  margin-bottom: 8px;
}

.pixel-section ul {
  list-style: disc;
  margin-left: 20px;
  font-size: 12px;
  color: #999;
  line-height: 1.8;
}

/* Footer */
#fw-footer {
  font-size: 10px;
  margin: 0;
  padding: 0;
  padding-left: 17px;
  height: 80px;
  clear: both;
  color: #333;
  text-align: left;
  background: transparent url('../assets/images/theme/bg-footer.gif') no-repeat top left;
}

#fw-footer p {
  margin-top: 0;
  padding-top: 5px;
  padding-bottom: 3px;
  padding-left: 7px;
}

/* Utility */
.text-center {
  text-align: center;
}

.unavailable {
  color: #555;
  font-style: italic;
  font-size: 11px;
}

hr.divider {
  border: none;
  border-top: solid 4px #343434;
  margin: 0;
}

/* Music toggle button */
#music-toggle {
  position: fixed;
  bottom: 12px;
  right: 12px;
  width: 28px;
  height: 28px;
  background: #1a1a1a;
  border: 1px solid #444;
  color: #4cd7ff;
  font-size: 12px;
  cursor: pointer;
  opacity: 0.6;
  z-index: 100;
  line-height: 1;
  padding: 0;
}

#music-toggle:hover {
  opacity: 1;
}

#music-toggle.playing {
  border-color: #4cd7ff;
}
