* {box-sizing: border-box;}

html, body {
    height: 100%;
    margin: 0;
}

body {
    display: flex;
    flex-direction: column;
  font-family: Arial, Helvetica, sans-serif;
  background-color: #0e0e0e;
}

main {
    flex: 1;
    color: #ffffff;
    margin: 0px 20px;
}

header {
  overflow: visible;
  background-color: #2b2b2b;
  padding: 5px 10px;
}

header a {
  float: left;
  color: #ffffff;
  text-align: center;
  padding: 12px;
  text-decoration: none;
  font-size: 18px; 
  line-height: 25px;
  border-radius: 4px;
}

header a.logo {
  font-size: 25px;
  font-weight: bold;
  color: white;
}

header a:hover {
  color: #d8d8d8;
}

header a.active {
  color: #00ffbf;
}

.header-right {
  float: right;
}

footer {
  background: #2b2b2b;
  color: white;
  padding: 0px 10px;
  font-size: 14px
}

@media screen and (max-width: 500px) {
  .header a {
    float: none;
    display: block;
    text-align: left;
  }
  
  .header-right {
    float: none;
  }
}

.title, .subtitle {
    color: #00ffbf;
}

.card {
    border: 1px solid white;
    border-radius: 10px;
    padding: 0px 20px;
    padding-bottom: 20px;
}

.card-title {
    color: #00ffbf;
}

.card-content {}

.hyperlink {
    color: #00ffbf;
}

.hyperlink:hover {
    color: #00d39e;
}

li {
  margin: 5px;
}

/* Docs */

.docs-layout {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
}

.docs-menu {
    width: 260px;
    flex-shrink: 0;
}

.warning-text {
    color: #ff6666;
    font-weight: bold;
}

.note-text {
    color: #66b2ff;
    font-weight: bold;
}

.option-text {
    color: #ffff66;
    font-weight: bold;
}

.docs-image {
    max-width: 100%;
    height: auto;
}

.docs-menu button.toggle {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    margin-right: 0.25rem;
}

.docs-categories,
.docs-list {
    overflow: hidden;
    transition: max-height 0.25s ease, opacity 0.2s ease;
}

.collapsed {
    max-height: 0;
    opacity: 0;
    pointer-events: none;
}

.docs-categories:not(.collapsed),
.docs-list:not(.collapsed) {
    max-height: 1000px; /* large enough */
    opacity: 1;
}

/* Collapsible sections */
.software-section,
.category-section {
    margin-bottom: 0.5rem;
}

.software-title {
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    padding: 0.5rem 0;
    user-select: none;
    list-style-position: outside;
}

.software-title:hover {
    color: #00ffbf;
}

.category-section {
    margin-left: 0.75rem;
    margin-top: 0.25rem;
}

.category-title {
    font-weight: bold;
    cursor: pointer;
    padding: 0.25rem 0;
    user-select: none;
    font-size: 0.95rem;
}

.category-title:hover {
    color: #00ffbf;
}

.docs-list {
    margin-top: 0.25rem;
    padding-left: 1.25rem;
}

details > summary {
    list-style: none;
}

details > summary::-webkit-details-marker {
    display: none;
}

details > summary::before {
    content: '▶';
    display: inline-block;
    margin-right: 0.5rem;
    transition: transform 0.2s;
    font-size: 0.7em;
}

details[open] > summary::before {
    transform: rotate(90deg);
}