/* Modern CSS Variables for consistent theming */
:root {
  --primary-color: #2563eb;
  --primary-hover: #1d4ed8;
  --secondary-color: #64748b;
  --accent-color: #0ea5e9;
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --text-light: #94a3b8;
  --bulma-title-color: var(--primary-text);
  --bulma-text-strong: var(--primary-text);
  --background-primary: #ffffff;
  --background-secondary: #f8fafc;
  --background-accent: #f1f5f9;
  --border-color: #e2e8f0;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-accent: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --gradient-subtle: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
  --border-radius: 12px;
  --border-radius-lg: 16px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --section-bg: #f5f5f5; /* Your light mode background */
  --title-color: #363636; /* Your light mode title color */
  --bg-abstract: #ebebeb; /* Your dark mode background */
  --bg-footer: #ebebeb; /* Your dark mode background */
  --link-color: #0000ff; 
  --link-hover-color: #ff0000; 
  --text-emph1: #1111ff;
  --text-emph2: #ff1111;
  --bevel-border-radius: 0px; 
  --bevel-box-shadow1: 8px 8px 8px 0px rgba(255, 255, 255, 0.0);
  --bevel-box-shadow2: -8px -8px 8px 0px rgba(255, 255, 255, 0.0);
  --header-background-image: url(images/header_light.png);
  --pageBottom-background-image: url(images/header_light.png);
  --subHeader-background-color: #003366;
}

[data-theme="dark"] {
  --primary-color: #2563eb;
  --primary-hover: #1d4ed8;
  --secondary-color: #64748b;
  --accent-color: #0ea5e9;
  --text-primary: #dedede;
  --text-secondary: #c4c3c3;
  --text-light: #c4c3c8;
  --bulma-title-color: var(--primary-text);
  --bulma-text-strong: var(--primary-text);
  --background-primary: #1e1e1e;
  --background-secondary: #2c2c2c;
  --background-accent: #f4f4f4;
  --border-color: #c2c8c0;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-accent: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --gradient-subtle: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
  --border-radius: 12px;
  --border-radius-lg: 16px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --section-bg: #1e1e1e; /* Your dark mode background */
  --title-color: #dedede; /* Your dark mode title color */
  --bg-abstract: #2b2b2b; /* Your dark mode background */
  --bg-footer: #2b2b2b; /* Your dark mode background */
  --link-color: #7799ff; 
  --link-hover-color: #ff1111; 
  --text-emph1: #22aaff;
  --text-emph2: #ff7777;
  --bevel-border-radius: 6px; 
  --bevel-box-shadow1: 2px 2px 2px 0px rgba(0, 0, 0, 0.15);
  --bevel-box-shadow2: -2px -2px 2px 0px rgba(0, 0, 0, 0.65);
  --header-background-image: url(images/header_dark.png);
  --pageBottom-background-image: url(images/header_dark.png);
  --subHeader-background-color: #222755;
}

