* {
  font-size: 1em;
}

textarea {
  width: 100%;
}

button, input[type=button] {
  background-color: var(--background);
  color: var(--forground);
  border: 1px solid var(--forground);
  padding: 0.25em;
  font-size: 0.8em;
  min-width: 30%;
}

input {
  background-color: var(--background);
  color: var(--forground);
  border: 1px solid var(--forground);
  font-size: 1em;
  margin: 0em;
  width: 100%;
}
input.chart {
  width: 10%;
  font-size: 0.8em;
  padding: 0.5em;
}
div.ticker_div {
width: 100%;
margin: 0px;
padding: 0px;

}

html, body {
  max-width: 100%;
  overflow-x: hidden;
  height: 100%;
}

div.section {
  font-size: 1.2em;
  width: 100%;
}
div.square {
  width: 100%;
}
.post_summary {
  margin-left: 0em;
  margin-right: 0em;
  width: 95%;
  border-left: 0px solid var(--forground);
  border-top: 1px solid var(--forground);
  min-height: auto;
  display: block;
}
div.post_summary_header {
  margin-top: 0;
}

h1 a {
}
main {
  margin-left: 1em;
  margin-right: 1em;
}

.post_details {
  width: 90%;
  border-left: 0px solid var(--forground);
  border-top: 0px solid var(--forground);
  min-height: 0vh;
  margin-left: 0em;
}

.post_detail h1 {
  text-align: left;
}

.post_summary h2 {
  font-size: 1em;
}

h1 {
  font-size: 1.5em;
}
h2 {
  margin: 2em;
}

.container {
  display: grid;
  grid-template-rows: auto 1fr auto;
  grid-template-columns: 5fr 0fr 0fr;
  grid-gap: 0px;
  height: 100%;
}

header {
  text-align: center;
  width: 100%;
}

header,
footer {
  grid-column: 1 / -1;
}

.content {
  grid-column: 2 / 3;
}

img#glasses {
  min-width: 30%;
  grid-column: 1 / -1;
  margin-top: -2em;
  margin-right: -8%;
}
 
img#rss {
  max-height: 1.2em;
}

div.burger {
  float: right;
  display: block;
  width: 20%;
  border: none;
}

div.burger svg {
  width: 100%;
}

div.chart{
  margin: 0px;
  padding-bottom: 2em;
  margin-bottom: 2em;
  margin-left: 0%;
  padding: 0px;
  width: 100%;
  padding-top: 2em;
  height: 60vh;
  border: 0px solid red;
}
div.comment {
  padding-left: 0.5em;
}
div.comment hr{
  margin-left: -0.5em;
}

div.dropbtn {
  padding: 0px;
  margin: 0px;
  clear:both;
  font-weight: 900;
  width: 100%;
}
div.dropbtn a#menu {
  float: right;
  border: 0px solid yellow;
}
div.dropbtn a#home {
  float: left;
  border: 0px solid blue;
}

div.subdropbtn {
  padding: 0px;
  margin: 0px;
  clear:both;
  border: 0px;
  width: 100%;
}

div.subdropbtn a {
  font-size: 1em;
  padding-top: 0.2em;
  margin: 0px;
  display: block;
  background-color: var(--background);
}

div.dropbtn a {
  font-size: 1em;
  padding-top: 0.2em;
  margin: 0px;
  display: block;
  background-color: var(--background);
  color: var(--forground);
}
div.subdropbtn a.inverted, div.dropbtn a.inverted {
  background-color: var(--forground);
  color: var(--background);
}

div.rss a{
  text-align: left;
  float:left;
  text-decoration: none;
  font-size: 0.8em;
  padding-left: 0.5em;
}

div.tagcloud_hidden {
  display: none;
}

div.tagcloud {
  position: absolute;
  width: 100%;
  display: block;
  text-align: right;
  border-bottom: 20em solid var(--background);
}
table {
 width: 100%;
}

/* not enough space between h1 link above and this link */
div.url {
  margin-top: 1em;
}
.daily_requests_div { 
  width: 110%;
}

ul#menu {
  display:visible;
}

div.main {
  width: 90%;
  float: left;
}
div.ticker {
  border-left: 0px solid white;
}


div.square.nimda-page {
  width: 100%;
  max-width: 100%;
  margin: 1rem 0 3rem 0;
  padding: 0.75rem;
}

.nimda-site-health {
  overflow-x: auto;
}

.nimda-link-grid a {
  font-size: 1.15rem;
  padding: 0.85rem;
}


