body {
    margin: 0;
    padding: 0;
}
* {
    margin: 0;
    padding: 0;
}

.tutorialmain {
    font-family: Arial, sans-serif;
    display: flex;
    margin: 0;
    padding: 0;
}

#sidebar {
    width: 20%;
    /* max-width: 20%; */
    background-color: #eaeaea;
    height: calc(100vh - 100px);
    padding: 10px;
    box-sizing: border-box;
    overflow-y: scroll;
}
#sidebar h2{
    color:#001f3d;
}
#sidebar a {
    display: block;
    margin: 10px 0;
    padding: 8px;
    background-color: none;
    text-decoration: none;
    color: black;
}
#sidebar a:hover {
    background-color: #0066cc;
    color: white;
}
#mainContent {
    padding: 0px;
    flex-grow: 1;
    background-color: white;
    font-weight: bold;
    width: 80%;
    height: calc(100vh - 100px);
    overflow-y: scroll;
}
#mainContent #answerText pre{
    background: #f8f8f8; 
    padding: 12px; 
    box-shadow: 0 0 10px #888;
    border-left: 4px solid #007BFF; 
    font-family: 'Courier New', monospace; 
    white-space: pre-wrap; 
    word-wrap: break-word; 
    overflow-x: auto;
    line-height: 2;
     box-sizing: border-box; /* Ensures padding and border are included in the total width */
    display: block; /* Forces the element to behave like a block element, so the border applies to the entire element */
}
#mainContent #answerText h2{
    margin-top: 10px;
    margin-bottom: 10px;
}
#mainContent #answerText h3{
    margin-top: 10px;
    margin-bottom: 10px;
}
.nav2 ul li {
    margin: 4px;
}

.previous-but, .next-but{
    height:30px;
    width:100px;
    background-color:#5dbb63;
    border-style:none;
}
.buttons-div{
    display:flex;
    justify-content:space-between;
    width:80%;
}
.tutortog{
    display: none;
}
@media only screen and (max-width:1100px){
    #sidebar{
        position: fixed;
        width: 0px;
        scrollbar-width: none;
        overflow-x: hidden;
        overflow-y: scroll;
        -ms-overflow-style: none;
        padding: 0;
    }
    .tutortog{
    color:white;height:40px;width:50px;font-size:25px;display:flex;align-items:center;justify-content:center;background-color:black;position:sticky;left:0;
}
    .buttons-div{
        width: 90%;
        margin: 0%;
    }
    #maincontent{
        width: 90%;
    }
    pre{
        all: unset;      /* Make text wrap instead of being on a single line */
  word-wrap: break-word;      /* Break long words to fit the container */
  overflow-x: auto;           /* Enable horizontal scroll when content is too wide */
  max-width: 100%; 
  padding: 10px;           /* Ensure the content doesn't overflow the container *//* Grey background for code samples */          /* Padding for readability */
  font-size: 12px;
  background-color: transparent;
    }
    code{
        all: unset;      /* Make text wrap instead of being on a single line */
  word-wrap: break-word;      /* Break long words to fit the container */
  overflow-x: auto;           /* Enable horizontal scroll when content is too wide */
  max-width: 100%;            /* Ensure the content doesn't overflow the container */ /* Grey background for code samples */           /* Padding for readability */
  font-size: 12px;
  padding: 10px;
  background-color: transparent;
    }
}
