:root {
  --kivihalmefi-blue: #009bd6;
  --background-color-toned: #f4f4f4;
  --background-color: #fff;
  --content-border-color: #bfbfbf;
  --text-color: #222;
  --title-color: #444;
  --shadow-color: gray;
  --link-hover-color: #eaeaea;
}

html {
  scroll-padding-top: 100px; /* Adjust based on your menu height */
  scroll-behavior: smooth;
}

:root[data-theme="dark"] {
}
/*
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --background-color: #393636;
    --background-color-toned: #242424;
    --content-border-color:#555;
    --text-color: #ffffff;
    --title-color:#f3f3f3;
    --link-color: #66aaff;
    --shadow-color:rgb(26, 23, 23);
    --link-hover-color:#333;
  }
}
*/

body {
  background-color: var(--background-color-toned);
  color: var(--text-color);
}

.content {
  line-height: 1.6;
  padding-left: 1em;
  padding-right: 1em;
  border-left: 2px solid var(--content-border-color);
}

.content-noborder {
  line-height: 1.6;
  padding-left: 1em;
  padding-right: 1em;
}

.content {
  background-color: var(--background-color);
  padding-bottom: 1em;
}

.centered {
  margin: 0 auto;
  max-width: 800px;
  overflow: hidden;
}

.post-text > p {
  text-align: left;
}

.post-listing-meta {
  font-size: 0.7em;
}

li.post-bullet {
  list-style-type: none;
  padding-bottom: 1em;
  margin-left: 1em;
}

.post-listing-title {
  font-size: 1.5em;
}

.one {
  font-weight: 900;
  color: rgb(200, 194, 27);
  text-shadow:
    0 0 0.4em #eeff00,
    0 0 3em #ffdd00;
}

.zero {
  font-weight: 900;
  color: #6d6d6d;
}

.top-nav {
  margin: 0;
  padding: 0;
  background-color: #333;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000; /*lol okay*/
}

.top-navbar-content {
  margin: 0 auto;
  max-width: 800px;
  line-height: 1.6;
  display: flex;
}

.nav-button {
  display: inline-block;
}

.nav-button a {
  padding: 1em;
  display: block;
  color: white;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
  font-family: "Raleway", sans-serif;
  font-weight: 300;
}
.main-menu-wrapper {
  position: relative;
  min-width: 0;
}

.main-menu {
  display: flex;
}

.scrollpane-with-indicators {
  overflow-x: auto;
}

.scroll-indicator-right {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 40px;
  opacity: 0; /* set via js */
  pointer-events: none;

  background: linear-gradient(
    to left,
    rgba(0, 0, 0, 0.55),
    rgba(11, 11, 11, 0)
  );

  z-index: 10;
}

.scroll-indicator-left {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 40px;
  opacity: 0; /* set via js */
  pointer-events: none;

  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.55),
    rgba(11, 11, 11, 0)
  );

  z-index: 10;
}

.codeblock {
  font-family: "Consolas,courier new";
}

body {
  margin: 0;
}

h2 {
  font-family: "Roboto", sans-serif;
  font-weight: 400;
}

h3 {
  font-family: "Roboto", sans-serif;
  font-weight: 400;
}

.bottom-nav {
  list-style-type: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background-color: #333;
  position: fixed;
  width: 100%;

  bottom: 0;
}

blockquote {
  background-color: rgba(216, 216, 216, 0.671);
  border-left: solid 5px rgb(113, 0, 128);
  padding-left: 1em;
  padding-right: 1em;
  padding-bottom: 3px;
}

blockquote p:before {
  content: '"';
}

blockquote p:after {
  content: '"';
}

.basic-button {
  background-color: #333;
  color: #eaeaea;
  padding-left: 1em;
  padding-right: 1em;
  padding-top: 0.5em;
  padding-bottom: 0.5em;
}

.basic-button:active {
  background-color: black;
}

.card-entry a {
  color: #444;
  border-bottom: solid 0px black;
  text-decoration: none;
}

.captioned-image {
  margin: 0px;
}
.captioned-image img {
  max-width: 100%;
  display: flex;
  box-shadow: 5px 5px 5px gray;
  max-width: 95%;
  margin-bottom: 1em;
  position: relative;
  margin: 0 auto;
}

