/*! HTML5 Boilerplate v9.0.1 | MIT License | https://html5boilerplate.com/ */

/* main.css 3.0.0 | MIT License | https://github.com/h5bp/main.css#readme */
/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */
@font-face {
  font-family: 'National2Regular';
  src: url('/font/National2-Regular.woff2') format('woff2');
  font-display: swap;
}

@font-face {
  font-family: 'National2Medium';
  src: url('/font/National2-Medium.woff2') format('woff2');
  font-display: swap;
}

@font-face {
  font-family: 'National2Bold';
  src: url('/font/National2-Bold.woff2') format('woff2');
  font-display: swap;
}

@font-face {
  font-family: 'DartmouthRuzickaRegular';
  src: url('/font/DartmouthRuzicka-Regular.woff2') format('woff2');
  font-display: swap;
}

@font-face {
  font-family: 'DartmouthRuzickaBold';
  src: url('/font/DartmouthRuzicka-Bold.woff2') format('woff2');
  font-display: swap;
}

html {
  color: #222;
  font-size: 1em;
  line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * Customize the background color to match your design.
 */

::-moz-selection {
  background: #b3d4fc;
  text-shadow: none;
}

::selection {
  background: #b3d4fc;
  text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid #ccc;
  margin: 1em 0;
  padding: 0;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
  vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
  resize: vertical;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers
 */

.hidden,
[hidden] {
  display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * https://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 *
 * 1. For long content, line feeds are not interpreted as spaces and small width
 *    causes content to wrap 1 word per line:
 *    https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
 */

.visually-hidden {
  border: 0;
  clip: rect(0, 0, 0, 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
  /* 1 */
}

/*
 * Extends the .visually-hidden class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.visually-hidden.focusable:active,
.visually-hidden.focusable:focus {
  clip: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  position: static;
  white-space: inherit;
  width: auto;
}

/*
 * Hide visually and from screen readers, but maintain layout
 */

.invisible {
  visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * The use of `table` rather than `block` is only necessary if using
 * `::before` to contain the top-margins of child elements.
 */

.clearfix::before,
.clearfix::after {
  content: "";
  display: table;
}

.clearfix::after {
  clear: both;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 35em) {
  /* Style adjustments for viewports that meet the condition */
}

@media print,
  (-webkit-min-device-pixel-ratio: 1.25),
  (min-resolution: 1.25dppx),
  (min-resolution: 120dpi) {
  /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   https://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
  *,
  *::before,
  *::after {
    background: #fff !important;
    color: #000 !important;
    /* Black prints faster */
    box-shadow: none !important;
    text-shadow: none !important;
  }

  a,
  a:visited {
    text-decoration: none;
  }

  a[href]::after {
    content: " (" attr(href) ")";
  }

  abbr[title]::after {
    content: " (" attr(title) ")";
  }

  /*
   * Don't show links that are fragment identifiers,
   * or use the `javascript:` pseudo protocol
   */
  a[href^="#"]::after,
  a[href^="javascript:"]::after {
    content: "";
  }

  pre {
    white-space: pre-wrap !important;
  }

  pre,
  blockquote {
    border: 1px solid #999;
    page-break-inside: avoid;
  }

  tr,
  img {
    page-break-inside: avoid;
  }

  p,
  h2,
  h3 {
    orphans: 3;
    widows: 3;
  }

  h2,
  h3 {
    page-break-after: avoid;
  }
}


body {
  font-family: 'National2Regular', sans-serif;
  line-height: 1.6;
  margin: 0;
  padding: 0 1rem;
  max-width: 900px;
  margin: auto;
  text-align: justify;
}

a,
a:visited {
  text-decoration: none;
  color: #00693e;
  transition: color 0.3s ease;
}

a:hover {
  color: #ffa00f;
}

h1, h2, h3 {
  color: #1a1a1a;
}
h1.title {
  font-size: 1.8rem;
  margin: 1.5rem 0 0.5rem;
  font-family: 'DartmouthRuzickaBold', serif;
}
h2{
  font-family: 'DartmouthRuzickaBold', serif;
}
h3.title{
  font-size: 1.5rem;
  margin: 1rem 0 0.5rem;
  font-family: 'DartmouthRuzickaRegular', serif;
}
strong {
  font-family: 'National2Bold', sans-serif;
}
.header {
  padding: 2rem 0 0;
}
.links {
  display: block;
  margin: 0 auto 0.5rem;
}
pre {
  background: #f4f4f4;
  padding: 1rem;
  overflow-x: auto;
}
.figure {
  margin: 2rem 0 0.7rem;
}
.figure img {
  max-width: 100%;
  -webkit-user-drag: none;
  user-select: none;
}
.demo-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin: 1rem 0 2rem;
}
.demo-card {
  margin: 0;
  padding: 0.75rem;
  background: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 8px;
  text-align: center;
}
.demo-card img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  -webkit-user-drag: none;
  user-select: none;
}
.demo-card figcaption {
  margin-top: 0.5rem;
  color: #555;
  font-size: 0.95rem;
}
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
}
th, td {
  border: 1px solid #ccc;
  padding: 0.5rem;
  text-align: left;
}
th {
  background: #f0f0f0;
}

.abstract {
  border: none;
  background: #f9f9f9;
  padding: 1rem;
  margin: 0 0 2rem;
  color: #555;
  font-size: 1.07rem;
  line-height: 1.5;
  border-radius: 1em;
}

.center {
  text-align: center;
}
.list-inline {
	list-style: none;
	margin-left: -0.5em;
	margin-right: -0.5em;
	padding-left: 0;
}

.list-inline > li {
	display: inline-block;
	margin-left: 0.5em;
	margin-right: 0.5em;
}

.btn, a.btn {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  margin: 0 0.2rem 0.4rem;
  background-color: #00693e;
  color: white;
  text-decoration: none;
  border-radius: 0.25rem;
  transition: background-color 0.3s ease;
}

.btn:hover {
  /*background-color: #ffa00f;*/
  /*background opacity*/
  background-color: #ffa00f;
  color: white;
}


hr {
    height: 2px;
    padding: 0;
    margin: 1rem 0;
    background-color: #eff0f1;
    border: 0
}

.site-footer {
    padding: 2rem 0;
    margin-top: 2rem;
    border-top: solid 1px #eff0f1
}

.site-footer-owner {
    display: block;
    font-weight: bold;
}

.site-footer-credits {
    color: #819198
}

.bibtex-wrapper {
  position: relative;
  background-color: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 8px;
  /*padding: 16px;*/
  font-family: 'Courier New', monospace;
  font-size: 14px;
  line-height: 1.5;
  overflow-x: auto;
}

.bibtex-wrapper pre{
  display: grid;
  margin: 0;
}
.bibtex-wrapper pre::-webkit-scrollbar {
  display: none;
}

.copy {
  position: relative;
  bottom: 40px;
  right: 8px;
  display: block;
  text-align: right;
  width: 120px;
  float: right;
  user-select: none;
}

.copy-btn {
  background-color: #007acc;
  color: white;
  border: none;
  padding: 5px 10px;
  font-size: 12px;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s ease-in-out;
  user-select: none;
}

.copy-btn:hover {
  background-color: #005fa3;
}

.copy-success {
  display: none;
  top: 12px;
  right: 85px;
  font-size: 12px;
  color: green;
  padding-right: 10px;
}
.clearfix {
  clear: both;
}

@media (max-width: 500px) {
.math-formula{
  font-size: 0.55rem;
}
}
@media (min-width: 500px) and (max-width: 650px) {
.math-formula{
  font-size: 0.7rem;
}
}
@media (min-width: 650px) {
.math-formula{
  font-size: 1rem;
}
}

.pop-message {
  position: fixed;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(0, 149, 87, 0.87);
  color: white;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
  z-index: 9999;
}

.pop-message.show {
  opacity: 1;
}
