@import url('base.css');

.fl-jp-AppletView .fl-jp-Applet .jp-OutputArea {
  display: block;
}

.fl-jp-AppletView .fl-jp-Applet {
  overflow-y: auto;
  background: var(--jp-layout-color0);
  box-shadow: var(--jp-elevation-z4);
}

.fl-jp-AppletView {
  overflow-y: auto;
}

.fl-jp-AppletView .jp-collapseHeadingButton {
  display: none;
}

.fl-jp-AppletView .jp-InternalAnchorLink {
  display: none;
}

.fl-jl-notebook-inlecture .fl-jp-Applet .jp-OutputArea-child,
.fl-jl-notebook-inlecture .fl-jp-Applet .jp-Cell,
.fl-jl-notebook-inlecture .fl-jp-Applet .jp-CellHeader,
.fl-jl-notebook-inlecture .fl-jp-Applet .jp-CellFooter,
.fl-jl-notebook-inlecture .fl-jp-Applet .jp-Cell-inputWrapper,
.fl-jl-notebook-inlecture .fl-jp-Applet .jp-InputArea,
.fl-jl-notebook-inlecture .fl-jp-Applet .jp-OutputArea {
  width: fit-content;
}

.fl-jl-notebook-inlecture .fl-jp-Applet h1,
.fl-jl-notebook-inlecture .fl-jp-Applet h2,
.fl-jl-notebook-inlecture .fl-jp-Applet h3,
.fl-jl-notebook-inlecture .fl-jp-Applet h4,
.fl-jl-notebook-inlecture .fl-jp-Applet h5,
.fl-jl-notebook-inlecture .fl-jp-Applet h6 {
  white-space: nowrap;

  /* overflow: hidden; 
     text-overflow: ellipsis; */
}

.fl-jl-notebook-inlecture .jp-OutputArea-output {
  width: max-content;
  height: max-content;
}

@keyframes fade-out {
  0% {
    opacity: 1;
    max-height: 50vh;
  }

  90% {
    opacity: 0.1;
    max-height: 50vh;
  }

  100% {
    opacity: 0;
    max-height: 0;
  }
}

.fl-jl-notebook-inlecture [data-mime-type='application/vnd.jupyter.stderr'] {
  opacity: 1;
  max-height: 50vh;
  overflow: hidden;
  animation: fade-out 2s ease forwards;
  animation-delay: 2s;
}

.fl-jp-AppletViewToolbar {
  position: absolute;
  right: 0;
  top: 0;
  box-shadow: none;
  border-bottom: none;
}

.lm-AccordionPanel .lm-AccordionPanel-title {
  box-sizing: border-box;
  padding: 0 10px;
  background: #f5f5f5;
  border: 2px solid #c0c0c0;
  border-bottom: none;
  font:
    12px Helvetica,
    Arial,
    sans-serif;
  min-height: 22px;
  max-height: 22px;
  min-width: 35px;
  line-height: 20px;
  margin: 0;
}

.lm-AccordionPanel
  .lm-AccordionPanel-title
  .lm-AccordionPanel-titleCollapser::before {
  content: '\25B2';
  position: absolute;
  right: 10px;
}

.lm-AccordionPanel
  .lm-AccordionPanel-title.lm-mod-expanded
  .lm-AccordionPanel-titleCollapser::before {
  content: '\25BC';
}

.fl-jl-notebook-inlecture .lm-AccordionPanel-title {
  display: none !important;
}

.fl-jl-notebook-inlecture .lm-SplitPanel-handle {
  display: none;
}

.fl-jl-notebook-inlecture .fl-jp-AppletView {
  overflow: hidden;
}

.fl-jl-notebook-inlecture .jp-NotebookPanel-notebook {
  display: none;
}

body[data-notebook='notebooks'] .jp-WindowedPanel-inner {
  margin-top: 0;
}

.jp-OutputArea.fl-jl-cell-interceptor-unsupported:not(
    .fl-jl-notebook-inlecture *
  )::after {
  content: 'Network transmission of this output is unsupported.';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  color: red;
  padding: 2px 4px;
  font-size: 1em;
  font-weight: bold;
  text-align: start;
}

.jp-OutputArea .widget-button:not(.fl-jl-notebook-inlecture *)::after {
  content: 'Unsupported!';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  color: red;
  background-color: #fffc;
  padding: 2px 4px;
  font-size: 1em;
  font-weight: bold;
  text-align: start;
}
