body {
  margin: 0;
  font-family: Arial, sans-serif;
  display: flex;
  flex-direction: column;
  font-size: 16px;
}
.header {
  background-color: blue;
  color: white;
  padding: 10px 15px;
  font-size: 1.2em;
  width: 100%;
  position: relative;
  display: flex;
  align-items: center; /* Vertically align items */
  height: 2.8em;
}

h2 {
  font-size: 1.1em;
  margin-top: 1.25em;
}
h3 {
  font-size: 1.0em;
  margin-top: 1em;
}
p {
  font-size: 1em;
  line-height: 1.5;
}

.menu-btn {
  display: none; /* Initially hide the button */
  position: absolute;
  left: 5%;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 1.5em;
  color: white;
  cursor: pointer;
  z-index: 1; /* Ensure the button is above the text */
}

.header-text {
  flex-grow: 1; /* Allow text to take up remaining space */
  text-align: center;
}

.container {
  display: flex;
  flex-direction: row;
  height: 100%;
}
.sidebar {
  width: 250px;
  background: #f4f4f4;
  padding-top: 20px;
  height: 100%;
  transition: transform 0.3s ease-in-out;
  z-index: 2;
}
.sidebar a {
  display: block;
  padding: 15px;
  text-decoration: none;
  color: black;
  z-index: 3;
}
.sidebar a:hover {
  background: #ddd;
}
.content {
  flex-grow: 1;
  padding: 20px;
  overflow-y: auto;
}

/* Canvas styling */

#canvas {
    background: #fbfbfb;
  }
  
  .canvas_class {
    background: #fbfbfb;
  }
  
  #graph_function_canvas {
    background: #fcfcfc;
    /* margin:  auto; */
  }
  
  #controls {
    position: relative;
    left: -410px;
    top: 450px;
  }
  
  #controls_a {
    position: relative;
    left: -340px;
    top: 465px;
  }
  
  #controls_b {
    position: relative;
    left: -280px;
    top: 515px;
  }
  
  #controls_c {
    position: relative;
    left: -410px;
    top: 515px;
  }
  
  #itemSelect_c {
    position: relative;
    left: -285px;
    top: 80px;
  }
  
  .canvasTextStyling {
    font-size: 1.0em;
    font-family: 'Helvetica';
    color: dimgray;
  }
  
  #randomizeButton {
    font-size: 16px;
  }
  
  .anyButton {
    font-size: 16px;
  }
  
  .smallButton {
    font-size: 15px;
  }
  
  #function_buttons {
    position: relative;
    left: -250px;
    top: 480px;
  }
  
  #lineButton {
    font-size: 16px;
  }
  
  #squaredButton {
    font-size: 16px;
  }
  
  #sigmoidButton {
    font-size: 16px;
  }

/* Tables */


table {
  font-size: 1.0em;
  line-height: 1.5;
  border-collapse: collapse;
}

.center_table {
  margin: auto;
}

tr {
  text-align: center;
}

th {
  padding:  15px;
  border:  1px solid;
}

td {
  border:  1px solid;
}
  
  @media (max-width: 768px) {
    .container {
        flex-direction: column;
    }
    .sidebar {
        position: fixed;
        left: 0;
        top: 0;
        width: 250px;
        height: 100%;
        background: #f4f4f4;
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
        box-shadow: 2px 0 5px rgba(0, 0, 0, 0.2);
    }
    .menu-btn {
      display: block;
    }
    .header-text {
      text-align: center; /* Keep text centered even when button is visible */
      padding-left: 4%; /* Adjust padding to account for button width */
    }

    .sidebar.show {
        transform: translateX(0);
    }
}