:root {
  --bg-color: #cdcccc;
  --bg-main-color: #d3d3d3;
  --text-color: #1a1d21;
  font-family: Asap,Asap-fallback,Arial,sans-serif;
  font-size: 20px;
  font-weight: 400;
  margin-left: 1rem;
  margin-right: 1rem;
}

[data-theme="dark"] {
  --bg-color: #212121;
  --bg-main-color: #262626;
  --text-color: #cccccc;
}

code {
  background-color: #a6c2dd;
  font-family: Asap,Asap-fallback,Arial,sans-serif;
  color: #252335;
  /* border-style: solid; */
  border-width: 2px;
  padding-left: 3px;
  padding-right: 3px;
}

[data-theme="dark"] code {
  background-color: #222529;
  font-family: Asap,Asap-fallback,Arial,sans-serif;
  border-color: #3c3e42;
  color: #b0722c;
}

.blog-button {
  background-color: #cccccc;
  border-radius: 8%;
  /* color: #262626; */
  padding: 8px 8px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 18px;
  cursor: pointer;
  border-style: dotted;
  border-width: 1px;
}

[data-theme="dark"] .blog-button {
  background-color: #262626;
}

a {
  color: #a66483;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  transition: background 0.3s, color 0.3s;
}

main, footer, header {
  margin-left: auto;
  margin-right: auto;
  max-width: 90ch;
  padding-left: 0.8rem;
  padding-right: 0.8rem;
  line-height: 1.4;
}

main {
  background-color: var(--bg-main-color);
}

main, footer {
  margin-top: 0.2rem;
  padding-top: 0.01rem;
}

footer {
  padding-top: 0.5rem;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  background-color: var(--bg-color);
  align-items: center;
}

header {
  padding-bottom: 0;
  margin-bottom: 0;
  line-height: 1.2;
}


ul li {
  line-height: 1.4;
}

h1 {
  font-size: 24px;
  line-height: 1.3;
  text-align: center;
}

h4 {
  font-size: 20px;
  line-height: 1.1;
  text-align: left;
}

nav {
  text-align: right;
  padding-bottom: 2px;
  margin-bottom: 2px;
}

.post-date {
  font-size: 16px;
  color: #827f7f;
  text-align: left;
  margin-top: 12px;
  margin-bottom: 6px;
  line-height: 1.4;
}

.home-post-date {
  font-size: 16px;
  color: #827f7f;
  text-align: left;
  margin-top: 8px;
  line-height: 0.8;
}

.home-post-content {
  font-size: 20px;
  text-align: left;
  line-height: 1.4;
  background-color: var(--bg-main-color);
  color: var(--text-color);
  transition: background 0.3s, color 0.3s;

  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2; /* number of lines to show */
          line-clamp: 2; 
  -webkit-box-orient: vertical;
}

footer {
  font-size: 18px;
  color: #827f7f;
  text-align: center;
}

p {
  text-align: auto;
  margin-top: 14px;
  margin-bottom: 0px;
}

#menu li {
  display: inline;
  list-style-type: none;
  padding-right: 20px;
}

/* styles for mermaid diagrams */

.mermaid span.nodeLabel {
  background-color: antiquewhite;
}

.mermaid span.nodeLabel p {
  color: #204444;
  background-color: antiquewhite;
  text-align: center;
}

[data-theme="dark"] .mermaid span.nodeLabel p {
  color: #00ffff;
  background-color: #262626;
  text-align: center;
}

.mermaid g.node rect {
  fill: antiquewhite !important;
}

[data-theme="dark"] .mermaid g.node rect {
  fill: #262626 !important;
}

.mermaid g.edgePaths path.transition {
  /* fill: #204444 !important; */
  stroke: #262626 !important;
}

[data-theme="dark"] .mermaid g.edgePaths path.transition {
  stroke: antiquewhite !important;
}

.mermaid svg.statediagram {
  fill: #262626 !important;
}

[data-theme="dark"] .mermaid svg.statediagram {
  fill: antiquewhite !important;
}

.mermaid .edgeLabel p {
  background-color: rgb(218, 174, 107) !important;
  color: #000000 !important;
}

[data-theme="dark"] .mermaid .edgeLabel p {
  background-color: #3a3d41 !important;
  color: #00ffff !important;
  /* background-color: antiquewhite !important; */
}

.node circle.state-start {
  fill: #262626 !important;
  stroke: #262626 !important;
}

[data-theme="dark"] .node circle.state-start {
  fill: antiquewhite !important;
  stroke: antiquewhite !important;
}

#state-root_end-5 g path {
  stroke: #262626 !important;
  fill: antiquewhite !important;
  /* stroke: #262626 !important; */
}

[data-theme="dark"] #state-root_end-5 g path {
  stroke: antiquewhite !important;
  fill: #262626 !important;
  /* stroke: #262626 !important; */
}
