/*
 * SPDX-FileCopyrightText: 2023-2025 Steffen Vogel <post@steffenvogel.de>
 *
 * SPDX-License-Identifier: Apache-2.0
 */

/**
 * Any CSS included here will be global. The classic template
 * bundles Infima by default. Infima is a CSS framework designed to
 * work well for content-centric websites.
 */

/* You can override the default Infima variables here. */
:root {
  --ifm-color-primary: #46638a;
  --ifm-color-primary-dark: #295b78;
  --ifm-color-primary-darker: #276271;
  --ifm-color-primary-darkest: #20365d;
  --ifm-color-primary-light: #335c92;
  --ifm-color-primary-lighter: #355599;
  --ifm-color-primary-lightest: #3c69ad;
  --ifm-code-font-size: 95%;
  --docusaurus-highlighted-code-line-bg: rgba(0, 0, 0, 0.1);
}

/* For readability concerns, you should choose a lighter palette in dark mode. */
[data-theme='dark'] {
  --ifm-color-primary: #215f3d;
  --ifm-color-primary-dark: #21af90;
  --ifm-color-primary-darker: #1fa588;
  --ifm-color-primary-darkest: #1a8870;
  --ifm-color-primary-light: #29d5b0;
  --ifm-color-primary-lighter: #32d8b4;
  --ifm-color-primary-lightest: #4fddbf;
  --docusaurus-highlighted-code-line-bg: rgba(0, 0, 0, 0.3);
}

.project-logo {
  margin-bottom: 2em;
}

.header-github-link:hover, .header-codeberg-link:hover {
  opacity: 0.6;
}

.header-github-link:before {
  background: url("/img/github_mark.svg");
  background-size: contain;
  content: "";
  display: flex;
  height: 24px;
  width: 24px;
}

[data-theme='dark'] .header-github-link::before {
  background: url("/img/github_mark_white.svg");
}


.header-codeberg-link:before {
  background: url("/img/codeberg.svg");
  background-size: contain;
  content: "";
  display: flex;
  height: 24px;
  width: 24px;
  filter: invert(100%);
  -webkit-filter: invert(100%);
}

[data-theme='dark'] .header-codeberg-link::before {
  filter: invert(0%);
  -webkit-filter: invert(0%);
}
