.md-typeset h1 {
  margin-bottom: 0em; /* adjust as needed */
}

@keyframes heart {
    0%, 40%, 80%, 100% {
      transform: scale(1);
    }
    20%, 60% {
      transform: scale(1.15);
    }
  }
  .heart {
    animation: heart 1000ms infinite;
  }

  :root {
    --md-admonition-icon--important: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512" width="1024px" height="1024px"><path d="M488.1,220.9L279.1,11.9c-15.3-15.3-42.1-15.7-59.1,0L11.9,220.9c-15.9,15.9-16,41.8,0,59.1l208,208c7.7,7.7,18.1,11.9,29.2,11.9s21.5-4.1,29.9-11.9l208-208c16.6-16.6,17-43.1,1-59.1ZM234,144c0-2,1-4,4-4h23c2,0,4,1,4,4v145c0,2-1,4-4,4h-23c-2,0-4-1-4-4v-145ZM266,357c0,2-1,4-4,4h-24c-2,0-4-1-4-4v-27c0-2,1-4,4-4h24v1c2,0,4,1,4,4v26Z"/></svg>')
  }
  .md-typeset .admonition.important,
  .md-typeset details.important {
    border-color: rgb(213, 69, 22);
  }
  .md-typeset .important > .admonition-title,
  .md-typeset .important > summary {
    background-color: rgba(155, 75, 43, 0.2);
  }
  .md-typeset .important > .admonition-title::before,
  .md-typeset .important > summary::before {
    background-color: rgb(213, 69, 22);
    -webkit-mask-image: var(--md-admonition-icon--important);
            mask-image: var(--md-admonition-icon--important);
  }


  #discord-widget {
    background-color: #5865F2;
    color: #E0E3FF;
    border-radius: 10px;
    padding-left: 10px;
    padding-right: 10px;
    padding-top: 0.5px;
    padding-bottom: 10px;
    margin-top: 1em;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    text-align: center;
  }
  
  .discord-header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5em;
  }
  
  .discord-join-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5em;
    padding: 0.5em 1em;
    background-color: #23272A;
    color: #FFFFFF;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    transition: background-color 0.3s;
  }
  
  .discord-join-btn:hover {
    background-color: #7c87fc;
  }
  
  .discord-icon {
    width: 20px;
    height: 20px;
    vertical-align: middle;
  }
  
  .visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .image-heading {
    text-indent: -9999px;
    position: absolute;
    width: 01px;
    height: 0px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
    display: block;
  }
 
  .md-content {
    /*padding-top: 100px;  Adjust as needed */
}

/*.banner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: #fff;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.banner img {
    max-width: 100%;
    height: auto;
}*/

.banner {
  width: 100%;
  /*background-color: #fff;*/
  text-align: center;
  /*margin-bottom: 1rem; /* Adds space between banner and content */
}

.banner img {
  max-width: 100%;
  height: auto;
}

.centered-image {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

#queue { 
  width: 100%; 
  background: var(--md-default-bg-color, white); 
  border-radius: 8px; 
  box-shadow: 0 2px 8px rgba(0,0,0,0.1); 
  /*padding: 10px; */
  padding-top: 1px;
  padding-bottom: 5px;
  padding-right: 10px;
  padding-left: 10px;
  transition: background-color 0.3s ease;
}