main.nimda-main div.square {
  width: 100%;
  max-width: 100%;
  margin: 1rem 0 3rem 0;
  padding: 0.75rem;
}


.post-editor-description-grid {
  display: block;
}

.post-editor-description-input {
  width: 100%;
}

.markdown-help-side,
.markdown-help-side:not([open]) {
  max-width: none;
  width: 100%;
  margin-top: 0.75rem;
}

.markdown-help-side summary::before {
  content: "▲ ";
}

.markdown-help-side:not([open]) summary::before {
  content: "▼ ";
}


.chart-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
}

.chart-controls input.calendar {
  width: 100%;
  min-width: 0;
}


.profile-preference-form input[type="checkbox"],
.chart-color-toggle input[type="checkbox"] {
  width: auto;
}



.stonkys-brand-mark img {
  width: 4.4rem;
  max-width: 32vw;
}

.stonkys-warp-glasses {
  width: min(24rem, 86vw);
  top: 45%;
  animation: stonkys-warp-glasses-mobile 980ms cubic-bezier(.12,.78,.21,1) forwards;
}

body.warp-entering header,
body.warp-entering main {
  animation-name: stonkys-warp-materialize-mobile;
}

@keyframes stonkys-warp-glasses-mobile {
  0% {
    opacity: 0;
    transform: translate(-50%, -64%) scale(1.8);
    filter: invert(1) blur(18px);
  }
  52% {
    opacity: 0.95;
    transform: translate(-50%, -48%) scale(1.05);
    filter: invert(1) blur(2px);
  }
  78% {
    opacity: 0.78;
    transform: translate(-50%, -50%) scale(1);
    filter: invert(1) blur(0);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.82);
    filter: invert(1) blur(4px);
  }
}

@keyframes stonkys-warp-materialize-mobile {
  0% {
    opacity: 0;
    transform: translateY(8vh) scale(1.08);
    filter: blur(14px);
  }
  62% {
    opacity: 1;
    transform: translateY(-1vh) scale(0.99);
    filter: blur(2px);
  }
  100% {
    opacity: 1;
    transform: none;
    filter: none;
  }
}



/* Release 223: compact mobile brand mark; the warp image remains large via
   #stonkys-warp-intro .stonkys-warp-glasses. */
ul#menu {
  justify-content: center;
}

ul#menu .stonkys-brand-mark {
  padding: 0.25rem 0.35rem;
}

ul#menu .stonkys-brand-mark img {
  width: 3.2rem;
  max-height: 1.35rem;
}

#stonkys-warp-intro .stonkys-warp-glasses {
  width: min(24rem, 86vw);
}



/* Release 224: mobile keeps detail text left and keeps chart/cards separated. */
.post_details,
.post_details .section,
.post_details .main,
.post_details .markdown-body,
.post_details .url {
  text-align: left;
}

.post-detail-chart .chart,
.post-detail-chart #ticker_div,
.ticker-detail-chart .ticker-chart,
.ticker-detail-chart #ticker_div {
  min-height: 56vh;
  height: 60vh;
}

.ticker-chart-controls {
  margin-bottom: 2rem;
}

.post_index[data-stonkys-ticker-posts] {
  display: block;
  margin-top: 2rem;
}

.post_index[data-stonkys-ticker-posts] > .post_summary {
  width: 100%;
  margin-bottom: 1.25rem;
}



/* Release 227: ticker story grid collapses cleanly on mobile. */
.ticker-page-grid,
.post_index[data-stonkys-ticker-posts].ticker-page-grid {
  display: block;
  margin-top: 0;
}

.ticker-page-grid > .ticker-chart-card {
  width: 100%;
  margin-bottom: 1.25rem;
}

.ticker-page-grid .ticker-chart-card .ticker-chart {
  height: 58vh;
  min-height: 22rem;
}

.ticker-page-grid .ticker-chart-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ticker-page-grid .ticker-chart-controls input.calendar {
  width: 100%;
}



/* Release 228: mobile ticker card uses its chart area without clipping posts. */
.ticker-page-grid > .ticker-chart-card {
  display: block;
  overflow: visible;
}

.ticker-page-grid .ticker-chart-card .ticker-chart {
  height: 62vh;
  min-height: 24rem;
}

.ticker-page-grid > .post_summary {
  overflow: visible;
  padding-top: 1em;
}

.ticker-page-grid > .post_summary .post_summary_header {
  display: flow-root;
  min-height: 1.4em;
  margin-bottom: 0.75em;
}

