@font-face {
  font-family: 'MPlus1c';
  src: url('../fonts/MPlus-1c-NerdFont-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
}

:root,
[data-md-color-scheme="slate"] {
  --md-primary-fg-color: #4a9ab5;
  --md-primary-fg-color--light: #80c1dd;
  --md-primary-fg-color--dark: #357a94;
  --md-accent-fg-color: #80c1dd;
  --md-accent-fg-color--transparent: rgba(128, 193, 221, 0.1);
  --md-text-font: 'MPlus1c', monospace;
  --md-code-font: 'MPlus1c', monospace;
}

[data-md-color-scheme="slate"] {
  --md-typeset-a-color: #80c1dd;
}

.md-header {
  background-color: var(--md-primary-fg-color);
}

.md-header__topic:first-child .md-ellipsis {
  font-size: 0;
}

.md-header__topic:first-child .md-ellipsis::after {
  content: "cannoli_OS Docs";
  font-size: 0.9rem;
}

.md-nav__link--active {
  color: var(--md-primary-fg-color--light) !important;
  font-weight: 700;
}


.md-content__inner > h1:first-child {
  display: none;
}

.md-content__inner > h1:first-child + * {
  margin-top: 0 !important;
}

.md-content__inner {
  margin-top: 0;
  padding-top: 0;
}


.hero {
  text-align: center;
  margin: 0 auto;
  min-height: calc(100vh - 7rem);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 4rem;
  max-width: 1200px;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 450px;
  white-space: nowrap;
}

.hero-device {
  position: relative;
  flex-shrink: 1;
  width: 590px;
  min-width: 300px;
}

.device-frame {
  width: 100%;
  height: auto;
  display: block;
  position: relative;
  z-index: 2;
  pointer-events: none;
}

.device-screen {
  position: absolute;
  z-index: 1;
  top: 4.1%;
  left: 9.1%;
  width: 81.8%;
  height: 48.3%;
  object-fit: cover;
  border-radius: 6px;
}

.device-screen-content {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  z-index: 3;
  top: 4.1%;
  left: 9.1%;
  width: 81.8%;
  height: 48.3%;
  background: #000;
  border-radius: 6px;
  transition: opacity 0.6s ease;
}

.device-screen-content.fade-out {
  opacity: 0;
  pointer-events: none;
}

.device-screen-content h1,
.device-screen-content h3,
.device-screen-content a {
  display: none !important;
}

.device-screen-content img {
  width: 80px;
  height: auto;
}

.device-above-logo {
  display: none;
}

.device-below-btn {
  display: none;
}

@media (max-width: 900px) {
  .hero {
    flex-direction: column;
    gap: 0;
  }

  .hero-content {
    display: none;
  }

  .hero-device {
    display: block;
    width: 380px;
    max-width: 90vw;
  }

  .device-screen-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: absolute;
    z-index: 3;
    top: 4.1%;
    left: 9.1%;
    width: 81.8%;
    height: 48.3%;
    border-radius: 6px;
    background: #000;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    text-align: center;
    transition: opacity 0.6s ease;
    gap: 0.2rem;
  }

  .device-screen-content.fade-out {
    opacity: 0;
    pointer-events: none;
  }

  .device-screen-content h1,
  .device-screen-content h3,
  .device-screen-content .md-button {
    display: block !important;
    font-family: 'MPlus1c', monospace;
    font-weight: 700;
  }

  .device-screen-content h1 {
    font-size: 1.2rem;
    margin: 0.2rem 0 !important;
    color: #fff;
  }

  .device-screen-content h3 {
    font-size: 0.5rem;
    margin: 0 0 0.3rem 0 !important;
    color: #aaa;
  }

  .device-screen-content .md-button {
    font-size: 0.4rem;
    padding: 0.2em 0.5em;
    margin: 0.15rem;
    border-width: 1px;
  }

  .device-screen-content img {
    width: 60px;
    height: auto;
  }

  .device-above-logo {
    display: block;
    position: absolute;
    top: -5rem;
    left: 0;
    right: 0;
    text-align: center;
    visibility: hidden;
  }

  .device-above-logo.visible {
    visibility: visible;
  }

  .device-below-btn {
    display: block;
    position: absolute;
    bottom: -3rem;
    left: 0;
    right: 0;
    text-align: center;
    visibility: hidden;
  }

  .device-below-btn.visible {
    visibility: visible;
  }

  .device-below-btn .md-button {
    font-size: 0.7rem;
  }

  .hero h3 {
    font-size: 0.75rem;
  }

  .md-footer-meta__inner {
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
  }

  .md-social {
    margin: 0;
    padding: 0;
  }
}

.hero p,
.hero h1,
.hero h3 {
  margin: 0 !important;
  padding: 0;
}

.hero h1 {
  display: block;
  color: #ffffff;
}

.hero h3 {
  margin-bottom: 0.5em !important;
}

.hero .md-button {
  margin: 0.25rem;
  padding: 0.5em 1em;
  border-radius: 0.4rem;
  border-width: 2px;
  font-size: 0.7rem;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.hero .md-button--primary {
  background-color: #f5e6ca;
  border-color: #f5e6ca;
  color: #1a1a2e;
}

.hero .md-button--primary:hover {
  background-color: #faf0dc;
  border-color: #faf0dc;
  color: #1a1a2e;
}

.md-footer {
  background-color: #4a9ab5;
}

.md-typeset table {
  width: 100%;
}

.hero .md-button--accent {
  background-color: #d9a06a;
  border-color: #d9a06a;
  color: #1a1a2e;
}

.hero .md-button--accent:hover {
  background-color: #e2b07e;
  border-color: #e2b07e;
  color: #1a1a2e;
}

.hero .md-button:not(.md-button--primary):not(.md-button--accent) {
  background-color: #f5e6ca;
  border-color: #f5e6ca;
  color: #1a1a2e;
}

.hero .md-button:not(.md-button--primary):not(.md-button--accent):hover {
  background-color: #faf0dc;
  border-color: #faf0dc;
  color: #1a1a2e;
}

.hero-social {
  display: flex;
  gap: 1.25rem;
  margin-top: 1rem;
  justify-content: center;
}

.hero-social a {
  display: flex;
  align-items: center;
}

.hero-social svg {
  width: 24px;
  height: 24px;
  fill: #888;
  transition: fill 0.2s;
}

.hero-social a:hover svg {
  fill: #ccc;
}