.card { 
  padding: 10px; 
  border-bottom: 1px solid var(--md-typeset-border-color, #626262); 
  display: flex; 
  align-items: center; 
}
.card:last-child { border-bottom: none; }
.card .md-icon { 
  margin-right: 10px; 
  color: var(--md-accent-fg-color, #0079bf); 
  flex-shrink: 0; 
  font-size: 1.2em;
}
.card a { 
  text-decoration: none; 
  color: var(--md-typeset-color, #333); 
  transition: color 0.3s ease;
}
.card a:hover { text-decoration: underline; }

a.card-link center {
    width: fit-content;
    display: block;
    margin: 0 auto;
}

a.card-link .card-title {
    font-size: 1.5em;
}

a.card-link {
    color: initial; 
}


.large-text-card {
  font-size: calc(var(--md-typeset-font-size) * 5.1);
  color: var(--md-typeset-color);
}

.card-large-text {
  font-size: 0.80rem;
  font-weight: 600;
  line-height: 1.3;
  align-items: flex-start;
  display: block;
  padding-bottom: 1.25em;
}

.card-small-text {
  font-size: 0.65rem;
  font-weight: 100;
  line-height: 1.3;
  align-items: flex-start;
  display: block;
  padding-bottom: 0.25em;
}

.text-h3 {
  display: block;
  font-size: var(--md-typeset-h3-font-size);
  font-weight: var(--md-typeset-h3-font-weight);
  line-height: var(--md-typeset-h3-line-height);
  color: var(--md-typeset-h3-color, var(--md-typeset-color));
}

.image-header img {
  display: block;
  margin: 1em auto; /* center the image */
  max-width: 100%;  /* scale for responsive design */
  height: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

.header-visually-hidden {
  position: absolute;
  margin: 0;
  padding: 0;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.header-hidden {
  position: absolute;   /* remove from normal flow */
  width: 1px;
  height: 1px;
  padding: 0;
  margin: 0;            /* remove Material's heading margin */
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
  line-height: 0;       /* collapse any leftover height */
  white-space: nowrap;   /* prevent line wrapping */
}

.header-anchor-only {
  position: absolute;  /* remove from flow */
  width: 1px;
  height: 1px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
  white-space: nowrap;
}

.header-small {
  margin: 0;
  font-size: 0.1em;
  line-height: 0.1em;
  padding: 0;
}


/* Make H3 and its children use flex layout for perfect vertical alignment */
h3,
h3 a {
  display: inline-flex;
  align-items: center; /* vertically centers text and image */
  gap: 0.4em;          /* space between image and text */
}

/* Specifically target your header icons */
h3 img.h3-icon {
  height: 1em;         /* same height as text */
  flex-shrink: 0;      /* prevent image from squishing */
  position: relative;
  top: 0;              /* reset any theme offset */
}

/* Optional: remove extra underline or hover decoration */
h3 a {
  text-decoration: none;
}




.image-carousel {
  display: flex;
  flex-wrap: nowrap;             /* prevent wrapping */
  overflow-x: auto;              /* horizontal scroll */
  gap: 0.5rem;
  padding: 0.5rem 0;
  -webkit-overflow-scrolling: touch; /* smooth scroll on iOS */
  scrollbar-width: thin;
  scrollbar-color: #aaa #f0f0f0;
  scroll-snap-type: x mandatory;     /* enable snap */
}

.image-carousel a {
  flex: 0 0 auto;               /* keep links side by side */
  display: block;               /* ensure flex item behaves */
  scroll-snap-align: start;     /* snap each image to start */
}

.image-carousel img {
  display: block;               /* remove inline spacing */
  height: 180px;                /* default desktop height */
  width: auto;                  /* maintain aspect ratio */
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.image-carousel img:hover {
  transform: scale(1.05);
}

/* Scrollbar styling */
.image-carousel::-webkit-scrollbar {
  height: 8px;
}

.image-carousel::-webkit-scrollbar-thumb {
  background: #aaa;
  border-radius: 4px;
}

.image-carousel::-webkit-scrollbar-track {
  background: #f0f0f0;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .image-carousel img {
    height: 140px;
  }
}

@media (max-width: 480px) {
  .image-carousel img {
    height: 120px;
  }
}

.social-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 420px;
}

.social-links a {
  display: flex;
  align-items: center;
  gap: 0.9rem;

  padding: 0.85rem 1rem;
  border-radius: 10px;

  background: var(--md-primary-fg-color);
  color: white;

  font-weight: 600;
  text-decoration: none;

  transition: transform 0.15s ease, box-shadow 0.15s ease,
              background-color 0.15s ease;
}

.social-links a:hover {
  background: var(--md-accent-fg-color);
  transform: translateY(-1px);
  box-shadow: var(--md-shadow-z2);
  color: white;
}

.social-links .md-icon {
  font-size: 1.3rem;
  color: inherit;
}

.svg-inline--fa {
  display: inline-block;
  width: 1em;
  height: 1em;
  vertical-align: -0.125em;
}
