/* TERMINAL THEME CSS */
@import url('https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700');

:root {
  --main-color: #00cc00;
  --bg-color: #000;
  --terminal-bg: #000;
  --text-color: #00cc00;
  --pop-color: #00cc00;
  --alt-color: #00ffff;
  --light-alt-color: rgba(0, 255, 255, 0.3);
  --prompt-color: #00cc00;
  --command-color: #ffffff;
  --border-color: #333;
  --terminal-header-bg: #2d2d2d;
}

/* Light theme variables */
[data-theme="light"] {
  --main-color: #000000;
  --bg-color: #f5f5f5;
  --terminal-bg: #ffffff;
  --text-color: #000000;
  --pop-color: #000000;
  --alt-color: #003399;
  --light-alt-color: rgba(0, 51, 153, 0.3);
  --prompt-color: #006600;
  --command-color: #333333;
  --border-color: #cccccc;
  --terminal-header-bg: #e0e0e0;
  --menu-bg-light: #ffffff;
}

/* Amber theme variables */
[data-theme="amber"] {
  --main-color: #ffaa00;
  --bg-color: #000;
  --terminal-bg: #000;
  --text-color: #ffaa00;
  --pop-color: #ffaa00;
  --alt-color: #ffcc66;
  --light-alt-color: rgba(255, 204, 102, 0.3);
  --prompt-color: #ffaa00;
  --command-color: #ffffff;
  --border-color: #333;
  --terminal-header-bg: #2d2d2d;
}

/* BASE */
body { 
  background-color: var(--bg-color); 
  color: var(--main-color); 
  font-family: 'Source Code Pro', monospace; 
  margin: 20px auto; 
  width: 90%; 
  max-width: 1400px; 
  line-height: 1.6em; 
  font-size: 14px;
  padding: 20px;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  box-shadow: 0 0 20px var(--light-alt-color);
  transition: all 0.3s ease;
}

h1, h2, h3, h4, h5, h6 {  
  margin: 0px;  
  margin-top: 22px;  
  font-weight: bold;  
  color: var(--pop-color); 
  font-size: 1.1em; 
}

p, ul, ol { 
  font-size: 14px;  
  color: var(--text-color); 
  line-height: 1.6em; 
}

a { 
  text-decoration: none;  
  color: var(--alt-color); 
}

a:hover { 
  color: var(--bg-color); 
  background-color: var(--alt-color); 
}

.primary-text { 
  color: var(--main-color); 
}

@media only screen and (max-device-width: 500px) { 
  * { font-size: 12px !important; } 
}

b, strong { 
  color: var(--main-color); 
}

.invert { 
  color: var(--bg-color); 
  background-color: var(--main-color); 
  padding-left: 3px; 
  padding-right: 3px; 
  padding-top: 1px; 
  padding-bottom: 1px; 
}

/* LAYOUT */
.container { 
  margin-right: auto;  
  margin-left: auto; 
}

p { 
  word-wrap: break-word;  
  word-break: break-word;  
  white-space: pre-wrap; 
}

footer { 
  color: var(--text-color);  
  border-top: dashed 1px rgba(219, 219, 219, 0.9);  
  margin: 20px auto 15px;  
  padding-top: 10px;  
  text-align: right; 
  margin-bottom: 20px; 
}

header { 
  margin-top: 25px;  
  margin-bottom: 10px; 
}

header p { 
  text-align: left;  
  margin: 0; 
}

img { 
  max-width: 100%;
  height: auto;
}

/* LISTS */
:not(.menu) > ul { 
  list-style: none; 
  padding-left: 1em; 
}

ul :not(.menu) > ul { 
  list-style: none; 
  padding-left: 3em; 
  margin-top: 0.5em; 
  margin-bottom: 0.7em; 
}

:not(.menu) > ul { 
  list-style-type: none; 
}

:not(.menu) > ul > li:before { 
  content: "-";  
  margin-right: 9px; 
}

ul :not(.menu) > ul > li:before { 
  content: "*";  
  margin-right: 9px; 
}

/* NAVIGATION */
.menu { 
  border-top: solid 1px var(--border-color);  
  border-bottom: solid 1px var(--border-color);  
  margin-bottom: 25px; 
  background: #111;
  transition: all 0.3s ease;
}

[data-theme="light"] .menu {
  background: #ffffff;
}

.menu ul { 
  margin-top: 12px;  
  margin-bottom: 12px;  
  padding-left: 0px;  
  list-style-type: none;  
  text-align: right; 
}

.menu ul li { 
  display: inline;  
  margin-left: 10px; 
}

.menu ul li a { 
  text-decoration: none;  
  color: var(--text-color); 
}

.menu ul li a:before { 
  content: "./"; 
  color: var(--prompt-color); 
}

.menu ul li a:hover { 
  text-decoration: none; 
  color: var(--bg-color); 
  background-color: var(--alt-color); 
}

