body {
  background: #181c24;
  color: #e0e0e0;
  font-family: 'Fira Mono', 'Consolas', 'Menlo', monospace;
  margin: 0;
  min-height: 100vh;
}
.navbar {
  background: #23283b;
  padding: 0 24px;
  display: flex;
  align-items: center;
  height: 56px;
  box-shadow: 0 2px 8px #0004;
  position: sticky; /* Make navbar stick to top */
  top: 0; /* Stick to the top */
  z-index: 100; /* Ensure it's above other content */
}
.navbar .logo {
  font-size: 1.5em;
  font-weight: bold;
  color: #ba1923;
  margin-right: 40px;
  letter-spacing: 2px;
}
.navbar nav {
  margin-left: 32px;
  flex: 1 1 auto;
  align-items: center; /* Vertically center nav items */
  display: flex; /* Ensure align-items works */
}
.navbar nav a {
  color: #e0e0e0;
  text-decoration: none;
  margin-right: 24px;
  font-size: 1.1em;
  transition: color 0.2s;
}
.navbar nav a:hover, .navbar nav a.active {
  color: #ba1923;
}
.github-btn {
  margin-left: auto;
  display: flex;
  align-items: center;
  height: 100%;
  padding-left: 16px;
  transition: opacity 0.15s;
  opacity: 0.85;
}
.github-btn:hover,
.github-btn:focus {
  opacity: 1;
}
.github-btn img.github-icon {
  height: 20px;
  width: 20px;
  min-width: 20px;
  min-height: 20px;
  max-width: 20px;
  max-height: 20px;
  margin: 0;
  padding: 0;
  border-radius: 6px;
  background: none;
  box-shadow: none;
  display: block;
}
.github-icon {
  height: 30px;
  width: 30px;
  display: block;
  border-radius: 6px;
  background: none;
  box-shadow: none;
  transition: box-shadow 0.15s, transform 0.12s;
}
.github-btn:hover .github-icon,
.github-btn:focus .github-icon {
  box-shadow: 0 2px 8px #0004;
  transform: scale(1.08);
}
.container {
  max-width: 1000px; /* Increased max-width */
  margin: 40px auto 0 auto;
  background: #23283b;
  border-radius: 12px;
  box-shadow: 0 4px 32px #000a;
  padding: 32px 32px 24px 32px;
}
h1 {
  color: #ba1923;
  margin-top: 0;
  font-size: 2.2em;
  letter-spacing: 1px;
}
.logo-img {
  height: 36px;
  vertical-align: middle;
  margin-right: 12px;
  border-radius: 6px;
}
.placeholder {
  color: #888;
  font-style: italic;
  margin: 32px 0;
  text-align: center;
}
.container h3 {
  color: #ba1923;
  font-size: 1.5em;
  text-align: center;
  margin-bottom: 20px;
  text-shadow: 1px 1px 2px #0006;
}

/* Hamburger styles */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 28px;
  height: 28px;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: 0;
  margin-right: 0;
  z-index: 102;
  position: static;
  padding: 0;
}
.hamburger:focus,
.hamburger:active {
  outline: none;
  background: none;
  box-shadow: none;
  border: none;
}
.hamburger span {
  display: block;
  width: 18px;
  height: 2.5px;
  background: #ba1923;
  margin: 3px 0;
  border-radius: 2px;
  transition: background 0.18s;
}
.hamburger.active span {
  background: #ffffff;
}

/* Hide the menu-github button by default (desktop), show navbar-github */
.menu-github { display: none; }
.navbar-github { display: flex; }

/* Responsive navbar for mobile */
@media (max-width: 800px) {
  .navbar {
    flex-wrap: nowrap;
    position: sticky;
    height: 56px; /* Same height as desktop */
    justify-content: flex-start;
    align-items: center;
  }
  .logo-img {
    order: 0;
    margin-right: 0;
  }
  nav {
    order: 1;
    margin-left: 0;
    flex: unset;
  }
  .hamburger {
    display: flex;
    margin-left: auto;
    margin-right: 0;
    order: 3;
  }
  .navbar nav {
    position: fixed;
    top: 0;
    left: auto;
    right: -260px;
    width: 240px;
    height: 100vh;
    background: #23283b;
    flex-direction: column;
    align-items: flex-start;
    padding: 56px 0 8px 0;
    box-shadow: -2px 0 12px #0006;
    z-index: 100;
    display: flex;
    transition: right 0.22s cubic-bezier(0.4, 0.2, 0.2, 1);
    box-sizing: border-box;
  }

  .navbar.menu-open nav {
    right: 0;
  }

  /* Regular navbar github button */
  .navbar > .github-btn {
    display: none !important;
  }

  /* Menu github button */
  .navbar nav .github-btn {
    position: absolute;
    top: 0;
    left: 0;
    width: 56px;
    height: 56px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
    border-bottom: none;
    z-index: 101;
  }

  .navbar:not(.menu-open) .github-btn {
    display: none !important;
  }

  .navbar nav a {
    width: 100%;
    padding: 14px 24px;
    border-bottom: 1px solid #2226;
    margin: 0;
  }
}

.buttons {
  display: flex;
  flex-direction: row; /* Display side by side */
  align-items: flex-start;
  justify-content: space-around; /* Distribute items evenly */
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.buttons.editor-downloads {
  margin-top: 16px;
}

.platform {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 300px; /* Limit width for each platform */
}

.platform p {
  font-size: 1.1em;
  line-height: 1.6;
  margin-bottom: 20px;
}

.button {
  background: #ba1923;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 12px 36px;
  font-size: 1.1em;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 8px #0002;
  transition: background 0.18s, color 0.18s, transform 0.12s;
  text-decoration: none;
  outline: none;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 240px;
  justify-content: center;
  margin-bottom: 0; /* Reset margin */
}

.button.small {
  padding: 10px 18px;
  font-size: 1.0em;
  min-width: 210px;
}

.button.secondary {
  background: rgba(35, 40, 59, 0.92);
  border: 1px solid #2d3449;
}

.button:hover,
.button:focus {
  background: #d62d2d;
  color: #fff;
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 4px 16px #0003;
}

.button.secondary:hover,
.button.secondary:focus {
  background: rgba(42, 48, 67, 0.92);
  color: #fff;
}

/* Container styling */
.devlog-dropdown {
  margin-bottom: 1rem;
  border: 1px solid #ba1923;
  border-radius: 8px;
  overflow: hidden;
  background: #384057;
}

/* Header/Toggle area */
.devlog-dropdown summary {
  padding: 1rem;
  cursor: pointer;
  background: #384057;
  list-style: none;
  display: flex;
  align-items: center;
  user-select: none; /* Prevents text highlighting on double-click */
}

.devlog-dropdown summary h3 {
  margin: 0;
  display: inline-block;
  color: #fff;
}

/* Add a custom arrow */
.devlog-dropdown summary::before {
  content: "▶";
  font-size: 0.8rem;
  margin-right: 10px;
  transition: transform 0.3s ease; /* Kept only the arrow rotation transition */
  color: #ba1923;
}

.devlog-dropdown[open] summary::before {
  transform: rotate(90deg);
}

/* Content area */
.devlog-content {
  padding: 1rem;
  background: #181c24;
  border-top: 1px solid #ba1923;
}