a {
  color: #444;
  border-bottom: solid 1px rgb(53, 53, 116);
  text-decoration: none;
}

pre {
  overflow: scroll;
}

a:hover {
  border-bottom-color: #b3b8ff;
  background-color: var(--link-hover-color);
}

.nav-button a:hover:not(.active) {
  background-color: #111;
}

.active {
  background-color: rgb(47, 75, 47);
}

.copyright {
  display: block;
  color: white;
  text-align: center;
  padding: 14px 16px;
  font-family: "Raleway", sans-serif;
  font-weight: 200;
  font-size: 1.1em;
}

body,
html {
  height: 100%;
  font-family: "Roboto", sans-serif;
  font-weight: 300;
}

.post {
  font-family: "Roboto", sans-serif;
  font-weight: 300;
  padding: 1em;
  /* float:left;*/
}
.post-title {
  font-family: "Roboto", sans-serif;
  font-weight: 400;
}

.nobreak {
  white-space: nowrap !important;
  word-break: unset;
  word-wrap: unset !important;
  overflow-wrap: unset;
  -moz-hyphens: unset !important;
  --ms-hyphens: unset !important;
  hyphens: unset !important;
}

/* The hero image */
.hero-image {
  /* Use "linear-gradient" to add a darken background effect to the image. This will make the text easier to read */
  background-image:
    linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.5)),
    url("/images/full/herokuva2.jpg");

  /* Set a specific height */
  height: 50%;

  /* Position and center the image to scale nicely on all screens */
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
}

/* The hero image */
.hero-image-about {
  /* Use "linear-gradient" to add a darken background effect to the image. This will make the text easier to read */
  background-image:
    linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.5)),
    url("/images/full/herokuva3.jpg");

  /* Set a specific height */
  height: 50%;

  /* Position and center the image to scale nicely on all screens */
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
}

/* Place text in the middle of the image */
.hero-text {
  text-align: left;
  position: absolute;
  top: 90%;
  padding-left: 1em;
  transform: translate(0, -50%);
  color: white;
  font-size: 3em;
  font-family: "Raleway", sans-serif;
}

@media only screen and (max-width: 600px) {
  .hero-text {
    font-size: 2em;
  }

  .post-text > p {
    font-size: 1em;
    text-align: justify;
  }
}

.video {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%;
}

.project {
  display: flex;
  padding: 5px;
  margin: 5px;
}

code {
  font-size: 1.2em;
  background-color: rgba(236, 236, 236, 0.671);
  border-radius: 0.5em;
  padding: 0.2em;
}

.author-footer {
  margin-top: 3em;
  background-color: var(--background-color);
  display: flex;
  padding: 5px;
  overflow: hidden;
  border-radius: 4px;
  margin-bottom: 1em;
}
.author-img {
  border: 0.2em solid var(--white);
  max-width: 5em;

  float: left;
}

.author-signature {
  font-size: 1.5em;
}
.author-signature-box {
  padding-left: 10px;
}

.blog-entry {
  display: table-row;
  border-bottom: solid white 2em;
  border: solid 1px red;
}

.blog-img-div {
  width: 15%;
  display: table-cell;
  padding: 5px;

  border: solid 1px red;
}

.post-link {
  text-decoration: wavy;
  border-bottom: none;
  display: inline-block;
  justify-content: start;
}

.post img {
  display: flex;
  box-shadow: 5px 5px 5px gray;
  max-width: 95%;
  margin-bottom: 1em;
  position: relative;
  margin: 0 auto;
}

.thumb-img {
  width: 100%;
  height: 100%;
}

.post-info {
  width: 50%;
}

.card-listing {
  width: 100%;
}

.card-entry {
  display: flex;
  border: solid 1px black;
  box-shadow: 5px 5px 5px var(--shadow-color);
  width: 95%;
  margin-bottom: 1em;
  position: relative;
  padding: 0.5em;
}

.boxed-item {
  border: solid 1px black;
  box-shadow: 5px 5px 5px var(--shadow-color);
  width: 95%;
  margin-bottom: 1em;
  position: relative;
  padding: 0.5em;
}

