.homepage .md-hero {
  position: relative;
  overflow: hidden;
  color: var(--md-primary-bg-color--light);
  padding: 3.5rem 1rem;
  display: flex;
  flex-direction: column;
  text-align: center;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  transition: all 0.5s;
}

.homepage .md-hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 1;
  background-color: rgb(46, 46, 46) !important; 
  background-image: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)), url("../assets/examples/health-bar-raylib.gif");
  background-size: cover;
  background-position: center;
  filter: blur(10px);
  transform: scale(1.1);
}

.homepage .md-hero:hover {
  box-shadow: 0 0 20px 2px rgba(178, 181, 255, 0.6);
  transform: translateY(-5%);
}

.homepage .md-hero__inner {
  position: relative;
  z-index: 2;
  align-self: center;
  justify-self: center;
}

.homepage .md-hero h2 {
  margin: 0;
  font-size: 3.5rem;
  letter-spacing: 8px;
  font-weight: 700;
  color: rgb(232, 228, 233, 1.0);
}

.homepage .md-hero p {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  opacity: 0.85;
}

.homepage .md-hero a {
  margin-right: 1rem;
}

.homepage .md-hero .md-button--primary {
  background-color: rgb(80, 118, 214);
  color: rgb(255, 255, 255);
  border: none;
  font-size: medium;
  font-weight: 800;
  width: auto;
  padding: 0.5rem 1.2rem;
}

.homepage .md-hero .md-button--secondary {
  color: rgb(255, 255, 255);
  border: none;
  font-size: medium;
  font-weight: 800;
  width: auto;
  padding: 0.5rem 1.2rem;
}

.homepage .md-hero .md-button--primary:hover {
  background-color: rgba(118, 116, 186, 0.9);
}

.homepage .md-hero .md-button--secondary:hover {
  background-color: rgba(118, 116, 186, 0.9);
}

.homepage .hero-section-2 {
    background-color: rgb(221, 236, 255);
}

.grid > * {
  margin-bottom: 1.5rem; 
}

.grid img {
  width: 100%;
  height: auto;
  display: block;
}

@media screen and (min-width: 60em) {
  .grid {
    grid-template-columns: repeat(auto-fit, minmax(calc(50% - 0.5rem), 1fr)) !important;
    display: flex;
    align-items: stretch;
  }

  .grid > * {
    margin-bottom: 0;
  }

  .grid .highlight, 
  .grid img {
    height: 27rem;
    max-height: 27rem;
    box-sizing: border-box;
  }

  .grid .highlight pre {
    height: 100%;
    overflow-y: auto;
  }

  .grid img {
    width: auto;
    object-fit: contain;
  }
}

/* extra */

.md-sidebar--secondary {
  display: none;
}

.md-header {
  height: 60px;
}

.md-content {
  margin-right: 0;
}

.md-header__button.md-logo img {
  height: 40px;
  width: auto;
}

.md-typeset img {
  border-radius: 15px;
}

.md-typeset .cui-collapse {
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
  border-radius: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

.md-typeset .cui-collapse > summary {
  background: transparent !important;
  border: none !important;
  margin: 0.6em 0 0.6em !important;
  padding: 0 !important;
  min-height: auto !important;
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4em;
  font-weight: 700;
  font-size: 1.75em;
  color: var(--md-default-fg-color);
}

.md-typeset .cui-collapse > summary::before,
.md-typeset .cui-collapse > summary::after {
  display: none !important;
}
.md-typeset .cui-collapse > summary::-webkit-details-marker {
  display: none;
}

.cui-collapse-chevron {
  display: inline-flex;
  font-size: 1em;
  color: var(--md-default-fg-color--light);
  transition: transform 0.2s ease;
}
.cui-collapse[open] .cui-collapse-chevron {
  transform: rotate(90deg);
}

.md-typeset .cui-collapse-content {
  margin: 0;
  padding: 0;
  font-size: medium;
}

.md-banner {
  background-color: rgb(255, 95, 47);
  color: white; 
}

.discord-banner-link {
  color: rgb(225, 185, 255);
}