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

@keyframes slideInFromTop {
  0% {
    transform: translateY(-100%);
  }
  100% {
    transform: translateY(0);
  }
}

@keyframes slideInFromLeft {
  0% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(0);
  }
}

@font-face {
  font-family: blox2;
  src: url("https://www.stonkys.com/static/blog/font/Blox2.ttf");
}

@font-face {
  font-family: vollkorn-regular;
  src: url("https://www.stonkys.com/static/blog/font/vollkorn/VollkornRegular-51aXv.ttf");
}

@font-face {
  font-family: dotmatrix;
  src: url("https://www.stonkys.com/static/blog/font/DOTMATRI.TTF");
}

:root {
  --background: rgba(0, 0, 0, 1); 
  --translucent: rgba(0, 0, 0, 0.5); 
  --translucentwhite: rgba(255, 255,255, 0.8); 
  --red: rgba(255, 0, 0, 1); 
  --forground: rgba(255, 255, 255, 1);    
  --forground-05: rgba(255, 255, 255,1);    
  --text: rgba(255, 255, 255, 1);    
  --highlight: rgba(255, 0, 0, 0.5);
  --outline: rgba(100, 100, 100, 1);
  --shadow: rgba(00, 00, 00, 1);
}

.container > * {
  padding-bottom: 1em;
}

.container {
  margin-left: auto;
  margin-right: auto;
}

.content {
  min-height: 100%;
}


a:hover {
  cursor:pointer;
}

a:link, a:visited 
{
  color: var(--forground);
  text-decoration-color: var(--background);
  text-decoration: none;
  transition: text-decoration-color 250ms linear;
  transition: color 250ms linear;
}

a:hover, a:active {
  color: var(--forground);
  text-decoration: none;
  text-decoration-color: var(--forground);
  transition: text-decoration-color 250ms linear;
  transition: color 250ms linear;
}
body {
  color: var(--forground);
  font-family: Questrial, Sans-Serif;
  background-color: var(--background);
  overflow-x: hidden;
}


/* removed 2024-09-19 */
div.comment_input {
  border: 1px solid var(--forground);
}
div.comment {
  border-left: 1px solid var(--forground);
  border-bottom: 0px solid var(--forground);
  padding-left: 1em;
  padding-bottom: 1em;
  border-image: linear-gradient(to right, white, black) 1;
}

div.post_comment {
text-align: left;

}
div.comment hr{
  color: var(--background);
  border-top: 0px solid var(--forground);
  margin: 0px;
  padding: 0px;
  margin-left: -1em;
  border-image: linear-gradient(to right, white, black) 1;
}

div.comment div.comment_body{
  text-align:left;
}

div.comment div.comment_body pre {
  text-align: left;
  max-width: 80%;
}
div.comment div.header {
  background-color: var(--background);
  color: var(--forground);
  display:inline-block;
  width: 100%;
}

div.comment span {
  font-size: 1em;
  vertical-align: top;
  margin-top: 0em;
  float:left;
}

div.comment span.left {
  float: left;
  display: inline-block;
  margin-right: 1em;
}

div.comment span.center {
  display: inline-block;
  margin-right: 1em;
  margin-left: 1em;
}

div.comment span.right {
  float: right;
  margin-left: 1em;
  display: inline-block;
}

div.error_code {
  font-size: 10em;
}

.dropdown-content {
  display: none;
  position: absolute;
  z-index: 1;
  width: max-content;
  background-color: var(--background);
}

.dropdown-content div.menu_button {
  width: max-content;
  padding-top: 0em;
}

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

div.post_details {
  margin-left: 1em;
  margin-right: 1em;
}

div.post_detail {
  margin-bottom: 0em;
  margin-left: auto;
  margin-right: auto;
  padding: 1em;
  display: block;
  vertical-align: top;
  border: 0px solid white;
  width: 90%;
}

div.section {
  padding: 0em;
  width: 100%;
  margin: auto;
}

div.square {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 50%;
  -ms-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
}

h1 {
  text-transform: capitalize;
  text-align: left;
  overflow: visible;
  font-size: 2em;
  padding-right: 0.5em;
}

h1 a, h1 a:visited{
  text-decoration: none;
  text-align: left;
  margin-bottom: 1em;
}

h1 a:hover {
  text-decoration: none;
  background-color: var(--forground);
  color: var(--background);
}

h2 {
  font-size: 1.5em;
}

h3 {
  text-align:left;
  margin-top: 1em;
  color: var(--forground);
}

h4 {
  padding-bottom: 0.1em;
  color: var(--forground);
}

