p.caption {
    color: #777;
    margin-top: 10px;
}

p code {
    white-space: inherit;
}

pre {
    word-break: normal;
    word-wrap: normal;
}

pre code {
    white-space: inherit;
}

/*pre.sourceCode {*/
/*  margin-top: 15px !important;*/
/*  background-color: #ffffff !important;*/
/*}*/

table { caption-side: bottom }


div.definition, div.theorem, div.mybox {
    border: 1px solid gray;
    padding: 5px 10px;
    margin: 20px 10px;
}

.solution-hidden {
  display: none;
  padding: 1em;
  transition: all 0.3s ease;
}

.solution {
    margin-bottom: 1.5em;
}

/*SQL*/

.sql-container {
  display: flex;
  border: 1px solid #ccc;
  height: 60vh;
  font-size: 1.5rem;
  margin-bottom: 25px;
  margin-top: 25px;
}

/* Left side: table + input */
.sql-container .main-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  background-color: #f8f8f8;
  padding: 0;
}

/* Table display */
.sql-container .output {
  overflow: auto; /* Keep this for when content *does* overflow */
  flex: 2;
  text-align: left;
  margin: 0;
  padding: 0;
}

.sql-container .output table {
  height: auto;
}
.sql-container .output td {
  height: auto;
  vertical-align: top; /* optional for alignment */
}

/* Input textarea wrapper */
.sql-container .input-area {
  padding: 0;
  border: none;
  border-top: 1px solid #ccc;
  position: relative;
}

/* Textarea styling */
.sql-container .query {
  border: none;
  resize: none;
  padding: 1rem;
  font-family: monospace;
  font-size: 1.5rem;
  width: 100%;
  box-sizing: border-box;
}

/* Remove outline on focus */
.sql-container .query:focus {
  outline: none;
  border: none;
}

/* Button */
.sql-container .reset-button {
  position: absolute;
  bottom: 0.5em;
  right: 0.5em;
  padding: 0.5em 1em;
  font-size: 0.9em;
}

/*Error Message*/

.sql-container .error {
    position: absolute;
    left: 0.5em;
    bottom: 0.5em;
    color: #ccc
}


.overflow-container {
  width: 100%;
  max-height: 600px;  /* You can change this */
  overflow: auto;     /* Enables scroll when content is too large */
}

.overflow-container::-webkit-scrollbar {
  display: none;                 /* Chrome, Safari, Edge */
}