/*
.plain-card{
  box-shadow:none;
  padding:0%;
  padding-bottom: 0em;
  line-height: 1;
}*/
/*
.plain-card h3{
  margin-top: 0;
  margin-bottom: 0;
}*/

.shadow-box {
  display: flex;
  border: solid 1px black;
  box-shadow: 5px 5px 5px var(--shadow-color);
  width: 95%;
  margin-bottom: 1em;
  position: relative;
}

.card-entry:hover {
  background-color: var(--link-hover-color);
}

.card-description a {
  position: relative;
  color: #0073e6;
  z-index: 50;
}

.card-description h2 {
  margin-top: 0;
  padding-top: 0;
}

.card-entry a:hover {
  border-bottom-color: #b3b8ff;
  text-decoration: none; /* Remove underline on hover */
  background-color: transparent; /* Ensure no background color on hover */
}

.card-description a:hover {
  background-color: var(--link-hover-color);
}

.card-link {
  text-decoration: wavy;
  border-bottom: none;
  justify-content: start;
}

.card-title {
  padding-top: 0;
  margin: 00;
}

.card-description {
  vertical-align: top;
  padding-bottom: 1em;
  font-family: "Robota", sans-serif;
  font-weight: 300;
  margin-left: 0.5em;
}

.card-image-container {
  max-width: 25%;
  width: 20%;
  min-width: 20%;
}
.card-image {
  max-width: 100%;
  margin: auto;
}

.card-image-container-small {
  max-width: 15%;
  width: 15%;
  min-width: 15%;
}

.overlaylink {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
}

@media only screen and (max-width: 780px) {
  .card-entry {
    margin-left: 1vw;
  }

  .card-image-container {
    max-width: 30%;
    width: 30%;
    min-width: 30%;
    padding: 5px;
  }
}

.ghlink {
  text-decoration: underline;
}

.mono {
  font-family: "Monospace";
}

.pager {
  width: 95%;
}

h1,
.page-heading {
  font-family: "Roboto", sans-serif;
  font-weight: 200;
  font-size: 1.8em;
  max-width: 800px;
  color: var(--title-color);
}

h1 {
  font-family: "Roboto", sans-serif;
  font-weight: 200;
  font-size: 1.8em;
}

h2 {
  font-family: "Roboto", sans-serif;
  font-weight: 300;
}

h3 {
  font-family: "Roboto", sans-serif;
  font-weight: 300;
  font-size: 1.8em;
}

.pagerbtn {
  max-width: 40%;
  padding-top: 1em;
  padding-bottom: 1em;
  padding-left: 0.3em;
  display: inline-block;
  text-align: center;
}

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

.slight-increase {
  font-size: 1.1rem;
  text-decoration: underline;
  text-decoration-color: #eaeaea;
}

.subtle-gray {
  color: #333;
  text-wrap: nowrap;
}

.gitlablink::before {
  background-image: url("/images/static/project-headers/gitlab-logo.png");
  height: 1.2em;
  width: 1.5em;
  background-size: 1.5em 1.2em;
  display: inline-block;
  content: "";
}

.toggle-group input[type="radio"] {
  display: none;
}

.toggle-group label {
  display: inline-block;
  padding: 8px 16px;
  border: 1px solid #ccc;
  margin-right: 4px;
  cursor: pointer;
  background-color: #f0f0f0;
  border-radius: 4px;
  user-select: none;
}

.toggle-group input[type="radio"]:checked + label {
  background-color: #ccc;
  border-style: inset;
}

.collapsible {
  max-height: 0px;
  overflow: hidden;
  transition: max-height 0s ease;
}
.show {
  max-height: 200px;
}

.copyright a {
  color: white;
  text-align: center;
  padding: 14px 16px;
  font-family: "Raleway", sans-serif;
  font-weight: 200;
  border-bottom: none;
}

.copyright a:hover {
  background-color: transparent;
  border-bottom: none;
}

.cmd {
  background-color: #444;
  color: #eaeaea;
  padding: 0.5em;
  font-size: 1.5em;
}

.snippet {
  background-color: #efefef;

  padding: 0.5em;
}

.update-message {
  font-weight: bold;
  color: #665;
}