[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3 {
  color: var(--primary-text);
}


.myTableHeaders {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 15pt;
	font-style: normal;
	line-height: normal;
	font-weight: bold;
	font-variant: normal;
	text-transform: none;
	color: #000;
	text-decoration: none;
	vertical-align: top;
	text-align: center;
	background-repeat: no-repeat;
	background-position: right center;
	padding: 5px;
}
.header {
	height: auto;
	background-image: var(--header-background-image);
	background-repeat: repeat-y;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 40pt;
	color: #FFF;
	padding: 10pt;
	padding-left: 10pt;
	background-color: var(--background-primary);
}
.mainBody {
#	margin-left:auto;
#	margin-right:auto;
#	max-width: 978px;
	width: 100%;
	font-size: 16pt;
	font-family: Verdana, Geneva, sans-serif;
	font-style: normal;
	line-height: normal;
	font-weight: normal;
	font-variant: normal;
	text-transform: none;
	text-decoration: none;
	padding: 0pt;
	color: var(--text-primary);
	background-color: var(--background-primary);
}
a.urllink {
  #color: #3498db !important;          /* A bright blue color */
  color: var(--link-color) !important;         
  text-decoration: none !important;   /* Removes the default underline */
}
a.urllink:hover {
  color: var(--link-hover-color) !important;       
  text-decoration: none !important;   /* Removes the default underline */
}

.subHeader {
#	margin-left:auto;
#	margin-right:auto;
#	width: 1200px;
	height: auto;
	vertical-align: middle;
	background-color: var(--subHeader-background-color);
	color: #FFF;
	font-size: x-small;
	font-weight: bold;
	font-family: Arial, Helvetica, sans-serif;
	padding: 2pt;
	padding-top: 4pt;
	padding-bottom: 5pt;
	padding-left: 10pt;
}
.pageBottom {
	background-image: var(--pageBottom-background-image);
	background-repeat: repeat-y;
	height: auto;
	color: #FFF;
	font-size: 16pt;
	padding: 10pt;
	font-family: Arial, Helvetica, sans-serif;
}
.myTableBlurb {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 12pt;
	font-style: normal;
	line-height: normal;
	font-variant: normal;
	text-transform: none;
	text-decoration: none;
	background-repeat: no-repeat;
	background-position: right bottom;
	border-top-style: none;
	border-right-style: none;
	border-bottom-style: none;
	border-left-style: none;
	padding-top: 1px;
	padding-right: 5px;
	padding-bottom: 5px;
	padding-left: 5px;
	color: var(--text-primary);
	background-color: var(--background-primary);
}
.linkBottom {
	font-family: Verdana, Geneva, sans-serif;
	font-size: 15pt;
	font-style: normal;
	font-weight: normal;
	font-variant: normal;
	color: #FFF;
	text-decoration: none;
}
.mainContent {
  width: 100%;       /* Fluid on mobile phones */
  #max-width: 978px;  /* Locks to 978px on large desktop monitors */
  #margin: 0 auto;    /* Centers the layout container on desktop */
  margin: 0 left;   
}
.topMenuTable {
	width: 960px; 
	font-size: 14pt;
	font-family: Arial, Helvetica, sans-serif;
	font-weight: bold;
	color: #FFF;
	text-decoration: none;
}

.linkTopMenu {
	font-size: 14pt;
	color: #FFF;
	font-family: Arial, Helvetica, sans-serif;
	text-decoration: none;
}

.linkTopMenu:hover {
	font-size: 14pt;
	color: #F00;
	#color: var(--link-hover-color);
	font-family: Arial, Helvetica, sans-serif;
	text-decoration: none;
	font-weight: bold;
}

.mainBody .pageBottom .right {
	text-align: right;
}
.mainBody .pageBottom .left {
	text-align: left;
}
.linkBottom:hover {
	font-family: Verdana, Geneva, sans-serif;
	font-size: 15pt;
	font-style: normal;
	font-weight: normal;
	font-variant: normal;
	#color: #F00;
	color: var(--link-hover-color);
	text-decoration: none;
}
.mainContent a {
	#color: #00F;
	text-decoration: none;
	color: var(--link-color);
}
.mainContent a:hover {
	#color: #F00;
	text-decoration: none;
	color: var(--link-hover-color);
}
.blurbTable {
	border-top-width: 1px;
	border-right-width: 1px;
	border-bottom-width: 1px;
	border-left-width: 1px;
	border-top-style: dotted;
	border-right-style: dotted;
	border-bottom-style: dotted;
	border-left-style: dotted;
	color: var(--text-primary);
	background-color: var(--background-primary);
}
.linkBottom:visited {
	color: #FFF;
	text-decoration: none;
}


.video-container {
        position:relative;
        padding-bottom:56.25%;
        padding-top:30px;
        height:0;
        overflow:hidden;
}

.video-container iframe, .video-container object, .video-container embed {
        position:absolute;
        top:0;
        left:0;
        width:100%;
        height:100%;
}

video {
        max-width: 100%;
        width: 100%;
        height: auto;
}

table.vert td.markup1 code {
  display: inline-block;
  #display: flex;
  #word-break: break-all;
  white-space: normal;       /* Allows standard text wrapping */
  word-break: break-word;    /* Breaks long text links or strings safely */
  max-width: 978px;
}

table td {
  #display: inline-block;
  #display: block;
  #display: flex;
  #display: grid;
  #word-break: break-all;
  white-space: normal;       /* Allows standard text wrapping */
  #word-break: break-word;    /* Breaks long text links or strings safely */
  max-width: 978px;
}

/* Change Theme Button */
.theme-change {
  position: fixed;
  top: 1.2rem;
  right: 1.4rem;
  width: 40px;
  height: 40px;
  background: var(--text-primary);
  color: var(--background-primary);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: var(--shadow-lg);
}


.theme-change:hover {
  background: var(--primary-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow-xl);
}

.theme-change.visible {
  opacity: 1;
  visibility: visible;
}


/* ==========================================================================
   Combined Image Bevel, Sizing, Link & Centering Layouts
   ========================================================================== */

/* Core Bevel Setup for both standalone divs and inside links */
.beveled-image-container {
  position: relative;
  display: inline-block;
  border-radius: var(--bevel-border-radius);
  overflow: hidden;
  max-width: 100%;
}

/* 1. Force the container to respect any numerical width value assigned to it */
/*
.beveled-image-container[width] {
  width: attr(width px, auto) !important; 
}
*/

/* Make sure the container inside a link expands to fill the specified width */
.beveled-image-link {
  display: inline-block;
  max-width: 100%;
  text-decoration: none; /* Removes any accidental link underline on margins */
}

/* Apply the 3D overlay shadow effect */
.beveled-image-container::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: var(--bevel-border-radius);
  pointer-events: none;
  
  /* Adaptive light/dark properties */
  /* box-shadow: 
    inset 2px 2px 2px 0px light-dark(rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.15)),
    inset -2px -2px 2px 0px light-dark(rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.65));
  */
  box-shadow: 
    inset var(--bevel-box-shadow1), 
    inset var(--bevel-box-shadow2); 
}

