/* Global Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Body Styling */
body {
  background-color: #ffddba;
  color: black;
  font-family: monospace, georgia;
}

/* Layout Styling */
.layout {
  display: grid;
  grid-template-columns: 1fr 200px; /* Default 2-column layout */
  grid-template-rows: auto 1fr;
  grid-template-areas:
    "header header"
    "content right";
  min-height: 100vh;
  gap: 1rem; /* space between elements */
  padding: 1rem; /* space from viewport edges */
  margin: 0 auto;
  max-width: 1200px;
}

/* Header Styling */
.header {
  grid-area: header;
  background: white;
  color: black;
  padding: 1rem;
  text-align: center;
  border-radius: 12px;
  border: 2px solid #ccc;
}

/* Content Styling */
.content {
  grid-area: content;
  padding: 1rem;
  background: #ffffff;
  border-radius: 12px;
  border: 2px solid #ccc;
  max-width: 100%;
  overflow-wrap: break-word; /* Break long words if necessary */
}

.right {
  grid-area: right;
  background: #f4f4f4;
  padding: 1rem;
  border-radius: 12px;
  border: 2px solid #ccc;
}

.toggle-btn {
    display: none;
  }

/* Small Text */
.small-text {
  font-size: 12px;
  margin-bottom: 8px;
}

/* Headings and Paragraphs */
h1, h2, h3, h4, h5, h6, p {
  margin-bottom: 10px;
}

ul {
  padding-left: 20px;
  margin-left: 0;
}

li {
  margin-bottom: 10px;
}

/* Layout for Mobile (Hiding Sidebar by Default) */
@media (max-width: 1000px) {
  .layout {
    grid-template-columns: 1fr; /* 1-column layout */
    grid-template-areas:
      "header"
      "content";
  }

  /* Sidebar initially off-screen, with sliding effect */
  .right {
    position: fixed; /* Fix the sidebar on the screen */
    top: 0;
    right: 0; /* Align to the right of the screen */
    width: 200px; /* Width of the sidebar */
    height: 100vh; /* Full height */
    background-color: #f4f4f4;
    padding: 1rem;
    border-radius: 12px;
    border: 2px solid #ccc;
    transition: transform 0.3s ease-in-out; /* Smooth transition for sliding effect */
    z-index: 1000; /* Ensure it appears above the other content */
    transform: translateX(100%); /* Initially off-screen */
  }

  /* Show the sidebar when 'visible' class is added */
  .right.visible {
    transform: translateX(0); /* Slide the sidebar into view */
  }

  /* Toggle Button for Sidebar */
  .toggle-btn {
    font-size: 30px;
    background: white;
    border: 1px solid #ccc;
    color: black;
    cursor: pointer;
    padding: 1rem;
    display: block;
    position: fixed; /* Fixed position to stay at the bottom right */
    bottom: 10px; /* 10px from the bottom of the screen */
    right: 10px; /* 10px from the right of the screen */
    z-index: 1100; /* Ensure the button is above the sidebar */
  }
}