html {
  font-size: 15px;
  color: #1a1a1a;
}

body {
  margin: auto;
  padding-left: 5em;
  padding-right: 5em;
  padding-top: 30px;
  padding-bottom: 30px;
  font-family:  'Spectral', serif;
  background-color: #ededed;
}

section {
  width: 100%; /* Adjust this value to change the width of the section */
  transition: background-color 1s; /* make the transition of the color */
  margin: 25px 0; /* Add margin to the section */
  }

/* More specific selector */
body b {
  font-weight: 700;
}

body p {
  margin: 15px 0; /* Add margin to the p element */
}

body h1 {
  padding-top: 5em; /* Adjust this value to move h1 below the top-bar */
  font-size: xx-large; /* Adjust this value to change the font size */
  font-weight: bold;
}
body h2 {
  font-size: x-large; /* Adjust this value to change the font size */
  font-weight: bold; /* Add this line to make h2 bold */
}

body h3 {
  font-size: large; /* Adjust this value to change the font size */
  font-weight: bold; /* Add this line to make h2 bold */
}

.drawer-side {
  z-index: 1000; /* Add this line to ensure the drawer is on top */
}

.drawer-button {
    background-color: #ededed; /* Set the background color */
    color: black; /* Set the text color */
}

.drawer-button:hover {
    background-color: #2980b9; /* Set the background color on hover */
    color: white; /* Set the text color on hover */
}

