:root {
  --body-color: #212529;
  --body-strong-color: #121416;
  --body-color-rgb: 33, 37, 41;
  --body-bg: #fff;
  --body-bg-rgb: 255, 255, 255;
  --link-color: #0949a9;
  --link-color-rgb: 9, 73, 169;
  --link-decoration: none;
  --link-hover-color: #0a58ca;
  --link-hover-color-rgb: 10, 88, 202;
  --link-visted: #551a8b;
  --border-color: #a2a5a8;
  --primary: #0d6efd;
  --primary-rgb: 13, 110, 253;
  --primary-text: #0d6efd;
  --primary-text-rgb: 13, 110, 253;
  --success: #84bfa3;
  --success-rgb: 132, 191, 163;
  --success-text: #198754;
  --success-text-rgb: 25, 135, 84;
  --warning: #ffc107;
  --warning-rgb: 255, 193, 7;
  --danger: #dc3545;
  --danger-rgb: 220, 53, 69;
  --danger-text: #dc3545;
  --danger-text-rgb: 220, 53, 69;
  --code-color: #9c2560;
  --code-bg: #f9f9f9;
  --code-border: #dedede;
  --alert-color: #055160;
  --alert-bg: #cff4fc;
  --scrollbar-track-bg: #e8e8e8;
  --scrollbar-thumb-bg: #b9b9b9;
  --scrollbar-thumb-hover-bg: #8b8b8b;
  --t-selection: #d4359f33;
}

@media (prefers-color-scheme: dark) {
  :root {
    --body-color: #adb5bd;
    --body-strong-color: #d1d5da;
    --body-color-rgb: 173, 181, 189;
    --body-bg: #141618;
    --body-bg-rgb: 20, 22, 24;
    --link-color: #6ea8fe;
    --link-hover-color: #8bb9fe;
    --link-color-rgb: 110, 168, 254;
    --link-hover-color-rgb: 139, 185, 254;
    --link-visted: #c58af9;
    --border-color: #495057;
    --primary: #0a51b9;
    --primary-rgb: 10, 81, 185;
    --primary-text: #264066;
    --primary-text-rgb: 38, 64, 102;
    --success: #13633e;
    --success-rgb: 19, 99, 62;
    --success-text: #66af8d;
    --success-text-rgb: 102, 175, 141;
    --warning: #664e03;
    --warning-rgb: 255, 193, 7;
    --danger: #a12733;
    --danger-rgb: 161, 39, 51;
    --danger-text: #e87883;
    --danger-text-rgb: 232, 120, 131;
    --code-color: #ce9178;
    --code-bg: #101010;
    --code-border: #333;
    --alert-color: #6edff6;
    --alert-bg: #032830;
    --scrollbar-track-bg: #35393c;
    --scrollbar-thumb-bg: #5e6063;
    --scrollbar-thumb-hover-bg: #86888a;
    --t-selection: #d4359f66;
  }
}

@page {
  size: A4;
  margin: 20mm;
}

@font-face {
  font-family: 'Roboto Flex';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url(/assets/fonts/roboto-combined.woff2?v=8YmylWiyao) format('woff2');
  unicode-range: U+0000, U+000D, U+0020-007E, U+00A0-00FF, U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+1EA0-1EF9, U+20AB;
}

@font-face {
  font-family: 'Roboto Flex';
  font-style: normal;
  font-weight: 700;
  font-stretch: 100%;
  font-display: swap;
  src: url(/assets/fonts/roboto-combined.woff2?v=8YmylWiyao) format('woff2');
  unicode-range: U+0000, U+000D, U+0020-007E, U+00A0-00FF, U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+1EA0-1EF9, U+20AB;
}

*,
:after,
:before {
  box-sizing: border-box;
}

a,
abbr,
acronym,
article,
audio,
b,
big,
body,
caption,
center,
dd,
del,
div,
dl,
dt,
em,
footer,
form,
h1,
h2,
h3,
h4,
h5,
h6,
header,
html,
i,
iframe,
img,
label,
legend,
menu,
nav,
p,
section,
small,
span,
strike,
strong,
sub,
sup,
table,
tbody,
td,
tfoot,
th,
thead,
tr,
u,
video {
  border: 0;
  margin: 0;
  padding: 0;
}

article,
details,
footer,
header,
menu,
nav,
section {
  display: block;
}

body {
  margin: 2.5rem auto 5rem;
  padding: 1.5rem;
  max-width: 40rem;
  color: var(--body-color);
  background-color: var(--body-bg);
  font-family: 'Roboto Flex', sans-serif;
}

