:root {
  --theme-color: #22B0AF;
  --theme-color-rgb: 255, 0, 55;
  --selected-color: #22B0AF;
  --sidebar-width: 250px;
}

body {
  /* font-family: 'Roboto', sans-serif; */
  font-family: "Lato", sans-serif;
  margin: 0;
  background-color: #fff;
  color: #333;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.h1,
.h2,
.h3,
.h4,
.h5,
.h6,
h1,
h2,
h3,
h4,
h5,
h6,
p {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-weight: 500;
  line-height: 1.2;
}
.documentation-container {
  display: flex;
  min-height: 100vh;
  position: relative;
}

.sidebar {
  width: var(--sidebar-width);
  /* background-color: #f5f5f5; */
  background-color: #fff;
  box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
  padding-top: 0;
  position: fixed;
  top: 0;
  left: -100%;
  height: 100%;
  overflow-y: auto;
  transition: left 0.3s ease-in-out;
  z-index: 999;
}

.sidebar.active-sidebar {
  left: 0;
}

.sidebar-header {
  /* background-color: var(--theme-color); */
  padding: 50px 20px 25px 20px;
  border-bottom: 2px dashed var(--theme-color);
  margin-bottom: 30px;
  display: flex;
  gap: 15px;
}
@media (max-width: 992px) {
  .sidebar-header {
    padding: 70px 20px 25px 20px;
  }
}
.sidebar-header .theme-name {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 3px;
}
.sidebar-header .content p {
  font-size: 15px;
}
.sidebar-header img {
  max-width: 40px;
}

.sidebar ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.sidebar li a {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  text-decoration: none;
  color: #424242;
  transition: background-color 0.3s, color 0.3s;
  position: relative;
}
.sidebar li a::before {
  position: absolute;
  content: "";
  height: 100%;
  width: 2px;
  background: var(--theme-color);
  top: 0;
  left: 0;
  visibility: hidden;
  opacity: 0;
  transition: all 0.3s ease;
  transform: scale(0);
}
.sidebar li a.active {
  color: var(--selected-color);
  background-color: #e0e0e0;
}
.sidebar li a.active::before {
  visibility: visible;
  opacity: 1;
  transform: scale(1);
}
.sidebar li a:hover:not(.active) {
  background-color: #eee;
}
.sidebar li a:hover::before {
  visibility: visible;
  opacity: 1;
  transform: scale(1);
}
.sidebar-icon {
  padding-right: 10px;
  font-size: 20px;
  width: 25px;
  text-align: center;
}
.main-content {
  flex-grow: 1;
  padding: 16px;
  margin-left: 0;
  transition: margin-left 0.3s ease-in-out;
  width: 100%;
  box-sizing: border-box;
}

.section {
  padding: 16px;
}

.section-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 16px;
}

.section-intro,
.section-setup,
.section-run,
.section-publish,
.section-support,
.section-folder,
.section-screens,
.section-requirements,
.section-installation {
  padding: 16px;
}

.section-intro p,
.section-folder p,
.section-requirements p,
.section-setup p,
.section-run p,
.section-publish p {
  font-size: 14px;
  font-weight: 400;
  color: #616161;
  line-height: 1.5;
}

.code-block {
  background-color: #f0f0f0;
  border-radius: 6px;
  padding: 12px;
  font-family: monospace;
  word-wrap: break-word;
  margin-top: 10px;
  font-size: 12px;
}

.code-block-run {
  display: block;
  text-align: center;
  background-color: #f0f0f0;
  border-radius: 6px;
  font-family: monospace;
  font-size: 20px;
  width: 100%;
  max-width: 160px;
  /* Ensures it doesn't get too wide on large screens */
  padding: 20px 0;
  /* Adjusted padding */
  box-sizing: border-box;
  margin-top: 10px;
}

.image-container {
  text-align: left;
  margin: 30px 0;
}

.image-container img {
  max-width: 100%;
  /* Ensures images scale down on mobile */
  height: auto;
  border-radius: 8px;
}

.list-item {
  margin: 8px 0;
  padding-left: 15px;
}

.video-cards {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-top: 20px;
}

.video-card {
  width: 100%;
  max-width: none;
}

.video-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 8px;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.package-item {
  padding: 4px 0 4px 16px;
  color: #616161;
  font-size: 14px;
}

.package-item strong {
  color: #333;
}

.link {
  color: var(--theme-color);
  text-decoration: underline;
  cursor: pointer;
}

.heading-2 {
  font-size: 20px;
  font-weight: 700;
  margin-top: 20px;
  margin-bottom: 16px;
}

.nav-toggle {
  display: block;
  position: fixed;
  top: 10px;
  left: 10px;
  background: var(--theme-color);
  color: white;
  border: none;
  padding: 5px 10px;
  border-radius: 5px;
  cursor: pointer;
  z-index: 1000;
  font-size: 20px;
}

footer {
  text-align: center;
  padding: 20px;
  margin-top: 40px;
  color: #616161;
  border-top: 1px solid #e0e0e0;
}

@media (min-width: 900px) {
  .documentation-container {
    display: flex;
  }

  .sidebar {
    display: block;
    left: 0;
    position: fixed;
  }

  .main-content {
    margin-left: var(--sidebar-width);
    padding: 10px 100px;
    padding-top: 40px;
  }

  .section-title {
    font-size: 40px;
  }

  .section-intro,
  .section-setup,
  .section-run,
  .section-publish,
  .section-support {
    padding: 0px 0;
  }

  .section-folder,
  .section-screens,
  .section-requirements,
  .section-installation {
    padding: 16px 0;
  }

  .section-intro p,
  .section-folder p,
  .section-requirements p,
  .section-setup p,
  .section-run p,
  .section-publish p {
    font-size: 16px;
  }

  .list-item {
    padding-left: 30px;
  }

  .video-cards {
    flex-direction: row;
    gap: 20px;
  }

  .video-card {
    flex: 1;
    max-width: 560px;
  }

  .code-block {
    font-size: 14px;
  }

  .code-block-run {
    width: 160px;
  }

  .heading-2 {
    font-size: 24px;
  }

  .nav-toggle {
    display: none;
  }
}