/* define styles for smaller screens */
@media screen and (max-width: 600px) {

  .top-left-button {
    position: fixed; /* Stay in place even when scrolling */
    top: 10px; /* Distance from the top */
    left: 10px; /* Distance from the right */
    z-index: 1; /* Ensure it stays on top of other elements */
    font-size: 5px;
  }

  .top-left-button span {
    background-color: transparent; /* Button background color */
    color: black; /* Button text color */
    padding: 5px 10px; /* Padding inside the button */
    border-radius: 5px; /* Optional: Rounded corners */
    text-align: center; /* Center the text */
    display: inline-block; /* Keep the button inline */
  }

  body {
    padding-left: 2em;
    padding-right: 2em;
  }

  body p {
    margin: 20px 0; /* Add margin to the p element */
  }

  section {
    margin: 60px 0; /* Add margin to the section */
    }

    .tooltip-link {
      position: relative;
      display: inline-block;
      color: #33D1FF;
    }

    .tooltip-text {
      visibility: hidden;
      width: 80%; /* Width of the tooltip(Box) */
      background-color: #555;
      color: #fff;
      text-align: left;
      border-radius: 30px;
      padding: 10px 10px;

      /* Position the tooltip */
      position: fixed; /* Changed from absolute to fixed */
      z-index: 1;
      top: 50%; /* Position at the vertical center of the screen */
      left: 50%; /* Position at the horizontal center of the screen */
      transform: translate(-50%, -50%); /* Center the tooltip box */
    
      /* Fade-in effect */
      opacity: 1;
      transition: opacity 0.1s;
    }

    .tooltip-link:hover {
      color: orange;
    }

    .visually-hidden {
      position: absolute;
      width: 1px;
      height: 1px;
      padding: 0;
      margin: -1px;
      overflow: hidden;
      clip: rect(0, 0, 0, 0);
      border: 0;
    }

    .code-box {
      background-color:#D0D0D0   ; 
      padding: 2px 1px;
      width: 80%; /* Adjust the width as needed */
      /* max-height: 300px; Maximum height before scrolling  */
      overflow: auto;
      border: 1px solid #ddd;
      font-family: monospace;
      box-sizing: border-box; /* Includes padding and border in the width */
    }
    .code-box-container {
      display: flex;
      justify-content: center;
      align-items: center;
    }
  .code-box code {
      color: black;
  }
.code-box .keyword { color:  #FF5F1F ; font-weight: bold; }
.code-box .function { color: #0066ff; }
.code-box .string { color: #a31515; }
.code-box .comment { color: #008000; font-style: italic; }
.code-box .number { color: #ff0000; }
.code-box .operator { color: #DE3163; }
.code-box .group { color: #4CBB17; }
.code-box .outcome { color:  #0F52BA ; }
  
}

  

/* define styles for larger screens */

@media screen and (min-width: 600px) {

  .button:hover {
    background-color: #565656;
  }

  html {
    color: #1a1a1a;
    background-color: #ededed;
  }

  body {
    margin: auto;
    padding-left: 5em;
    padding-right: 5em;
    padding-top: 30px;
    padding-bottom: 30px;
    font-family:  'Spectral', serif;
  }

  .next-page-bar {
    position: fixed;
    top: 0;
    right: -50px;
    width: 50px; /* Width of the vertical bar */
    height: 100vh; /* Full height of the viewport */
    background-color: #565656; /* Background color of the vertical bar */
    display: flex;
    justify-content: center;
    align-items: center;
    transition: right 0.3s, opacity 0.3s;
    opacity: 0;
  }

  .next-page-bar i {
    font-size: 24px;
    color: white;
  }

  /* Show vertical bar when hovering over right edge */
  body:hover .next-page-bar {
    right: 0;
    opacity: 1;
  }

  .next-page-bar:hover {
    background-color: #565656;
  }

  .top-left-button {
    position: fixed; /* Stay in place even when scrolling */
    top: 10px; /* Distance from the top */
    left: 10px; /* Distance from the right */
    z-index: 2; /* Ensure it stays on top of other elements */
    font-size: 5px;
  }

  .top-left-button span {
    background-color: transparent; /* Button background color */
    color: black; /* Button text color */
    padding: 5px 10px; /* Padding inside the button */
    border-radius: 5px; /* Optional: Rounded corners */
    text-align: center; /* Center the text */
    display: inline-block; /* Keep the button inline */
  }

  .top-left-button span:hover {
    background-color: #565656; /* Darken background on hover */
    color: white; /* Change text color on hover */
  }
  a {
    color: #3498db
  }
  a:visited {
    color: #e67e22
  }
  ol, ul {
    padding-left: 1.7em;
    margin-top: 1em;
  }
  li > ol, li > ul {
    margin-top: 0;
  }
  hr {
    background-color: #1a1a1a;
    border: none;
    height: 1px;
    margin: 1em 0;
  }
  table {
    margin: 1em 0;
    border-collapse: collapse;
    width: 100%;
    overflow-x: auto;
    display: block;
    font-variant-numeric: lining-nums tabular-nums;
  }
  table caption {
    margin-bottom: 0.75em;
  }
  tbody {
    margin-top: 0.5em;
    border-top: 1px solid #1a1a1a;
    border-bottom: 1px solid #1a1a1a;
  }
  th {
    border-top: 1px solid #1a1a1a;
    padding: 0.25em 0.5em 0.25em 0.5em;
  }
  td {
    padding: 0.125em 0.5em 0.25em 0.5em;
  }
  header {
    margin-bottom: 4em;
    text-align: center;
  }
  #TOC li {
    list-style: none;
  }
  #TOC ul {
    padding-left: 1.3em;
  }
  #TOC > ul {
    padding-left: 0;
  }
  #TOC a:not(:hover) {
    text-decoration: none;
  }

  .tooltip-link {
    position: relative;
    display: inline-block;
    color: #33D1FF;
  }

  .tooltip-text {
    visibility: hidden;
    width: 400px; /* Width of the tooltip(Box) */
    background-color: #555;
    color: #fff;
    text-align: left;
    border-radius: 10px;
    padding: 10px 10px;
  
    /* Position the tooltip */
    position: absolute;
    z-index: 1;
    bottom: 100%;
    left: 50%;
    margin-left: -60px;
  
    /* Fade-in effect */
    opacity: 1;
    transition: opacity 0.2s;
  }
  
  .tooltip-link:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
  }

  .tooltip-link:hover {
    color: orange;
  }

  .visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
  }
  .code-box {
    background-color: #D0D0D0   ; 
    padding: 2px 1px;
    width: 100%; /* Adjust the width as needed */
    max-width: 1500px;
    max-height: 300px; /* Maximum height before scrolling */ 
    overflow: auto;
    border: 1px solid #ddd;
    font-family: monospace;
    box-sizing: border-box; /* Includes padding and border in the width */
  }
  .code-box-container {
    display: flex;
    justify-content: center;
    align-items: center;  
  }
.code-box code {
    color: black;
}
.code-box .keyword { color:  #FF5F1F ; font-weight: bold; } /* Keywords */
.code-box .function { color: #0066ff; } /* Functions */
.code-box .string { color: #a31515; } /* String literals */
.code-box .comment { color: #008000; font-style: italic; } /* Comments */
.code-box .number { color: #ff0000; } /* Numbers */
.code-box .operator { color: #DE3163; } /* Operators */
.code-box .group { color: #4CBB17; } /* Parentheses and Brackets */
.code-box .outcome { color:  #0F52BA ; } /* Outcome */
}

.navbar {
  background-color: #ffffff; /* Set the background color */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Add shadow */
  position: relative; /* Ensure it does not overlap other elements */
  z-index: 1000; /* Ensure it stays on top */
}

.question-box {
  background-color: #D6EAF8   ;
  padding: 2px 1px;
  width: 100%; /* Adjust the width as needed */
  max-width: 1500px;
  /*max-height: 300px; !* Maximum height before scrolling *!*/
  overflow: auto;
  border: 1px solid #ddd;
  font-family: 'Spectral', serif;
  box-sizing: border-box; /* Includes padding and border in the width */
}
.question-box-container {
  display: flex;
  justify-content: center;
  align-items: center;
}
  
  header {
    padding: 20px;
    text-align: center;
  }
  

.highlight {
    background-color: yellow;
  }