@media print {
  body {
    margin: 0;
    padding: 0;
    max-width: none;
  }
}

h1,
h2 {
  text-align: center;
}

h1 {
  font-weight: 400;
}

table {
  margin: 1.5rem 0;
  width: 100%;
  border: 2px solid var(--border-color);
  border-collapse: collapse;
  border-spacing: 0;
}

th,
td {
  padding: 0.5rem 1rem;
  border: 1px solid var(--border-color);
  text-align: center;
}

a {
  text-decoration: none;

  &:hover {
    text-decoration: underline;
  }
}

footer {
  margin-top: 3.75rem;
  text-align: center;

  a {
    color: var(--link-color);

    &:hover {
      color: var(--link-hover-color);
    }
  }
}

.page-break {
  page-break-before: always;
}

.text-left {
  text-align: left;
}

.text-center {
  text-align: center;
}

.l {
  margin-top: 2.5rem;
  text-align: center;
}
@media print {
  .l {
    margin: 0;
  }
}
.l__solar-month {
  font-size: 1.125rem;
}
.l__solar-day {
  font-size: 3.75rem;
  font-weight: 700;
  line-height: 1;
  margin: 0.3125rem 0;
}
.l__week-day {
  font-size: 1.125rem;
}
.l__lunar-stats {
  align-items: center;
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 1.5rem auto 1.75rem;
  max-width: 37.5rem;
}
.l__lunar-day {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0;
}
.l__day-event {
  font-weight: 700;
  margin: 0 auto 0.625rem;
  max-width: 37.5rem;
  padding: 0.25rem 0.625rem;
}
.l__day-state,
.l__hour-zodiac {
  margin: 0.625rem auto;
  max-width: 25rem;
}
.lt {
  margin: 1.5rem auto;
  max-width: 37.5rem;
}
.lt tr td,
.lt tr th {
  padding: 0 !important;
}
[data-theme='light'] .lt tr td,
[data-theme='light'] .lt tr th {
  border-color: #888;
}
@media print {
  .lt__cell-command,
  .lt__month-year {
    display: none !important;
  }
}
.lt__cell-command:hover {
  background-color: rgba(var(--success-rgb), 0.5);
}
.lt__cell-command-btn {
  background-color: #0000;
  border: 2px solid #0000;
  color: var(--body-color);
  cursor: pointer;
  display: block;
  height: 100%;
  line-height: 1;
  margin: 0;
  padding: 0.5rem 0;
  width: 100%;
}
.lt__week-day-head {
  background-color: rgba(var(--success-rgb), 0.5);
  height: 3.75rem;
}
.lt__week-day-head.active {
  font-size: 1.25rem;
  font-weight: 700;
}
.lt__cell {
  margin: 0;
  padding: 0;
}
.lt__cell:hover > button {
  background-color: rgba(var(--success-rgb), 0.5);
}
.lt__cell-inner {
  background-color: #0000;
  border: 2px solid #0000;
  color: var(--body-color);
  cursor: pointer;
  display: block;
  height: 100%;
  line-height: 1;
  margin: 0;
  padding: 0.875rem 0 0.75rem;
  width: 100%;
}
@media (min-width: 768px) {
  .lt__cell-inner {
    padding: 1.25rem 0 1.125rem;
  }
}
.lt--current-month {
  background-color: rgba(var(--body-bg-rgb), 0.9);
}
.lt--other-month {
  background-color: rgba(var(--body-color-rgb), 0.2);
}
.lt--active-day {
  background-color: rgba(var(--primary-rgb), 0.3);
}
@media not print {
  [data-theme='dark'] .lt--active-day {
    background-color: rgba(var(--primary-rgb), 0.5);
  }
  .lt--today {
    border-color: var(--primary);
  }
}
.lt__cell-solar {
  font-size: 1.25rem;
}
.lt__cell-lunar {
  font-size: 0.875rem;
  margin-top: 0.5rem;
}
.l__hour {
  min-width: 6.25rem;
  width: 20%;
}
.l__hour--good {
  color: var(--success-text);
}
.l__hour--bad {
  color: var(--danger-text);
}

.l__state {
  padding: 1rem;
}

#floating-button {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 3.5rem;
  height: 3.5rem;
  background-color: var(--primary);
  color: var(--body-bg);
  border: none;
  border-radius: 50%;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  z-index: 1000;
  color: var(--body-color);
}
