/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
/* Hamburger icon (three lines) */
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 0.5rem;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: white;
  border-radius: 2px;
  transition: all 0.3s ease;
}
html{
  scroll-behavior: smooth;
}

body {
  font-family:"League Spartan";
  line-height: 1.6;
  color: #333;
}

/* Header */
header {
  background: rgba(255, 107, 0, 1);
  color: white;
  padding: 2rem;
  text-align: center;
  margin-bottom: 1rem;
}

h1 h2 .header {
    max-width: 100%;
}

header h1 {
  font-family: "Libre Baskerville";
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
}
header h2 {
  color: #e8e8e8;
  margin-bottom: 1rem;
  font-size: 1rem;
  font-family: "Libre Baskerville"; 
}

/* Hide checkbox (it's just for state tracking) */
.sidebar-toggle {
  display: none;
}

/* Flexbox Container */
.container {
  display: flex;
  min-height: calc(100vh - 200px);
}

/* Sidebar */

.sidebar { 
  background-image: url(https://snipboard.io/HYEQBK.jpg);
  background-repeat: no-repeat; 
  background-size: cover;
  background-position: center; 
  background-attachment: fixed;
  flex: 0 0 300px; 
  color: white; 
  position: sticky;
  top: 0;
  height: 100vh; 
  overflow-y: auto; 
  isolation: isolate;
}
.sidebar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 107, 0, 0.7);
  z-index: -1;
}

.sidebar ul {
  list-style: none;
}

.sidebar li {
  margin-bottom: 0.5rem;
}

.sidebar a {
  background: rgba(0, 102, 255, 0.73);
  color: #ecf0f1;
  text-decoration: none;
  display: block;
  text-align: center;
  padding: 2rem 1rem;
  border-radius: 4px;
  transition: background 0.3s;
}

.sidebar a:hover {
  background: rgba(50, 82, 123, 0.4);
}


/* Mobile header (hidden on desktop) */
.mobile-header {
  display: none;
  background: rgba(0, 102, 255, 1);
  color: white;
  padding: 1rem 1.5rem;
  align-items: center;
  gap: 1rem;
  position: sticky;
  top: 0;
  z-index: 999;
}

.mobile-header h1 {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 600;
  font-family: "Libre Baskerville";
}


/* Content Area */
.content {
  flex: 1;
  padding: 2rem;
  background-image: url(https://snipboard.io/HYEQBK.jpg);
  background-repeat: no-repeat; 
  background-size: fill;
  background-position: center;
  background-attachment: fixed;
}

.content section {
  /*(background-image: url(https://snipboard.io/HYEQBK.jpg);*/
  background-position: center;
  background-size: cover;
  padding: 2rem;
  margin-bottom: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: relative;
  isolation: isolate;
}

.content section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(52, 52, 52, 0.8);
  border-radius: 8px;
  z-index: -1;
}

.content h2 {
  color: #e8e8e8;
  margin-bottom: 1rem;
  font-size: 1.7rem;
  font-family: "Libre Baskerville";
}

.content h3 {
  color: #e8e8e8;
  margin-bottom: 0.75rem;
  font-size: 1rem;
  font-family: "Libre Baskerville";
}

.content p {
  margin-bottom: 1rem;
  color: #E8E8E8;
  line-height: 1.3;
}

.content ul {
  margin-left: 0;
  margin-top: 0.5rem;
  margin-bottom: 1rem;
  list-style: none;
}

.content li {
  margin-bottom: 0.75rem;
  color: #E8E8E8;
  padding-left: 2.5rem;
  position: relative;
  line-height: 1.6;
}

.content li::before {
  content: '';
  position: absolute;
  left: 0;
  width: 32px; 
  height: 32px; 
  background-image: url(https://snipboard.io/vofFdg.jpg);
  background-size: contain;
  background-repeat: no-repeat;
}
.content strong {
  color: #E8E8E8;
  font-weight: 600;
}

/* Footer */
footer {
  background:rgba(255, 107, 0, 1);
  color: white;
  text-align: center;
  padding: 1.5rem;
}
    footer a {
      color: white;
      text-decoration: none;
      margin: 0 1rem;
      padding: 0.5rem 1rem;
      border-radius: 4px;
      transition: background 0.3s;
      background: rgba(255, 255, 255, 0.2);
    }

    footer a:hover {
      background: rgba(0, 102, 255, 0.73);
    }
div .wrapper{
  max-width:78%;
  min-width:65%;
}

.content pre {
  background: rgba(0, 0, 0, 0.6);
  border-left: 4px solid rgba(255, 107, 0, 0.9);
  border-radius: 4px;
  padding: 1.5rem;
  margin: 1.5rem 0;
  max-width: 90%;
  min-width:65%;
}

.content code {
  font-family: 'Courier New';
  color: rgba(0, 102, 255, 1);
  font-size: 0.9rem;
  line-height: 1.8;
}
.close-btn {
  display: none;
}

/* Mobile Styles */
@media (max-width: 700px) { 
  .close-btn {
  display: block;
  position: absolute;
  right: 1.5rem;
  top: 1.5rem;
  font-size: 2rem;
  cursor: pointer;
  background: none;
  border: none;
  color: white;
  line-height: 1;
}
.sidebar-toggle:checked ~ .container .close-btn {
  display: block;
}
  /* Show mobile header on small screens */ 
  .mobile-header { 
    display: flex; 
  } 
  /* Stack layout vertically on mobile */ 
  .container { 
    flex-direction: column;
  } 
  /* Hide sidebar off-screen on mobile */ 
  .sidebar { 
    position: fixed; 
    top: 0; 
    left: 0; 
    height: 100vh; 
    width: 280px; 
    transform: translateX(-100%); 
    transition: transform 0.3s ease; 
    z-index: 1000; 
  } 
  /* Slide sidebar in when checkbox is checked */ 
  .sidebar-toggle:checked ~ .container .sidebar { 
    transform: translateX(0); 
  } 
  /* Add dark overlay behind sidebar */ 
  .sidebar-toggle:checked ~ .sidebar::before { 
    content: ''; 
    position: fixed; 
    top: 0; 
    left: 280px; 
    right: 0; 
    bottom: 0; 
    background: rgba(0, 0, 0, 0.5); 
    z-index: -1; 
  }
  .content code {
  font-family: 'Courier New';
  color: rgba(0, 102, 255, 1);
  font-size: 0.7rem;
  line-height: 1.8;
}
    footer {
    padding: 24px 16px;
  }
  
  footer a {
    display: block;
    margin: 8px auto;
    max-width: 200px;
  }
}