/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@400;500;700&family=Work+Sans:wght@400;500;700&display=swap');

/* Body and Layout */
body {
  background-color: #F5F0FF;
  font-family: 'Work Sans', sans-serif; /* default font for body text */
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  width: 75%;
  margin: 2rem auto 0 auto;
  flex: 1;
}

header, footer {
  text-align: center;
  padding: 1rem;
  background-color: #F5F0FF;
}

.row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  align-items: center;
  gap: 1rem;
}

.col {
  flex: 1 1 100%;
  max-width: 800px;
}

/* Headings in Fira Code */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Fira Code', monospace;
  font-size: 2.25rem;
  font-weight: 500; /* medium-bold for headings */
  line-height: 1.3;
  margin-bottom: 1rem;
  text-align: left; /* left-aligned like AntD */
}

/* h2 specific styling */
h2 {
  color: #CF4D6F;
}

/* h3 specific styling */
h3 {
  color: #CC7E85;
}

/* Body text in Work Sans */
p {
  font-family: 'Work Sans', sans-serif;
  font-size: 1rem;
  line-height: 1.75;
  color: rgba(0, 0, 0, 0.85);
  text-align: left;
}

/* Links */
a {
  font-family: 'Work Sans', sans-serif;
  font-size: 1rem;
  line-height: 1.75;
  color: #7A1FF0;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Bouncing emoji animation */
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

.emoji.bounce {
  display: inline-block;
  animation: bounce 2s infinite;
}

/* Card styles */
.card-overview {
  max-width: 240px;
  margin: 2rem auto;
}

.card-overview small {
  color: var(--sl-color-neutral-500);
}

.card-overview [slot='footer'] {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Card image thumbnail styling */
.card-overview [slot='image'] {
  width: 100%;
  height: 150px; /* Fixed height for thumbnail */
  object-fit: cover; /* Crop to center without warping */
  object-position: center; /* Center the crop */
}

/* Breadcrumb styling */
sl-breadcrumb sl-breadcrumb-item[href]::part(base):hover {
  text-decoration: underline !important;
}
sl-breadcrumb {
  --sl-color-primary-600: #7A1FF0;
  --sl-color-primary-700: #7A1FF0;
  --sl-color-primary-500: #7A1FF0;
  --sl-color-primary-800: #7A1FF0;
}
