/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

/* Force Noto Sans JP for headings */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Noto Sans JP', sans-serif !important;
}

/* Walking person animation for Web Demo displays */
@keyframes walk {
  0% {
    transform: translateY(0) rotate(0deg);
  }

  25% {
    transform: translateY(-3px) rotate(-5deg);
  }

  50% {
    transform: translateY(0) rotate(0deg);
  }

  75% {
    transform: translateY(-3px) rotate(5deg);
  }

  100% {
    transform: translateY(0) rotate(0deg);
  }
}

.walking-person {
  display: inline-block;
  animation: walk 0.8s ease-in-out infinite;
}

.walking-person:nth-child(2) {
  animation-delay: 0.1s;
}

.walking-person:nth-child(3) {
  animation-delay: 0.2s;
}

.walking-person:nth-child(4) {
  animation-delay: 0.3s;
}

.walking-person:nth-child(5) {
  animation-delay: 0.4s;
}

/* Influence point increase animation */
@keyframes floatUp {
  0% {
    opacity: 1;
    transform: translateY(0);
  }

  100% {
    opacity: 0;
    transform: translateY(-20px);
  }
}

.animate-float-up {
  animation: floatUp 1.5s ease-out forwards;
}

/* Markdown content styling */
.markdown-content {
  line-height: 1.75;
  font-family: 'Noto Serif JP', serif;
}

.markdown-content h1 {
  font-size: 2em;
  font-weight: 700;
  margin-top: 1.5em;
  margin-bottom: 0.75em;
  color: #1c1917;
  font-family: 'Noto Sans JP', sans-serif;
}

.markdown-content h2 {
  font-size: 1.5em;
  font-weight: 700;
  margin-top: 1.5em;
  margin-bottom: 0.75em;
  color: #1c1917;
  border-bottom: 1px solid #e7e5e4;
  padding-bottom: 0.3em;
}

.markdown-content h3 {
  font-size: 1.25em;
  font-weight: 700;
  margin-top: 1.25em;
  margin-bottom: 0.5em;
  color: #292524;
}

.markdown-content h4,
.markdown-content h5,
.markdown-content h6 {
  font-size: 1em;
  font-weight: 700;
  margin-top: 1em;
  margin-bottom: 0.5em;
  color: #292524;
}

.markdown-content p {
  margin-bottom: 1em;
}

.markdown-content strong {
  font-weight: 700;
  color: #1c1917;
}

.markdown-content em {
  font-style: italic;
}

.markdown-content u {
  text-decoration: underline;
}

.markdown-content del {
  text-decoration: line-through;
  opacity: 0.7;
}

.markdown-content ul,
.markdown-content ol {
  margin-bottom: 1em;
  padding-left: 2em;
}

.markdown-content ul {
  list-style-type: disc;
}

.markdown-content ol {
  list-style-type: decimal;
}

.markdown-content li {
  margin-bottom: 0.5em;
}

.markdown-content li>p {
  margin-bottom: 0.5em;
}

.markdown-content blockquote {
  border-left: 4px solid #d6d3d1;
  padding-left: 1em;
  margin: 1em 0;
  color: #57534e;
  font-style: italic;
}

.markdown-content code {
  background-color: #f5f5f4;
  padding: 0.2em 0.4em;
  border-radius: 3px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.9em;
  color: #dc2626;
}

.markdown-content pre {
  background-color: #292524;
  color: #fafaf9;
  padding: 1em;
  border-radius: 6px;
  overflow-x: auto;
  margin: 1em 0;
}

.markdown-content pre code {
  background-color: transparent;
  padding: 0;
  color: inherit;
  font-size: 0.875em;
}

.markdown-content a {
  color: #2563eb;
  text-decoration: underline;
}

.markdown-content a:hover {
  color: #1d4ed8;
}

.markdown-content hr {
  border: none;
  border-top: 2px solid #e7e5e4;
  margin: 2em 0;
}

.markdown-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1em 0;
}

.markdown-content table th,
.markdown-content table td {
  border: 1px solid #d6d3d1;
  padding: 0.75em;
  text-align: left;
}

.markdown-content table th {
  background-color: #f5f5f4;
  font-weight: 700;
  color: #1c1917;
}

.markdown-content table tr:nth-child(even) {
  background-color: #fafaf9;
}

.markdown-content>*:first-child {
  margin-top: 0;
}

.markdown-content>*:last-child {
  margin-bottom: 0;
}