body {
  margin: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: 'Arial', sans-serif;
  background-color: #f4f4f9;
  color: #333;
}

/* Make sure the toggle container is always at the top */
.toggle-container {
  position: fixed;
  height: 5%;
  top: 0;
  left: 19%;
  width: 60px; /* Default width, will be overwritten by JS */
  background-color: transparent;
  z-index: 1000; /* Ensure it's on top */
}

.toggle-container span {
  margin-right: 8px;
  font-weight: bold;
}

.toggle-container button {
  background-color: #e4e4e4;
  color: #333;
  width: 36px;
  padding: 4px;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.toggle-container button:hover {
  background-color: #d0d0d0;
}

/* Make sure the response div starts after the fixed toggle container */
#responseDiv {
  flex-grow: 1;
  overflow-y: auto;
  padding: 20px;
  border-top: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
  background-color: white;
  width: 60%; /* Default width for larger screens */
  margin: 35px auto 0; /* Add top margin to push content down */
  height: 90%;
  font-size: 16px;
  white-space: pre-wrap;
}

#response {
  flex-grow: 1;
  overflow-y: auto;
  font-size: 16px;
  white-space: pre-wrap;
}

/* Media query for mobile devices (screens smaller than 768px wide) */
@media screen and (max-width: 767px) {
  #responseDiv {
    width: 90%; /* Mobile width */
    margin: 25px auto 0;
    font-size:12px;
  }
  .toggle-container{
    left:0%;
    width:100%;
  }
  #response{
    font-size:12px;
  }
  .actionDiv{
    width:90%;
  }
  .actionTextBox{
      width:100%;
  }
}

.actionTextBox{
  position:relative;
  width:98%;
  left:0%;
}

.actionDiv{
  height: 5%;
  width:62%;
  margin:auto;
}

.fixed-bottom {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 5px;
  background-color: #fff;
  box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
}

select, input[type="text"] {
  padding: 8px;
  margin-right: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 16px;
}

button {
  padding: 10px 15px;
  background-color: #007BFF;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

button:hover {
  background-color: #0056b3;
}

/* Initially hide the debug controls */
.debug-controls {
  position:relative;
  left:19%;
  width:60%;
  top:5%;
  display: none;
  flex-direction: column;
  align-items: flex-start;
  padding: 15px;
  border: 1px solid #eee;
  background-color: white;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* When the toggle is active, show the controls */
.debug-controls[style="display: flex"] {
  display: flex;
}
