:root {
  --text-black: #181818;
  --color-accent: #4878a6;
  --color-accent-lighter: #6d99c2;
}
body {
  margin: 0;
  padding: 0;
  color: #323232;
  background-color: #e3e8ec;
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
}
body.subpage {
  background-color: #e3e8ec;
}
a {
  color: var(--color-accent);
}
a:hover {
  color: black;
  text-decoration: underline;
}
a.lmath-secondary-link {
  color: #5f7d98;
  text-decoration: none;
  font-weight: bold;
}
a.lmath-secondary-link:hover {
  color: #1a4366;
}
h1,
h2,
h3,
h4 {
  font-family: 'Cal Sans', sans-serif;
  font-weight: 400;
}
pre,
code,
tt,
.mono,
.code,
.pre {
  font-family: 'DM Mono', monospace;
}
code {
  display: inline-block;
  color: #323232;
  background-color: rgba(0, 0, 0, 0.05);
  border-radius: 4px;
  padding: 0 4px;
}
strong,
b {
  font-weight: bold;
}
.alert {
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-bottom: 3px solid rgba(0, 0, 0, 0.2);
  border-radius: 4px;
}
.l-front-card {
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto min-content;
  justify-items: center;
  width: calc(100% - 16px);
  height: calc(100% - 16px);
  overflow: hidden;
  background-image: url('../assets/formulas.png'), url('../assets/top_bg.svg');
  background-size: cover, cover;
  background-position: center, center;
  background-repeat: repeat, no-repeat;
  border-radius: 16px;
  margin: 8px;
}
.l-front-card .l-front-card-carousel {
  width: 100%;
  max-width: 1000px;
  box-sizing: border-box;
  align-self: center;
}
.l-front-card .l-front-card-carousel .carousel-wrapper {
  text-align: center;
  display: block;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  height: 100%;
  color: white;
}
.l-front-card .l-front-card-carousel .carousel-wrapper .logo {
  width: 100%;
  max-width: 200px;
}
.l-front-card .l-front-card-carousel .carousel-wrapper h1 {
  font-size: calc(100% + 3vw);
}
@media screen and (min-width: 1450px) {
  .l-front-card .l-front-card-carousel .carousel-wrapper h1 {
    font-size: calc(64px);
  }
}
.l-front-card .l-front-card-carousel .carousel-wrapper .lead {
  font-weight: 400;
  font-size: calc(100% + 0.5vw);
}
.l-front-card .ld-front-card-image {
  display: block;
  width: calc(100% - 32px);
  max-width: 1200px;
  height: 40vh;
  object-fit: contain;
  object-position: center;
  background-image: url('../assets/eyecatcher2.png');
  background-size: cover;
  background-position: top center;
  background-repeat: no-repeat;
  filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.3));
}
@media screen and (max-width: 750px) {
  .l-front-card .ld-front-card-image {
    background-size: 100vh;
    background-position: top left;
    width: 100%;
    height: 30vh;
    margin-left: 32px;
  }
}
.btn-lmath {
  display: inline-block;
  font-size: 20px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  border: 1px solid white;
  border-bottom: 3px solid white;
  border-radius: 6px;
  color: #ffffff;
  padding: 0.2em 1em;
  transition: all 0.15s ease-in-out;
  text-decoration: none;
}
.btn-lmath:hover {
  background-color: white;
  color: var(--text-black);
  text-decoration: none;
}
.btn-lmath-base {
  display: inline-block;
  font-size: 20px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  border: 1px solid var(--color-accent);
  border-radius: 6px;
  padding: 0.2em 1em;
  transition: all 0.15s ease-in-out;
  text-decoration: none;
}
.btn-lmath-blue {
  display: inline-block;
  font-size: 20px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  border-radius: 6px;
  padding: 0.2em 1em;
  transition: all 0.15s ease-in-out;
  text-decoration: none;
  border: 1px solid var(--color-accent);
  border-bottom: 3px solid var(--color-accent);
  color: var(--color-accent);
}
.btn-lmath-blue:hover {
  background-color: var(--color-accent-lighter);
  color: white;
  text-decoration: none;
  border: 1px solid rgba(0, 0, 0, 0.3);
  border-bottom: 3px solid rgba(0, 0, 0, 0.3);
}
.btn-lmath-blue-fill {
  display: inline-block;
  font-size: 20px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  border: 1px solid var(--color-accent);
  border-radius: 6px;
  padding: 0.2em 1em;
  transition: all 0.15s ease-in-out;
  text-decoration: none;
  border: 1px solid rgba(0, 0, 0, 0.3);
  border-bottom: 3px solid rgba(0, 0, 0, 0.3);
  background-color: var(--color-accent-lighter);
  color: white;
}
.btn-lmath-blue-fill:hover,
.btn-lmath-blue-fill:active {
  background-color: var(--color-accent-lighter);
  filter: brightness(115%);
  color: white;
  border: 1px solid rgba(0, 0, 0, 0.3);
  border-bottom: 3px solid rgba(0, 0, 0, 0.3);
  text-decoration: none;
}
.btn-lmath-blue-fill:active {
  transform: scale(0.95);
}
.btn-success {
  display: inline-block;
  font-size: 20px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  border: 1px solid var(--color-accent);
  border-radius: 6px;
  padding: 0.2em 1em;
  transition: all 0.15s ease-in-out;
  text-decoration: none;
  border: 1px solid rgba(0, 0, 0, 0.3);
  border-bottom: 3px solid rgba(0, 0, 0, 0.3);
  background-color: #43a169;
}
.btn-success:hover,
.btn-success:active {
  background-color: #43a169;
  filter: brightness(115%);
  color: white;
  border: 1px solid rgba(0, 0, 0, 0.3);
  border-bottom: 3px solid rgba(0, 0, 0, 0.3);
  text-decoration: none;
}
.lmath-top-menu,
.lmath-index-menu {
  user-select: none;
}
.lmath-top-menu.lmath-top-menu,
.lmath-index-menu.lmath-top-menu {
  background-image: url('../assets/top_bg.svg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.lmath-top-menu > .container,
.lmath-index-menu > .container {
  max-width: 1000px;
}
.lmath-top-menu .nav-item .nav-link,
.lmath-index-menu .nav-item .nav-link {
  color: white;
  font-family: 'DM Sans', sans-serif;
  font-size: 20px;
  font-weight: 400;
  padding: 4px 8px;
  margin: 0 2px;
  line-height: 100%;
  border-radius: 1px;
  transition: all 0.1s ease-in-out;
  user-select: none;
}
.lmath-top-menu .nav-item .nav-link:hover,
.lmath-index-menu .nav-item .nav-link:hover {
  background-color: rgba(255, 255, 255, 0.3);
  border-radius: 4px;
}
.lmath-top-menu .nav-item .nav-link.active,
.lmath-index-menu .nav-item .nav-link.active {
  background-color: white;
  color: var(--text-black);
  border-radius: 4px;
}
.lmath-top-menu .nav-item .nav-link:focus-visible,
.lmath-index-menu .nav-item .nav-link:focus-visible {
  outline: 2px solid white;
}
.lmath-top-menu.lmath-index-menu .nav-item .nav-link,
.lmath-index-menu.lmath-index-menu .nav-item .nav-link {
  color: var(--color-accent);
  margin: 0 5px;
}
.lmath-top-menu.lmath-index-menu .nav-item:first-child,
.lmath-index-menu.lmath-index-menu .nav-item:first-child {
  display: none;
}
.lmath-maxwidth {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
}
.lmath-card {
  display: block;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-bottom: 3px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  background-color: #f1f1f1;
}
.lmath-card .lmath-card {
  background-color: #ffffff97;
  border-color: rgba(0, 0, 0, 0.2);
  border-radius: 4px;
}
.lmath-intro-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  justify-content: center;
  width: 100%;
  max-width: 1000px;
  margin: 44px auto;
}
@media screen and (max-width: 850px) {
  .lmath-intro-row {
    grid-template-columns: 1fr;
  }
}
.lmath-intro-row img {
  display: block;
  width: 100%;
  max-width: 600px;
  border: 1px solid rgba(0, 0, 0, 0.2);
  box-sizing: border-box;
  border-radius: 8px;
  transform: scale(1.04);
}
@media screen and (max-width: 850px) {
  .lmath-intro-row img {
    max-width: 400px;
    margin: 0 auto;
  }
}
.lmath-intro-row .p-4 {
  padding-left: 2em !important;
  padding-right: 2em !important;
}
.lmath-intro-row p {
  font-size: 18px;
}
.lmath-footer {
  border-top: 2px solid rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 1200px;
  margin: 16px auto;
  padding: 16px;
  font-size: 13px;
}
.lmath-huge-icon {
  font-size: 50px;
}
.lmath-huge-title {
  font-size: calc(100% + 3vw);
}
.lmath-checksum {
  font-size: 10px;
  font-family: 'DM Mono', monospace;
}
.lmath-big-header {
  margin-top: 48px;
  margin-bottom: 48px;
}
.lmath-small {
  font-size: 80%;
  line-height: 120%;
}
.lmath-card-link {
  text-decoration: none;
}
.lmath-card-link:hover {
  text-decoration: underline;
  color: black;
}
.lmath-content-width {
  width: 100%;
  max-width: 850px;
}
.lmath-blog-post {
  overflow: hidden;
}
.lmath-blog-post img {
  max-width: 100%;
}
.lmath-blog-post-thumbnail {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 6;
  object-fit: cover;
  object-position: center;
}
.lmath-news-tag-cloud {
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
}
.lmath-news-tag-cloud .tag {
  display: inline-block;
  margin-right: 8px;
  text-decoration: none;
  font-weight: bold;
}
.text-lmath {
  color: var(--color-accent);
}
.lmath-front-image-scroller {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
}
.lmath-front-image-scroller img {
  box-sizing: border-box;
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  object-position: center;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-bottom: 3px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  overflow: hidden;
  grid-area: 1 / 1 / 2 / 2;
}
.lmath-user-feedback {
  display: flex;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-left: 8px solid var(--color-accent);
  border-radius: 4px;
  padding: 1em;
  gap: 16px;
  background-color: #f1f1f1;
}
.lmath-user-feedback .feedback-quote-symbol {
  line-height: 50%;
  font-size: 100px;
  font-family: 'Times New Roman', serif;
  font-weight: bold;
  margin-top: 20px;
}
.lmath-front-big-number {
  margin-bottom: 2em;
}
.lmath-front-big-number h1 {
  font-size: calc(100% + 4vw);
}
.lmath-front-big-number h1.first {
  background: linear-gradient(11deg, #f59b42 0%, #a12d93 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.lmath-front-big-number h1.second {
  background: linear-gradient(11deg, #3bcfed 0%, #3e00a1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.lmath-front-big-number h1.third {
  background: linear-gradient(11deg, #166e00 2%, #8bfc74 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.lmath-toc {
  background-color: rgba(255, 255, 255, 0.5);
}
.lmath-toc h3 {
  font-family: 'DM Mono', monospace;
  font-size: 20px;
  font-weight: bold;
}
kbd,
.kbd {
  display: inline-block;
  border: 1px solid gray;
  border-bottom: 3px solid gray;
  border-radius: 4px;
  background-color: rgba(255, 255, 255, 0.5);
  color: black;
  font-size: 13px;
  font-family: 'DM Mono', monospace;
  padding: 3px 5px;
  line-height: 110%;
}
.ld-tile-link {
  display: block;
  box-sizing: border-box;
  background-color: #5c9edc;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-bottom: 3px solid rgba(0, 0, 0, 0.2);
  border-radius: 4px;
  text-align: center;
  color: white;
  transition: ease-in-out 0.1s all;
}
small {
  display: inline-block;
  font-size: 12px;
  line-height: 100%;
}
:root {
  --form-border-color: #a1a1a1;
}
input.form-control,
select.form-select,
textarea.form-control {
  border: 1px solid var(--form-border-color);
  border-bottom: 3px solid var(--form-border-color);
  border-radius: 5px;
}
input.form-control:active,
select.form-select:active,
input.form-control:focus,
select.form-select:focus,
textarea.form-control:active,
textarea.form-control:focus {
  border-color: var(--color-accent) !important;
  box-shadow: none;
  outline: 2px solid color-mix(in srgb, var(--color-accent) 30%, transparent 50%);
}
.form-sink {
  display: block;
  border: 2px solid #d9d9d9;
  border-radius: 8px;
  background-color: rgba(255, 255, 255, 0.51);
  box-sizing: border-box;
}
.form-sink > h5 {
  font-size: 18px;
  display: block;
  margin-top: -12px;
  margin-left: 16px;
  margin-bottom: 20px;
  letter-spacing: 1px;
}
.form-sink > h5 .form-sink-title {
  display: inline-block;
  padding: 0 7px;
  border-left: 3px solid #f1f1f1;
  border-right: 3px solid #f1f1f1;
  border-radius: 8px;
  font-weight: bold;
  background-color: var(--color-accent-lighter);
  color: #ffffff;
  line-height: 120%;
  text-shadow: 0 0 2px rgba(0, 0, 0, 0.654);
}
.lang-icon {
  display: inline-block;
  width: 20px;
  height: 20px;
  vertical-align: middle;
  margin-top: -4px;
  border-radius: 50%;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}
.lang-icon.fi {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' id='flag-icons-fi' viewBox='0 0 512 512'%3E%3Cpath fill='%23fff' d='M0 0h512v512H0z'/%3E%3Cpath fill='%23002f6c' d='M0 186.2h512v139.6H0z'/%3E%3Cpath fill='%23002f6c' d='M123.2 0h139.6v512H123.1z'/%3E%3C/svg%3E%0A");
}
.lang-icon.en {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' id='flag-icons-gb' viewBox='0 0 512 512'%3E%3Cpath fill='%23012169' d='M0 0h512v512H0z'/%3E%3Cpath fill='%23FFF' d='M512 0v64L322 256l190 187v69h-67L254 324 68 512H0v-68l186-187L0 74V0h62l192 188L440 0z'/%3E%3Cpath fill='%23C8102E' d='m184 324 11 34L42 512H0v-3zm124-12 54 8 150 147v45zM512 0 320 196l-4-44L466 0zM0 1l193 189-59-8L0 49z'/%3E%3Cpath fill='%23FFF' d='M176 0v512h160V0zM0 176v160h512V176z'/%3E%3Cpath fill='%23C8102E' d='M0 208v96h512v-96zM208 0v512h96V0z'/%3E%3C/svg%3E%0A");
}