.menu ul li.page_title { 
  text-align: left; 
  margin-left: 10px; 
  float: left; 
  font-weight: bold; 
  color: var(--main-color) 
}

.menu ul li.page_title:before { 
  content: "["; 
  color: var(--prompt-color); 
}

.menu ul li.page_title:after { 
  content: "]"; 
  color: var(--prompt-color); 
}

/* TERMINAL STYLING */
.terminal-header {
  background: var(--terminal-header-bg);
  padding: 8px 15px;
  margin: -20px -20px 20px -20px;
  border-radius: 6px 6px 0 0;
  border-bottom: 1px solid var(--border-color);
  font-size: 12px;
  color: #999;
  transition: all 0.3s ease;
}

.terminal-buttons {
  float: left;
}

.terminal-button {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-right: 8px;
}

.terminal-button.close { background: #ff5f57; }
.terminal-button.minimize { background: #ffbd2e; }
.terminal-button.maximize { background: #28ca42; }

.terminal-title {
  text-align: center;
  color: #999;
  font-weight: normal;
}

.terminal-theme-toggle {
  float: right;
  padding-top: 2px;
}

.terminal-prompt {
  color: var(--prompt-color);
  font-weight: bold;
}

.terminal-prompt:before {
  content: "ninjabot@blog:~$ ";
}

.command-output {
  margin-left: 0;
  white-space: pre-wrap;
}

.post-command {
  color: var(--command-color);
  font-weight: bold;
  margin-bottom: 10px;
}

.post-command:before {
  content: "ninjabot@blog:~$ ";
  color: var(--prompt-color);
}

.post-content {
  margin-left: 0;
  border-left: none;
  padding-left: 0;
}

/* ARTICLE STYLING */
.entry-title {
  color: var(--command-color);
  font-weight: bold;
  margin-bottom: 10px;
  font-size: 14px;
}

.entry-title:before {
  content: "ninjabot@blog:~$ ";
  color: var(--prompt-color);
}

.entry-content {
  margin-left: 0;
  border-left: none;
  padding-left: 0;
}

.entry-meta {
  color: #666;
  font-size: 12px;
  margin-bottom: 20px;
}

*::selection { 
  background-color: var(--light-alt-color); 
  color: black; 
}

/* ASCII HEADER STYLING */
.ascii-header {
  text-align: center;
  margin: 20px 0;
  padding: 20px 0 30px 0;
  border-bottom: 1px solid #333;
  overflow: visible;
}

.ascii-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  max-width: 1200px;
  margin: 0 auto;
}

.ascii-ninja {
  flex: 1;
  display: flex;
  justify-content: center;
}

.ascii-ninja pre {
  font-family: 'Source Code Pro', monospace;
  font-size: 12px;
  line-height: 1.1;
  color: var(--prompt-color);
  margin: 0;
  text-shadow: 0 0 10px rgba(0, 204, 0, 0.5);
  white-space: pre;
  transition: all 0.3s ease;
}

[data-theme="light"] .ascii-ninja pre {
  color: #000000;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

[data-theme="amber"] .ascii-ninja pre {
  color: #ffaa00;
  text-shadow: 0 0 10px rgba(255, 170, 0, 0.5);
}

.ascii-main {
  flex: 2;
  display: flex;
  justify-content: center;
}

.ascii-art {
  font-family: 'Source Code Pro', monospace;
  font-size: 10px;
  line-height: 1.2;
  color: var(--main-color);
  margin: 0;
  padding: 5px 0;
  text-shadow: 0 0 10px var(--light-alt-color);
  white-space: pre;
  transition: all 0.3s ease;
}

.ascii-robot {
  flex: 1;
  display: flex;
  justify-content: center;
}

.ascii-robot pre {
  font-family: 'Source Code Pro', monospace;
  font-size: 12px;
  line-height: 1.1;
  color: var(--main-color);
  margin: 0;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
  white-space: pre;
}

/* Responsive design for epic header */
@media only screen and (max-width: 900px) {
  .ascii-container {
    flex-direction: column;
    align-items: center;
  }
  
  .ascii-ninja, .ascii-robot {
    flex: none;
    margin: 10px 0;
  }
  
  .ascii-ninja pre, .ascii-robot pre {
    font-size: 10px;
  }
  
  .ascii-art {
    font-size: 8px;
  }
}

@media only screen and (max-width: 600px) {
  .ascii-ninja pre, .ascii-robot pre {
    font-size: 8px;
  }
  
  .ascii-art {
    font-size: 6px;
  }
}

@media only screen and (max-width: 480px) {
  .ascii-ninja pre, .ascii-robot pre {
    font-size: 6px;
  }
  
  .ascii-art {
    font-size: 4px;
  }
}

/* Theme switcher */
.theme-toggle {
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 3px;
  transition: background-color 0.3s ease;
}

.theme-toggle:hover {
  background-color: var(--light-alt-color);
}