/* Force inner images to match the size constraints safely */
.beveled-image-container img {
  display: block;
  width: 100% !important;
  height: auto !important;
}

/* Optional: Dark Mode visual comfort handling (filter brightness) */
[data-theme="dark"] {
  .beveled-image-container img {
    filter: brightness(0.85) contrast(1.05); /* Tones down harsh whites */
  }
}

/* Global Centering fix handling both standalone blocks and linked image blocks */
p.center .beveled-image-container,
div.center .beveled-image-container,
p.center .beveled-image-link,
div.center .beveled-image-link {
  display: inline-block;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* Apply your responsive theme variables straight to the input fields */
#wikiedit textarea,
textarea.inputtext {
  background-color: var(--background-secondary) !important;
  color: var(--text-primary) !important;
  border: 1px solid var(--text-light) !important;
  transition: background-color 0.2s ease, color 0.2s ease; /* Smooth visual transition */
}

#wikitext p, 
#wikitext ul, 
#wikitext ol {
  max-width: 968px;
}

/* Mobile phone query */
@media (max-width: 768px) {
  /* Force containers to take up full mobile width instead of fixed desktop pixels */
  .flexslider, 
  #wikileft, 
  #wikibody {
    width: 100% !important;
    display: block !important;
    margin: 10px 0 !important;
  }
  
  /* Strip out heavy desktop paddings so text doesn't get squished to the center */
  #wikitext {
    padding: 10px !important;
  }
  .mainBody {
	font-size: 15pt;
	font-family: Verdana, Geneva, sans-serif;
	font-style: normal;
	line-height: normal;
	font-weight: normal;
	font-variant: normal;
	text-transform: none;
	text-decoration: none;
	padding: 0pt;
	#background-color: #00ff00;
  }
  .header {
    font-size: 24pt;
  }
  .topMenuTable {
    width: 100%; 	
    font-size: 12pt;
  }
  .linkTopMenu {
	font-size: 11pt;
  }
  .linkTopMenu:hover {
	font-size: 11pt;
  } 
  .myTableHeaders {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 10pt;
	font-style: normal;
	line-height: normal;
	font-weight: bold;
	font-variant: normal;
	text-transform: none;
	color: #000;
	text-decoration: none;
	vertical-align: top;
	text-align: center;
	background-repeat: no-repeat;
	background-position: right center;
	padding: 10px;
	#background-color: #00ff00;
  }
  .subHeader {
    font-size: 5pt ! important;
  }

}