header {
  padding: 0px;
  margin: 0px;
  top: 0;
  text-align: center;
  position: fixed;
  z-index: 1;
}

img {
  max-width:100%;
  max-height:100%;
}

img#glasses {
  float: right;
  width: 20%;
  display: block;
  margin-right: -8%;
}

li {
  list-style: none;
}

span.user {
  margin-right: 1em;
  float: right;
  text-align: right;
  font-size: 1em;
  display: inline;
  border: 0px solid red;
}
span.id {
  margin-right: 1em;
  float: left;
  text-align: left;
  font-size: 1em;
  display: inline;
  border: 0px solid blue;
}

span.date {
  margin-right: 1em;
  float: left;
  text-align: left;
  font-size: 1em;
  display: inline;
  border: 0px solid blue;
}

div.main {
  width: 100%;
}
main {
  width: 100%;
  margin: 0 auto;
  text-align: center;
  vertical-align: middle;
}

table.edit_post input {
  width: 100%;
}

input.login {
  text-align: center;
}

small#hint_id_password1 ul {
  padding: 1em;
}

small#hint_id_password1 ul li {
  border: 0px solid red;
  padding: 0em;
  list-style: circle;
}

.post_summary {
  min-height: 80vh;
  display: inline-block;
  vertical-align: top;
  border-left:  1px solid var(--forground);
  border-right: 0px solid var(--forground);
  border-top: 1px solid var(--forground);
  border-style: solid;
  border-image: linear-gradient(to bottom, var(--forground), var(--background)) 1;
  padding-right: 0.5em;
}

.post_summary img {
  width: 100%;
  margin-top: 2em;
  margin-left: -1em;
}

.post_summary h1 {
  margin-top: 0.5em;
}

span.categories { 
  white-space: nowrap;
  display: flex;
  flex-direction: row;
  margin-left: -1.0em ;
  display: inline-block;
  width: 100%;
}
span.categories a.nimda {
  color: pink;
}

div.post_summary_header {
  width: 100%;
  margin-top: -2.7em;
}

input.comment_title {
  float: left;
  margin: 0px;
}

span.categories a {
  cursor:pointer;
  padding-top: 0.2em;
  padding-bottom: 0.2em;
  padding-left: 0.5em;
  padding-right: 0.5em;
  text-decoration: none;
  text-transform: uppercase;
  float: left;
  color: var(--forground);
  background: var(--background);
  transition: background 250ms linear, color 250ms linear, border 250ms linear;
  font-size: 0.6em;
}

span.categories a.inverted {
  text-decoration: underline;
}

span.categories a.inverted:hover {
  color: var(--background);
  background-color: var(--forground);
}

span.categories a:hover {
  color: var(--background);
  background-color: var(--forground-05);
}

span.category {
  float: right;
  display: inline-block;
}

span.category a.normal {
  cursor:pointer;
  padding: 0em;
  text-decoration: none;
  text-transform: uppercase;
  color: var(--forground);
  background: var(--background);
  transition: background 250ms linear, color 250ms linear, border 250ms linear;
  font-size: 0.6em;
  font-weight: 900;
}

span.category a.inverted {
  cursor:pointer;
  padding-top: 0.2em;
  padding-bottom: 0.2em;
  padding-left: 0.2em;
  padding-right: 0.2em;
  text-decoration: none;
  text-transform: uppercase;
  color: var(--background);
  background: var(--forground);
  transition: background 250ms linear, color 250ms linear, border 250ms linear;
  font-size: 0.6em;
  font-weight: 900;
}

span.category a.normal:hover {
  color: var(--background);
  background-color: var(--forground-05);
  transition: background 250ms linear, color 250ms linear, border 250ms linear;
}

span.category a.inverted:hover {
  color: var(--forground);
  background-color: var(--forground-05);
  transition: background-color 250ms linear, color 250ms linear;
  text-decoration: underline;
}

/* post list view */
table.posts {
  width: 100%;
  font-size: 0.8em;
  padding: 0px;
  margin: 0px;
  border-spacing: 0px!important;
}

table.posts tr.header {
}

table.posts td {
  text-align:left;
  min-width: 1em;
  padding: 0.2em;
  margin: 0;
  transition: background 250ms linear, color 250ms linear, border 250ms linear;
}

table.posts td.date {
  text-align: left;
  padding: 0.2em;
  margin: 0px;
  min-width: 2em;
  transition: background 250ms linear, color 250ms linear, border 250ms linear;
  max-width:100%;
  white-space:nowrap;
}

td.date {
  white-space:nowrap;
}

table.posts tr {
  padding: 0px;
  margin: 0px;
}

table.posts tr td.tags {
  min-width:20%; 
  text-align:right;
}

