:root {
  --bg-dark: #1e1e2e;
  --bg-panel: #2a2a3c;
  --bg-sidebar: #181825;
  --text-main: #cdd6f4;
  --text-muted: #a6adc8;
  --accent: #89b4fa;
  --hover: #fffcbe;
  --accent-hover: #74c7ec;
  --border: #45475a;
  --success: #a6e3a1;
  --danger: #c20f39;
  --tab-bg: rgba(0,30,50,0.85);
  --gold-bg: #D4AF37;
  --gold-text: #3E2723;
}

html[data-theme="light"] {
  --bg-dark: #edf8fc;
  --bg-panel: #e6fdfd;
  --bg-sidebar: #e6e6f0;
  --text-main: #1e1e2e;
  --text-muted: #5c5f77;
  --accent: #1e66f5;
  --hover: #d8a841;
  --accent-hover: #209fb5;
  --border: #ccd0da;
  --success: #40a02b;
  --danger: #f38ba8;
  --tab-bg: rgba(210,240,250,0.7);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', system-ui, sans-serif;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  height: 100vh;
  overflow: hidden;
  user-select: none;
}

a {
  color: var(--text-main);
}


.svg {
  vertical-align: middle;
  fill: #000000; 
  transition: fill 0.2s; 
}

.svg:hover { 
  fill: #0066cc; 
}

.infobox {
  display: block;
  width: 98%;
  margin-left: 1%;
  min-height: 2vh;
  height: fit-content;
  border: 2px ridge var(--border);
  border-radius: 5px;
  padding: 3px;
}

.tabcollection {
  height: calc(100vh - 32px - 54px - 54px - 32px); /*-title-menu-console-statusbar*/
  text-align: center;
  display: block;
  position: relative;
  border: none;
}

.tabdiv {
  height: 97%;
  margin:0 auto;
  position: absolute;
  left: 50%;
  transform: translate(-50%, 0px);
  transition: all 0.5s linear;
  overflow:auto;
}

.console {
  min-height: 20px;
  font-size: 12px;
  transition: all 0.2s linear;
  position: relative;
}

.console p {
  position: absolute;
  width: 95%;
  white-space: nowrap;
  left: 0px;
  top: 0px;
}

.console b {
  position: absolute;
  right: 0px;
  top: 0px;
  cursor: pointer;
}

.markdown p {margin:10px;}
.markdown hr {margin:10px;}
.markdown ul {padding-left:30px;}
.markdown ol {padding-left:30px;}
.markdown h1 {padding:20px;border-bottom:outset 1px;}
.markdown h2 {padding:12px;}
.markdown h3 {padding:7px;}
.markdown pre {white-space:pre;background-color:#ddd;color:black;font-family:monospace;padding-left:20px;}
.markdown img {max-width:50vw;}