table tr.title {
  white-space: nowrap;
}

table.posts tr td.id {
  text-align:right;
}

table.posts tr td a{
  text-decoration: none;
}

table.posts tr.header td a {
  color: var(--background);
  background: var(--forground);
  cursor:pointer;
  text-decoration: underline;
  transition: background 250ms linear, color 250ms linear, border 250ms linear;
  transition: color 250ms linear;
  transition: text-decoration-color 250ms linear;
  text-decoration-color: var(--red);
}

table.posts tr.header td:hover {
  color: var(--background);
  background: var(--forground);
  cursor:pointer;
  text-decoration: underline;
  transition: background 250ms linear, color 250ms linear, border 250ms linear;
  transition: color 250ms linear;
  transition: text-decoration-color 250ms linear;
  text-decoration-color: var(--red);
}

table.posts tr.body:hover a {
  color: var(--background);
  background: var(--forground);
  cursor:pointer;
  text-decoration: underline;
  transition: background 250ms linear, color 250ms linear, border 250ms linear;
  transition: color 250ms linear;
  transition: text-decoration-color 250ms linear;
  text-decoration-color: var(--red);
}

table.posts tr.body:hover td {
  color: var(--background);
  background: var(--forground);
  cursor:pointer;
  text-decoration: underline;
  transition: background 250ms linear, color 250ms linear, border 250ms linear;
  transition: color 250ms linear;
  transition: text-decoration-color 250ms linear;
  text-decoration-color: var(--red);
}

table.posts td.tags span.category {
  margin: 0px;
  padding: 0px;
  margin: 0px;
  float:right;
}

table.posts a{
  padding: 0px;
  margin: 0px;
  font-size: 1em;
}

img {
  margin: auto;
  display: block;
}

footer {
  text-align: center;
}

canvas { 
  display: block; 
  width: 100%; 
}

div.graph_container {
  display: flex;
}

table {
width: 100%;
}

tr {
  margin-bottom: 1em;
}
td {
  vertical-align: top;
  text-align:left;
  min-width: 4em;
}

input[type=number]::-webkit-inner-spin-button, 
input[type=number]::-webkit-outer-spin-button { 
  -webkit-appearance: none; 
  margin: 0; 
}

input[type=number] {
  -moz-appearance: textfield;
  width: 4em;
}

textarea {
  background-color: var(--background);
  color: var(--forground);
  /*
  border-top: 1px solid var(--forground);
  border-left: 1px solid var(--forground);
  border-right: 0px solid var(--forground);
  */
  border: 1px solid var(--forground);
  max-width: 95%;
  min-width: 95%;
  min-height: 6em;
  margin-top: 2px;
  font-size: 1em;
  white-space: pre-wrap;
  min-height: 40vh;
  border-image: linear-gradient(to bottom, var(--forground), var(--background)) 1;
}

input {
  background-color: var(--background);
  color: var(--forground);
  border: 1px solid var(--forground);
  min-width: 80%;
  max-width: 95%;
  font-size: 1em;
  margin: 0em;
}

button, input[type=button], input[type=submit], input[type=reset] {
  background-color: var(--background);
  color: var(--forground);
  padding-left: 0.5em;
  padding-right: 0.5em;
  text-align: center;
  border: 1px solid var(--forground);
  font-size: 0.8em;
  cursor:pointer;
  border-radius: 0px;
  min-width: 10%;
}

input.calendar {
  background-color: var(--background);
  color: var(--forground);
  padding-left: 0.5em;
  padding-right: 0.5em;
  text-align: center;
  border: 1px solid var(--forground);
  font-size: 1em;
  cursor:pointer;
  border-radius: 5px;
  min-width: 10%;

}

div.message {
  min-height: 1.5em;
}

button:hover, input[type=button]:hover, input[type=submit]:hover, input[type=reset]:hover {
  color: var(--background);
  background-color: var(--forground);
  transition: background-color 250ms linear, color 250ms linear;
}

input.left {
  float:left;
}
 
input.right {
  float:right;
}

div.tagcloud_hidden {
}

div.tagcloud {
  width: 100%;
  display:block;
}

hr {
  margin-top: 2em;
  margin-bottom: 2em;
}

iframe {
  aspect-ratio: 16 / 9;
}

button:hover {
  background-color: var(--forground);
  color: var(--background);
}

div.ticker { 
  float: right;
  text-align: center;
  border-left:  0px solid var(--forground);
  border-right: 0px solid var(--forground);
  border-top: 0px solid var(--forground);
  border-bottom: 0px solid var(--forground);
  border-style: solid;
  border-image: linear-gradient(to top, var(--background), 30%, var(--forground)) 2;
}

div.chart_small {
  width: 95%;
  margin-left: -1.5em;

}
div.chart {
  padding: 0px;
  min-height: 60vh;
  width: 95%;
  resize: vertical;
}

@supports (hanging-punctuation: first) {
  q {
    hanging-punctuation: first;
  }
}

q {
  text-align: unset;
  text-indent: -0.3em;
  display: block;
}

pre {
  word-wrap: break-word; 
  white-space: pre-wrap;
  padding-top: 0.5em;
  padding-bottom: 0.5em;
  font-size: 1.2em;
  text-align: left;
}

div.url {
  text-align:left;
}

div.url a:hover {
  color: var(--background);
  background-color: var(--forground);
}

div.form {
  display: block;
}

a.selected {
  cursor:pointer;
  background-color: var(--forground);
  color: var(--background);
}

a.unselected {
  cursor:pointer;
}

/* styles set when user presses "compressed" view */
div.post_summary_compressed {
  width: 100%;
  display: inline-block;
  margin: 0px;
  padding: 0px;
  border-left:  0px solid var(--forground);
  border-right: 0px solid var(--forground);
  border-top: 1px solid var(--forground);
  border-style: solid;
  border-image: linear-gradient(to right, var(--background), 30%, var(--forground)) 2;
  border-bottom: 0px;
  margin-bottom: 1em;
  padding-left: 0.5em;
}

div.post_summary_compressed h1 {
  font-size: 1em;
  display: inline-block;
  float: left;
  overflow: hidden;
  max-width: 100%;
  margin: 0px;
}

div.post_summary_compressed img {
  margin: 0px;
  padding: 0px;
  float: left;
  width: 20%;
  font-size: 1em;
  display: inline-block;
}
div.post_summary_compressed pre.description {
  display: none;
  margin: 0px;
  padding: 0px;
  float: left;
  font-size: 1em;
}

div.menu {
  display: none;
}
div.menu_button a#close {
  display: none;
}
div.post_summary_compressed div.post_summary_header {
  display: block;
  margin-top: 0em;
  margin: 0px;
  padding: 0px;
  float: left;
  width: 100%;
}

div.post_summary_compressed div.post_summary_header span {
  display: inline-block;
  float: left;
  margin: 0px;
  padding: 0px;
}

div.post_summary_compressed div.post_summary_header span.categories { 
  float:left;
  overflow: hidden;
  white-space: hidden;
  font-size: 1em;
}

span.categories a{ 
  font-size: 0.8em;
}

div.post_summary_compressed div.post_summary_header span.user{ 
  /*flex-direction: row;*/
  display: inline-block;
  float:left;
  margin: 0px;
  padding: 0px;
}
div.post_summary_compressed div.post_summary_header span.date{ 
  display: inline-block;
  margin: 0px;
  padding: 0px;
  overflow: hidden;
  white-space: hidden;
  float:right;
}

div.post_summary_compressed div.url {
  text-align:right;
  font-size: 1em;
}

header {
  text-transform: uppercase;
  background-color: var(--background);

}
ul#menu {
  list-style-type: none;
  margin: 0px;
  padding: 0px;
  overflow: hidden;
  text-transform: uppercase;
  float:left;
  display:inline-block;
}

li {
  float: left;
}

li a, .dropbtn {
  display: inline-block;
  color: var(--forground);
  padding: 0.5em;
  text-align: center;
  text-decoration: none;
}

li a:hover, .dropdown:hover .dropbtn {
  background-color: var(--forground);
  color: var(--background);
}
div.tags a.dropbtn:hover {
  color: var(--background);
  background-color: var(--forground);
}

li.dropdown {
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  min-width: 160px;
  z-index: 1;
}

.dropdown-content a {
  color: var(--forground);
  text-decoration: none;
  display: block;
  text-align: left;
}

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

a.inverted {
  color: var(--background);
  background-color: var(--forground);
}
a.pink {
  color: pink;
}

/*
svg {
  margin-top: 0px;
  padding: 0px;
}
svg#burger {
  filter: drop-shadow(0px 0px 3px rgb(255 255 255 / 0.0));

}
svg#burger:hover {
  filter: drop-shadow(0px 0px 5px rgb(255 255 255 /1));

}
*/
a#hide_menu {
  color: var(--forground);
  background: var(--translucent);
}

a#hide_menu svg {
  float:left;
  color: var(--forground);
  padding: 0.5em;
}

a#hide_menu p {
  float:left;
  padding: 0.5em;
  color: var(--forground);
}

div.main {
  width: 40%;
  float: left;
}
